Designing the Behavioral Framework Behind Oracle Health's Discharge Workflow

Designing the Behavioral Framework Behind Oracle Health's Discharge Workflow

Designing the Behavioral Framework Behind Oracle Health's Discharge Workflow

Role: Conversation and interaction designer

Responsibilities: Define the interaction model and agent behavior framework for AI mode, and design discharge as its first implementation.

Collaborators: Product, research, engineering, data science, and clinical teams.

Timelines: Q1, 2026

I designed the interaction model and behavioral framework for AI mode, Oracle Health's first agentic workflow experience, using nurse discharge as the proving ground. The hard part was autonomy: at every turn, does the agent suggest, confirm, defer, act, or stay quiet, and do those calls stay coherent across a long workflow the nurse moves through out of order, leaves, and comes back to. The output was a reusable behavioral spec, chosen as the reference for the next wave of workflows.



Background

Oracle Health's clinical AI agent lived in a chat window clinicians used across a wide range of tasks. By default it worked like open conversation: the clinician asked, the agent answered, the clinician drove.

That's fine for quick questions. It's poor for long, standardized workflows, where finishing a task meant kicking off each sub-step yourself and holding the whole sequence in your head. AI mode takes that weight off. Entered from the same chat window, the agent leads the workflow, preparing what's needed and moving through the steps.

So: default mode is open conversation, driven by the clinician. AI mode is guided, driven by the agent.

Article image

Discharge was the first workflow chosen. It's common, high-stakes, and structured enough to test the model, but varied enough to be a challenge. The scope was deliberately narrow: design one standard discharge flow well enough to prove the model. The goal was twofold, show that a guided conversation could work for a clinical workflow, and build a framework future flows could inherit rather than reinvent.

The Problem

Discharge is one of the most time-sensitive workflows in a clinical environment, and one of the most scattered. Finishing it meant moving across parts of the EHR, pulling information and completing tasks that lived in separate places. Nurses weren't failing at discharge. The process just made them work harder than they should, on a shift already full of interruptions.

One conversation that walks the nurse through it sounds like the answer. But a scripted flow only works if the nurse follows the script, and nurses never do. They get pulled away, switch patients, and work steps out of order.

So the problem wasn't automating discharge. It was how an agent should behave when the nurse it's guiding is unpredictable, interrupted, and under pressure, and getting it wrong has consequences.

Research

I had to learn two things, how discharge works as a process, and how nurses actually do it. So I did domain research with the clinical team, and user research with nurses.

Domain research

I worked with Oracle's clinical team through working sessions, documentation reviews, and workflow walkthroughs to understand what discharge actually involves.

Two things came out of it. First, discharge isn't one process. It varies widely by care setting, condition, and destination: an ICU discharge, a pediatric discharge, and a patient going home with home health support each follow a different process. Second, the most common discharge flow in our EHR, the one I focused on, has a consistent shape:

Article image
User research

I co-owned research with a researcher, ran structured interviews with about ten nurses, and had standing access to a 50+ nurse panel for ongoing feedback. Interviews for depth, the panel for continuous input.

Here are the key findings:

The Design

I started with the obvious question: how would a nurse ideally move through discharge? That gave me a clean sequence, but it assumed a nurse who works one patient at a time, in order, without interruption. Research had just told me none of that was true.

A scripted flow works because you always know what comes next. Skip ahead, wander off, or disappear for ten minutes and it has nowhere to go. So the real question wasn't how to script the next turn. It was what the conversation should own at all, when it can't count on knowing where the nurse is.

  1. Two-part architecture

The core decision here was a conversation-design one: what the conversation should be responsible for, and what it shouldn't. Start with what it shouldn't own: status. Discharge has six steps, and if the conversation tracked them, it would report status every turn, what's done, what's left, what's open. Noisy, repetitive, and rigid, because a conversation that narrates a sequence starts to feel like one, and this flow was meant to be flexible.

