<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../xsl/CDA.xsl"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" classCode="DOCCLIN" moodCode="EVN" xsi:schemaLocation="urn:hl7-org:v3 ../../schemas/CDA.xsd">
  <!-- document header -->
  <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/>
  <id extension="medhdv" root="2.16.840.1.113883.19.2744.1.1"/>
  
  <!--     The attachment contains the current and discharge medications for a clinic visit. -->
  <code code="18617-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="MEDICATIONS DISCHARGE"/>
  <title>Medication Report</title>
  <effectiveTime value="20061125"/>
  <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25" codeSystemName="Confidentiality" displayName="Normal"/>
  
  <!-- Patient Identification includes name, date of birth and gender. -->
  <recordTarget contextControlCode="OP" typeCode="RCT">
    <patientRole classCode="PAT">
      <!-- The medical record ID of the patient for the sending institution is 6910828.  -->
      <id extension="6910828" root="2.16.840.1.113883.19.2744.1.2"/>
      <!--     The patient name is Patient H. Sample.  -->
      <patient>
        <name>
          <given>Sample</given>
          <given>H</given>
          <family>Patient</family>
        </name>
        <administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1" codeSystemName="AdministrativeGender" displayName="Male"/>
        <birthTime value="19320924"/>
      </patient>
    </patientRole>
  </recordTarget>
  
  <!-- The author was George F. Carson, MD. -->
  <author contextControlCode="OP" typeCode="AUT">
    <time value="20061025"/>
    <assignedAuthor classCode="ASSIGNED">
      <id extension="298379" root="2.16.840.1.113883.19.2744.1.3"/>
      <assignedPerson>
        <name>
          <given>George</given>
          <given>F</given>
          <family>Carson</family>
          <suffix>MD</suffix>
        </name>
      </assignedPerson>
    </assignedAuthor>
  </author>
  
  <!-- organization maintaining the document -->
  <custodian typeCode="CST">
    <assignedCustodian classCode="ASSIGNED">
      <representedCustodianOrganization classCode="ORG" determinerCode="INSTANCE">
        <id extension="ghc" root="2.16.840.1.113883.19.2744.1.3.1"/>
      </representedCustodianOrganization>
    </assignedCustodian>
  </custodian>
  
  <!-- The claim associated with this CDA document is identified by the value XA728302 in data element TRN02-Attachment Control Number of Loop 2000A-Payer/Provider Control Number. -->
  <inFulfillmentOf>
    <order>
      <id extension="XA728302" root="2.16.840.1.113883.19.2744.1.5"/>
    </order>
  </inFulfillmentOf>
  
  <documentationOf>
    <serviceEvent>
      
    </serviceEvent>
  </documentationOf>
  
  <!-- Patient encounter identified with provider account number, and date of encounter  -->
  <componentOf>
    <encompassingEncounter>
      <!-- The billing account number within the sending institution that is associated with the claim is 773789090.  This is used as the encounter identifier -->
      <id extension="773789090" root="2.16.840.1.113883.19.2744.1.4"/>
      <!-- The encounter took place on July 17, 2006. -->
      <effectiveTime value="20060617"/>
      <!-- The provider is George F. Carson, MD. -->
      <responsibleParty typeCode="RESP">
        <assignedEntity>
          <id extension="298379" root="2.16.840.1.113883.19.2744.1.3"/>
          <assignedPerson>
            <name>
              <given>George</given>
              <given>F</given>
              <family>Carson</family>
              <suffix>MD</suffix>
            </name>
          </assignedPerson>
        </assignedEntity>
      </responsibleParty>
    </encompassingEncounter>
  </componentOf>
  
  <!-- Begin Body, first Section and table heading. -->
  <component contextConductionInd="true" typeCode="COMP">
    <structuredBody>
      <component>
        <section>
          
          <title>Current Medications</title>
          <text><paragraph>unspecified blood pressure medicine, 1 brown tablet per day.</paragraph></text>
          
        </section>
      </component>
      <component>
        <section>
          
          
          <title>Medications on Discharge</title>
          <text>
            <paragraph>diazepam 5 mg tablets, 1 tab PO Q6H <content>PRN</content> for <content>back
              pain</content>, 15 tablets, no refills, <content>do not substitute</content>.</paragraph>
            <paragraph>Aleve 1 tab PO Q12H <content>PRN</content> for <content>back pain</content></paragraph>
          </text>
          
          
        </section>
      </component>
      <!-- Close body and document -->
    </structuredBody>
  </component>
</ClinicalDocument>
