core.hl7message
Home > @medplum/core > Hl7Message
Hl7Message class
The Hl7Message class represents one HL7 message. A message is a collection of segments.
Signature:
export declare class Hl7Message
Constructors
Constructor | Modifiers | Description |
---|---|---|
Creates a new HL7 message. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
| |||
| Returns the HL7 message header. | ||
|
Methods
Method | Modifiers | Description |
---|---|---|
Returns an HL7 "ACK" (acknowledgement) message for this message. | ||
Returns an HL7 segment by index or by name. | ||
Returns all HL7 segments of a given name. | ||
Returns all HL7 segments of a given name. | ||
Returns an HL7 segment by index or by name. When using a numeric index, the first segment (usually the MSH header segment) is at index 0. When using a string index, this method returns the first segment with the specified name. | ||
| Parses an HL7 message string into an Hl7Message object. | |
Returns the HL7 message as a string. |