The following Telecom parts
- countryCode
- areaCityCode
- localNumber
- extension
are defined as Long which does not properly reflect the standard.
Depending on the HL7v2 version the correct data type is either NM (Numeric) or SNM (String Numeric).
Between HL7v2 2.3 and 2.6 the type is NM. Starting with 2.7 the type changed to SNM, see https://www.hl7.eu/HL7v2x/v27/hl7v27typXTN.htm for the parts 5-8:
- Country Code
- Area/City Code
- Local Number
- Extension
The HL7 data types not only allow digits but also a set of special characters like +, / and leading zeros!
The following Telecom parts
are defined as
Longwhich does not properly reflect the standard.Depending on the HL7v2 version the correct data type is either NM (Numeric) or SNM (String Numeric).
Between HL7v2
2.3and2.6the type is NM. Starting with2.7the type changed to SNM, see https://www.hl7.eu/HL7v2x/v27/hl7v27typXTN.htm for the parts 5-8:The HL7 data types not only allow digits but also a set of special characters like
+,/and leading zeros!