Skip to main content
Version: v0.0.3

Interface: PatientView

Patient & study identity (§4.1 - the wrong-patient failure class).

id is not globally unique; correct cross-system matching needs the {id, issuerOfId, issuerQualifiers} tuple plus otherIds. name keeps its full PN component structure, never flattened to a string.

Example

import { parseDicom } from "@cosyte/dicom";
const p = parseDicom(buf).patient;
p.id; // "MRN-42" - meaningless without the issuer
p.issuerOfId; // "HOSP_A"
p.name?.alphabetic.familyName; // "Doe"

Properties

birthDate?

readonly optional birthDate?: DicomDate


id?

readonly optional id?: string


issuerOfId?

readonly optional issuerOfId?: string


issuerQualifiers?

readonly optional issuerQualifiers?: readonly Item[]


name?

readonly optional name?: PersonName


otherIds

readonly otherIds: readonly OtherPatientId[]


sex?

readonly optional sex?: string