Item | DT | Card | Conf | Description | Label |
---|
hl7:recordTarget
| | 1 … 1 | M | | CDAretA1 |
hl7:patientRole
| | 1 … 1 | M | | CDAretA1 |
hl7:id
| II | 1 … * | M | The first id of recordTarget/patientRole represents the local patient ID. It shall not be nullFlavored and shall have root and extension attribute, root being a valid OID string
| CDAretA1 |
@extension
| st | 1 … 1 | R | |
@root
| oid | 1 … 1 | R | |
hl7:id
| II | 1 … * | M | | CDAretA1 |
@extension
| st | 1 … 1 | R | |
@root
| oid | 1 … 1 | F | 1.3.182.4.4 |
hl7:id
| II | 1 … * | R | | CDAretA1 |
@root
| uid | 0 … 1 | F | 1.3.182.2.11.2 |
@extension
| st | 0 … 1 | | |
Included | 1 … * | M | from 1.3.182.11.1.1 ADDR (DYNAMIC) |
hl7:addr
| AD | 1 … * | M | | 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. | |
Included | 0 … * | | from 1.3.182.11.22 CDA telecom (DYNAMIC) |
hl7:telecom
| | 0 … * | | | CDAtecom |
@use
| set_cs | 0 … 1 | | |
| CONF | The value of @use shall be drawn from value set 1.3.182.10.28.1 eSante_TelecomAddressUse (DYNAMIC) |
|
@value
| st | 1 … 1 | R | |
| Variable let | Name | myAttValue | |
| Value | substring-before(@value,':') | |
| Variable let | Name | myAttCheck | |
| Value | distinct-values(doc('include/voc-1.3.182.10.29.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $myAttValue]) | |
| Schematron assert | role | error | |
| test | count($myAttValue)=count($myAttCheck) | |
| Message | Value must start with communication - scheme from value set eSanté_URLScheme | |
hl7:patient
| | 1 … 1 | M | | CDAretA1 |
hl7:id
| II | 0 … 1 | | | CDAretA1 |
hl7:name
| PN | 1 … * | M | | CDAretA1 |
@use
| set_cs | 0 … 1 | | |
| CONF | The value of @use shall be drawn from value set 1.3.182.10.19.1 eSante_NameUse (DYNAMIC) |
|
hl7:prefix
| ST | 0 … * | | | CDAretA1 |
@qualifier
| cs | 0 … 1 | | |
| CONF | The value of @qualifier shall be drawn from value set 1.3.182.10.18.1 eSante_NamePartQualifier (DYNAMIC) |
|
hl7:family
| ST | 1 … * | M | | CDAretA1 |
@qualifier
| cs | 0 … 1 | | |
| CONF | The value of @qualifier shall be drawn from value set 1.3.182.10.18.1 eSante_NamePartQualifier (DYNAMIC) |
|
hl7:given
| ST | 1 … * | M | | CDAretA1 |
@qualifier
| cs | 0 … 1 | | |
| CONF | The value of @qualifier shall be drawn from value set 1.3.182.10.18.1 eSante_NamePartQualifier (DYNAMIC) |
|
hl7:suffix
| ST | 0 … * | | | CDAretA1 |
@qualifier
| cs | 0 … 1 | | |
| CONF | The value of @qualifier shall be drawn from value set 1.3.182.10.18.1 eSante_NamePartQualifier (DYNAMIC) |
|
hl7:administrativeGenderCode
| CE | 1 … 1 | M | | CDAretA1 |
| CONF | The value of @code shall be drawn from value set 1.3.182.10.3.1 eSante_AdministrativeGender (DYNAMIC) |
|
hl7:birthTime
| TS | 1 … 1 | R | | CDAretA1 |
@nullFlavor
| cs | 0 … 1 | F | UNK |
@value
| ts | 0 … 1 | | |
| Schematron assert | role | error | |
| test | hl7:id[2]/@root='1.3.182.4.4' and matches(hl7:id[2]/@extension,'^(\d{11}|\d{13})$') | |
| Message | The second id of recordTarget/patientRole shall have @root=1.3.182.4.4 and @extension representing the SSN (11-digits or 13-digits) | |
| Schematron assert | role | error | |
| test | (hl7:id[3]/@nullFlavor) or (hl7:id[3]/@root='1.3.182.2.11.2') | |
| Message | The third id of recordTarget/patientRole if not nullFlavored, shall have @root=1.3.182.2.11.2 and @extension | |
| Schematron assert | role | error | |
| test | count(hl7:id)=3 | |
| Message | 3 id shall be present | |