Skip to main content
Version: v0.0.4

Interface: BuildOruInit

Input for buildOru: 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


observations

readonly observations: readonly OruObservation[]

OBX content. Required, non-empty: an ORU with no result is a typed error.


order?

readonly optional order?: OruOrder

OBR content. Optional; an (empty) OBR is emitted regardless so the result group is well-formed.


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