+
+
+
+ Eligibility check
+
+
{destination ? destination.name : "No destination selected"}
+
+ {movementHealthService(patient) ?? "Unknown service"} · {patient.cohort} {patient.security}
+
+
+
+ Eligibility
+ {verdict ? candidateReason(verdict) : "—"}
+ Tier {patient.urgency} leads
+
+
+
+
+
+
+
+
+
+
+ Movement facts
+
+
+
- Current stage
+ - {stageCopy[patient.stage].label}
+
+
+
- Owner
+ - {patient.owner}
+
+
+
- Referral
+ - {destination ? destination.name : `${patient.referredUnitIds.length} referred`}
+
+
+
- Response
+ - {patient.blocker}
+
+
+
- Health service
+ - {movementHealthService(patient) ?? "Unknown"}
+
+
+
- Setting
+ -
+ {patient.cohort} · {patient.security}
+
+
+
+
+
+
+ Why this match
+ {verdict ? (
+
+ {verdict.gates.map((gate) => (
+ -
+ {gate.pass ? : } {gate.detail}
+
+ ))}
+
+ ) : (
+ Select a destination to see eligibility checks.
+ )}
+ Alternatives
+ {candidates.map((candidate) => (
+
+
+ {candidate.unit.name}
+ {candidateReason(candidate.verdict)}
+
+ {candidate.verdict.eligible ? "Eligible" : "Not eligible"}
+
+ ))}
+
+
+
+ Readiness
+
+ -
+
+
+ Legal status
+ {patient.legalStatus}
+
+
+ -
+
+
+ Form readiness
+ {patient.legalForm
+ ? `${patient.legalForm.label} (${patient.legalForm.code}) · due ${formatInstant(patient.legalForm.dueAt)}`
+ : "No legal form required"}
+
+
+ -
+
+
+ Transport
+ {transportStatusLabel(patient.transport)}
+
+
+ -
+
+
+ Current blocker
+ {patient.blocker}
+
+
+
+
+
+
+ {activeSection === "legal" ? (
+
+ Legal and forms
+ {patient.legalStatus}
+
+ {patient.legalForm
+ ? `${patient.legalForm.label} (${patient.legalForm.code}) · due ${formatInstant(patient.legalForm.dueAt)}`
+ : "No Mental Health Act transport form required"}
+
+
+ ) : null}
+ {activeSection === "transport" ? (
+
+ Transport chain
+ {transportStatusLabel(patient.transport)}
+
+ Provider, ETA, risk documentation and legal-form readiness are visible here; dispatch and live vehicle
+ tracking are not part of this prototype.
+
+
+ ) : null}
+ {activeSection === "timeline" ? (
+
+ Synthetic audit timeline
+
+ {timeline.map((event, index) => (
+ -
+
+ {event.label}
+
+ ))}
+
+
+ ) : null}
+
+
+ Synthetic prototype only. Eligibility is checked automatically; an authorised human confirms every
+ destination. This is not clinical severity.
+
+
+ {confirmed ? `Destination confirmed for ${patient.id}` : ""}
+
+