Skip to main content
Version: v0.0.4

Interface: BuildAdtInit

Input for buildAdt: the MSH envelope plus the typed segment bodies.

Extends

  • MessageEnvelope

Properties

controlId?

readonly optional controlId?: string

Auto-generated via generateControlId() when omitted.

Inherited from

MessageEnvelope.controlId


event?

readonly optional event?: AdtEvent

EVN content (EVN-1 is the trigger event; EVN-2/6 optional).


patient

readonly patient: AdtPatient

PID content. Required: never fabricated.


processingId?

readonly optional processingId?: string

Defaults to "P" (production).

Inherited from

MessageEnvelope.processingId


receivingApp?

readonly optional receivingApp?: string

Inherited from

MessageEnvelope.receivingApp


receivingFacility?

readonly optional receivingFacility?: string

Inherited from

MessageEnvelope.receivingFacility


sendingApp?

readonly optional sendingApp?: string

Inherited from

MessageEnvelope.sendingApp


sendingFacility?

readonly optional sendingFacility?: string

Inherited from

MessageEnvelope.sendingFacility


timestamp?

readonly optional timestamp?: string | Date

Date → HL7 YYYYMMDDHHmmss (UTC, seconds); a pre-formatted HL7 TS string passes through verbatim. Defaults to new Date().

Inherited from

MessageEnvelope.timestamp


version?

readonly optional version?: string

Defaults to "2.5".

Inherited from

MessageEnvelope.version


visit?

readonly optional visit?: AdtVisit

PV1 content. Optional; an (empty) PV1 is emitted regardless so the visit group is present.