Interface: XAD
HL7 v2 Extended Address (XAD): structured postal address per HL7 Chapter 2. All 12 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):
- street: street address (house number + street name).
- otherDesignation: apartment number, suite, floor, etc.
- city
- stateOrProvince
- zipOrPostalCode
- country (ISO-3166 3-letter, e.g. "USA", "CAN")
- addressType (H=Home, B=Business, M=Mailing, O=Office, P=Permanent, ...)
- otherGeographicDesignation
- countyParishCode
- censusTract
- addressRepresentationCode
- addressValidityRange
Example
import type { XAD } from "@cosyte/hl7";
const addr: XAD = { street: "123 Main St", city: "Boston", stateOrProvince: "MA" };
Properties
addressRepresentationCode?
readonlyoptionaladdressRepresentationCode?:string
addressType?
readonlyoptionaladdressType?:string
addressValidityRange?
readonlyoptionaladdressValidityRange?:string
censusTract?
readonlyoptionalcensusTract?:string
city?
readonlyoptionalcity?:string
country?
readonlyoptionalcountry?:string
countyParishCode?
readonlyoptionalcountyParishCode?:string
otherDesignation?
readonlyoptionalotherDesignation?:string
otherGeographicDesignation?
readonlyoptionalotherGeographicDesignation?:string
stateOrProvince?
readonlyoptionalstateOrProvince?:string
street?
readonlyoptionalstreet?:string
zipOrPostalCode?
readonlyoptionalzipOrPostalCode?:string