Interface: BuildCcdaFamilyMember
The relative a BuildCcdaFamilyHistory organizer describes, the family
member whose conditions the organizer records. Emitted as the organizer's
subject/relatedSubject (a @classCode="PRS" personal relationship).
The relationship is never fabricated. relationship is the coded relation
of the relative to the patient, SNOMED CT by default (e.g. 72705000 mother,
9947008 father, 394859005… ), overridable via codeSystem (e.g. the HL7
RoleCode FTH/MTH on 2.16.840.1.113883.5.111). When omitted, the SHALL
relatedSubject/code is emitted as nullFlavor="UNK", an explicit unknown
relation, never guessed. gender (an HL7 AdministrativeGender code, e.g.
"M"/"F"), birthTime (an HL7 date string), and deceased (the
sdtc:deceasedInd flag) are all optional MAY elements, each emitted only when
supplied, never fabricated.
Example
import type { BuildCcdaFamilyMember } from "@cosyte/ccda";
const mother: BuildCcdaFamilyMember = {
relationship: { code: "72705000", displayName: "Mother" }, // SNOMED CT
gender: "F",
deceased: true,
};
Properties
birthTime?
readonlyoptionalbirthTime?:string
The relative's birth date (HL7 date string); emitted only when supplied.
deceased?
readonlyoptionaldeceased?:boolean
Whether the relative is deceased (sdtc:deceasedInd); emitted only when supplied.
gender?
readonlyoptionalgender?:string
The relative's HL7 AdministrativeGender code (e.g. "M"/"F"); emitted only when supplied.
relationship?
readonlyoptionalrelationship?:BuildCode
The coded relationship of the relative to the patient (SNOMED CT default).
Omit for an explicit unknown (relatedSubject/code nullFlavor="UNK"), never
guessed.