Query Input Parameter List (QIP) -- HL7v2 composite data type.
Used in QPD segment for passing query parameters.
2 components:
- Segment Field Name (ST) -- e.g., "@PID.3.1"
- Values (ST)
Summary
Types
Functions
Encodes a QIP to a list of component strings.
Examples
iex> HL7v2.Type.QIP.encode(%HL7v2.Type.QIP{segment_field_name: "@PID.3.1", values: "12345"})
["@PID.3.1", "12345"]
iex> HL7v2.Type.QIP.encode(%HL7v2.Type.QIP{segment_field_name: "@PID.5.1"})
["@PID.5.1"]
iex> HL7v2.Type.QIP.encode(nil)
[]
Parses a QIP from a list of components.
Examples
iex> HL7v2.Type.QIP.parse(["@PID.3.1", "12345"])
%HL7v2.Type.QIP{segment_field_name: "@PID.3.1", values: "12345"}
iex> HL7v2.Type.QIP.parse(["@PID.5.1"])
%HL7v2.Type.QIP{segment_field_name: "@PID.5.1"}
iex> HL7v2.Type.QIP.parse([])
%HL7v2.Type.QIP{}