Item | DT | Card | Conf | Description | Label |
---|
hl7:addr
| AD | 0 … * | | | ADDR |
@use
| cs | 0 … 1 | | Information about the usage or context of the address information. E.g. home, work, … Not mandatory if addr is nullFlavored.
|
| CONF | The value of @use shall be drawn from value set 1.3.182.10.2.1 eSante_AddressUse (DYNAMIC) |
|
hl7:streetAddressLine
| ADXP | 0 … 1 | | | ADDR |
hl7:streetName
| ADXP | 0 … 1 | | | ADDR |
hl7:houseNumber
| ADXP | 0 … 1 | | | ADDR |
hl7:postalCode
| ADXP | 0 … 1 | R | | ADDR |
hl7:city
| ADXP | 0 … 1 | R | | ADDR |
hl7:state
| ADXP | 0 … 1 | | | ADDR |
hl7:country
| ADXP | 0 … 1 | R | | ADDR |
| Constraint | The country code shall come from the value set eSanté_CountryCodes
|
| Variable let | Name | country | |
| Value | text() | |
| Schematron assert | role | error | |
| test | count(distinct-values(doc('include/voc-1.3.182.10.33.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $country]))=1 | |
| Message | The country code shall come from the value set eSanté_CountryCodes | |
hl7:additionalLocator
| ADXP | 0 … 1 | | | ADDR |
| Schematron assert | role | error | |
| test | @nullFlavor or (((hl7:streetAddressLine and not(hl7:streetName) and not(hl7:houseNumber)) or (hl7:streetName and hl7:houseNumber and not(hl7:streetAddressLine))) and @use) | |
| Message | Address can either have @nullFlavor or need to have @use attribute and streetAddressLine or houseNumber and streetName. | |
| Schematron assert | role | error | |
| test | @nullFlavor or (hl7:postalCode and hl7:city and hl7:country) | |
| Message | If addr is not nullFlavored, PostalCode, City and Country shall be provided. | |