Summary
If getPatient fails or the id isn't in MOCK_PATIENTS, buildDisplayPatient returns MOCK_PATIENTS[0] — navigating to an unknown patient id silently shows "Maria Chen" (her MRN, age, conditions) as if she were the requested patient.
Evidence
apps/web/src/pages/PatientDetail.tsx:208-237. The "Showing demo data — live record unavailable" notice (lines 1278-1282) only renders in Panel view; the Cinema and Orchestrator view modes return early (lines 1226, 1250) with no error indication at all.
Impact
A clinical UI displaying the wrong patient's identity and record with no warning is a patient-misidentification hazard (a known class of clinical safety incident).
Summary
If
getPatientfails or the id isn't inMOCK_PATIENTS,buildDisplayPatientreturnsMOCK_PATIENTS[0]— navigating to an unknown patient id silently shows "Maria Chen" (her MRN, age, conditions) as if she were the requested patient.Evidence
apps/web/src/pages/PatientDetail.tsx:208-237. The "Showing demo data — live record unavailable" notice (lines 1278-1282) only renders in Panel view; the Cinema and Orchestrator view modes return early (lines 1226, 1250) with no error indication at all.Impact
A clinical UI displaying the wrong patient's identity and record with no warning is a patient-misidentification hazard (a known class of clinical safety incident).