Stanford Med · Unit 5B Medicine·Day shift·Mon · 9:42 AM

Patient Discharge Cockpit

Alma Singh · Dementia + UTI (F03.91)
Switch role
MC
AS
Alma Singh
84 F · MRN-57810 · Dementia + UTI (F03.91)
Unit 5BMedicineMedicaid pendingLOS 8d
Estimated discharge
Saturday 12:00 PM
HIGH delay risk
Six readiness dimensions

All six must align for discharge to actually happen

Open discharge map →
Medical readiness
Blocked
Readiness75%
Functional readiness
Blocked
Readiness50%
Medication readiness
In progress
Readiness75%
Payer / authorization readiness
Blocked
Readiness50%
Resource availability
Blocked
Readiness50%
Patient + caregiver agreement
Blocked
Readiness50%
Discharge readiness
70%
Clinical
MD criteria, labs, vitals
22%
Operational
Auth, PT, transport, prefs
Operational readiness lifts as tasks complete. Goal: both ≥ 80% by 15:00 today to release tomorrow's discharge.
Predicted disposition
Skilled Nursing Facility
0.76 conf.
Rationale: prior CHF admission 2025-11, NYHA III, frailty score 0.43, caregiver POA available. Primary tilt → SNF for 7-day cardiac reconditioning; viable HH path if caregiver capacity confirmed.
Discharge timeline
Event simulator · demo only

Fire a realistic event to watch the engine recompute

src/lib/engine/dispatcher.ts
Event feed · dynamic engine

What moved the pillars

0 total
No events yet. Use the simulator below to fire a payer decision, FHIR observation, or vendor callback and watch the pillars move.
Decision engine

Needs × Coverage × Resources

All edges aligned
Needs
Clinical + functional set
Coverage
All authorized
Resources
Booked
All three dimensions aligned. Disposition path is executable; transport + meds-to-beds queued.
PaCHE barriers

Top blockers

1 barriers
  • E — ExternalActively blockingOwner: social worker
    Guardianship pending

    Court hearing scheduled in 11 days.

Next best actions

Recommended by OpenBed AI

4 ranked
  • Before 2:00 PM
    Request PT mobility evaluation

    Required before SNF accepts; slot before 2:00 PM.

    via Internal · Rehab Services

  • Today
    Send patient/caregiver SNF preference form

    Push portal form to Carla (daughter, POA).

    via Patient Portal · SMS + email

  • Now
    Check medication coverage & pharmacy availability

    Verify Entresto formulary tier + CVS Mission St stock + PA TAT.

    via BlueShield MA · CoverMyMeds · CVS

  • Submit by 10:30 AM
    Start SNF authorization packet

    Submit prior auth via BlueShield MA. Avg TAT 22h — submit today.

    via BlueShield MA · CoverMyMeds

Active tasks

For this patient

Open full task board →
  • In progressEngage pro bono guardianship clinicTara Liu, MSW
Workflow swim lanes

Tasks by role · cross-functional discharge orchestration

1 tasks
Hospitalist0
No active tasks
Nursing0
No active tasks
Pharmacy0
No active tasks
PT / OT0
No active tasks
Case manager0
No active tasks
Social work1
In progress
Engage pro bono guardianship clinic
Tara Liu, MSW

AI chart summary · live via Anthropic Claude

Runs through runAgent · writes an AgentInference audit row with cost, latency, prompt hash.

Click Run chart summary to call Claude Sonnet 4.6 on this patient's record. The audit row will be visible in Neon's AgentInference table within ~3s.

Medical readiness · deterministic rule engine

Reads cited criteria from src/lib/discharge/compliance.ts · scores deterministically · no AI involvement in severity.

75%
BLOCKED

Medical readiness 75% · 0 criteria failing (1 blocking). Patient not yet medically dischargeable.

Functional readiness · deterministic rule engine

Reads cited criteria from src/lib/discharge/functional-criteria.ts · scores deterministically · no AI involvement in severity.

50%
BLOCKED

Functional readiness 50% · 0 criteria failing (1 blocking). Patient not yet functionally dischargeable to proposed setting.

Medication readiness · deterministic rule engine

Reads cited criteria from src/lib/discharge/medication-criteria.ts · scores deterministically · no AI involvement in severity.

75%
WIP

Medication readiness 75% · 2 pass · 2 pending · 0 fail. Score lifts as PAs approve + reconciliation lands.

Prior auth drafter · Claude → HITL → CoverMyMeds

Draft → review → approve → submit

Live wire

Drafts via src/lib/ai/agents/prior-auth-drafter.tssubmits via src/lib/integrations/cmm.ts (mock-contract). Both write audit rows.

How this screen works
Cockpit is the single-pane view of one patient's six-pillar state
Inputs
What this screen reads
  • Epic FHIR encounter + clinical signals + medications
  • Cross-references to barriers, tasks, resource matches, portal state
  • Six-pillar engine snapshot for this patient
Engine
What it computes
  • Re-computes pillars whenever an event tied to this patient lands
  • Re-ranks Next-Best-Actions based on current barriers + readiness
  • Triggers chart-summarizer agent (Claude) on demand for the summary refresh
Outputs
What it writes / routes
  • Action buttons dispatch into the task orchestrator
  • 'Send preference form' pushes to portal via SSE
  • 'Start prior auth' fires CoverMyMeds submission + writes Submission row
  • Every approved action writes an AgentInference + Submission audit pair
Refresh trigger
When it updates
  • Any new FHIR observation on this patient
  • Any task completion that mentions this patientId
  • Any payer webhook for this patient's auths
  • Any portal event from caregiver
Partners involved:Anthropic Claude (via runAgent)CoverMyMeds (PA submission)Naviguide (SNF referral)ModivCare (NEMT booking)
Demo data · no PHI · mocked Epic + payer endpoints