Order Sequence Definition (OSD) -- HL7v2 composite data type.
Defines the sequence of orders for results reporting.
11 components:
- Sequence/Results Flag (ID) -- S (sequential), R (results-dependent)
- Placer Order Number: Entity Identifier (ST)
- Placer Order Number: Namespace ID (IS)
- Filler Order Number: Entity Identifier (ST)
- Filler Order Number: Namespace ID (IS)
- Sequence Condition Value (ST)
- Maximum Number of Repeats (NM)
- Placer Order Number: Universal ID (ST)
- Placer Order Number: Universal ID Type (ID)
- Filler Order Number: Universal ID (ST)
- Filler Order Number: Universal ID Type (ID)
Summary
Types
@type t() :: %HL7v2.Type.OSD{ filler_order_number_entity_identifier: binary() | nil, filler_order_number_namespace_id: binary() | nil, filler_order_number_universal_id: binary() | nil, filler_order_number_universal_id_type: binary() | nil, maximum_number_of_repeats: binary() | nil, placer_order_number_entity_identifier: binary() | nil, placer_order_number_namespace_id: binary() | nil, placer_order_number_universal_id: binary() | nil, placer_order_number_universal_id_type: binary() | nil, sequence_condition_value: binary() | nil, sequence_results_flag: binary() | nil }
Functions
Encodes an OSD to a list of component strings.
Examples
iex> HL7v2.Type.OSD.encode(%HL7v2.Type.OSD{sequence_results_flag: "S", placer_order_number_entity_identifier: "ORD001"})
["S", "ORD001"]
iex> HL7v2.Type.OSD.encode(nil)
[]
Parses an OSD from a list of components.
Examples
iex> HL7v2.Type.OSD.parse(["S", "ORD001", "HOSP", "FILL001", "LAB"])
%HL7v2.Type.OSD{sequence_results_flag: "S", placer_order_number_entity_identifier: "ORD001", placer_order_number_namespace_id: "HOSP", filler_order_number_entity_identifier: "FILL001", filler_order_number_namespace_id: "LAB"}
iex> HL7v2.Type.OSD.parse([])
%HL7v2.Type.OSD{}