Skip to main content
Version: v0.0.3

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?

readonly optional period?: 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?

readonly optional high?: string

low?

readonly optional low?: string


status?

readonly optional status?: string

The encounter statusCode; defaults to "completed".


type

readonly type: BuildCode

The coded encounter type (CPT by default, or SNOMED CT / HL7 ActEncounterCode).