So I moved status out of the conversation and into a task sidebar beside it. The sidebar owns status; the conversation handles the task at hand. It tracks each task as available, blocked, or done, so the conversation never has to. That split made everything else work: the agent can open on a task and say nothing else, because the sidebar already answers what it would otherwise have to.

Article image

Everything else follows. Each response carries only what the task needs, information, a confirmation, or a form, then a quick acknowledgment on completion and a move to the next step.

  1. Step design

Each task needed its behavior defined: what the nurse sees, what they do, how the response moves them on. Clinical content came from a separate team. My job was the rules the agent follows to turn that content into a response, not the wording of any one reply, since the agent generates each turn rather than replaying a script. For each step I wrote the rules plus an example of a good response.

For Review Discharge Orders, the first step:

  • State the goal, so the nurse knows what this step is.

  • Introduce a prepared summary, not raw data.

  • Highlight what matters at a glance, with a link to the full version.

  • Call out issues, conflicts, gaps, risks, or say there are none.

  • Prompt for the next step.

Responses followed the clinical agent's existing voice and tone, defined by the data science team, so AI mode sounded like the same agent nurses already knew, not a separate tool.

  1. Variable task order

The framework doesn't force a sequence. The sidebar follows that order, but nothing requires nurses to work it top to bottom, and in practice they don't. A nurse can jump to any task anytime, by asking or by tapping the sidebar, and the agent picks up whatever they chose. When an out-of-order task is done, it suggests the next uncompleted one, nudging them back without insisting.

That flexibility is built into the framework, not into discharge. A workflow that needs a strict order gets it; one that doesn't, like discharge, gets latitude.

  1. Off-flow questions

Nurses don't stay inside a workflow. Mid-discharge, one might ask something off-list. The obvious move is to decline and steer back, but those questions weren't distractions, they were part of getting the discharge done. And declining backfired: the nurse would leave AI mode, ask elsewhere, and come back, breaking the momentum the design was built to protect.

So the agent answers, then offers one suggestion to return, pointing back to the task they were on. Once. If the nurse keeps asking, it stops suggesting and just answers, because a nurse who keeps asking has decided to be off-task, and the sidebar keeps the workflow visible anyway. One suggestion is a reminder. A suggestion every turn is pressure.

  1. Interruption and re-entry

Interruption is the normal state, not an edge case. Nurses get pulled away, switch patients, and leave AI mode entirely. History handled it. The system already separated history by patient, so with engineering I added two more splits: AI mode kept apart from regular chat, and each workflow keeping its own thread. Because history is tied to the patient and workflow, not the session, it doesn't matter how a nurse leaves, they come back to the workflow exactly as they left it.

One rule covered the return: the agent restates the current step only if the last turn left nothing to act on, since repeating a request already on screen is just noise.

  1. When the agent is wrong

A guided workflow puts a lot of trust in the agent. At each step it surfaces what it pulled together, a summary, a flagged conflict, an outstanding result, and the nurse acts on it. If the agent's wrong, so is the nurse. I couldn't prevent errors, only make them catchable.

Everything the agent surfaces links back to its source, so checking it is one click away. And when it finds nothing to flag, it says so, because silence is ambiguous, it could mean "all clear" or "I missed it." An explicit "no issues found" makes a miss something the nurse can catch, not a blank they fill in with false confidence.

Testing turned up a third case, about intent rather than content. A nurse finished reviewing the discharge orders, then tapped the next task to move on. The agent read that tap as a jump, not a completion, so the first step never got marked done. The same ambiguity ran the other way: a reply like "got it" could mean the nurse had read the orders or finished with them, and the agent would have to guess which. The real question: should the agent infer completion from behavior, or make the nurse declare it? Inferring is faster but sometimes wrong, and in a clinical workflow a step wrongly marked done is worse than one wrongly left open. So I added a Done action. It doesn't stop a nurse from clicking ahead without finishing, and that's fine, the sidebar always shows what's still open.

