ex_hl7 v1.0.0 HL7.Config

Stores configuration variables for the HL7 parser.

Link to this section Summary

Functions

Returns the country code used by default in the MSH HL7 segment. Set it in mix.exs as the corresponding 3-letter ISO code

Returns the characters used to encode components, repetitions, escaped values and subcomponents within an HL7 field. Set it in mix.exs

Returns the field separator used by default in the MSH HL7 segment. Set it in mix.exs

Returns the processing ID used by default in the MSH HL7 segment. Set it in mix.exs as P for production and D for debugging

Returns the version used by default in the MSH HL7 segment. Set it in mix.exs

Link to this section Functions

Returns the country code used by default in the MSH HL7 segment. Set it in mix.exs as the corresponding 3-letter ISO code:

config :ex_hl7, country_code: "ARG"
Link to this function

encoding_chars()

Returns the characters used to encode components, repetitions, escaped values and subcomponents within an HL7 field. Set it in mix.exs:

config :ex_hl7, encoding_chars: "^~\&"

Returns the field separator used by default in the MSH HL7 segment. Set it in mix.exs:

config :ex_hl7, field_sep: "|"
Link to this function

processing_id()

Returns the processing ID used by default in the MSH HL7 segment. Set it in mix.exs as P for production and D for debugging:

config :ex_hl7, processing_id: "P"

Returns the version used by default in the MSH HL7 segment. Set it in mix.exs:

config :ex_hl7, version: "2.4"