<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pcc="urn:ihe:pcc:hl7v3"
    xmlns:lab="urn:oid:1.3.6.1.4.1.19376.1.3.2" xmlns:sdtc="urn:hl7-org:sdtc"
    xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">

    <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
    <templateId root="2.16.840.1.113883.10.20.1"/>
    <id root="2.16.840.1.113883.3.72.5.1" extension="SAMPLE_QRPH_CRD"/>
    <code code="34133-9" codeSystem="2.16.840.1.113883.6.1"/>
    <title representation="TXT" mediaType="text/plain">Sample CRD Document</title>
    <effectiveTime value="20080207130000+0500"/>
    <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
    <languageCode code="en-US"/>

    <recordTarget>
        <patientRole>
            <id extension="996-756-495" root="2.16.840.1.113883.19.5"/>
            <addr/>
            <telecom nullFlavor="UNK"/>
            <patient>
                <name>
                    <given>Henry</given>
                    <family>Levin</family>
                    <suffix>the 7th</suffix>
                </name>
                <administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
                <birthTime value="19320924"/>
                <maritalStatusCode code="S" />
            </patient>
            <providerOrganization>
                <id root="2.16.840.1.113883.19.5"/>
                <name>Good Health Clinic</name>
                <telecom nullFlavor="UNK"/>
                <addr/>
            </providerOrganization>
        </patientRole>
    </recordTarget>


    <author typeCode="AUT" contextControlCode="OP">
        <time/>
        <assignedAuthor classCode="ASSIGNED">
            <id/>
            <representedOrganization classCode="ORG" determinerCode="INSTANCE">
            </representedOrganization>
        </assignedAuthor>
    </author>
    <custodian typeCode="CST">
        <assignedCustodian classCode="ASSIGNED">
            <representedCustodianOrganization classCode="ORG" determinerCode="INSTANCE">
                <id/>
            </representedCustodianOrganization>
        </assignedCustodian>
    </custodian>

    <documentationOf>
        <serviceEvent moodCode="EVN" classCode="PCPR">
            <effectiveTime>
                <low nullFlavor="ASKU"/>
                <high nullFlavor="ASKU"/>

            </effectiveTime>
        </serviceEvent>
    </documentationOf>


    <component>
        <structuredBody> 
        
            <component>
                <section>
                    <templateId root="2.16.840.1.113883.10.20.1.11"/>
                    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.6"/>
                    <code code="11450-4" displayName="PROBLEM LIST"
                        codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
                    <title>Active Problem Concern</title>
                    <text>
                        <table>
                            <thead>
                                <tr>
                                    <th>Problem</th>
                                    <th>Date of Onset</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>Patient has exercise induced asthma</td>
                                    <td>1/10/2007</td>
                                </tr>
                            </tbody>
                        </table>
                    </text>
                    <entry>
                        <act classCode="ACT" moodCode="EVN">
                            
                            <!-- Required Problem Concern Entry element -->
                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.2"/>
                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.1"/>
                            <templateId root="2.16.840.1.113883.10.20.1.27"/>
                            <id/>
                            <code nullFlavor="NA"/>
                            <statusCode code="active"/>
                            <effectiveTime>
                                <low value="20071011"/>
                                <!-- <high value="20071012"/> -->
                            </effectiveTime>
                            <entryRelationship typeCode="SUBJ" inversionInd="false">
                                <observation classCode="OBS" moodCode="EVN" negationInd="false">
                                    <templateId root="2.16.840.1.113883.10.20.1.28"/>
                                    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5"/>
                                    <id root="2.1.160"/>
                                    <code code="64572001" codeSystem="2.16.840.1.113883.6.96"/>
                                    <statusCode code="completed"/>
                                    <effectiveTime>
                                        <low nullFlavor="UNK"/>
                                    </effectiveTime>
                                    
                                    <value xsi:type="CD" code="thing" codeSystem="thing"
                                        codeSystemName="myName" displayName="myName"/>
                                    
                                    <!-- Health Status Observation -->
                                    <entryRelationship typeCode="REFR" inversionInd="false">
                                        <observation classCode="OBS" moodCode="EVN">
                                            
                                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.1.2"/>
                                            <templateId root="2.16.840.1.113883.10.20.1.51"/>
                                            <code code="11323-3" displayName="Health Status"
                                                codeSystem="2.16.840.1.113883.6.1"
                                                codeSystemName="LOINC"/>
                                            
                                            <text>
                                                <reference/>
                                            </text>
                                            <statusCode code="completed"/>
                                            <value xsi:type="CE" code="81323004"
                                                displayName="Alive and well"
                                                codeSystem="2.16.840.1.113883.6.96"
                                                codeSystemName="SNOMED CT"/>
                                            
                                        </observation>
                                    </entryRelationship>
                                    
                                    <!-- Severity -->
                                    
                                    <entryRelationship typeCode="SUBJ" inversionInd="true">
                                        <observation classCode="OBS" moodCode="EVN">
                                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.1"/>
                                            <templateId root="2.16.840.1.113883.10.20.1.55"/>
                                            <code code="SEV" codeSystem="2.16.840.1.113883.5.4"/>
                                            <text>
                                                <reference/>
                                            </text>
                                            <statusCode code="completed"/>
                                            <value xsi:type="CD" code="H"
                                                codeSystem="2.16.840.1.113883.5.1063"/>
                                        </observation>
                                    </entryRelationship>
                                    
                                    
                                    <!-- Problem Status -->
                                    
                                    <entryRelationship typeCode="REFR">
                                        <observation classCode="OBS" moodCode="EVN">
                                            <templateId root="2.16.840.1.113883.10.20.1.57"/>
                                            <templateId root="2.16.840.1.113883.10.20.1.50"/>
                                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.1.1"/>
                                            <code code="33999-4" codeSystem="2.16.840.1.113883.6.1"/>
                                            <text>
                                                <reference/>
                                            </text>
                                            <statusCode code="completed"/>
                                            <value xsi:type="CE" code="55561003" displayName=" "
                                                codeSystem="2.16.840.1.113883.6.96"
                                                codeSystemName="SNOMED CT"/>
                                        </observation>
                                    </entryRelationship>
                                    
                                    <!-- Comment -->
                                    <entryRelationship typeCode="SUBJ">
                                        <act classCode="ACT" moodCode="EVN">
                                            <templateId root="2.16.840.1.113883.10.20.1.40"/>
                                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.2"/>
                                            <code code="48767-8" displayName="Annotation Comment"
                                                codeSystem="2.16.840.1.113883.6.1"/>
                                            <text>
                                                <reference/>
                                            </text>
                                            <statusCode code="completed"/>
                                            <author>
                                                <time value="20081010121212"/>
                                                <assignedAuthor>
                                                    <id/>
                                                    <addr/>
                                                    <telecom nullFlavor="UNK"/>
                                                    <assignedPerson>
                                                        <name/>
                                                    </assignedPerson>
                                                    <representedOrganization>
                                                        <name/>
                                                        <telecom nullFlavor="UNK"/>
                                                        <addr/>
                                                    </representedOrganization>
                                                </assignedAuthor>
                                            </author>
                                        </act>
                                        
                                    </entryRelationship>
                                    
                                    
                                    <entryRelationship typeCode="SUBJ" inversionInd="true">
                                        <act classCode="ACT" moodCode="EVN">
                                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.2"/>
                                            <templateId root="2.16.840.1.113883.10.20.1.40"/>
                                            <code code="48767-8" displayName="Annotation Comment"
                                                codeSystem="2.16.840.1.113883.6.1"
                                                codeSystemName="LOINC"/>
                                            <text>
                                                <reference value="#ignore"/>
                                            </text>
                                            <statusCode code="completed"/>
                                            <author>
                                                <time value="20000407130000+0500"/>
                                                <assignedAuthor>
                                                    <id/>
                                                    <addr/>
                                                    <telecom value="" use=""/>
                                                    <assignedPerson>
                                                        <name/>
                                                    </assignedPerson>
                                                    <representedOrganization>
                                                        <name/>
                                                        
                                                        <telecom nullFlavor="UNK"/>
                                                        <addr/>
                                                    </representedOrganization>
                                                </assignedAuthor>
                                            </author>
                                        </act>
                                    </entryRelationship>
                                </observation>
                            </entryRelationship>
                            
                            <!-- Allergies and Intolerance -->
                            
                            <entryRelationship typeCode="SUBJ">
                                <observation classCode="OBS" moodCode="EVN">
                                    <code/>
                                </observation>
                                
                            </entryRelationship>
                            
                        </act>
                    </entry>
                    
                </section>
            </component>
        
        
            <component>
                <section>
                    <templateId root="2.16.840.1.113883.10.20.1.8"/>
                    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.19"/>
                    <id/>
                    <code code="10160-0" displayName="HISTORY OF MEDICATION USE"
                        codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
                    <title>Medications</title>
                    <text>
                        <table>
                            <thead>
                                <tr>
                                    <th>Medication</th>
                                    <th>Dosage</th>
                                    <th>Effective Time</th>
                                    <th>Active?</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>Augmentin 125-31.25 MG CHEW</td>
                                    <td>3 once a week</td>
                                    <td>1/14/2008</td>
                                    <td>Yes</td>
                                </tr>
                                <tr>
                                    <td>Albuterol Sulfate 108 MCG/ACT AERS</td>
                                    <td>2 Puffs q6hrs prn</td>
                                    <td>1/14/2008</td>
                                    <td>Yes</td>
                                </tr>
                                
                            </tbody>
                            
                        </table>
                    </text>
                    <entry>
                        
                        <!-- Required Medications element -->
                        <substanceAdministration classCode="SBADM" moodCode="EVN">
                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7"/>
                            <templateId root="2.16.840.1.113883.10.20.1.24"/>
                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7.1"/>
                            <id/>
                            <statusCode code="completed"/>
                            <effectiveTime xsi:type="IVL_TS">
                                <low value="20071010"/>
                                <high value="20071011"/>
                            </effectiveTime>
                            <effectiveTime xsi:type="IVL_TS" operator="A">
                                <low value="20071010"/>
                                <high value="20071011"/>
                            </effectiveTime>
                            <routeCode codeSystem="2.16.840.1.113883.5.112"/>
                            <doseQuantity>
                                <center value="20071010"/>
                            </doseQuantity>
                            <rateQuantity>
                                <low value="20071010"/>
                                <high value="20071010"/>
                            </rateQuantity>
                            <consumable>
                                <manufacturedProduct>
                                    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7.2"/>
                                    <templateId root="2.16.840.1.113883.10.20.1.53"/>
                                    
                                    
                                    <manufacturedMaterial>
                                        <code code="code" codeSystem="Mine">
                                            <originalText>
                                                <reference value="#something"/>
                                            </originalText>
                                        </code>
                                        <name>This is my name</name>
                                    </manufacturedMaterial>
                                    
                                </manufacturedProduct>
                                
                                
                                
                            </consumable>
                            <entryRelationship typeCode="SUBJ" inversionInd="true">
                                <act classCode="ACT" moodCode="INT">
                                    <templateId root="2.16.840.1.113883.10.20.1.49"/>
                                    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.3"/>
                                    <code code="PINSTRUCT" codeSystem="1.3.6.1.4.1.19376.1.5.3.2"
                                        codeSystemName="IHEActCode"/>
                                    <text>
                                        <reference value="#comment-2"/>
                                    </text>
                                    <statusCode code="completed"/>
                                </act>
                            </entryRelationship>
                            
                            
                        </substanceAdministration>
                        
                    </entry>
                    
                </section>
            </component>

            <component>
                <section>
                    <templateId root="2.16.840.1.113883.10.20.1.2"/>
                    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.13"/>
                    <id root="root" extension="ext"/>
                    <code code="48765-2" displayName="Allergies, adverse reactions, alerts"
                        codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
                    <title>Allergies and adverse reactions</title>
                    <text>
                        <paragraph>Penicillin</paragraph>
                    </text>
                    <entry>
                        <act classCode="ACT" moodCode="EVN">
                            <templateId root="2.16.840.1.113883.10.20.1.27"/>
                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.1"/>
                            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5.3"/>
                            <id root="root" extension="ext"/>
                            <code nullFlavor="NA"/>
                            <statusCode code="completed"/>
                            <effectiveTime>
                                <low value="20071010"/>
                                <high value="20071010"/>
                            </effectiveTime>
                            <!-- 1..* entry relationships identifying allergies of concern -->
                            <entryRelationship typeCode="SUBJ" inversionInd="false">
                                <observation classCode="OBS" moodCode="EVN">
                                    <templateId root="2.16.840.1.113883.10.20.1.28"/>
                                    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.6"/>
                                    <templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.5"/>
                                    <id/>
                                    <code code="55607006" codeSystem="2.16.840.1.113883.6.96"
                                        displayName="whatever" codeSystemName="whateverSystem">
                                        <originalText><reference value="#ref-0"/>></originalText>
                                    </code>
                                    <statusCode code="completed"/>
                                    <effectiveTime>
                                        <low nullFlavor="UNK"/>
                                    </effectiveTime>
                                    <value xsi:type="CD" code="ignore" codeSystem="ignore"
                                        codeSystemName="ignore" displayName="ignore"/>
                                </observation>
                            </entryRelationship>
                            
                        </act>
                    </entry>
                    
                </section>
            </component>

        
        </structuredBody>
    </component>

</ClinicalDocument>
