Skip to main content
Version: v0.0.3

Interface: CcdaPatient

A parsed C-CDA patient (recordTarget/patientRole). identifiers are the patient ids (the MRN lives here); demographics carry the coded gender, birth time, and optional race/ethnicity/marital status.

Example

import type { CcdaPatient } from "@cosyte/ccda";
function label(p: CcdaPatient): string {
return p.name?.text ?? p.identifiers[0]?.extension ?? "unknown";
}

Properties

birthTime?

readonly optional birthTime?: TS


ethnicGroupCode?

readonly optional ethnicGroupCode?: CD


genderCode?

readonly optional genderCode?: CD


identifiers

readonly identifiers: readonly II[]


maritalStatusCode?

readonly optional maritalStatusCode?: CD


name?

readonly optional name?: HumanName


raceCode?

readonly optional raceCode?: CD