HL7.Path (elixir_hl7 v0.10.0)

View Source

A module and struct representing an HL7 path. This is typically created through the HL7.sigil_p/2 macro in order to gain compile-time correctness guarantees.

Summary

Functions

Creates an HL7 path struct at runtime.

Types

t()

@type t() :: %HL7.Path{
  component: term(),
  data: term(),
  field: term(),
  path: term(),
  repetition: term(),
  segment: term(),
  segment_number: term(),
  subcomponent: term(),
  truncate: term()
}

Functions

new(path)

Creates an HL7 path struct at runtime.

Examples

iex> HL7.Examples.wikipedia_sample_hl7()
...> |> HL7.new!()
...> |> HL7.get(HL7.Path.new("OBX-5"))
"1.80"