<?xml-model href="../../../core/DECOR.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<decor xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../core/DECOR.xsd">
    <project id="2.16.840.1.113883.3.1937.99.60.3" prefix="demo3-" defaultLanguage="en-US" experimental="true">
        <name language="en-US">Demo 3: EKG Report CDA Document</name>
        <desc language="en-US">Demo 3: Electrocardiogram Report as a Minimal CDA Document <p/>
            This is a demo of a minimal CDA Release 2 document based on a real use case of an Electrocardiogram Report of a patient. 
            <p/>It uses a small dataset with 
            <ul>
                <li>the patient (along with the name, date of birth and a healthcare identifier for the patient)</li>
                <li>The performing physician, acting as the author of a result document</li>
                <li>the EKG result report (impression) as text</li>
            </ul>
            <p/>
            This example shows the use of templates for
            <ul>
                <li>The document level template, named "MinimalCDAdocument", making use of includes of other already defined buidling blocks of a CDA document</li>
                <li>Some header level templates, mainly to be included, actually a copy from the ART-DECOR CDA BBR (building block repository), a collection of pre-defined CDA templates in DECOR format</li>
                <li>one section level template, named "EKGImpressionSection"</li>
            </ul>
            This example shows the use of two value sets,
            <ul>
                <li>AdministrativeGender (HL7)</li>
                <li>Basic Confidentiality Kind (HL7)</li>
            </ul>
            actually a copy from the ART-DECOR CDA BBR (building block repository), a collection of pre-defined HL7 value sets in DECOR format
        </desc>
        <copyright years="2012-" by="The ART-DECOR Expert Group" type="author" logo="art-decor-logo2.png">
            <addrLine>The ART-DECOR Expert Group</addrLine>
            <addrLine type="email">info@art-decor.org</addrLine>
            <addrLine type="email">contact@art-decor.org</addrLine>
            <addrLine type="uri">https://art-decor.org</addrLine>
            <addrLine type="linkedin">https://www.linkedin.com/company/art-decor-org</addrLine>
            <addrLine type="twitter">https://twitter.com/artdecortool</addrLine>
        </copyright>
        <copyright years="2019-" by="ART-DECOR Open Tools GmbH" type="reviewer" logo="art-decor-open-tools.jpg">
            <addrLine>ART-DECOR Open Tools GmbH</addrLine>
            <addrLine type="email">info@art-decor-open-tools.net</addrLine>
            <addrLine type="uri">https://art-decor-open-tools.net</addrLine>
            <addrLine type="linkedin">https://www.linkedin.com/company/art-decor-open-tools</addrLine>
        </copyright>
        <author id="1" username="kai">dr Kai U. Heitmann</author>
        <author id="2" username="alexander">Alexander Henket</author>
        <reference url="https://examples.art-decor.pub/demo3/"/>
        <buildingBlockRepository url="http://art-decor.org/decor/services/" ident="ad1bbr-"/>
        <buildingBlockRepository url="http://art-decor.org/decor/services/" ident="ad2bbr-"/>
        <buildingBlockRepository url="http://art-decor.org/decor/services/" ident="ad3bbr-"/>
        <release date="2014-06-27T13:08:41" by="dr Kai U. Heitmann" versionLabel="v1.2" statusCode="active">
            <note language="en-US">Template Relationships SPEC to prototypes added</note>
        </release>
        <release date="2014-06-14T10:03:47" by="dr Kai U. Heitmann" versionLabel="v1.1" statusCode="retired">
            <note language="en-US">Complete demo3 example</note>
        </release>
        <version by="1" date="2013-02-10T12:52:00">
            <desc language="en-US">Initial version of demo3 example</desc>
        </version>
        <release by="1" date="2013-02-20T14:11:54" versionLabel="1.0beta" statusCode="retired">
            <note language="en-US">Initial release of the first complete demo3 example</note>
        </release>
    </project>
    <datasets>
        <dataset id="2.16.840.1.113883.3.1937.99.60.3.1.1" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
            <name language="en-US">Decor Demo 3 dataset</name>
            <desc language="en-US">Decor Demo 3 dataset: Electrocardiogram Report</desc>
            <concept id="2.16.840.1.113883.3.1937.99.60.3.2.1" type="group" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
                <name language="en-US">Person</name>
                <desc language="en-US">Person</desc>
                <concept id="2.16.840.1.113883.3.1937.99.60.3.2.10" type="item" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
                    <name language="en-US">Name</name>
                    <desc language="en-US">Name of the person</desc>
                    <valueDomain type="complex"/>
                </concept>
                <concept id="2.16.840.1.113883.3.1937.99.60.3.2.20" statusCode="draft" effectiveDate="2013-02-10T00:00:00" type="item">
                    <name language="en-US">National Patient Identifier</name>
                    <desc language="en-US">National Patient Identifier, here: Dutch Burgerservicenummer</desc>
                    <valueDomain type="identifier">
                        <property/>
                    </valueDomain>
                </concept>
                <concept id="2.16.840.1.113883.3.1937.99.60.3.2.30" type="item" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
                    <name language="en-US">Date of birth</name>
                    <desc language="en-US">Date of birth of the person</desc>
                    <valueDomain type="date"/>
                </concept>
                <concept id="2.16.840.1.113883.3.1937.99.60.3.2.40" type="item" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
                    <name language="en-US">Gender</name>
                    <desc language="en-US">Gender of the person</desc>
                    <valueDomain type="code">
                        <conceptList id="2.16.840.1.113883.3.1937.99.60.3.8.40.0">
                            <concept id="2.16.840.1.113883.3.1937.99.60.3.8.40.1">
                                <name language="en-US">male</name>
                            </concept>
                            <concept id="2.16.840.1.113883.3.1937.99.60.3.8.40.2">
                                <name language="en-US">female</name>
                            </concept>
                        </conceptList>
                    </valueDomain>
                </concept>
            </concept>
            <concept id="2.16.840.1.113883.3.1937.99.60.3.2.2" type="group" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
                <name language="en-US">Performing physician</name>
                <desc language="en-US">Performing physician</desc>
                <concept id="2.16.840.1.113883.3.1937.99.60.3.2.60" type="item" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
                    <name language="en-US">Name</name>
                    <desc language="en-US">Name of the physician</desc>
                    <valueDomain type="complex"/>
                </concept>
            </concept>
            <concept id="2.16.840.1.113883.3.1937.99.60.3.2.3" type="group" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
                <name language="en-US">EKG result</name>
                <desc language="en-US">EKG result (impression)</desc>
                <concept id="2.16.840.1.113883.3.1937.99.60.3.2.80" type="item" statusCode="draft" effectiveDate="2013-02-10T00:00:00">
                    <name language="en-US">EKG impression</name>
                    <desc language="en-US">EKG impression ( summary of the result of the electrocardiography)</desc>
                    <valueDomain type="text"/>
                </concept>
            </concept>
        </dataset>
    </datasets>
    <scenarios>
        <actors>
            <actor id="2.16.840.1.113883.3.1937.99.60.3.7.1" type="person">
                <name language="en-US">Physician performing the EKG</name>
            </actor>
        </actors>
        <scenario id="2.16.840.1.113883.3.1937.99.60.3.3.1" effectiveDate="2013-02-10T00:00:00" statusCode="draft">
            <name language="en-US">Electrocardiogram</name>
            <desc language="en-US">Electrocardiography is a commonly used, noninvasive procedure for recording electrical changes in the heart. The record, which is called an electrocardiogram (ECG or EKG), shows the series of waves that relate to the electrical impulses that occur during each beat of the heart. The results are printed on paper and/or displayed on a monitor to provide a visual
                representation of heart function. The waves in a normal record are named P, Q, R, S, and T, and follow in alphabetical order. The number of waves may vary, and other waves may be present. (Citation from: http://www.surgeryencyclopedia.com/Ce-Fi/Electrocardiography.htm) <p/> This example uses a real electrocardiography result report as the background story.</desc>
            <transaction id="2.16.840.1.113883.3.1937.99.60.3.4.1" type="group" effectiveDate="2013-02-10T00:00:00" statusCode="draft">
                <name language="en-US">Electrocardiogram Report</name>
                <desc language="en-US">A patient has ondergone a electrocardiogram and the results are reported.</desc>
                <transaction id="2.16.840.1.113883.3.1937.99.60.3.4.2" type="stationary" label="minicda" model="POCD_MT000040NL" effectiveDate="2013-02-10T00:00:00" statusCode="draft">
                    <name language="en-US">Electrocardiogram Report</name>
                    <desc language="en-US">A patient has ondergone a electrocardiogram and the results are reported.</desc>
                    <actors>
                        <actor id="2.16.840.1.113883.3.1937.99.60.3.7.1" role="sender"/>
                    </actors>
                    <representingTemplate ref="2.16.840.1.113883.3.1937.99.60.3.10.1" flexibility="2013-02-10T00:00:00" sourceDataset="2.16.840.1.113883.3.1937.99.60.3.1.1">
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.1" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true"/>
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.10" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true"/>
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.20" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true"/>
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.30" minimumMultiplicity="1" maximumMultiplicity="1" conformance="R"/>
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.40" minimumMultiplicity="1" maximumMultiplicity="1" conformance="R"/>
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.2" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true"/>
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.60" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true"/>
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.3" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true"/>
                        <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.80" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true"/>
                    </representingTemplate>
                </transaction>
            </transaction>
        </scenario>
    </scenarios>
    <ids>
        <!-- baseIds -->
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.1" type="DS" prefix="demo3-dataset-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.2" type="DE" prefix="demo3-dataelement-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.3" type="SC" prefix="demo3-scenario-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.4" type="TR" prefix="demo3-transaction-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.5" type="CS" prefix="demo3-codesystem-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.6" type="IS" prefix="demo3-issue-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.7" type="AC" prefix="demo3-actor-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.8" type="CL" prefix="demo3-conceptlist-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.9" type="EL" prefix="demo3-element-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.10" type="TM" prefix="demo3-template-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.11" type="VS" prefix="demo3-valueset-"/>
        <!-- following base ids are not used in this example demo3 -->
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.16" type="RL" prefix="demo3-rule-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.17" type="TX" prefix="demo3-test-data-element-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.18" type="SX" prefix="demo3-test-scenario-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.19" type="EX" prefix="demo3-example-instance-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.20" type="QX" prefix="demo3-test-requirement-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.22" type="CM" prefix="demo3-community-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.24" type="MP" prefix="demo3-mapping-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.26" type="SD" prefix="demo3-structuredefinition-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.27" type="QQ" prefix="demo3-questionnaire-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.28" type="QR" prefix="demo3-questionnaire-response-"/>
        <baseId id="2.16.840.1.113883.3.1937.99.60.3.29" type="IG" prefix="demo3-implementationguide-"/>
        <!-- default baseIds -->
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.1" type="DS"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.2" type="DE"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.3" type="SC"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.4" type="TR"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.5" type="CS"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.6" type="IS"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.7" type="AC"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.8" type="CL"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.9" type="EL"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.10" type="TM"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.11" type="VS"/>
        <!-- following default base ids are not used in this example demo3 -->
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.16" type="RL"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.17" type="TX"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.18" type="SX"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.19" type="EX"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.20" type="QX"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.22" type="CM"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.24" type="MP"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.26" type="SD"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.27" type="QQ"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.28" type="QR"/>
        <defaultBaseId id="2.16.840.1.113883.3.1937.99.60.3.29" type="IG"/>
        <id root="2.16.840.1.113883.2.4.6.3">
            <designation language="en-US" type="preferred" displayName="Burgerservicenummer BSN">This is an example of a National Citizen Identifier used in health care. It is the real Dutch "Burgerservicenummer", the Citizen Service Numnber. </designation>
        </id>
    </ids>
    <terminology>
        <terminologyAssociation conceptId="2.16.840.1.113883.3.1937.99.60.3.8.40.0" valueSet="2.16.840.1.113883.1.11.1" flexibility="2011-07-26T00:00:00"/>
        <terminologyAssociation conceptId="2.16.840.1.113883.3.1937.99.60.3.8.40.1" code="M" codeSystem="2.16.840.1.113883.5.1" displayName="Male"/>
        <terminologyAssociation conceptId="2.16.840.1.113883.3.1937.99.60.3.8.40.2" code="F" codeSystem="2.16.840.1.113883.5.1" displayName="Female"/>
        <codeSystem ref="2.16.840.1.113883.5.1" name="AdministrativeGender" displayName="AdministrativeGender"/>
        <codeSystem ref="2.16.840.1.113883.5.25" name="Confidentiality" displayName="Confidentiality"/>
        <codeSystem ref="2.16.840.1.113883.6.1" name="LOINC" displayName="LOINC"/>
        <valueSet ref="2.16.840.1.113883.1.11.1" name="AdministrativeGender" displayName="AdministrativeGender"/>
        <valueSet ref="2.16.840.1.113883.1.11.16926" name="x_BasicConfidentialityKind" displayName="x_BasicConfidentialityKind"/>
    </terminology>
    <rules>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.1" name="MinimalCDAdocument" displayName="Minimal CDA document" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <desc language="en-US">A minimal CDA Release 2 document, that contains only a few attributes and relationships for the ClinicalDocument class: <ul>
                    <li>typeId: fixed</li>
                    <li>id: unique id of the document instance</li>
                    <li>code: type of document</li>
                    <li>effectiveTime: creation date of the document</li>
                    <li>confidentialityCode: confidentiality level indication for this document</li>
                    <li>recordTarget: the record target (e.g. patient)</li>
                    <li>author: author of this document</li>
                    <li>custodian: custodian for this document</li>
                    <li>component: contains (in this case) structured body</li>
                </ul>
            </desc>
            <classification type="cdadocumentlevel"/>
            <relationship type="SPEC" template="2.16.840.1.113883.10.12.1" flexibility="2005-09-07T00:00:00"/>
            <context path="/"/>
            <example>
                <ClinicalDocument xmlns="urn:hl7-org:v3">
                    <!-- CDA Header -->
                    <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
                    <templateId root="2.16.840.1.113883.3.1937.99.60.3.10.1"/>
                    <id extension="123456789" root="2.16.840.1.113883.3.1937.99.3.2.997788.1"/>
                    <code code="11524-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="EKG study report"/>
                    <effectiveTime value="20131020122709"/>
                    <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
                    <recordTarget>
                        <!-- .. -->
                    </recordTarget>
                    <author>
                        <!-- .. -->
                    </author>
                    <custodian>
                        <!-- .. -->
                    </custodian>
                    <!-- CDA Body -->
                    <component>
                        <structuredBody>
                            <component>
                                <!-- .. -->
                            </component>
                        </structuredBody>
                    </component>
                </ClinicalDocument>
            </example>
            <element name="hl7:ClinicalDocument">
                <include ref="2.16.840.1.113883.3.1937.99.60.3.10.900001" flexibility="dynamic"/>
                <element name="hl7:templateId" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="II">
                    <desc language="en-US">CDA document template id for this kind of document</desc>
                    <example>
                        <templateId root="2.16.840.1.113883.3.1937.99.60.3.10.1"/>
                    </example>
                    <attribute name="root" value="2.16.840.1.113883.3.1937.99.60.3.10.1"/>
                </element>
                <include ref="2.16.840.1.113883.3.1937.99.60.3.10.900002" flexibility="dynamic"/>
                <element name="hl7:code" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="CE">
                    <example>
                        <!-- document type -->
                        <code code="11524-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="EKG study report"/>
                    </example>
                    <vocabulary code="11524-6" codeSystem="2.16.840.1.113883.6.1"/>
                </element>
                <include ref="2.16.840.1.113883.3.1937.99.60.3.10.900003" flexibility="dynamic" minimumMultiplicity="0" maximumMultiplicity="1">
                    <example>
                        <title>EKG Report as of 1 February 2013</title>
                    </example>
                </include>
                <include ref="2.16.840.1.113883.3.1937.99.60.3.10.900004" flexibility="dynamic"/>
                <include ref="2.16.840.1.113883.3.1937.99.60.3.10.900005" flexibility="dynamic"/>
                <include ref="2.16.840.1.113883.3.1937.99.60.3.10.2001" flexibility="dynamic"/>
                <include ref="2.16.840.1.113883.3.1937.99.60.3.10.2002" flexibility="dynamic"/>
                <include ref="2.16.840.1.113883.3.1937.99.60.3.10.2003" flexibility="dynamic"/>
                <element name="hl7:component">
                    <example>
                        <!-- now for the study results: CDA body -->
                        <component typeCode="COMP" contextConductionInd="true">
                            <!-- ... -->
                        </component>
                    </example>
                    <attribute name="typeCode" value="COMP" isOptional="true"/>
                    <attribute name="contextConductionInd" value="true" isOptional="true"/>
                    <element name="hl7:structuredBody">
                        <example>
                            <structuredBody classCode="DOCBODY" moodCode="EVN">
                                <!-- ... -->
                            </structuredBody>
                        </example>
                        <attribute name="classCode" value="DOCBODY" isOptional="true"/>
                        <attribute name="moodCode" value="EVN" isOptional="true"/>

                        <!-- EKG Impression section, reuqired (otherwise this report is useless) -->
                        <element name="hl7:component" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" contains="2.16.840.1.113883.3.1937.99.60.3.10.3001" flexibility="dynamic">
                            <attribute name="typeCode" value="COMP" isOptional="true"/>
                            <attribute name="contextConductionInd" value="true" isOptional="true"/>
                        </element>
                    </element>
                </element>
            </element>
        </template>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.900001" name="CDAtypeId" displayName="CDA typeId" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <desc language="en-US">The clinical document <tt>typeId</tt> identifies the constraints imposed by CDA R2 on the content, essentially acting as a version identifier. <p/> The <tt>@root</tt> and <tt>@extension</tt> values of this element are specified as shown in the <i>example</i> below. </desc>
            <classification type="cdaheaderlevel"/>
            <item label="CDAtypeId"/>
            <example>
                <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/>
            </example>
            <element name="hl7:typeId" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="II">
                <attribute name="extension" value="POCD_HD000040"/>
                <attribute name="root" value="2.16.840.1.113883.1.3"/>
            </element>
        </template>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.900002" name="CDAid" displayName="CDA id" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <desc language="en-US">The clinical document <tt>id</tt> element is an instance identifier data type. The <tt>@root</tt> attribute is typically an OID. 
                The <tt>@root</tt> uniquely identifies the scope of the <tt>@extension</tt>. The <tt>@root</tt> and <tt>@extension</tt> attributes uniquely identify the document.</desc>
            <classification type="cdaheaderlevel"/>
            <example>
                <id extension="1293878605987" root="2.16.528.1.1007.3.2.1111.21.1"/>
            </example>
            <example>
                <id extension="j86574633" root="2.16.840.1.113883.2.4.6.6.99.23444.17"/>
            </example>
            <element name="hl7:id" datatype="II" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true"/>
        </template>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.900003" name="CDAtitle" displayName="CDA title" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <classification type="cdaheaderlevel"/>
            <element name="hl7:title" datatype="ST" minimumMultiplicity="0" maximumMultiplicity="1"/>
        </template>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.900004" name="CDAeffectiveTime" displayName="CDA effectiveTime" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <desc language="en-US">Date report was created, precise to the second</desc>
            <classification type="cdaheaderlevel"/>
            <example>
                <effectiveTime value="20120611083422"/>
            </example>
            <element name="hl7:effectiveTime" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="TS.DATETIME.MIN" id="2.16.840.1.113883.3.1937.99.60.3.9.900004.1"/>
        </template>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.900005" name="CDAconfidentialityCode" displayName="CDA confidentialityCode" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <classification type="cdaheaderlevel"/>
            <example>
                <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
            </example>
            <element name="hl7:confidentialityCode" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="CE">
                <vocabulary valueSet="2.16.840.1.113883.1.11.16926" flexibility="2011-07-26T00:00:00"/>
            </element>
        </template>
        <templateAssociation templateId="2.16.840.1.113883.3.1937.99.60.3.10.2001" effectiveDate="2013-02-10T00:00:00">
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.1" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.2001.1"/>
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.10" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.2001.2"/>
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.40" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.2001.3"/>
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.30" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.2001.4"/>
        </templateAssociation>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.2001" name="CDArecordTarget" displayName="CDA recordTarget" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <desc language="en-US">The patient / client</desc>
            <classification type="cdaheaderlevel"/>
            <relationship type="SPEC" template="2.16.840.1.113883.10.12.101" flexibility="2005-09-07T00:00:00"/>
            <example>
                <recordTarget>
                    <patientRole>
                        <id root="2.16.840.1.113883.2.4.6.3" extension="100202020"/>
                        <patient>
                            <name>
                                <given>John</given>
                                <family>Doedidoe</family>
                            </name>
                            <administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
                            <birthTime value="19620219"/>
                        </patient>
                    </patientRole>
                </recordTarget>
            </example>
            <element name="hl7:recordTarget" id="2.16.840.1.113883.3.1937.99.60.3.9.2001.1">
                <attribute name="typeCode" value="RCT" isOptional="true"/>
                <attribute name="contextControlCode" value="OP" isOptional="true"/>
                <element name="hl7:patientRole" minimumMultiplicity="1" maximumMultiplicity="1">
                    <attribute name="classCode" value="PAT" isOptional="true"/>
                    <!-- Element id, here: the national patient identifier -->
                    <include ref="2.16.840.1.113883.3.1937.99.60.3.10.110" flexibility="dynamic" minimumMultiplicity="1" maximumMultiplicity="1" conformance="R"/>
                    <!-- Element patient -->
                    <element name="hl7:patient" minimumMultiplicity="1" maximumMultiplicity="1" conformance="R">
                        <example>
                            <patient classCode="PSN" determinerCode="INSTANCE">
                                <name>
                                    <!-- ... -->
                                </name>
                                <administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
                                <birthTime value="19620219"/>
                            </patient>
                        </example>
                        <attribute name="classCode" value="PSN" isOptional="true"/>
                        <attribute name="determinerCode" value="INSTANCE" isOptional="true"/>
                        <!-- Element name -->
                        <element name="hl7:name" minimumMultiplicity="1" maximumMultiplicity="*" conformance="R" datatype="PN" id="2.16.840.1.113883.3.1937.99.60.3.9.2001.2"/>
                        <!-- Element administrativeGenderCode -->
                        <element name="hl7:administrativeGenderCode" minimumMultiplicity="1" maximumMultiplicity="1" conformance="R" datatype="CE" id="2.16.840.1.113883.3.1937.99.60.3.9.2001.3">
                            <vocabulary valueSet="2.16.840.1.113883.1.11.1" flexibility="dynamic"/>
                        </element>
                        <!-- Element birthTime -->
                        <element name="hl7:birthTime" minimumMultiplicity="1" maximumMultiplicity="1" conformance="R" datatype="TS" id="2.16.840.1.113883.3.1937.99.60.3.9.2001.4"/>
                    </element>
                </element>
            </element>
        </template>
        <templateAssociation templateId="2.16.840.1.113883.3.1937.99.60.3.10.2002" effectiveDate="2013-02-10T00:00:00">
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.2" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.2002.1"/>
        </templateAssociation>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.2002" name="CDAauthor" displayName="CDA author" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <desc language="en-US">Author of the document</desc>
            <classification type="cdaheaderlevel"/>
            <relationship type="SPEC" template="2.16.840.1.113883.10.12.102" flexibility="2005-09-07T00:00:00"/>
            <example>
                <author>
                    <time value="20131020"/>
                    <assignedAuthor>
                        <id extension="HCP89567" root="2.16.840.1.113883.3.1937.99.3.1.997788"/>
                        <assignedPerson>
                            <name>
                                <given>Kai</given>
                                <family>Heitmann</family>
                            </name>
                        </assignedPerson>
                        <representedOrganization>
                            <name>The World's Best EKG Service Delivery Location</name>
                        </representedOrganization>
                    </assignedAuthor>
                </author>
            </example>
            <element name="hl7:author" minimumMultiplicity="1" maximumMultiplicity="*" isMandatory="true" id="2.16.840.1.113883.3.1937.99.60.3.9.2002.1">
                <attribute name="typeCode" value="AUT" isOptional="true"/>
                <!-- Element time -->
                <element name="hl7:time" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="TS.DATE.MIN"/>
                <!-- Element assignedAuthor -->
                <element name="hl7:assignedAuthor" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true">
                    <attribute name="classCode" value="ASSIGNED" isOptional="true"/>
                    <element name="hl7:id" minimumMultiplicity="1" maximumMultiplicity="1" conformance="R" datatype="II"/>
                    <element name="hl7:assignedPerson" minimumMultiplicity="0" maximumMultiplicity="1">
                        <include ref="2.16.840.1.113883.3.1937.99.60.3.10.900200" flexibility="2011-12-19T00:00:00"/>
                    </element>
                    <element name="hl7:representedOrganization" minimumMultiplicity="0" maximumMultiplicity="1">
                        <include ref="2.16.840.1.113883.3.1937.99.60.3.10.900201" flexibility="dynamic"/>
                    </element>
                </element>
            </element>
        </template>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.2003" name="CDAcustodian" displayName="CDA custodian" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <desc language="en-US">Custodian of the document</desc>
            <classification type="cdaheaderlevel"/>
            <relationship type="SPEC" template="2.16.840.1.113883.10.12.104" flexibility="2005-09-07T00:00:00"/>
            <example>
                <custodian>
                    <assignedCustodian>
                        <representedCustodianOrganization>
                            <id root="2.16.840.1.113883.3.1937.99.3.2.997788"/>
                            <name/>
                        </representedCustodianOrganization>
                    </assignedCustodian>
                </custodian>
            </example>
            <element name="hl7:custodian" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true">
                <attribute name="typeCode" value="CST" isOptional="true"/>
                <element name="hl7:assignedCustodian" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true">
                    <attribute name="classCode" value="ASSIGNED" isOptional="true"/>
                    <element name="hl7:representedCustodianOrganization" minimumMultiplicity="0" maximumMultiplicity="1">
                        <element name="hl7:id" minimumMultiplicity="1" maximumMultiplicity="*" conformance="R" datatype="II"/>
                        <!-- Element name -->
                        <element name="hl7:name" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="ON"/>
                        <!-- Element telecom -->
                        <element name="hl7:telecom" minimumMultiplicity="0" maximumMultiplicity="1" datatype="TEL"/>
                        <!-- Element addr -->
                        <element name="hl7:addr" minimumMultiplicity="0" maximumMultiplicity="1" datatype="AD"/>
                    </element>
                </element>
            </element>
        </template>
        <templateAssociation templateId="2.16.840.1.113883.3.1937.99.60.3.10.900200" effectiveDate="2011-12-19T00:00:00">
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.60" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.900200.1"/>
        </templateAssociation>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.900200" name="CDAPersonElements" displayName="CDA Person Elements" effectiveDate="2011-12-19T00:00:00" statusCode="active">
            <desc language="en-US">This is the first version of this template</desc>
            <classification type="cdaheaderlevel"/>
            <relationship type="SPEC" template="2.16.840.1.113883.10.12.152" flexibility="2005-09-07T00:00:00"/>
            <attribute name="classCode" value="PSN" isOptional="true"/>
            <attribute name="determinerCode" value="INSTANCE" isOptional="true"/>
            <element name="hl7:name" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="PN" id="2.16.840.1.113883.3.1937.99.60.3.9.900200.1"/>
        </template>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.900201" name="CDAOrganizationElements" displayName="CDA Organization Elements" effectiveDate="2011-12-19T00:00:00" statusCode="active">
            <desc language="en-US">This is a template with multiple elements on top level (use for inclusion)</desc>
            <classification type="cdaheaderlevel"/>
            <relationship type="SPEC" template="2.16.840.1.113883.10.12.151" flexibility="2005-09-07T00:00:00"/>
            <attribute name="classCode" value="ORG" isOptional="true"/>
            <attribute name="determinerCode" value="INSTANCE" isOptional="true"/>
            <!-- Element id -->
            <element name="hl7:id" minimumMultiplicity="1" maximumMultiplicity="*" conformance="R" datatype="II"/>
            <!-- Element name -->
            <element name="hl7:name" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="ON"/>
            <!-- Element telecom -->
            <element name="hl7:telecom" minimumMultiplicity="0" maximumMultiplicity="*" datatype="TEL"/>
            <!-- Element addr -->
            <element name="hl7:addr" minimumMultiplicity="0" maximumMultiplicity="1" datatype="AD"/>
        </template>
        <templateAssociation templateId="2.16.840.1.113883.3.1937.99.60.3.10.3001" effectiveDate="2013-02-10T00:00:00">
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.3" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.3001.1"/>
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.80" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.3001.2"/>
        </templateAssociation>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.3001" name="EKGImpressionSection" displayName="EKG impression" effectiveDate="2013-02-10T00:00:00" statusCode="active">
            <classification type="cdasectionlevel"/>
            <relationship type="SPEC" template="2.16.840.1.113883.10.12.201" flexibility="2005-09-07T00:00:00"/>
            <context id="**"/>
            <example>
                <section classCode="DOCSECT">
                    <!-- template id for EKG measurements -->
                    <templateId root="2.16.840.1.113883.3.1937.99.60.3.10.3001"/>
                    <!-- section code -->
                    <code code="18844-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
                    <title>Impression</title>
                    <text>Normal sinus rhythm<br/> Ischemic ST-T changes in anterior leads<br/> Poor R Progression in right precordial leads</text>
                </section>
            </example>
            <element name="hl7:section" id="2.16.840.1.113883.3.1937.99.60.3.9.3001.1">
                <attribute name="classCode" value="DOCSECT" isOptional="true"/>
                <!-- Element templateId -->
                <element name="hl7:templateId" minimumMultiplicity="1" maximumMultiplicity="1" datatype="II">
                    <attribute name="root" value="2.16.840.1.113883.3.1937.99.60.3.10.3001"/>
                </element>
                <!-- Element code -->
                <element name="hl7:code" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="CE">
                    <vocabulary code="18844-1" codeSystem="2.16.840.1.113883.6.1"/>
                </element>
                <!-- Element title -->
                <element name="hl7:title" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="ST"/>
                <!-- Element text -->
                <element name="hl7:text" minimumMultiplicity="1" maximumMultiplicity="1" isMandatory="true" datatype="SD.TEXT" id="2.16.840.1.113883.3.1937.99.60.3.9.3001.2"/>
            </element>
        </template>

        <!-- NationalPatientIdentifier -->
        <templateAssociation templateId="2.16.840.1.113883.3.1937.99.60.3.10.110" effectiveDate="2013-01-31T00:00:00">
            <concept ref="2.16.840.1.113883.3.1937.99.60.3.2.20" effectiveDate="2013-02-10T00:00:00" elementId="2.16.840.1.113883.3.1937.99.60.3.9.110.1"/>
        </templateAssociation>
        <template id="2.16.840.1.113883.3.1937.99.60.3.10.110" name="NationalPatientIdentifier" displayName="National Patient Identifier" effectiveDate="2013-01-31T00:00:00" statusCode="active">
            <desc language="en-US">National Patient Identifier: this is an example of a National Citizen Identifier used in health care. It is the real Dutch "Burgerservicenummer", the Citizen Service Numnber. The Burgerservicenummer (BSN) is a unique personal number issued to everyone registered in the 'Gemeentelijke Basisadministratie persoonsgegevens' (GBA), or the Personal Records Database of the municipality. The BSN
                was formerly known as the Social-Fiscal (So-Fi) number. <p/> (Citation: http://www.denhaag.nl/en/residents/to/Burgerservicenummer-BSN.htm) <p/>
                It has the following format: 9N, with preceding zeros if shorter than 9 characters. </desc>
            <example>
                <!-- BSN -->
                <id root="2.16.840.1.113883.2.4.6.3" extension="100202020"/>
            </example>
            <element name="hl7:id" datatype="II.NL.BSN" id="2.16.840.1.113883.3.1937.99.60.3.9.110.1">
                <attribute name="root" value="2.16.840.1.113883.2.4.6.3"/>
                <attribute name="extension">
                    <desc language="en-US">Burgerservicenummer (National Patient Identifier)</desc>
                </attribute>
            </element>
        </template>
    </rules>
    <issues/>
</decor>