Data type XTN in FHIR

How the components of data type XTN (Extended Telecommunication Number) become FHIR R4 elements, from the HL7 Version 2 to FHIR guide.

HL7 v2 definition
Definition of XTN in HL7 v2 2.8
Maps
ContactPoint

To ContactPoint22 rows

HL7 v2 sourcev2 typeFHIR elementFHIR typeConditions and notes
XTN.1Telephone Number
STvaluestring
If IF XTN.3 NOT IN ("Internet", "X.400") AND XTN.7 NOT VALUED AND XTN.12 NOT VALUED
XTN.2Telecommunication Use Code
IDusecode
XTN.3Telecommunication Equipment Type
IDsystemcode
XTN.3Telecommunication Equipment Type
IDsystemcode
If IF XTN.3 NOT VALUED AND XTN.4 VALUEDValue "email"
XTN.3Telecommunication Equipment Type
IDsystem.extension-data-absent-reasoncode
If IF XTN.3 NOT VALUED AND XTN.4 NOT VALUEDValue "unknown"
XTN.4Communication Address
STvaluestring
If IF XTN.3 IN ("Internet", "X.400")
XTN.5Country Code
SNMextension[1].urluri
Value "http://hl7.org/fhir/StructureDefinition/contactpoint-country"
XTN.5Country Code
SNMextension[1].valueStringstring
XTN.6Area/City Code
SNMextension[2].urluri
Value "http://hl7.org/fhir/StructureDefinition/contactpoint-area"
XTN.6Area/City Code
SNMextension[2].valueStringstring
XTN.7Local Number
SNMextension[3].urluri
If IF XTN.3 NOT IN ("Internet", "X.400")Value "http://hl7.org/fhir/StructureDefinition/contactpoint-local"
XTN.7Local Number
SNMextension[3].valueStringstring
If IF XTN.3 NOT IN ("Internet", "X.400")
XTN.7Local Number
SNMvaluestring
If IF XTN.3 NOT IN ("Internet", "X.400") AND XTN.5 NOT VALUED AND XTN.6 VALUED AND XTN.7 VALUED AND XTN.8 NOT VALUEDValue XTN.6+" "+XTN.7
XTN.7Local Number
SNMvaluestring
If IF XTN.3 NOT IN ("Internet", "X.400") AND XTN.5 VALUED AND XTN.6 VALUED AND XTN.7 VALUED AND XTN.8 NOT VALUEDValue "+"+XTN.5+" "+XTN.6+" "+XTN.7
XTN.7Local Number
SNMvaluestring
If IF XTN.3 NOT IN ("Internet", "X.400") AND XTN.5 VALUED AND XTN.6 VALUED AND XTN.7 VALUED AND XTN.8 VALUEDValue "+"+XTN.5+" "+XTN.6+" "+XTN.7+" X"+XTN.8
XTN.7Local Number
SNMvaluestring
If IF XTN.3 NOT IN ("Internet", "X.400") AND XTN.5 NOT VALUED AND XTN.6 VALUED AND XTN.7 VALUED AND XTN.8 VALUEDValue XTN.6+" "+XTN.7+" X"+XTN.8
XTN.8Extension
SNMextension[4].urluri
Value "http://hl7.org/fhir/StructureDefinition/contactpoint-extension"
XTN.8Extension
SNMextension[4].valueStringstring
XTN.12Unformatted Telephone Number
STvaluestring
If IF XTN.3 NOT IN ("Internet", "X.400")
XTN.13Effective Start Date
DTMperiod.startdateTime
XTN.14Expiration Date
DTMperiod.enddateTime
XTN.18Preference Order
NMrankpositiveInt