Location with Address Variation 1 (LA1) -- HL7v2 composite data type.
Specifies a patient location with an optional address. Used for dispense-to and deliver-to locations in pharmacy segments.
9 components:
- Point of Care (IS)
- Room (IS)
- Bed (IS)
- Facility (HD) -- sub-components
- Location Status (IS)
- Patient Location Type (IS)
- Building (IS)
- Floor (IS)
- Address (AD) -- sub-components (street, city, state, zip, country, type)
Summary
Types
Functions
Encodes an LA1 to a list of component strings.
Examples
iex> HL7v2.Type.LA1.encode(%HL7v2.Type.LA1{point_of_care: "ICU", room: "101", bed: "A"})
["ICU", "101", "A"]
iex> HL7v2.Type.LA1.encode(nil)
[]
Parses an LA1 from a list of components.
Examples
iex> HL7v2.Type.LA1.parse(["ICU", "101", "A"])
%HL7v2.Type.LA1{point_of_care: "ICU", room: "101", bed: "A"}
iex> HL7v2.Type.LA1.parse([])
%HL7v2.Type.LA1{}