Interface: XTN
HL7 v2 Extended Telecommunication Number (XTN): structured telecom per HL7 Chapter 2. All 12 v1 components are optional. Fields are OMITTED when the underlying component is absent (exactOptionalPropertyTypes).
Component positions (HL7 1-indexed; this interface is 0-indexed by key):
- telephoneNumber: formatted or unformatted phone number
- telecommunicationUseCode: PRN=Primary Residence, WPN=Work, NET=Internet, ORN=Other Residence, BPN=Beeper, VHN=Vacation Home, ASN=Answering Service, EMR=Emergency, ...
- telecommunicationEquipmentType: PH=Phone, FX=Fax, MD=Modem, CP=Cellular Phone, BP=Beeper, Internet, X.400, TDD, TTY
- emailAddress
- countryCode (e.g. "+1")
- areaCityCode
- localNumber
- extension
- anyText: free-text note
- extensionPrefix (e.g. "x")
- speedDialCode
- unformattedTelephoneNumber
Example
import type { XTN } from "@cosyte/hl7";
const phone: XTN = {
telephoneNumber: "(555) 555-1234",
telecommunicationUseCode: "WPN",
telecommunicationEquipmentType: "PH",
};
Properties
anyText?
readonlyoptionalanyText?:string
areaCityCode?
readonlyoptionalareaCityCode?:string
countryCode?
readonlyoptionalcountryCode?:string
emailAddress?
readonlyoptionalemailAddress?:string
extension?
readonlyoptionalextension?:string
extensionPrefix?
readonlyoptionalextensionPrefix?:string
localNumber?
readonlyoptionallocalNumber?:string
speedDialCode?
readonlyoptionalspeedDialCode?:string
telecommunicationEquipmentType?
readonlyoptionaltelecommunicationEquipmentType?:string
telecommunicationUseCode?
readonlyoptionaltelecommunicationUseCode?:string
telephoneNumber?
readonlyoptionaltelephoneNumber?:string
unformattedTelephoneNumber?
readonlyoptionalunformattedTelephoneNumber?:string