Template

Show index

Template DK Medcom Person Address 2021‑09‑15 14:53:26

Id1.2.208.184.10.1.30Effective Date2021‑09‑15 14:53:26
Statusdraft DraftVersion Label1.5
NameDKMedcomPersonAddressDisplay NameDK Medcom Person Address
DescriptionAn address of a natural person
ClassificationHL7 V2/V3 Datatype Level Template
Open/ClosedOpen (other than defined elements are allowed)
RelationshipSpecialization: template 1.2.208.184.10.1.28 DK Medcom Address (DYNAMIC)
Example
Home address with country
<addr use="H">
  <streetAddressLine>Kodansvej 223</streetAddressLine>  <postalCode>2900</postalCode>  <city>Hellerup</city>  <country>Danmark</country></addr>
Example
Home address without country
<addr use="H">
  <streetAddressLine>Jacob Adelborgs Alle 300</streetAddressLine>  <streetAddressLine>st, tv</streetAddressLine>  <postalCode>8240</postalCode>  <city>Risskov</city></addr>
Example (invalid)
Invalid home address without country
<addr use="H">
  <streetAddressLine>Jacob Adelborgs Alle 300</streetAddressLine>  <streetAddressLine>st, tv</streetAddressLine>  <postalCode>8240</postalCode>  <city>Risskov</city>  <country nullFlavor="NI"/></addr>
Example
C/O address with country
<addr use="WP">
  <careOf>Nancy Ann Berggren</careOf>  <streetAddressLine>Forskerparken 10</streetAddressLine>  <postalCode>5230</postalCode>  <city>Odense</city>  <country>Danmark</country></addr>
Example
Work address with country
<addr use="WP">
  <streetAddressLine>Forskerparken 10</streetAddressLine>  <postalCode>5230</postalCode>  <city>Odense</city>  <country>Danmark</country></addr>
Example
Confidential address with country
<addr use="H">
  <streetAddressLine>Adressebeskyttelse</streetAddressLine>  <postalCode nullFlavor="NI"/>  <city nullFlavor="NI"/>  <country nullFlavor="NI"/></addr>
Example
Confidential address without country
<addr use="H">
  <streetAddressLine>Adressebeskyttelse</streetAddressLine>  <postalCode nullFlavor="NI"/>  <city nullFlavor="NI"/></addr>
Example (invalid)
Invalid confidential address
<addr use="H">
  <streetAddressLine>Adressebeskyttelse</streetAddressLine>  <postalCode nullFlavor="NI"/>  <city nullFlavor="NI"/>  <country>Danmark</country></addr>
Example (invalid)
Invalid confidential address
<addr use="H">
  <streetAddressLine>Beskyttet adresse</streetAddressLine>  <postalCode nullFlavor="NI"/>  <city nullFlavor="NI"/></addr>
ItemDTCardConfDescriptionLabel
hl7:addr
AD1 … *MDKMedotsress
@use
set_cs1 … 1RSHALL 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
The value of @use shall be drawn from value set 2.16.840.1.113883.3.1937.777.60.11.1 DK AddressUse (DYNAMIC)
hl7:careOf
ADXP0 … 1RMAY contain one [0..1] careOf (CONF-DK:10.1.30.3)DKMedotsress
hl7:streetAddressLine
ADXP1 … 4MSHALL contain  at least one and at most four [1..4] streetAddressLine (CONF-DK:10.1.30.4)DKMedotsress
hl7:postalCode
ADXP1 … 1RSHALL contain exactly one [1..1] postalCode (CONF-DK:10.1.30.5) such that itDKMedotsress
@nullFlavor
cs0 … 1FNI
 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
ADXP1 … 1RSHALL contain exactly one [1..1] city (CONF-DK:10.1.30.7) such that itDKMedotsress
@nullFlavor
cs0 … 1FNI
 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
ADXP0 … 1RSHOULD contain one [0..1] country (CONF-DK:10.1.30.9)DKMedotsress
@nullFlavor
cs0 … 1FNI
 MAY contain one [0..1] @nullFlavor="NI" (CONF-DK:10.1.30.10)
 Schematron assertrolered error 
 seeCONF-DK:10.1.30.11 
 testif (*[@nullFlavor]) then *:streetAddressLine = 'Adressebeskyttelse' else true() 
 MessageIf any element has a nullFlavor attribute, then the streetAddressLine must have the value 'Adressebeskyttelse' 
 Schematron assertrolered error 
 seeCONF-DK:10.1.30.12 
 testif (*[@nullFlavor]) then count(*:streetAddressLine) = 1 else true() 
 MessageIf any element has a nullFlavor attribute, then there must be exactly one [1..1] streetAddressLine element 
 Schematron assertrolered error 
 seeCONF-DK:10.1.30.13 
 testif (*[@nullFlavor] and *:postalCode) then *:postalCode[@nullFlavor] else true() 
 MessageIf any element has a nullFlavor attribute, then the postalCode element must have a nullFlavor attribute 
 Schematron assertrolered error 
 seeCONF-DK:10.1.30.14 
 testif (*[@nullFlavor] and *:city) then *:city[@nullFlavor] else true() 
 MessageIf any element has a nullFlavor attribute, then the city element must have a nullFlavor attribute 
 Schematron assertrolered error 
 seeCONF-DK:10.1.30.15 
 testif (*[@nullFlavor] and *:country) then *:country[@nullFlavor] else true() 
 MessageIf any element has a nullFlavor attribute, then the country element must have a nullFlavor attribute 
 Schematron assertrolered error 
 seeCONF-DK:10.1.30.16 
 testempty(*[@nullFlavor]/text()) 
 MessageElements that have a nullFlavor attribute shall not have a value