Location with Address Variation 2 (LA2) -- HL7v2 composite data type.
Specifies a patient location with full address details. Used for administered-at locations (RXA-11).
14 components:
- Point of Care (IS)
- Room (IS)
- Bed (IS)
- Facility (HD) -- sub-components
- Location Status (IS)
- Patient Location Type (IS)
- Building (IS)
- Floor (IS)
- Street Address (ST)
- Other Designation (ST)
- City (ST)
- State or Province (ST)
- Zip or Postal Code (ST)
- Country (ID) -- Table 0399
Summary
Types
@type t() :: %HL7v2.Type.LA2{ bed: binary() | nil, building: binary() | nil, city: binary() | nil, country: binary() | nil, facility: HL7v2.Type.HD.t() | nil, floor: binary() | nil, location_status: binary() | nil, other_designation: binary() | nil, patient_location_type: binary() | nil, point_of_care: binary() | nil, room: binary() | nil, state_or_province: binary() | nil, street_address: binary() | nil, zip_or_postal_code: binary() | nil }
Functions
Encodes an LA2 to a list of component strings.
Examples
iex> HL7v2.Type.LA2.encode(%HL7v2.Type.LA2{point_of_care: "ICU", room: "101", bed: "A"})
["ICU", "101", "A"]
iex> HL7v2.Type.LA2.encode(nil)
[]
Parses an LA2 from a list of components.
Examples
iex> HL7v2.Type.LA2.parse(["ICU", "101", "A"])
%HL7v2.Type.LA2{point_of_care: "ICU", room: "101", bed: "A"}
iex> HL7v2.Type.LA2.parse([])
%HL7v2.Type.LA2{}