Coded Element (CE) -- HL7v2 composite data type.
Deprecated as of v2.5. Retained for backward compatibility. Use CWE or CNE for new implementations.
6 components:
- Identifier (ST)
- Text (ST)
- Name of Coding System (ID) -- Table 0396
- Alternate Identifier (ST)
- Alternate Text (ST)
- Name of Alternate Coding System (ID) -- Table 0396
Summary
Types
Functions
Encodes a CE to a list of component strings.
Examples
iex> HL7v2.Type.CE.encode(%HL7v2.Type.CE{identifier: "784.0", text: "Headache", name_of_coding_system: "I9C"})
["784.0", "Headache", "I9C"]
iex> HL7v2.Type.CE.encode(nil)
[]
Parses a CE from a list of components.
Examples
iex> HL7v2.Type.CE.parse(["784.0", "Headache", "I9C"])
%HL7v2.Type.CE{identifier: "784.0", text: "Headache", name_of_coding_system: "I9C"}
iex> HL7v2.Type.CE.parse([])
%HL7v2.Type.CE{}