Id1.3.182.11.7.1Effective Date2018‑06‑21 14:42:02
Statusdraft DraftVersion Label
NameonDemandCDAL3Display NameonDemand CDA L3
ContextPathname /
ClassificationCDA Document Level Template
Open/ClosedClosed (only defined elements are allowed)
Used by / Uses
Used by 1 transaction and 0 templates, Uses 5 templates
Used by as NameVersion
1.3.182.7.6.1.4.3Transactiondraft Get onDemand Document2020‑02‑24 17:57:04
Uses as NameVersion
1.3.182.11.1.16.1Includedraft CDA recordTarget A1 (1.0)DYNAMIC
1.3.182.11.5.2.2.1Includedraft Prescription Meds SectionDYNAMIC
1.3.182.11.5.3.2.1Includedraft Prescription Bio SectionDYNAMIC
1.3.182.11.6.2.2.1Includedraft Dispensation Meds SectionDYNAMIC
1.3.182.11.6.3.2.1Includedraft Dispensation Bio SectionDYNAMIC
ItemDTCardConfDescriptionLabel
hl7:ClinicalDocument
1 … 1MonDedotsDAL3
@classCode
cs0 … 1FDOCCLIN
@moodCode
cs0 … 1FEVN
hl7:templateId
II1 … 1MonDedotsDAL3
@root
oid1 … 1F1.3.182.11.7.1
 onDemand CDA Level 3
hl7:templateId
II1 … 1MonDedotsDAL3
@root
oid1 … 1F2.16.840.1.113883.10.20.30
hl7:realmCode
CS1 … 1MonDedotsDAL3
@code
cs1 … 1FLU
hl7:typeId
II1 … 1MonDedotsDAL3
@root
oid1 … 1F2.16.840.1.113883.1.3
@extension
st1 … 1FPOCD_HD000040
hl7:templateId
II1 … 1MonDedotsDAL3
@root
oid1 … 1F2.16.840.1.113883.10.20.30
 CDA Level 3 conformance templateId
hl7:id
II1 … 1MThe unique identifier of the document.
@root shall be a valid UUID
@extension shall not be present
onDedotsDAL3
@root
uuid1 … 1R
@extension
st0NPNP/not present
 Example<id root="fa625fd5-2ea9-433c-af17-71f0a1484443"/>
hl7:code
CE1 … 1MonDedotsDAL3
 ConstraintOnly 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 assertrolered 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") 
 MessageThe codes shall match the type of dispensation 
hl7:effectiveTime
TS.DATETIMETZ.MIN1 … 1MThe date of creation of the documentonDedotsDAL3
hl7:confidentialityCode
CE (required)1 … 1M

The confidentiality code as set at the time of creation of the document. It shall always be "Normal".

onDedotsDAL3
@code
cs1 … 1FN
@codeSystem
oid1 … 1F2.16.840.1.113883.5.25
@codeSystemName
st0 … 1FHL7:Confidentiality
@displayName
st0 … 1FNormal
 Example<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25" displayName="Normal" codeSystemName="HL7:Confidentiality"/>
