Template

Show index

Template DK Medcom Address 2021‑09‑15 14:50:37

Id1.2.208.184.10.1.28Effective Date2021‑09‑15 14:50:37
Statusdraft DraftVersion Label1.5
NameDKMedcomAddressDisplay NameDK Medcom Address
ClassificationHL7 V2/V3 Datatype Level Template
Open/ClosedOpen (other than defined elements are allowed)
Used by / Uses
Used by 0 transactions and 1 template, Uses 0 templates
Used by as NameVersion
1.2.208.184.10.1.42Includedraft DK Medcom Assigned (body) (1.5)2021‑09‑15 15:34:52
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
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 … 1R
 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 … 1RDKMedotsress
hl7:streetAddressLine
ADXP1 … 4MDKMedotsress
hl7:postalCode
ADXP1 … 1RDKMedotsress
@nullFlavor
cs0 … 1FNI
 
Only valid use of nullFlavor is when an address is confidential.
hl7:city
ADXP1 … 1RDKMedotsress
@nullFlavor
cs0 … 1FNI
 
Only valid use of nullFlavor is when an address is confidential.
hl7:country
ADXP0 … 1RDKMedotsress
@nullFlavor
cs0 … 1FNI
 
Only valid use of nullFlavor is when an address is confidential.
 Schematron assertrolered error 
 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 
 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 
 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 
 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 
 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 
 testempty(*[@nullFlavor]/text()) 
 MessageElements that have a nullFlavor attribute shall not have a value