Interface: BuildCcdaEncounter
An Encounter Activity for the Encounters section (…22.4.49). type is the
coded encounter type (CPT by default, or SNOMED CT / HL7 ActEncounterCode) and
is required, the template SHALL contain a code [1..1]. period is the
visit/admission window emitted as the SHALL effectiveTime [1..1] (an
IVL_TS); when omitted the SHALL slot is filled with a nullFlavor="UNK"
low rather than a fabricated date. status maps to the optional statusCode.
Example
import type { BuildCcdaEncounter } from "@cosyte/ccda";
const visit: BuildCcdaEncounter = {
type: { code: "99213", displayName: "Office outpatient visit 15 minutes" }, // CPT
status: "completed",
period: { low: "20230615", high: "20230615" },
};
Properties
period?
readonlyoptionalperiod?:object
The visit/admission period as HL7 date strings (an IVL_TS low/high); either
bound optional. Emitted as the SHALL effectiveTime; nullFlavor="UNK" low
when omitted.
high?
readonlyoptionalhigh?:string
low?
readonlyoptionallow?:string
status?
readonlyoptionalstatus?:string
The encounter statusCode; defaults to "completed".
type
readonlytype:BuildCode
The coded encounter type (CPT by default, or SNOMED CT / HL7 ActEncounterCode).