Skip to content

Unknown patient id silently renders the fixture patient (misidentification hazard) #61

Description

@manjula25

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions