HL7.Header (elixir_hl7 v0.10.0)

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.

Summary

Types

t()

@type 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()
}

Functions

get_message_date_time()

@spec get_message_date_time() :: String.t()

get_message_type_field(h)

@spec get_message_type_field(t()) :: [any()]

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

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

to_msh(h)

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