HL7.Header (elixir_hl7 v0.9.1) View Source

An HL7 header implementation that can be used to build MSH segments and HL7 messages. It is also exposed as metadata after parsing any HL7 message.

Link to this section Summary

Link to this section Types

Specs

t() :: %HL7.Header{
  hl7_version: binary(),
  message_control_id: String.t(),
  message_date_time: String.t(),
  message_type: binary(),
  processing_id: String.t(),
  receiving_application: term(),
  receiving_facility: term(),
  security: String.t(),
  sending_application: binary(),
  sending_facility: binary(),
  separators: HL7.Separators.t(),
  trigger_event: binary()
}

Link to this section Functions

Specs

get_message_date_time() :: String.t()
Link to this function

get_message_type_field(h)

View Source

Specs

get_message_type_field(t()) :: [any()]
Link to this function

new(message_type, trigger_event, message_control_id, processing_id \\ "P", version \\ "2.1")

View Source

Specs

new(String.t(), String.t(), String.t(), String.t() | list(), String.t()) :: t()

Specs

to_msh(t()) :: [any(), ...]