View Source HL7.Header (elixir_hl7 v0.9.3)

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

@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

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

get_message_type_field(h)

View Source
@spec 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
@spec new(String.t(), String.t(), String.t(), String.t() | list(), String.t()) :: t()
@spec to_msh(t()) :: [any(), ...]