Included1 … *R from 1.3.182.11.1.16.1 CDA recordTarget A1 (DYNAMIC)
hl7:recordTarget
1 … *MCDArdotsetA1
hl7:patientRole
1 … 1MCDArdotsetA1
hl7:id
II1 … *MThe 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
CDArdotsetA1
@extension
st1 … 1R
@root
oid1 … 1R
hl7:id
II1 … *MCDArdotsetA1
@extension
st1 … 1R
@root
oid1 … 1F1.3.182.4.4
hl7:id
II1 … *RCDArdotsetA1
@root
uid0 … 1F1.3.182.2.11.2
@extension
st0 … 1 
Included1 … *M from 1.3.182.11.1.1 ADDR (DYNAMIC)
hl7:addr
AD1 … *MADDR
@use
cs0 … 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
ADXP0 … 1ADDR
hl7:streetName
ADXP0 … 1ADDR
hl7:houseNumber
ADXP0 … 1ADDR
hl7:postalCode
ADXP0 … 1RADDR
hl7:city
ADXP0 … 1RADDR
hl7:state
ADXP0 … 1ADDR
hl7:country
ADXP0 … 1RADDR
 ConstraintThe country code shall come from the value set eSanté_CountryCodes
 Variable letNamecountry 
 Valuetext() 
 Schematron assertrolered error 
 testcount(distinct-values(doc('include/voc-1.3.182.10.33.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $country]))=1 
 MessageThe country code shall come from the value set eSanté_CountryCodes 
hl7:additionalLocator
ADXP0 … 1ADDR
 Schematron assertrolered 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) 
 MessageAddress can either have @nullFlavor or need to have @use attribute and streetAddressLine or houseNumber and streetName.  
 Schematron assertrolered error 
 test@nullFlavor or (hl7:postalCode and hl7:city and hl7:country) 
 MessageIf addr is not nullFlavored, PostalCode, City and Country shall be provided. 
Included0 … * from 1.3.182.11.22 CDA telecom (DYNAMIC)
hl7:telecom
0 … *CDAtdotsecom
@use
set_cs0 … 1 
 CONF
The value of @use shall be drawn from value set 1.3.182.10.28.1 eSante_TelecomAddressUse (DYNAMIC)
@value
st1 … 1R
 Variable letNamemyAttValue 
 Valuesubstring-before(@value,':') 
 Variable letNamemyAttCheck 
 Valuedistinct-values(doc('include/voc-1.3.182.10.29.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $myAttValue]) 
 Schematron assertrolered error 
 testcount($myAttValue)=count($myAttCheck) 
 MessageValue must start with communication - scheme from value set eSanté_URLScheme 
hl7:patient
1 … 1MCDArdotsetA1
hl7:id
II0 … 1CDArdotsetA1
hl7:name
PN1 … *MCDArdotsetA1
@use
set_cs0 … 1 
 CONF
The value of @use shall be drawn from value set 1.3.182.10.19.1 eSante_NameUse (DYNAMIC)
hl7:prefix
ST0 … *CDArdotsetA1
@qualifier
cs0 … 1 
 CONF
The value of @qualifier shall be drawn from value set 1.3.182.10.18.1 eSante_NamePartQualifier (DYNAMIC)
hl7:family
ST1 … *MCDArdotsetA1
@qualifier
cs0 … 1 
 CONF
The value of @qualifier shall be drawn from value set 1.3.182.10.18.1 eSante_NamePartQualifier (DYNAMIC)
hl7:given
ST1 … *MCDArdotsetA1
@qualifier
cs0 … 1 
 CONF
The value of @qualifier shall be drawn from value set 1.3.182.10.18.1 eSante_NamePartQualifier (DYNAMIC)
hl7:suffix
ST0 … *CDArdotsetA1
@qualifier
cs0 … 1 
 CONF
The value of @qualifier shall be drawn from value set 1.3.182.10.18.1 eSante_NamePartQualifier (DYNAMIC)
hl7:administrativeGenderCode
CE1 … 1MCDArdotsetA1
 CONF
The value of @code shall be drawn from value set 1.3.182.10.3.1 eSante_AdministrativeGender (DYNAMIC)
hl7:birthTime
TS1 … 1RCDArdotsetA1
@nullFlavor
cs0 … 1FUNK
@value
ts0 … 1 
 Schematron assertrolered error 
 testhl7:id[2]/@root='1.3.182.4.4' and matches(hl7:id[2]/@extension,'^(\d{11}|\d{13})$') 
 MessageThe second id of recordTarget/patientRole shall have @root=1.3.182.4.4 and @extension representing the SSN (11-digits or 13-digits) 
 Schematron assertrolered error 
 test(hl7:id[3]/@nullFlavor) or (hl7:id[3]/@root='1.3.182.2.11.2') 
 MessageThe third id of recordTarget/patientRole if not nullFlavored, shall have @root=1.3.182.2.11.2 and @extension 
 Schematron assertrolered error 
 testcount(hl7:id)=3 
 Message3 id shall be present 
hl7:author
1 … 1MonDedotsDAL3
@typeCode
cs0 … 1FAUT
@contextControlCode
cs0 … 1FOP
hl7:time
TS.DATETIMETZ.MIN1 … 1MonDedotsDAL3
hl7:assignedAuthor
1 … 1MonDedotsDAL3
hl7:id
II1 … 1MonDedotsDAL3
@root
uid1 … 1F1.3.182.4.7
@extension
st1 … 1F1.3.182.2.11.6.7.1
hl7:code
CE1 … 1MonDedotsDAL3
@code
cs1 … 1FDEV
@codeSystem
oid1 … 1F1.3.182.5.6
@displayName
st0 … 1FAppareil
hl7:assignedAuthoringDevice
1 … 1MonDedotsDAL3
hl7:manufacturerModelName
ST1 … 1MonDedotsDAL3
 CONF
@value is "onDemand Document Creator"
hl7:softwareName
ST1 … 1MonDedotsDAL3
 CONF
@value is "IdeoXDS"
hl7:representedOrganization
1 … 1MonDedotsDAL3
hl7:id
II1 … 1MonDedotsDAL3
@root
uid1 … 1F1.3.182.4.1
@extension
st1 … 1F1000073438
hl7:name
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "Agence eSanté"
hl7:telecom
1 … 1MonDedotsDAL3
@use
cs1 … 1FWP
@value
cs1 … 1Ftel:003522712501833
hl7:addr
1 … 1MonDedotsDAL3
@use
cs1 … 1FWP
hl7:streetAddressLine
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "125 route d'Esch"
hl7:postalCode
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "1471"
hl7:city
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "Luxembourg"
hl7:country
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "LUX"
hl7:custodian
1 … 1MonDedotsDAL3
hl7:assignedCustodian
1 … 1MonDedotsDAL3
hl7:representedCustodianOrganization
1 … 1MonDedotsDAL3
hl7:id
II1 … 1MonDedotsDAL3
@root
uid1 … 1F1.3.182.4.1
@extension
st1 … 1F1000073438
hl7:name
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "Agence eSanté"
hl7:telecom
1 … 1MonDedotsDAL3
@use
cs1 … 1FWP
@value
cs1 … 1Ftel:003522712501833
hl7:addr
1 … 1MonDedotsDAL3
@use
cs1 … 1FWP
hl7:streetAddressLine
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "125 route d'Esch"
hl7:postalCode
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "1471"
hl7:city
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "Luxembourg"
hl7:country
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "LUX"
hl7:legalAuthenticator
1 … 1MonDedotsDAL3
hl7:time
TS.DATETIMETZ.MIN1 … 1MonDedotsDAL3
hl7:signatureCode
1 … 1MonDedotsDAL3
@code
cs1 … 1FS
hl7:assignedEntity
1 … 1MonDedotsDAL3
hl7:id
II1 … 1RonDedotsDAL3
@nullFlavor
cs1 … 1FNA
hl7:assignedPerson
1 … 1MonDedotsDAL3
hl7:name
1 … 1RonDedotsDAL3
@nullFlavor
cs1 … 1FNA
hl7:representedOrganization
1 … 1MonDedotsDAL3
hl7:id
II1 … 1MonDedotsDAL3
@root
uid1 … 1F1.3.182.4.1
@extension
st1 … 1F1000073438
hl7:name
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "Agence eSanté"
hl7:telecom
1 … 1MonDedotsDAL3
@use
cs1 … 1FWP
@value
cs1 … 1Ftel:003522712501833
hl7:addr
1 … 1MonDedotsDAL3
@use
cs1 … 1FWP
hl7:streetAddressLine
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "125 route d'Esch"
hl7:postalCode
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "1471"
hl7:city
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "Luxembourg"
hl7:country
ST1 … 1MonDedotsDAL3
 CONF
element content shall be "LUX"
hl7:component
1 … 1MonDedotsDAL3
@typeCode
cs0 … 1FCOMP
@contextConductionInd
cs0 … 1Ftrue
hl7:structuredBody
1 … 1MThe 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
...
onDedotsDAL3
@classCode
cs0 … 1FDOCBODY
@moodCode
cs0 … 1FEVN
Choice1 … 1Elements to choose from:
  • hl7:component
  • hl7:component
hl7:component
0 … 1onDedotsDAL3
Included1 … 1M from 1.3.182.11.5.2.2.1 Prescription Meds Section (DYNAMIC)
hl7:section
1 … 1MPresdotstion
hl7:templateId
1 … 1MPresdotstion
@root
uid1 … 1F1.3.182.11.5.2.2.1
hl7:id
1 … 1MPresdotstion
@root
uuid1 … 1R
@extension
st0NPNP/not present
 ConstraintThis ID shall be present and be the same as the CDA id
Included1 … 1M from 1.3.182.7.6.1.10.1 CDA author A2 (DYNAMIC)
hl7:author
1 … 1MCDAadotsorA2
hl7:time
TS.DATETIMETZ.MIN1 … 1MCDAadotsorA2
hl7:assignedAuthor
1 … 1MCDAadotsorA2
hl7:id
II1 … *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.

CDAadotsorA2
Included0 … * from 1.3.182.11.1.1 ADDR (DYNAMIC)
hl7:addr
AD0 … *ADDR
@use
cs0 … 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
ADXP0 … 1ADDR
hl7:streetName
ADXP0 … 1ADDR
hl7:houseNumber
ADXP0 … 1ADDR
hl7:postalCode
ADXP0 … 1RADDR
hl7:city
ADXP0 … 1RADDR
hl7:state
ADXP0 … 1ADDR
hl7:country
ADXP0 … 1RADDR
 ConstraintThe country code shall come from the value set eSanté_CountryCodes
 Variable letNamecountry 
 Valuetext() 
 Schematron assertrolered error 
 testcount(distinct-values(doc('include/voc-1.3.182.10.33.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $country]))=1 
 MessageThe country code shall come from the value set eSanté_CountryCodes 
hl7:additionalLocator
ADXP0 … 1ADDR
 Schematron assertrolered 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) 
 MessageAddress can either have @nullFlavor or need to have @use attribute and streetAddressLine or houseNumber and streetName.  
 Schematron assertrolered error 
 test@nullFlavor or (hl7:postalCode and hl7:city and hl7:country) 
 MessageIf addr is not nullFlavored, PostalCode, City and Country shall be provided. 
Included0 … * from 1.3.182.11.22 CDA telecom (DYNAMIC)
hl7:telecom
0 … *CDAtdotsecom
@use
set_cs0 … 1 
 CONF
The value of @use shall be drawn from value set 1.3.182.10.28.1 eSante_TelecomAddressUse (DYNAMIC)
@value
st1 … 1R
 Variable letNamemyAttValue 
 Valuesubstring-before(@value,':') 
 Variable letNamemyAttCheck 
 Valuedistinct-values(doc('include/voc-1.3.182.10.29.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $myAttValue]) 
 Schematron assertrolered error 
 testcount($myAttValue)=count($myAttCheck) 
 MessageValue must start with communication - scheme from value set eSanté_URLScheme 
Choice0 … 1Elements to choose from:
  • hl7:assignedPerson containing template 1.3.182.11.1.15 CDA Person (DYNAMIC)
hl7:assignedPerson
0 … 1Contains 1.3.182.11.1.15 CDA Person (DYNAMIC)CDAadotsorA2
hl7:representedOrganization
0 … 1Contains 1.3.182.11.1.13 CDA Organization (DYNAMIC)CDAadotsorA2
hl7:entry
1 … *MContains 1.3.182.11.5.2.3.1 Med Prescription Item Entry (DYNAMIC)Presdotstion
hl7:component
0 … 1onDedotsDAL3
Included1 … 1M from 1.3.182.11.5.3.2.1 Prescription Bio Section (DYNAMIC)
hl7:section
1 … 1MPresdotstion
hl7:templateId
1 … 1MPresdotstion
@root
uid1 … 1F1.3.182.11.5.3.2.1
hl7:id
1 … 1MPresdotstion
@root
uuid1 … 1R
 ConstraintThis ID shall be present and be the same as the CDA id
Included1 … 1M 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 … 1MCDAadotsorA2
hl7:time
TS.DATETIMETZ.MIN1 … 1MCDAadotsorA2
hl7:assignedAuthor
1 … 1MCDAadotsorA2
hl7:id
II1 … *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.

CDAadotsorA2
Included0 … * from 1.3.182.11.1.1 ADDR (DYNAMIC)
hl7:addr
AD0 … *ADDR
@use
cs0 … 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
ADXP0 … 1ADDR
hl7:streetName
ADXP0 … 1ADDR
hl7:houseNumber
ADXP0 … 1ADDR
hl7:postalCode
ADXP0 … 1RADDR
hl7:city
ADXP0 … 1RADDR
hl7:state
ADXP0 … 1ADDR
hl7:country
ADXP0 … 1RADDR
 ConstraintThe country code shall come from the value set eSanté_CountryCodes
 Variable letNamecountry 
 Valuetext() 
 Schematron assertrolered error 
 testcount(distinct-values(doc('include/voc-1.3.182.10.33.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $country]))=1 
 MessageThe country code shall come from the value set eSanté_CountryCodes 
hl7:additionalLocator
ADXP0 … 1ADDR
 Schematron assertrolered 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) 
 MessageAddress can either have @nullFlavor or need to have @use attribute and streetAddressLine or houseNumber and streetName.  
 Schematron assertrolered error 
 test@nullFlavor or (hl7:postalCode and hl7:city and hl7:country) 
 MessageIf addr is not nullFlavored, PostalCode, City and Country shall be provided. 
Included0 … * from 1.3.182.11.22 CDA telecom (DYNAMIC)
hl7:telecom
0 … *CDAtdotsecom
@use
set_cs0 … 1 
 CONF
The value of @use shall be drawn from value set 1.3.182.10.28.1 eSante_TelecomAddressUse (DYNAMIC)
@value
st1 … 1R
 Variable letNamemyAttValue 
 Valuesubstring-before(@value,':') 
 Variable letNamemyAttCheck 
 Valuedistinct-values(doc('include/voc-1.3.182.10.29.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $myAttValue]) 
 Schematron assertrolered error 
 testcount($myAttValue)=count($myAttCheck) 
 MessageValue must start with communication - scheme from value set eSanté_URLScheme 
Choice0 … 1Elements to choose from:
  • hl7:assignedPerson containing template 1.3.182.11.1.15 CDA Person (DYNAMIC)
hl7:assignedPerson
0 … 1Contains 1.3.182.11.1.15 CDA Person (DYNAMIC)CDAadotsorA2
hl7:representedOrganization
0 … 1Contains 1.3.182.11.1.13 CDA Organization (DYNAMIC)CDAadotsorA2
hl7:informant
0 … *Optionnally, define here the health professional that will receive a copy of the resultPresdotstion
hl7:assignedEntity
1 … 1MContains 1.3.182.11.1.2 CDA AssignedEntity (DYNAMIC)Presdotstion
hl7:entry
1 … *MContains 1.3.182.11.5.3.3.1 Bio Prescription Item Entry (DYNAMIC)Presdotstion
hl7:entry
0 … *Contains 1.3.182.11.5.1.3.2 Current Treatments (DYNAMIC)Presdotstion
hl7:entry
0 … *Contains 1.3.182.11.5.1.3.3 Condition (DYNAMIC)Presdotstion
hl7:entry
0 … *Contains 1.3.182.11.5.3.3.6 Observation (DYNAMIC)Presdotstion
hl7:entry
0 … *Contains 1.3.182.11.9.3.2 Patient Instruction (DYNAMIC)Presdotstion
hl7:entry
0 … *Contains 1.3.182.11.9.3.3 Fulfiller Instruction (DYNAMIC)Presdotstion
hl7:entry
0 … 1This entry can be used to provide the prescription as PDF (base64 encoded) in Presdotstion
hl7:observationMedia
1 … 1MPresdotstion
@classCode
cs1 … 1FOBS
@moodCode
cs1 … 1FEVN
hl7:value
1 … 1MPresdotstion
@representation
cs1 … 1FB64
Choice0 … *Elements to choose from:
  • hl7:component
  • hl7:component
hl7:component
0 … *onDedotsDAL3
Included1 … 1M from 1.3.182.11.6.2.2.1 Dispensation Meds Section (DYNAMIC)
hl7:section
1 … 1MDispdotstion
hl7:templateId
1 … 1MDispdotstion
@root
oid1 … 1F1.3.182.11.6.2.2.1
hl7:id
1 … 1MDispdotstion
@root
uuid1 … 1R
@extension
st0NPNP/not present
 ConstraintThis ID shall be present and be the same as the CDA id from the original dispensation document
Included1 … 1M 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 … 1MCDAadotsorA2
hl7:time
TS.DATETIMETZ.MIN1 … 1MCDAadotsorA2
hl7:assignedAuthor
1 … 1MCDAadotsorA2
hl7:id
II1 … *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.

CDAadotsorA2
Included0 … * from 1.3.182.11.1.1 ADDR (DYNAMIC)
hl7:addr
AD0 … *ADDR
@use
cs0 … 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
ADXP0 … 1ADDR
hl7:streetName
ADXP0 … 1ADDR
hl7:houseNumber
ADXP0 … 1ADDR
hl7:postalCode
ADXP0 … 1RADDR
hl7:city
ADXP0 … 1RADDR
hl7:state
ADXP0 … 1ADDR
hl7:country
ADXP0 … 1RADDR
 ConstraintThe country code shall come from the value set eSanté_CountryCodes
 Variable letNamecountry 
 Valuetext() 
 Schematron assertrolered error 
 testcount(distinct-values(doc('include/voc-1.3.182.10.33.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $country]))=1 
 MessageThe country code shall come from the value set eSanté_CountryCodes 
hl7:additionalLocator
ADXP0 … 1ADDR
 Schematron assertrolered 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) 
 MessageAddress can either have @nullFlavor or need to have @use attribute and streetAddressLine or houseNumber and streetName.  
 Schematron assertrolered error 
 test@nullFlavor or (hl7:postalCode and hl7:city and hl7:country) 
 MessageIf addr is not nullFlavored, PostalCode, City and Country shall be provided. 
Included0 … * from 1.3.182.11.22 CDA telecom (DYNAMIC)
hl7:telecom
0 … *CDAtdotsecom
@use
set_cs0 … 1 
 CONF
The value of @use shall be drawn from value set 1.3.182.10.28.1 eSante_TelecomAddressUse (DYNAMIC)
@value
st1 … 1R
 Variable letNamemyAttValue 
 Valuesubstring-before(@value,':') 
 Variable letNamemyAttCheck 
 Valuedistinct-values(doc('include/voc-1.3.182.10.29.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $myAttValue]) 
 Schematron assertrolered error 
 testcount($myAttValue)=count($myAttCheck) 
 MessageValue must start with communication - scheme from value set eSanté_URLScheme 
Choice0 … 1Elements to choose from:
  • hl7:assignedPerson containing template 1.3.182.11.1.15 CDA Person (DYNAMIC)
hl7:assignedPerson
0 … 1Contains 1.3.182.11.1.15 CDA Person (DYNAMIC)CDAadotsorA2
hl7:representedOrganization
0 … 1Contains 1.3.182.11.1.13 CDA Organization (DYNAMIC)CDAadotsorA2
hl7:entry
1 … *MContains 1.3.182.11.6.2.3.1 Dispensed Supply Entry (DYNAMIC)Dispdotstion
hl7:component
0 … *onDedotsDAL3
Included1 … 1M from 1.3.182.11.6.3.2.1 Dispensation Bio Section (DYNAMIC)
hl7:section
1 … 1MDispdotstion
hl7:templateId
1 … 1MDispdotstion
@root
oid1 … 1F1.3.182.11.6.3.2.1
hl7:id
1 … 1MDispdotstion
@root
uuid1 … 1R
@extension
st0NPNP/not present
 ConstraintThis ID shall be present and be the same as the CDA id from the original dispensation document
Included1 … 1M from 1.3.182.7.6.1.10.1 CDA author A2 (DYNAMIC)
hl7:author
1 … 1MCDAadotsorA2
hl7:time
TS.DATETIMETZ.MIN1 … 1MCDAadotsorA2
hl7:assignedAuthor
1 … 1MCDAadotsorA2
hl7:id
II1 … *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.

CDAadotsorA2
Included0 … * from 1.3.182.11.1.1 ADDR (DYNAMIC)
hl7:addr
AD0 … *ADDR
@use
cs0 … 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
ADXP0 … 1ADDR
hl7:streetName
ADXP0 … 1ADDR
hl7:houseNumber
ADXP0 … 1ADDR
hl7:postalCode
ADXP0 … 1RADDR
hl7:city
ADXP0 … 1RADDR
hl7:state
ADXP0 … 1ADDR
hl7:country
ADXP0 … 1RADDR
 ConstraintThe country code shall come from the value set eSanté_CountryCodes
 Variable letNamecountry 
 Valuetext() 
 Schematron assertrolered error 
 testcount(distinct-values(doc('include/voc-1.3.182.10.33.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $country]))=1 
 MessageThe country code shall come from the value set eSanté_CountryCodes 
hl7:additionalLocator
ADXP0 … 1ADDR
 Schematron assertrolered 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) 
 MessageAddress can either have @nullFlavor or need to have @use attribute and streetAddressLine or houseNumber and streetName.  
 Schematron assertrolered error 
 test@nullFlavor or (hl7:postalCode and hl7:city and hl7:country) 
 MessageIf addr is not nullFlavored, PostalCode, City and Country shall be provided. 
Included0 … * from 1.3.182.11.22 CDA telecom (DYNAMIC)
hl7:telecom
0 … *CDAtdotsecom
@use
set_cs0 … 1 
 CONF
The value of @use shall be drawn from value set 1.3.182.10.28.1 eSante_TelecomAddressUse (DYNAMIC)
@value
st1 … 1R
 Variable letNamemyAttValue 
 Valuesubstring-before(@value,':') 
 Variable letNamemyAttCheck 
 Valuedistinct-values(doc('include/voc-1.3.182.10.29.1-DYNAMIC.xml')/*/valueSet/conceptList/concept[@code = $myAttValue]) 
 Schematron assertrolered error 
 testcount($myAttValue)=count($myAttCheck) 
 MessageValue must start with communication - scheme from value set eSanté_URLScheme 
Choice0 … 1Elements to choose from:
  • hl7:assignedPerson containing template 1.3.182.11.1.15 CDA Person (DYNAMIC)
hl7:assignedPerson
0 … 1Contains 1.3.182.11.1.15 CDA Person (DYNAMIC)CDAadotsorA2
hl7:representedOrganization
0 … 1Contains 1.3.182.11.1.13 CDA Organization (DYNAMIC)CDAadotsorA2
hl7:entry
1 … *MContains 1.3.182.11.6.3.3.2 Bio Dispensation Item Entry (DYNAMIC)Dispdotstion
 Schematron assertrolered 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)  
 MessageIf 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.