Item | DT | Card | Conf | Description | Label |
---|
hl7:ClinicalDocument
| | 1 … 1 | M | | onDeDAL3 |
@classCode
| cs | 0 … 1 | F | DOCCLIN |
@moodCode
| cs | 0 … 1 | F | EVN |
hl7:templateId
| II | 1 … 1 | M | | onDeDAL3 |
@root
| oid | 1 … 1 | F | 1.3.182.11.7.1 |
| onDemand CDA Level 3
|
hl7:templateId
| II | 1 … 1 | M | | onDeDAL3 |
@root
| oid | 1 … 1 | F | 2.16.840.1.113883.10.20.30 |
hl7:realmCode
| CS | 1 … 1 | M | | onDeDAL3 |
@code
| cs | 1 … 1 | F | LU |
hl7:typeId
| II | 1 … 1 | M | | onDeDAL3 |
@root
| oid | 1 … 1 | F | 2.16.840.1.113883.1.3 |
@extension
| st | 1 … 1 | F | POCD_HD000040 |
hl7:templateId
| II | 1 … 1 | M | | onDeDAL3 |
@root
| oid | 1 … 1 | F | 2.16.840.1.113883.10.20.30 |
| CDA Level 3 conformance templateId
|
hl7:id
| II | 1 … 1 | M | The unique identifier of the document. @root shall be a valid UUID @extension shall not be present | onDeDAL3 |
@root
| uuid | 1 … 1 | R | |
@extension
| st | 0 | NP | NP/not present |
| Example | <id root="fa625fd5-2ea9-433c-af17-71f0a1484443"/> |
hl7:code
| CE | 1 … 1 | M | | onDeDAL3 |
| Constraint | Only 2 possibilities here: DT-00001 for medications on-demand document or DT-00002 for laboratory on-demand document . Be sure to use the appropriate section
|
| Example | <code code="DT-00001" codeSystem="1.3.182.5.9"/> |
| Schematron assert | role | error | |
| test | (@code="DT-00001" and ../hl7:component/hl7:structuredBody/hl7:component[1]/hl7:section/hl7:templateId/@root="1.3.182.11.5.2.2.1") or (@code="DT-00002" and ../hl7:component/hl7:structuredBody/hl7:component[1]/hl7:section/hl7:templateId/@root="1.3.182.11.5.3.2.1") | |
| Message | The codes shall match the type of dispensation | |
hl7:effectiveTime
| TS.DATETIMETZ.MIN | 1 … 1 | M | The date of creation of the document | onDeDAL3 |
hl7:confidentialityCode
| CE (required) | 1 … 1 | M | The confidentiality code as set at the time of creation of the document. It shall always be "Normal". | onDeDAL3 |
@code
| cs | 1 … 1 | F | N |
@codeSystem
| oid | 1 … 1 | F | 2.16.840.1.113883.5.25 |
@codeSystemName
| st | 0 … 1 | F | HL7:Confidentiality |
@displayName
| st | 0 … 1 | F | Normal |
| Example | <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25" displayName="Normal" codeSystemName="HL7:Confidentiality"/> |
Included | 1 … * | R | from 1.3.182.11.1.16.1 CDA recordTarget A1 (DYNAMIC) |
hl7:recordTarget
| | 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 | |
hl7:author
| | 1 … 1 | M | | onDeDAL3 |
@typeCode
| cs | 0 … 1 | F | AUT |
@contextControlCode
| cs | 0 … 1 | F | OP |
hl7:time
| TS.DATETIMETZ.MIN | 1 … 1 | M | | onDeDAL3 |
hl7:assignedAuthor
| | 1 … 1 | M | | onDeDAL3 |
hl7:id
| II | 1 … 1 | M | | onDeDAL3 |
@root
| uid | 1 … 1 | F | 1.3.182.4.7 |
@extension
| st | 1 … 1 | F | 1.3.182.2.11.6.7.1 |
hl7:code
| CE | 1 … 1 | M | | onDeDAL3 |
@code
| cs | 1 … 1 | F | DEV |
@codeSystem
| oid | 1 … 1 | F | 1.3.182.5.6 |
@displayName
| st | 0 … 1 | F | Appareil |
hl7:assignedAuthoringDevice
| | 1 … 1 | M | | onDeDAL3 |
hl7:manufacturerModelName
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | @value is "onDemand Document Creator" |
|
hl7:softwareName
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | |
hl7:representedOrganization
| | 1 … 1 | M | | onDeDAL3 |
hl7:id
| II | 1 … 1 | M | | onDeDAL3 |
@root
| uid | 1 … 1 | F | 1.3.182.4.1 |
@extension
| st | 1 … 1 | F | 1000073438 |
hl7:name
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "Agence eSanté" |
|
hl7:telecom
| | 1 … 1 | M | | onDeDAL3 |
@use
| cs | 1 … 1 | F | WP |
@value
| cs | 1 … 1 | F | tel:003522712501833 |
hl7:addr
| | 1 … 1 | M | | onDeDAL3 |
@use
| cs | 1 … 1 | F | WP |
hl7:streetAddressLine
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "125 route d'Esch" |
|
hl7:postalCode
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "1471" |
|
hl7:city
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "Luxembourg" |
|
hl7:country
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "LUX" |
|
hl7:custodian
| | 1 … 1 | M | | onDeDAL3 |
hl7:assignedCustodian
| | 1 … 1 | M | | onDeDAL3 |
hl7:representedCustodianOrganization
| | 1 … 1 | M | | onDeDAL3 |
hl7:id
| II | 1 … 1 | M | | onDeDAL3 |
@root
| uid | 1 … 1 | F | 1.3.182.4.1 |
@extension
| st | 1 … 1 | F | 1000073438 |
hl7:name
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "Agence eSanté" |
|
hl7:telecom
| | 1 … 1 | M | | onDeDAL3 |
@use
| cs | 1 … 1 | F | WP |
@value
| cs | 1 … 1 | F | tel:003522712501833 |
hl7:addr
| | 1 … 1 | M | | onDeDAL3 |
@use
| cs | 1 … 1 | F | WP |
hl7:streetAddressLine
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "125 route d'Esch" |
|
hl7:postalCode
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "1471" |
|
hl7:city
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "Luxembourg" |
|
hl7:country
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "LUX" |
|
hl7:legalAuthenticator
| | 1 … 1 | M | | onDeDAL3 |
hl7:time
| TS.DATETIMETZ.MIN | 1 … 1 | M | | onDeDAL3 |
hl7:signatureCode
| | 1 … 1 | M | | onDeDAL3 |
@code
| cs | 1 … 1 | F | S |
hl7:assignedEntity
| | 1 … 1 | M | | onDeDAL3 |
hl7:id
| II | 1 … 1 | R | | onDeDAL3 |
@nullFlavor
| cs | 1 … 1 | F | NA |
hl7:assignedPerson
| | 1 … 1 | M | | onDeDAL3 |
hl7:name
| | 1 … 1 | R | | onDeDAL3 |
@nullFlavor
| cs | 1 … 1 | F | NA |
hl7:representedOrganization
| | 1 … 1 | M | | onDeDAL3 |
hl7:id
| II | 1 … 1 | M | | onDeDAL3 |
@root
| uid | 1 … 1 | F | 1.3.182.4.1 |
@extension
| st | 1 … 1 | F | 1000073438 |
hl7:name
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "Agence eSanté" |
|
hl7:telecom
| | 1 … 1 | M | | onDeDAL3 |
@use
| cs | 1 … 1 | F | WP |
@value
| cs | 1 … 1 | F | tel:003522712501833 |
hl7:addr
| | 1 … 1 | M | | onDeDAL3 |
@use
| cs | 1 … 1 | F | WP |
hl7:streetAddressLine
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "125 route d'Esch" |
|
hl7:postalCode
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "1471" |
|
hl7:city
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "Luxembourg" |
|
hl7:country
| ST | 1 … 1 | M | | onDeDAL3 |
| CONF | element content shall be "LUX" |
|
hl7:component
| | 1 … 1 | M | | onDeDAL3 |
@typeCode
| cs | 0 … 1 | F | COMP |
@contextConductionInd
| cs | 0 … 1 | F | true |
hl7:structuredBody
| | 1 … 1 | M | The first component/section represents the prescription, while the following component/section represent 0..n dispensation for this prescription. You can't mix prescription and dispensation types: if the first section is a medication prescription, the following sections shall be medication dispensations. If the first section is a biology prescription, the following sections shall be biology dispensations.
How do all IDs relate to each other? For a prescription and a dispensation, the ClinicalDocument/id is the same at the section/id (there is only one section). A prescription contains prescription lines, each having a unique ID. A dispensation contains dispensation lines, each having a unique ID and referrencing the prescription line ID (with an entryRelationship). The on-demand document, as it contains sections from prescription and dispensations, will also contain this information. See below for an example:
Prescription ID: fa625fd5-2ea9-433c-af17-71f0a1484443 --Line 1 ID: ab625fd5-2ea9-433c-af17-71f0a1484443 --Line 2 ID: cd625fd5-2ea9-433c-af17-71f0a148444
Dispensation ID: ac125fd5-2ea9-433c-af17-71f0a1484443 --Dispensation Line ID 1: 00125fd5-2ea9-433c-af17-71f0a1484443 ----Linked to prescription Line ID: ab625fd5-2ea9-433c-af17-71f0a1484443 --Dispensation Line ID 2: 01125fd5-2ea9-433c-af17-71f0a1484443 ----Linked to prescription Line ID: cd625fd5-2ea9-433c-af17-71f0a1484443
On demand document ID: a4813b2d-78dc-4be9-bde4-e6ddad00c0ce --Prescription section ID: fa625fd5-2ea9-433c-af17-71f0a1484443 ----Line 1: ab625fd5-2ea9-433c-af17-71f0a1484443 ----Line 2: cd625fd5-2ea9-433c-af17-71f0a1484443 --Dispensation 1 section ID: ac125fd5-2ea9-433c-af17-71f0a148444 ----Dispensation line 1 ID: 00125fd5-2ea9-433c-af17-71f0a1484443 ------Linked item: ab625fd5-2ea9-433c-af17-71f0a1484443 ----Dispensation line 2 ID: 01125fd5-2ea9-433c-af17-71f0a1484443 ------Linked item: cd625fd5-2ea9-433c-af17-71f0a1484443 --Dispensation 2 section ID: aaaaba27-4cab-41c1-9d0e-dce50da89614 ... | onDeDAL3 |
@classCode
| cs | 0 … 1 | F | DOCBODY |
@moodCode
| cs | 0 … 1 | F | EVN |
Choice | 1 … 1 | | Elements to choose from:- hl7:component
- hl7:component
|
hl7:component
| | 0 … 1 | | | onDeDAL3 |
Included | 1 … 1 | M | from 1.3.182.11.5.2.2.1 Prescription Meds Section (DYNAMIC) |
hl7:section
| | 1 … 1 | M | | Prestion |
hl7:templateId
| | 1 … 1 | M | | Prestion |
@root
| uid | 1 … 1 | F | 1.3.182.11.5.2.2.1 |
hl7:id
| | 1 … 1 | M | | Prestion |
@root
| uuid | 1 … 1 | R | |
@extension
| st | 0 | NP | NP/not present |
| Constraint | This ID shall be present and be the same as the CDA id |
Included | 1 … 1 | M | from 1.3.182.7.6.1.10.1 CDA author A2 (DYNAMIC) |
hl7:author
| | 1 … 1 | M | | CDAaorA2 |
hl7:time
| TS.DATETIMETZ.MIN | 1 … 1 | M | | CDAaorA2 |
hl7:assignedAuthor
| | 1 … 1 | M | | CDAaorA2 |
hl7:id
| II | 1 … * | R | Identifier of the author of this document, more than one identifier can be provided. For health professionals the hpdID (root OID = 1.3.182.4.1) from the HPD shall be provided. Additionally, if known, the code prestataire from CNS (UCM) with OID 1.3.182.4.6 may be provided. Identifiers shall be provided as specified in chapter: 2.2.2 and following the specification of the II data type in chapter: 2.2 When a patient authors a document e.g. his national identifier (root OID = 1.3.182.4.4) or the DSPPID (root OID = 1.3.182.2.4.2) can be used.
If the author is a device, then the id of the device inside the institution shall be given. | CDAaorA2 |
Included | 0 … * | | from 1.3.182.11.1.1 ADDR (DYNAMIC) |
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. | |
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 | |
Choice | 0 … 1 | | Elements to choose from:- hl7:assignedPerson containing template 1.3.182.11.1.15 CDA Person (DYNAMIC)
|
hl7:assignedPerson
| | 0 … 1 | | Contains 1.3.182.11.1.15 CDA Person (DYNAMIC) | CDAaorA2 |
hl7:representedOrganization
| | 0 … 1 | | Contains 1.3.182.11.1.13 CDA Organization (DYNAMIC) | CDAaorA2 |
hl7:entry
| | 1 … * | M | Contains 1.3.182.11.5.2.3.1 Med Prescription Item Entry (DYNAMIC) | Prestion |
hl7:component
| | 0 … 1 | | | onDeDAL3 |
Included | 1 … 1 | M | from 1.3.182.11.5.3.2.1 Prescription Bio Section (DYNAMIC) |
hl7:section
| | 1 … 1 | M | | Prestion |
hl7:templateId
| | 1 … 1 | M | | Prestion |
@root
| uid | 1 … 1 | F | 1.3.182.11.5.3.2.1 |
hl7:id
| | 1 … 1 | M | | Prestion |
@root
| uuid | 1 … 1 | R | |
| Constraint | This ID shall be present and be the same as the CDA id |
Included | 1 … 1 | M | from 1.3.182.7.6.1.10.1 CDA author A2 (DYNAMIC) The author here shall be extactly the same as the one in the CDA header |
hl7:author
| | 1 … 1 | M | | CDAaorA2 |
hl7:time
| TS.DATETIMETZ.MIN | 1 … 1 | M | | CDAaorA2 |
hl7:assignedAuthor
| | 1 … 1 | M | | CDAaorA2 |
hl7:id
| II | 1 … * | R | Identifier of the author of this document, more than one identifier can be provided. For health professionals the hpdID (root OID = 1.3.182.4.1) from the HPD shall be provided. Additionally, if known, the code prestataire from CNS (UCM) with OID 1.3.182.4.6 may be provided. Identifiers shall be provided as specified in chapter: 2.2.2 and following the specification of the II data type in chapter: 2.2 When a patient authors a document e.g. his national identifier (root OID = 1.3.182.4.4) or the DSPPID (root OID = 1.3.182.2.4.2) can be used.
If the author is a device, then the id of the device inside the institution shall be given. | CDAaorA2 |
Included | 0 … * | | from 1.3.182.11.1.1 ADDR (DYNAMIC) |
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. | |
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 | |
Choice | 0 … 1 | | Elements to choose from:- hl7:assignedPerson containing template 1.3.182.11.1.15 CDA Person (DYNAMIC)
|
hl7:assignedPerson
| | 0 … 1 | | Contains 1.3.182.11.1.15 CDA Person (DYNAMIC) | CDAaorA2 |
hl7:representedOrganization
| | 0 … 1 | | Contains 1.3.182.11.1.13 CDA Organization (DYNAMIC) | CDAaorA2 |
hl7:informant
| | 0 … * | | Optionnally, define here the health professional that will receive a copy of the result | Prestion |
hl7:assignedEntity
| | 1 … 1 | M | Contains 1.3.182.11.1.2 CDA AssignedEntity (DYNAMIC) | Prestion |
hl7:entry
| | 1 … * | M | Contains 1.3.182.11.5.3.3.1 Bio Prescription Item Entry (DYNAMIC) | Prestion |
hl7:entry
| | 0 … * | | Contains 1.3.182.11.5.1.3.2 Current Treatments (DYNAMIC) | Prestion |
hl7:entry
| | 0 … * | | Contains 1.3.182.11.5.1.3.3 Condition (DYNAMIC) | Prestion |
hl7:entry
| | 0 … * | | Contains 1.3.182.11.5.3.3.6 Observation (DYNAMIC) | Prestion |
hl7:entry
| | 0 … * | | Contains 1.3.182.11.9.3.2 Patient Instruction (DYNAMIC) | Prestion |
hl7:entry
| | 0 … * | | Contains 1.3.182.11.9.3.3 Fulfiller Instruction (DYNAMIC) | Prestion |
hl7:entry
| | 0 … 1 | | This entry can be used to provide the prescription as PDF (base64 encoded) in | Prestion |
hl7:observationMedia
| | 1 … 1 | M | | Prestion |
@classCode
| cs | 1 … 1 | F | OBS |
@moodCode
| cs | 1 … 1 | F | EVN |
hl7:value
| | 1 … 1 | M | | Prestion |
@representation
| cs | 1 … 1 | F | B64 |
Choice | 0 … * | | Elements to choose from:- hl7:component
- hl7:component
|
hl7:component
| | 0 … * | | | onDeDAL3 |
Included | 1 … 1 | M | from 1.3.182.11.6.2.2.1 Dispensation Meds Section (DYNAMIC) |
hl7:section
| | 1 … 1 | M | | Disption |
hl7:templateId
| | 1 … 1 | M | | Disption |
@root
| oid | 1 … 1 | F | 1.3.182.11.6.2.2.1 |
hl7:id
| | 1 … 1 | M | | Disption |
@root
| uuid | 1 … 1 | R | |
@extension
| st | 0 | NP | NP/not present |
| Constraint | This ID shall be present and be the same as the CDA id from the original dispensation document |
Included | 1 … 1 | M | from 1.3.182.7.6.1.10.1 CDA author A2 (DYNAMIC) Excepted for the on-demand document, the author here shall be exactly the same as the author in the CDA header. |
hl7:author
| | 1 … 1 | M | | CDAaorA2 |
hl7:time
| TS.DATETIMETZ.MIN | 1 … 1 | M | | CDAaorA2 |
hl7:assignedAuthor
| | 1 … 1 | M | | CDAaorA2 |
hl7:id
| II | 1 … * | R | Identifier of the author of this document, more than one identifier can be provided. For health professionals the hpdID (root OID = 1.3.182.4.1) from the HPD shall be provided. Additionally, if known, the code prestataire from CNS (UCM) with OID 1.3.182.4.6 may be provided. Identifiers shall be provided as specified in chapter: 2.2.2 and following the specification of the II data type in chapter: 2.2 When a patient authors a document e.g. his national identifier (root OID = 1.3.182.4.4) or the DSPPID (root OID = 1.3.182.2.4.2) can be used.
If the author is a device, then the id of the device inside the institution shall be given. | CDAaorA2 |
Included | 0 … * | | from 1.3.182.11.1.1 ADDR (DYNAMIC) |
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. | |
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 | |
Choice | 0 … 1 | | Elements to choose from:- hl7:assignedPerson containing template 1.3.182.11.1.15 CDA Person (DYNAMIC)
|
hl7:assignedPerson
| | 0 … 1 | | Contains 1.3.182.11.1.15 CDA Person (DYNAMIC) | CDAaorA2 |
hl7:representedOrganization
| | 0 … 1 | | Contains 1.3.182.11.1.13 CDA Organization (DYNAMIC) | CDAaorA2 |
hl7:entry
| | 1 … * | M | Contains 1.3.182.11.6.2.3.1 Dispensed Supply Entry (DYNAMIC) | Disption |
hl7:component
| | 0 … * | | | onDeDAL3 |
Included | 1 … 1 | M | from 1.3.182.11.6.3.2.1 Dispensation Bio Section (DYNAMIC) |
hl7:section
| | 1 … 1 | M | | Disption |
hl7:templateId
| | 1 … 1 | M | | Disption |
@root
| oid | 1 … 1 | F | 1.3.182.11.6.3.2.1 |
hl7:id
| | 1 … 1 | M | | Disption |
@root
| uuid | 1 … 1 | R | |
@extension
| st | 0 | NP | NP/not present |
| Constraint | This ID shall be present and be the same as the CDA id from the original dispensation document |
Included | 1 … 1 | M | from 1.3.182.7.6.1.10.1 CDA author A2 (DYNAMIC) |
hl7:author
| | 1 … 1 | M | | CDAaorA2 |
hl7:time
| TS.DATETIMETZ.MIN | 1 … 1 | M | | CDAaorA2 |
hl7:assignedAuthor
| | 1 … 1 | M | | CDAaorA2 |
hl7:id
| II | 1 … * | R | Identifier of the author of this document, more than one identifier can be provided. For health professionals the hpdID (root OID = 1.3.182.4.1) from the HPD shall be provided. Additionally, if known, the code prestataire from CNS (UCM) with OID 1.3.182.4.6 may be provided. Identifiers shall be provided as specified in chapter: 2.2.2 and following the specification of the II data type in chapter: 2.2 When a patient authors a document e.g. his national identifier (root OID = 1.3.182.4.4) or the DSPPID (root OID = 1.3.182.2.4.2) can be used.
If the author is a device, then the id of the device inside the institution shall be given. | CDAaorA2 |
Included | 0 … * | | from 1.3.182.11.1.1 ADDR (DYNAMIC) |
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. | |
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 | |
Choice | 0 … 1 | | Elements to choose from:- hl7:assignedPerson containing template 1.3.182.11.1.15 CDA Person (DYNAMIC)
|
hl7:assignedPerson
| | 0 … 1 | | Contains 1.3.182.11.1.15 CDA Person (DYNAMIC) | CDAaorA2 |
hl7:representedOrganization
| | 0 … 1 | | Contains 1.3.182.11.1.13 CDA Organization (DYNAMIC) | CDAaorA2 |
hl7:entry
| | 1 … * | M | Contains 1.3.182.11.6.3.3.2 Bio Dispensation Item Entry (DYNAMIC) | Disption |
| Schematron assert | role | error | |
| test | (hl7:component[1]/hl7:section/hl7:templateId/@root="1.3.182.11.5.2.2.1" and count(hl7:component[hl7:section/hl7:templateId/@root="1.3.182.11.6.2.2.1"])=count(hl7:component) - 1) or (hl7:component[1]/hl7:section/hl7:templateId/@root="1.3.182.11.5.3.2.1" and count(hl7:component[hl7:section/hl7:templateId/@root="1.3.182.11.6.3.2.1"]) =count(hl7:component) - 1) | |
| Message | If the first section represents a medication prescription, the following sections shall be medication dispensation. If the first section represents a biology prescription, the following sections shall be biology dispensations. | |