The through-line: an agent error should be visible and recoverable, never silent.

  1. Agent autonomy

Every behavior above is a choice about how much authority the agent takes. Together they form a spectrum:

Act: It overrides in one case: a result that changes the discharge decision, where a nurse working from a stale picture is a safety problem.

Defer: When the nurse keeps going off-task, it stops re-anchoring and just answers. Their behavior is the signal.

Confirm: It marks a step complete only when the nurse says so, not by inferring from a click.

Suggest: After a detour, it points back to where the nurse left off. They can take it, ignore it, or go elsewhere.

Stay quiet: When a task becomes available mid-workflow, the sidebar updates but the conversation waits.

Clinical and compliance input set where those lines fall, not conversational convention. The default is that authority stays with the nurse: guide, never force. The one exception is safety.

  1. Framework thinking

Discharge was the first workflow, so every choice set a pattern. I was deciding two things at once the whole way: what discharge needed, and what the framework needed.

Several were framework decisions first. Splitting state from conversation solved discharge's flexibility problem and gave every future workflow the same clean division. Separating history by patient, chat type, and workflow was built for a multi-workflow world that didn't exist yet, because retrofitting it later would cost far more. And the framework doesn't hard-code steps: the agent figures out which discharge a patient needs, and the conversation adapts.

The output was a behavioral spec, named patterns to build the next workflow from instead of a blank page. The re-anchor pattern, for one:

After answering an off-flow question, offer at most one suggestion to return, pointing back to the task in progress. If nothing was in progress, suggest the next uncompleted task. If the nurse keeps asking off-flow questions, stop suggesting and just answer.

Every pattern is workflow-agnostic, so the next designer inherits the behavior and fills in only what's specific to their tasks.

From Rules to Behavior

A rule that's clear to a designer isn't always clear to a model. "Answer, then re-anchor once" reads fine until you ask what counts as a re-anchor, whether one already happened, or how to tell a follow-up from a fresh question.

I worked with the data science team throughout, and once the framework settled we translated it in one deliberate pass, rewriting rules that read cleanly to a person but left a model room to guess, and deciding what to put in the prompt versus the surrounding logic.

Validation

I validated as I went, not at the end, getting feedback on each behavior as I designed it, through demos, structured sessions, and casual check-ins with the nurse panel.

The core bet held. Nurses confirmed it solved the real pain, no more jumping around the EHR, no more holding the sequence in their head. And they read the two-part model without being taught it: the sidebar was their tracker, the conversation was where the work happened.

Variable order and the re-anchor tested well too. Nurses moved around freely and didn't find the guidance naggy, which was the risk I was watching for.

Deliverables

  • Discharge flow design: the guided workflow end to end, with per-step response rules.

  • Conversation framework: a reusable behavioral spec covering step structure, task order, off-flow questions, interruption and re-entry, and agent autonomy.

  • Model behavioral guidance: the framework translated into instructions the model acts on, with the data science team.

Impact

Discharge shipped as the proof of concept for AI mode, and it's already shaping what's next. After we shared the working demo with leadership and other teams, the framework was chosen as the reference for the next wave of workflows, with six more planned to adopt it the following quarter.

Usage numbers are still early, but the signal that matters is already here: what started as one discharge flow is the foundation the next wave builds on.

Reflection

Guide, never force held up for discharge, where nurses have room to work how they want. But the principle has an edge. A workflow with strict compliance, steps that legally or clinically must happen in order, might not tolerate the same latitude. Where the line sits between guiding and enforcing depends on what's at stake.

That's what designing a foundation is, rather than a single flow. Discharge proved the model works. What it can't prove yet is where the limits are, and the workflows built on it next will each test a different edge.

©2026 XINHANG LI. ALL RIGHTS RESERVED.

©2026 XINHANG LI. ALL RIGHTS RESERVED.

©2026 XINHANG LI. ALL RIGHTS RESERVED.