Multiplexed Array (MA) -- HL7v2 composite data type.
Contains a variable number of numeric (NM) sample values from multiple waveform channels. Used in OBX for waveform data transmission.
Variable components (4+ per HL7 spec):
- Sample Y From Channel 1 (NM)
- Sample Y From Channel 2 (NM)
- Sample Y From Channel 3 (NM)
- Sample Y From Channel 4 (NM) ... additional channels as needed
Summary
Types
@type t() :: %HL7v2.Type.MA{values: [binary()]}
Functions
Encodes an MA to a list of component strings.
Examples
iex> HL7v2.Type.MA.encode(%HL7v2.Type.MA{values: ["1.2", "3.4", "5.6"]})
["1.2", "3.4", "5.6"]
iex> HL7v2.Type.MA.encode(%HL7v2.Type.MA{})
[]
iex> HL7v2.Type.MA.encode(nil)
[]
Parses an MA from a list of components.
All components are stored as a list of string values.
Examples
iex> HL7v2.Type.MA.parse(["1.2", "3.4", "5.6"])
%HL7v2.Type.MA{values: ["1.2", "3.4", "5.6"]}
iex> HL7v2.Type.MA.parse(["100"])
%HL7v2.Type.MA{values: ["100"]}
iex> HL7v2.Type.MA.parse([])
%HL7v2.Type.MA{}