Interface: BuildAdtInit
Input for buildAdt: the MSH envelope plus the typed segment bodies.
Extends
MessageEnvelope
Properties
controlId?
readonlyoptionalcontrolId?:string
Auto-generated via generateControlId() when omitted.
Inherited from
MessageEnvelope.controlId
event?
readonlyoptionalevent?:AdtEvent
EVN content (EVN-1 is the trigger event; EVN-2/6 optional).
patient
readonlypatient:AdtPatient
PID content. Required: never fabricated.
processingId?
readonlyoptionalprocessingId?:string
Defaults to "P" (production).
Inherited from
MessageEnvelope.processingId
receivingApp?
readonlyoptionalreceivingApp?:string
Inherited from
MessageEnvelope.receivingApp
receivingFacility?
readonlyoptionalreceivingFacility?:string
Inherited from
MessageEnvelope.receivingFacility
sendingApp?
readonlyoptionalsendingApp?:string
Inherited from
MessageEnvelope.sendingApp
sendingFacility?
readonlyoptionalsendingFacility?:string
Inherited from
MessageEnvelope.sendingFacility
timestamp?
readonlyoptionaltimestamp?: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?
readonlyoptionalversion?:string
Defaults to "2.5".
Inherited from
MessageEnvelope.version
visit?
readonlyoptionalvisit?:AdtVisit
PV1 content. Optional; an (empty) PV1 is emitted regardless so the visit group is present.