Item | DT | Card | Conf | Description | Label |
---|
hl7:addr
| AD | 1 … * | M | | DKMeress |
@use
| set_cs | 1 … 1 | R | SHALL contain exactly one [1..1] @use (CONF-DK:10.1.30.1) such that it SHALL contain codes from value set (CONF-DK:10.1.30.2) |
| CONF | |
hl7:careOf
| ADXP | 0 … 1 | R | MAY contain one [0..1] careOf (CONF-DK:10.1.30.3) | DKMeress |
hl7:streetAddressLine
| ADXP | 1 … 4 | M | SHALL contain at least one and at most four [1..4] streetAddressLine (CONF-DK:10.1.30.4) | DKMeress |
hl7:postalCode
| ADXP | 1 … 1 | R | SHALL contain exactly one [1..1] postalCode (CONF-DK:10.1.30.5) such that it | DKMeress |
@nullFlavor
| cs | 0 … 1 | F | NI |
| MAY contain one [0..1] @nullFlavor="NI" (CONF-DK:10.1.30.6) Only valid use of nullFlavor is when an address is confidential. |
hl7:city
| ADXP | 1 … 1 | R | SHALL contain exactly one [1..1] city (CONF-DK:10.1.30.7) such that it | DKMeress |
@nullFlavor
| cs | 0 … 1 | F | NI |
| MAY contain one [0..1] @nullFlavor="NI" (CONF-DK:10.1.30.8) Only valid use of nullFlavor is when an address is confidential.
|
hl7:country
| ADXP | 0 … 1 | R | SHOULD contain one [0..1] country (CONF-DK:10.1.30.9) | DKMeress |
@nullFlavor
| cs | 0 … 1 | F | NI |
| MAY contain one [0..1] @nullFlavor="NI" (CONF-DK:10.1.30.10) |
| Schematron assert | role | error | |
| see | CONF-DK:10.1.30.11 | |
| test | if (*[@nullFlavor]) then *:streetAddressLine = 'Adressebeskyttelse' else true() | |
| Message | If any element has a nullFlavor attribute, then the streetAddressLine must have the value 'Adressebeskyttelse' | |
| Schematron assert | role | error | |
| see | CONF-DK:10.1.30.12 | |
| test | if (*[@nullFlavor]) then count(*:streetAddressLine) = 1 else true() | |
| Message | If any element has a nullFlavor attribute, then there must be exactly one [1..1] streetAddressLine element | |
| Schematron assert | role | error | |
| see | CONF-DK:10.1.30.13 | |
| test | if (*[@nullFlavor] and *:postalCode) then *:postalCode[@nullFlavor] else true() | |
| Message | If any element has a nullFlavor attribute, then the postalCode element must have a nullFlavor attribute | |
| Schematron assert | role | error | |
| see | CONF-DK:10.1.30.14 | |
| test | if (*[@nullFlavor] and *:city) then *:city[@nullFlavor] else true() | |
| Message | If any element has a nullFlavor attribute, then the city element must have a nullFlavor attribute | |
| Schematron assert | role | error | |
| see | CONF-DK:10.1.30.15 | |
| test | if (*[@nullFlavor] and *:country) then *:country[@nullFlavor] else true() | |
| Message | If any element has a nullFlavor attribute, then the country element must have a nullFlavor attribute | |
| Schematron assert | role | error | |
| see | CONF-DK:10.1.30.16 | |
| test | empty(*[@nullFlavor]/text()) | |
| Message | Elements that have a nullFlavor attribute shall not have a value | |