﻿<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="Discharge_Summary_cda.xsl"?>
<!--
Title: Discharge Summary sample report
Original Filename: DS_Sample.xml
Version: 1.0
Revision History: 
8/04/2009 bam created for September 2009 ballot
10/15/2009 bam updated in response to ballot comments. Added optoinal entries where appropriate

Specification: HL7 CDAR2_IG_CRSR2_DS_R1_D1_2009NOV
	
This sample document was created by Alschuler Associates, LLC, on behalf of a project called Health Story founded by M*Modal, the American Health Information Management Association (AHIMA), and the Association for Healthcare Documentation Integrity (AHDI).
	
For more information on Health Story please see www.healthstory.com
For more information on the "HL7 Implementation Guide for CDA Release 2: Care Record Summary Release 2 Discharge Summary" see www.hl7.org, Structured Documents Working Group
-->

<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="urn:hl7-org:v3 ../../../../cda-schema/infrastructure/cda/CDA.xsd"
	xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc">
	<!-- Comments precede their subject -->
	<!-- The following sample document depicts a fictional character’s health summary. Any resemblance to a real person is coincidental. -->
	<!-- To illustrate as many data elements as possible, the clinical scenario may not be entirely plausible. -->
	<!--
********************************************************
  CDA Header
********************************************************
	-->
	<!--(CONF HP-15) Requires US-realm  -->
	<realmCode code="US"/>
	<!--(CONF HP-16) Requires typeId of  root="2.16.840.1.113883.1.3" and extension="POCD_HD000040"-->
	<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>

	<!--(CONF HP-1) Conforms to the CDA General Header Constraints template-->
	<templateId root="2.16.840.1.113883.10.20.3"/>

	<!-- indicates conformance with the Discharge Summary  DSTU -->
	<templateId root="2.16.840.1.113883.10.20.16.2"/>

	<!--(CONF HP-17-20) Requires id element and synatically correct UUID or OID  -->
	<id extension="999021" root="2.16.840.1.113883.19"/>

	<!--(CONF HP-21) Requires code element specifying type of document -->
	<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" code="18842-5"
		displayName="DISCHARGE SUMMARIZATION NOTE"/>

	<!--(CONF HP-22) Requires a title element specifying local name of  document -->
	<title>Discharge Summary</title>

	<!--(CONF HP-23) Requires effectiveTime be present precise to the second -->
	<effectiveTime value="20050303171504+0500"/>
	<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>

	<!--(CONF HP-24-27) Requires languageCode be present in appropraite format-->
	<languageCode code="en-US"/>

	<!--(CONF HP-28-29) Requires presence/absence of both setId and versionNumber -->
	<setId extension="111199021" root="2.16.840.1.113883.19"/>
	<versionNumber value="1"/>
	<recordTarget>
		<!--(CONF HP-31) Requires at lease one patientRole -->
		<patientRole>
			<id extension="12345" root="2.16.840.1.113883.19.5"/>
			<!--(CONF-HP-7)Requires addr/telecom elements for patientRole, assignedAuthor, assignedEntity[not(parent::dataEnterer)] and associatedEntity -->
			<addr>
				<streetAddressLine>6666 Home Street</streetAddressLine>
				<city>Ann Arbor</city>
				<state>MI</state>
				<postalCode>9999</postalCode>
				<country>USA</country>
			</addr>
			<telecom value="tel:(781)555-1212" use="HP"/>
			<patient>
				<!--(CONF-HP-6) Requires a name element for patient, guardianPerson, assignedPerson, maintainingPerson, relatedPerson, intendedRecipient/informationRecipient, associatedPerson, and relatedSubject/subject patient,  -->
				<name>
					<given>Ned</given>
					<family>Nuclear</family>
				</name>

				<!--(CONF HP-33) Requires administrativeGenderCode be present and nullFlavor if unknown  -->
				<administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
				<!--(CONF HP-32) Requires birthTime-->
				<birthTime value="19541125"/>
				<guardian>
					<id extension="23456" root="2.16.840.1.113883.19.5"/>
					<addr>
						<streetAddressLine>6666 Home Street</streetAddressLine>
						<city>Ann Arbor</city>
						<state>MI</state>
						<postalCode>9999</postalCode>
						<country>USA</country>
					</addr>
					<!--(CONF-HP-12) Requires telecom number to match pattern  tel:\+?[-0-9().]+-->
					<!--(CONF-HP-13) Requires telecom number to contain at lease one digit after visual separators removed-->
					<!--(CONF-HP-13) Requires telecom number to contain approriate nullFlavor if unknown-->
					<telecom value="tel:(555)555-2004" use="HP"/>
					<guardianPerson>
						<name>
							<given>Neville</given>
							<family>Nuclear</family>
						</name>
					</guardianPerson>
				</guardian>
			</patient>
			<providerOrganization>
				<id root="2.16.840.1.113883.19.5"/>
				<!--(CONF-HP-9) Requires a name, addr and telecom for guardianOrganization, providerOrganization, wholeOrganization, representedOrganization, representedCustodianOrganization, receivedOrganization, scopingOrganization and serviceProviderOrganization -->
				<name>Good Health Clinic</name>
				<telecom value="tel:(555)555-1212" use="WP"/>
				<addr>
					<streetAddressLine>4444 Healthcare Drive</streetAddressLine>
					<city>Ann Arobor</city>
					<state>MI</state>
					<postalCode>99999</postalCode>
					<country>USA</country>
				</addr>
			</providerOrganization>
		</patientRole>
	</recordTarget>
	<author>
		<!--(CONF HP-37) Requires time element for author representing the start time of the author's participation in creation of the document-->
		<time value="20050329224411+0500"/>
		<assignedAuthor>
			<!--(CONF HP-38) Requires id-->
			<id extension="BA00017" root="2.16.840.1.113883.19.5"/>
			<addr>
				<streetAddressLine>1002 Healthcare Drive</streetAddressLine>
				<city>Ann Arbor</city>
				<state>MI</state>
				<postalCode>99999</postalCode>
				<country>USA</country>
			</addr>
			<telecom value="tel:(555)555-1002" use="WP"/>
			<!--(CONF HP-39) Requires assignedPerson or assignedAuthoringDevice-->
			<assignedPerson>
				<name>
					<given>Henry</given>
					<family>Seven</family>
					<suffix>MD</suffix>
				</name>
			</assignedPerson>
		</assignedAuthor>
	</author>
	<!--CDA R2 Requires presence of a custodian -->
	<custodian>
		<assignedCustodian>
			<representedCustodianOrganization>
				<id root="2.16.840.1.113883.19.5"/>
				<name>Good Health Clinic</name>
				<telecom value="tel:(555)555-1212" use="WP"/>
				<addr>
					<streetAddressLine>4444 Healthcare Drive</streetAddressLine>
					<city>Ann Arobor</city>
					<state>MI</state>
					<postalCode>99999</postalCode>
					<country>USA</country>
				</addr>
			</representedCustodianOrganization>
		</assignedCustodian>
	</custodian>
	<legalAuthenticator>
		<time value="20050329224411+0500"/>
		<signatureCode code="S"/>
		<assignedEntity>
			<id extension="BA00017" root="2.16.840.1.113883.19.5"/>
			<addr>
				<streetAddressLine>4444 Healthcare Drive</streetAddressLine>
				<city>Ann Arobor</city>
				<state>MI</state>
				<postalCode>99999</postalCode>
				<country>USA</country>
			</addr>
			<telecom value="tel:(555)555-1002" use="WP"/>
			<!--(CONF HP-51) Requires assignedPerson-->
			<assignedPerson>
				<name>
					<given>Henry</given>
					<family>Seven</family>
					<suffix>MD</suffix>
				</name>
			</assignedPerson>
		</assignedEntity>
	</legalAuthenticator>

	<participant typeCode="IND">
		<associatedEntity classCode="NOK">
			<code code="MTH" codeSystem="2.16.840.1.113883.5.111" codeSystemName="HL7 RoleCode"
				displayName="Mother"/>
			<addr>
				<streetAddressLine>6666 Home Street</streetAddressLine>
				<city>Ann Arbor</city>
				<state>MI</state>
				<postalCode>9999</postalCode>
				<country>USA</country>
			</addr>
			<telecom value="tel:(999)555-1212" use="WP"/>
			<associatedPerson>
				<name>
					<prefix>Mrs.</prefix>
					<given>Nelda</given>
					<family>Nuclear</family>
				</name>
			</associatedPerson>
		</associatedEntity>
	</participant>

	<componentOf>
		<encompassingEncounter>
			<id extension="9937012" root="2.16.840.1.113883.19"/>
			<!--(CONF-HP-10) If present, requires effectiveTime to be precise to day at  ClinicalDocument/effectiveTime, author/time, dataEnterer/time, legalAuthenticator/time, authenticator/time and encompassingEncounter/effectiveTime  -->
			<effectiveTime>
				<low value="20090303"/>
				<high value="20090625"/>
			</effectiveTime>
			<dischargeDispositionCode code="01" codeSystem="2.16.840.1.113883.12.112"
				displayName="Routine Discharge" codeSystemName="HL7 Discharge Disposition"/>
		</encompassingEncounter>
	</componentOf>

<!-- ********************************************************
CDA Body 
******************************************************** -->
	<component>
		<structuredBody>
			<!-- 
********************************************************
Allergies - Required - Copy from CCD sample
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.2"/>
					<!-- Alerts section template -->
					<code code="48765-2" codeSystem="2.16.840.1.113883.6.1"/>
					<title>Allergies, Adverse Reactions, Alerts</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Substance</th>
									<th>Reaction</th>
									<th>Status</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Penicillin</td>
									<td>Hives</td>
									<td>Active</td>
								</tr>
								<tr>
									<td>Aspirin</td>
									<td>Wheezing</td>
									<td>Active</td>
								</tr>
								<tr>
									<td>Codeine</td>
									<td>Nausea</td>
									<td>Active</td>
								</tr>
							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="36e3e930-7b14-11db-9fe1-0800200c9a66"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.18"/>
									<!-- Alert observation template -->
									<id root="4adc1020-7b14-11db-9fe1-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<value xsi:type="CD" code="282100009"
										codeSystem="2.16.840.1.113883.6.96"
										displayName="Adverse reaction to substance"/>
									<participant typeCode="CSM">
										
										<participantRole classCode="MANU">
											<playingEntity classCode="MMAT">
												<code code="70618"
												codeSystem="2.16.840.1.113883.6.88"
												displayName="Penicillin"/>
											</playingEntity>
										</participantRole>
										
									</participant>
									<entryRelationship typeCode="MFST" inversionInd="true">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.54"/>
											<!-- Reaction observation template -->
											<code code="ASSERTION"
												codeSystem="2.16.840.1.113883.5.4"/>
											<statusCode code="completed"/>
											<value xsi:type="CD" code="247472004"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Hives"/>
										</observation>
									</entryRelationship>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.39"/>
											<!-- Alert status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="55561003"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Active"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="eb936010-7b17-11db-9fe1-0800200c9a66"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.18"/>
									<!-- Alert observation template -->
									<id root="eb936011-7b17-11db-9fe1-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<value xsi:type="CD" code="282100009"
										codeSystem="2.16.840.1.113883.6.96"
										displayName="Adverse reaction to substance"/>
									<participant typeCode="CSM">
										<participantRole classCode="MANU">
											<playingEntity classCode="MMAT">
												<code code="1191"
												codeSystem="2.16.840.1.113883.6.88"
												displayName="Aspirin"/>
											</playingEntity>
										</participantRole>
									</participant>
									<entryRelationship typeCode="MFST" inversionInd="true">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.54"/>
											<!-- Reaction observation template -->
											<code code="ASSERTION"
												codeSystem="2.16.840.1.113883.5.4"/>
											<statusCode code="completed"/>
											<value xsi:type="CD" code="56018004"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Wheezing"/>
										</observation>
									</entryRelationship>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.39"/>
											<!-- Alert status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="55561003"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Active"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="c3df3b61-7b18-11db-9fe1-0800200c9a66"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.18"/>
									<!-- Alert observation template -->
									<id root="c3df3b60-7b18-11db-9fe1-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<value xsi:type="CD" code="282100009"
										codeSystem="2.16.840.1.113883.6.96"
										displayName="Adverse reaction to substance"/>
									<participant typeCode="CSM">
										<participantRole classCode="MANU">
											<playingEntity classCode="MMAT">
												<code code="2670"
												codeSystem="2.16.840.1.113883.6.88"
												displayName="Codeine"/>
											</playingEntity>
										</participantRole>
									</participant>
									<entryRelationship typeCode="MFST" inversionInd="true">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.54"/>
											<!-- Reaction observation template -->
											<code code="ASSERTION"
												codeSystem="2.16.840.1.113883.5.4"/>
											<statusCode code="completed"/>
											<value xsi:type="CD" code="73879007"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Nausea"/>
										</observation>
									</entryRelationship>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.39"/>
											<!-- Alert status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="55561003"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Active"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
				</section>
			</component>
			<!-- 
********************************************************
Hospital Course - Required
********************************************************
-->
			<component>
				<section>
					<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.5"/>
					<code code="8648-8" displayName="HOSPITAL COURSE"
						codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
					<title>Hospital Course</title>
					<text> The patient was admitted and started on Lovenox and nitroglycerin paste.
						The patient had serial cardiac enzymes and was ruled out for myocardial
						infarction. The patient underwent a dual isotope stress test. There was no
						evidence of reversible ischemia on the Cardiolite scan. The patient has been
						ambulated. The patient had a Holter monitor placed but the report is not
						available at this time. The patient has remained hemodynamically stable.
						Will discharge.</text>
				<entry>
					<observation classCode="OBS" moodCode="EVN">
						<code nullFlavor="NI"/>
					</observation>
				</entry>
				</section>
				
			</component>
			<!-- 
********************************************************
Hospital Discharge Diagnosis - Required - 
********************************************************
			-->
			<component>
				<section>
					<!-- Discharge Summary Hospital Discharge Diagnosis Template Id -->
					<templateId root="2.16.840.1.113883.10.20.16.2.1"/>
					<!-- IHE Hospital Discharge Diagnosis Template Id -->
					<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.7"/>
					<id extension="9937012" root="2.16.840.1.113883.19"/>
					<code code="11535-2" displayName="HOSPITAL DISCHARGE DX"
						codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
					<title>Hospital Discharge Diagnosis</title>
					<text> Unspecified chest pain </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 root="5a784260-6856-4f38-9638-80c751aff2fb"/>
							<code nullFlavor="NA"/>
							<statusCode code="active"/>
							<effectiveTime>
								<low value="20903003"/>
							</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"/>
									<code code="409586006" codeSystem="2.16.840.1.113883.6.96"
										codeSystemName="SNOMED CT" displayName="Complaint"/>
									<statusCode code="completed"/>
									<effectiveTime>
										<low nullFlavor="UNK"/>
									</effectiveTime>
									<value xsi:type="CD" code="29857009"
										codeSystem="2.16.840.1.113883.6.96"
										codeSystemName="SNOMED CT" displayName="Chest Pain"/>
								</observation>
							</entryRelationship>
						</act>
					</entry>


				</section>
			</component>

			<!-- 
********************************************************
Hospital Discharge Medications - Required
********************************************************
			-->
			<component>
				<section>
					<!-- CRS R2 Discharge Summary templateId -->
					<templateId root="2.16.840.1.113883.10.20.16.2.2"/>
					<!-- IHE Hospital Discharge Summary templateId - requires entry -->
					<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.22"/>
					<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" code="10183-2"
						displayName=" HOSPITAL DISCHARGE MEDICATIONS "/>
					<title>Hospital Discharge Medications</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Medication</th>
									<th>Instructions</th>
								</tr>
							</thead>

							<tbody>

								<tr>
									<td>Lisinopril 5 mg</td>
									<td> 1 tablet once a day</td>
								</tr>
								<tr>
									<td>Atenolol 25 mg</td>
									<td> 1 tablet once a day</td>
								</tr>

							</tbody>
						</table>
						<br/>
						<paragraph>I note that this patient has been on Prednisone for adrenal
							insufficiency in the past.</paragraph>
					</text>

					<entry typeCode="DRIV">
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.24"/>
							<!-- CCD Medication activity template -->
							<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7"/>
							<!-- IHE  Medications Template-->
							<id root="cdbd5b05-6cde-11db-9fe1-0800200c7a56"/>
							<statusCode code="active"/>
							<effectiveTime xsi:type="PIVL_TS">
								<period value="24" unit="h"/>
							</effectiveTime>
							<routeCode code="PO" codeSystem="2.16.840.1.113883.5.112"
								codeSystemName="RouteOfAdministration"/>
							<doseQuantity value="1"/>
							<consumable>
								<manufacturedProduct>
									<templateId root="2.16.840.1.113883.10.20.1.53"/>
									<!-- Product template -->
									<manufacturedMaterial>
										<code code="311354" codeSystem="2.16.840.1.113883.6.88"
											codeSystemName="RX NORM"
											displayName="Lisinopril 5 MG Oral Tablet">
											<originalText>Lisinopril 5 MG Oral Tablet</originalText>
										</code>
										<name>Prinivi</name>
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
						</substanceAdministration>
					</entry>
					<entry typeCode="DRIV">
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.24"/>
							<!-- CCD Medication activity template -->
							<templateId root="1.3.6.1.4.1.19376.1.5.3.1.4.7"/>
							<!-- IHE  Medications Template-->
							<id root="cdbd5b05-6cde-11db-9fe1-0800200c7a26"/>
							<statusCode code="active"/>
							<effectiveTime xsi:type="PIVL_TS">
								<period value="24" unit="h"/>
							</effectiveTime>
							<routeCode code="PO" codeSystem="2.16.840.1.113883.5.112"
								codeSystemName="RouteOfAdministration"/>
							<doseQuantity value="1"/>
							<consumable>
								<manufacturedProduct>
									<templateId root="2.16.840.1.113883.10.20.1.53"/>
									<!-- Product template -->
									<manufacturedMaterial>
										<code code="370619" codeSystem="2.16.840.1.113883.6.88"
											codeSystemName="RX NORM"
											displayName="Atenolol 25 MG Oral Tablet">
											<originalText>Atenolol 25 MG Oral Tablet</originalText>
										</code>
										<name>Tenormin</name>
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
						</substanceAdministration>
					</entry>

				</section>
			</component>


			<!-- 
********************************************************
Plan of Care - Required
********************************************************
-->

			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.10"/>
					<!-- Plan of Care section template -->
					<code code="18776-5" codeSystem="2.16.840.1.113883.6.1"/>
					<title>Plan of Care</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Planned Activity</th>
									<th>Planned Date</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Pulmonary function test</td>
									<td>December 21, 2009</td>
								</tr>
							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<observation classCode="OBS" moodCode="RQO">
							<templateId root="2.16.840.1.113883.10.20.1.25"/>
							<!-- Plan of Activity activity template -->
							<id root="9a6d1bac-17d3-4195-89a4-1121bc809b4a"/>
							<code code="23426006" codeSystem="2.16.840.1.113883.6.96"
								displayName="Pulmonary function test"/>
							<statusCode code="new"/>
							<effectiveTime>
								<center value="20091221"/>
							</effectiveTime>
						</observation>
					</entry>
				</section>
			</component>

			<!--
********************************************************
Discharge Diet  - Optional
********************************************************
-->
			<component>
				<section>
					<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.33"/>
					<code code="42344-2" displayName="DISCHARGE DIET"
						codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
					<title>Discharge Diet</title>
					<text> Low-fat, low-salt, cardiac diet. </text>
					<entry>
						<observation classCode="OBS" moodCode="EVN">
							<code nullFlavor="NI"/>
						</observation>
					</entry>
				</section>
			</component>

			<!--
********************************************************
Family History  - Optional 
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.4"/>
					<!-- Family history section template -->
					<code code="10157-6" codeSystem="2.16.840.1.113883.6.1"/>
					<title>Family history</title>
					<text>
						<paragraph>Father (deceased)</paragraph>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Diagnosis</th>
									<th>Age At Onset</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Myocardial Infarction (cause of death)</td>
									<td>57</td>
								</tr>
								<tr>
									<td>Hypertension</td>
									<td>40</td>
								</tr>
							</tbody>
						</table>
						<paragraph>Mother (alive)</paragraph>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Diagnosis</th>
									<th>Age At Onset</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Asthma</td>
									<td>30</td>
								</tr>
							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<organizer moodCode="EVN" classCode="CLUSTER">
							<templateId root="2.16.840.1.113883.10.20.1.23"/>
							<!-- Family history organizer template -->
							<statusCode code="completed"/>
							<subject>
								<relatedSubject classCode="PRS">
									<code code="9947008" codeSystem="2.16.840.1.113883.6.96"
										displayName="Biological father"/>
									<subject>
										<administrativeGenderCode code="M"
											codeSystem="2.16.840.1.113883.5.1" displayName="Male"/>
										<birthTime value="1912"/>
									</subject>
								</relatedSubject>
							</subject>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.42"/>
									<!-- Family history cause of death observation template -->
									<id root="d42ebf70-5c89-11db-b0de-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime value="20001020"/>
									<value xsi:type="CD" code="22298006"
										codeSystem="2.16.840.1.113883.6.96" displayName="MI"/>
									<entryRelationship typeCode="CAUS">
										<observation classCode="OBS" moodCode="EVN">
											<id root="6898fae0-5c8a-11db-b0de-0800200c9a66"/>
											<code code="ASSERTION"
												codeSystem="2.16.840.1.113883.5.4"/>
											<statusCode code="completed"/>
											<value xsi:type="CD" code="419099009"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Dead"/>
										</observation>
									</entryRelationship>
									<entryRelationship typeCode="SUBJ" inversionInd="true">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.38"/>
											<!-- Age observation template -->
											<code code="397659008"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Age"/>
											<statusCode code="completed"/>
											<effectiveTime value="20001020"/>
											<value xsi:type="INT" value="57"/>
											
										</observation>
									</entryRelationship>
								</observation>
							</component>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.22"/>
									<!-- Family history observation template -->
									<id root="5bfe3ec0-5c8b-11db-b0de-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime value="20001020"/>
									<value xsi:type="CD" code="59621000"
										codeSystem="2.16.840.1.113883.6.96" displayName="HTN"/>
									<entryRelationship typeCode="SUBJ" inversionInd="true">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.38"/>
											<!-- Age observation template -->
											<code code="397659008"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Age"/>
											<statusCode code="completed"/>
											<value xsi:type="INT" value="40"/>
										</observation>
									</entryRelationship>
								</observation>
							</component>
						</organizer>
					</entry>
					<entry typeCode="DRIV">
						<organizer moodCode="EVN" classCode="CLUSTER">
							<templateId root="2.16.840.1.113883.10.20.1.23"/>
							<!-- Family history organizer template -->
							<statusCode code="completed"/>
							<subject>
								<relatedSubject classCode="PRS">
									<code code="65656005" codeSystem="2.16.840.1.113883.6.96"
										displayName="Biological mother"/>
									<subject>
										<administrativeGenderCode code="F"
											codeSystem="2.16.840.1.113883.5.1" displayName="Female"/>
										<birthTime value="1912"/>
									</subject>
								</relatedSubject>
							</subject>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.22"/>
									<!-- Family history observation template -->
									<id root="a13c6160-5c8b-11db-b0de-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime>
										<low value="1942"/>
									</effectiveTime>
									<value xsi:type="CD" code="195967001"
										codeSystem="2.16.840.1.113883.6.96" displayName="Asthma"/>
								</observation>
							</component>
						</organizer>
					</entry>
				</section>
			</component>

			<!--
********************************************************
Functional Status  - Optional - Copy from CCD sample
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.5"/>
					<!-- Functional status section template -->
					<code code="47420-5" codeSystem="2.16.840.1.113883.6.1"/>
					<title>Functional Status</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Functional Condition</th>
									<th>Effective Dates</th>
									<th>Condition Status</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Dependence on cane</td>
									<td>1998</td>
									<td>Active</td>
								</tr>
								<tr>
									<td>Memory impairment</td>
									<td>1999</td>
									<td>Active</td>
								</tr>
							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="6z2fa88d-4174-4909-aece-db44b60a3abb"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.28"/>
									<!-- Problem observation template -->
									<id root="fd07111a-b15b-4dce-8518-1274d07f142a"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime>
										<low value="1998"/>
									</effectiveTime>
									<value xsi:type="CD" code="105504002"
										codeSystem="2.16.840.1.113883.6.96"
										displayName="Dependence on cane"/>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.44"/>
											<!-- Status of functional status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="55561003"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Active"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="64606e86-c080-11db-8314-0800200c9a66"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.28"/>
									<!-- Problem observation template -->
									<id root="6be2930a-c080-11db-8314-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime>
										<low value="1999"/>
									</effectiveTime>
									<value xsi:type="CD" code="386807006"
										codeSystem="2.16.840.1.113883.6.96"
										displayName="Memory impairment"/>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.44"/>
											<!-- Status of functional status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="55561003"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Active"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
				</section>
			</component>


			<!--
********************************************************
History of Present Ilness  - Optional
********************************************************
-->
			<component>
				<section>
					<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.4"/>
					<code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
						displayName="HISTORY OF PRESENT ILLNESS"/>
					<title>History of Present Illness</title>
					<text>Not reported by pateint.</text>
					<entry>
						<observation classCode="OBS" moodCode="EVN">
							<code nullFlavor="NI"/>
						</observation>
					</entry>
					
				</section>
			</component>

			<!--
********************************************************
Hospital Discharge Physical - Optional
********************************************************
-->

			<component>
				<section>
					<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.26"/>
					<code code="10184-0" displayName="HOSPITAL DISCHARGE PHYSICAL"
						codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
					<title>Hospital Discharge Physical</title>
					<text>GENERAL: Well-developed, slightly obese man. <br/>NECK: Supple, with no
						jugular venous distension. <br/>HEART: Intermittent tachycardia without
						murmurs or gallops. <br/>PULMONARY: Decreased breath sounds, but no
						clear-cut rales or wheezes. <br/>EXTREMITIES: Free of edema.</text>
					<entry>
						<observation classCode="OBS" moodCode="EVN">
							<code nullFlavor="NI"/>
						</observation>
					</entry>
				</section>
			</component>

			<!--
********************************************************
Hospital Discharge Studies Summary  
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.16.2.3"/>
					<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" code="11493-4"
						displayName="HOSPITAL DISCHARGE STUDIES SUMMARY"/>
					<title>Hospital Discharge Studies Summary</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Laboratory Information</th>
									<th>Chemistries and drug levels</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Potasium</td>
									<td>4.0</td>
								</tr>
								<tr>
									<td>NA (135-145meq/l)</td>
									<td>140</td>
								</tr>
							</tbody>
						</table>
						<br/>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Other Tests</th>
									<th>Results</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>EKG</td>
									<td>Sinus rhythm without acute changes.</td>
								</tr>

							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<organizer classCode="BATTERY" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.32"/>
							<!-- Result organizer template -->
							<id root="7d5a02b0-67a4-11db-bd13-0800200c9a66"/>
							<code code="43789009" codeSystem="2.16.840.1.113883.6.96"
								displayName="CBC WO DIFFERENTIAL"/>
							<statusCode code="completed"/>
							<effectiveTime value="200906231430"/>

							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/>
									<!-- Result observation template -->
									<id root="a40027e2-67a5-11db-bd13-0800200c9a66"/>
									<code code="2823-3" codeSystem="2.16.840.1.113883.6.1"
										displayName="K"/>
									<statusCode code="completed"/>
									<effectiveTime value="200004061300"/>
									<value xsi:type="PQ" value="4.0" unit="meq/l"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="3.5" unit="meq/l"/>
												<high value="5.0" unit="meq/l"/>
											</value>
										</observationRange>
									</referenceRange>
								</observation>
							</component>

							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/>
									<!-- Result observation template -->
									<id root="a40027e1-67a5-11db-bd13-0800200c9a66"/>
									<code code="2951-2" codeSystem="2.16.840.1.113883.6.1"
										displayName="NA"/>
									<statusCode code="completed"/>
									<effectiveTime value="200004061300"/>
									<value xsi:type="PQ" value="140" unit="meq/l"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="135" unit="meq/l"/>
												<high value="145" unit="meq/l"/>
											</value>
										</observationRange>
									</referenceRange>
								</observation>
							</component>
						</organizer>
					</entry>
				</section>
			</component>

			<!--
********************************************************
Immunizations  - Optional - Copy from CCD sample
********************************************************
-->

			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.6"/>
					<!-- Immunizations section template -->
					<code code="11369-6" codeSystem="2.16.840.1.113883.6.1"/>
					<title>Immunizations</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Vaccine</th>
									<th>Date</th>
									<th>Status</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Influenza virus vaccine, IM</td>
									<td>Nov 1999</td>
									<td>Completed</td>
								</tr>
								<tr>
									<td>Influenza virus vaccine, IM</td>
									<td>Dec 1998</td>
									<td>Completed</td>
								</tr>
								<tr>
									<td>Pneumococcal polysaccharide vaccine, IM</td>
									<td>Dec 1998</td>
									<td>Completed</td>
								</tr>
								<tr>
									<td>Tetanus and diphtheria toxoids, IM</td>
									<td>1997</td>
									<td>Completed</td>
								</tr>
							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.24"/>
							<!-- Medication activity template -->
							<id root="e6f1ba43-c0ed-4b9b-9f12-f435d8ad8f92"/>
							<statusCode code="completed"/>
							<effectiveTime xsi:type="IVL_TS">
								<center value="199911"/>
							</effectiveTime>
							<routeCode code="IM" codeSystem="2.16.840.1.113883.5.112"
								codeSystemName="RouteOfAdministration"
								displayName="Intramuscular injection"/>
							<doseQuantity value="1"/>
							<consumable>
								<manufacturedProduct>
									<templateId root="2.16.840.1.113883.10.20.1.53"/>
									<!-- Product template -->
									<manufacturedMaterial>
										<code code="88" codeSystem="2.16.840.1.113883.6.59"
											displayName="Influenza virus vaccine">
											<originalText>Influenza virus vaccine</originalText>
										</code>
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
						</substanceAdministration>
					</entry>
					<entry typeCode="DRIV">
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.24"/>
							<!-- Medication activity template -->
							<id root="115f0f70-1343-4938-b62f-631de9749a0a"/>
							<statusCode code="completed"/>
							<effectiveTime xsi:type="IVL_TS">
								<center value="199812"/>
							</effectiveTime>
							<routeCode code="IM" codeSystem="2.16.840.1.113883.5.112"
								codeSystemName="RouteOfAdministration"
								displayName="Intramuscular injection"/>
							<doseQuantity value="1"/>
							<consumable>
								<manufacturedProduct>
									<templateId root="2.16.840.1.113883.10.20.1.53"/>
									<!-- Product template -->
									<manufacturedMaterial>
										<code code="88" codeSystem="2.16.840.1.113883.6.59"
											displayName="Influenza virus vaccine">
											<originalText>Influenza virus vaccine</originalText>
										</code>
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
						</substanceAdministration>
					</entry>
					<entry typeCode="DRIV">
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.24"/>
							<!-- Medication activity template -->
							<id root="78598407-9f16-42d5-8ffd-09281a60fe33"/>
							<statusCode code="completed"/>
							<effectiveTime xsi:type="IVL_TS">
								<center value="199812"/>
							</effectiveTime>
							<routeCode code="IM" codeSystem="2.16.840.1.113883.5.112"
								codeSystemName="RouteOfAdministration"
								displayName="Intramuscular injection"/>
							<doseQuantity value="1"/>
							<consumable>
								<manufacturedProduct>
									<templateId root="2.16.840.1.113883.10.20.1.53"/>
									<!-- Product template -->
									<manufacturedMaterial>
										<code code="33" codeSystem="2.16.840.1.113883.6.59"
											displayName="Pneumococcal polysaccharide vaccine">
											<originalText>Pneumococcal polysaccharide
											vaccine</originalText>
										</code>
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
						</substanceAdministration>
					</entry>
					<entry typeCode="DRIV">
						<substanceAdministration classCode="SBADM" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.24"/>
							<!-- Medication activity template -->
							<id root="261e94a0-95fb-4975-b5a5-c8e12c01c1bc"/>
							<statusCode code="completed"/>
							<effectiveTime xsi:type="IVL_TS">
								<center value="1997"/>
							</effectiveTime>
							<routeCode code="IM" codeSystem="2.16.840.1.113883.5.112"
								codeSystemName="RouteOfAdministration"
								displayName="Intramuscular injection"/>
							<doseQuantity value="1"/>
							<consumable>
								<manufacturedProduct>
									<templateId root="2.16.840.1.113883.10.20.1.53"/>
									<!-- Product template -->
									<manufacturedMaterial>
										<code code="09" codeSystem="2.16.840.1.113883.6.59"
											displayName="Tetanus and diphtheria toxoids">
											<originalText>Tetanus and diphtheria
											toxoids</originalText>
										</code>
									</manufacturedMaterial>
								</manufacturedProduct>
							</consumable>
						</substanceAdministration>
					</entry>
				</section>
			</component>

			<!--
********************************************************
Past Medical History  - Optional
********************************************************
			-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.2.9"/>
					<code code="11348-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
						displayName="HISTORY OF PAST ILLNESS"/>
					<title>Past Medical History</title>
					<text>No previous chest pain reported.</text>
					<entry>
						<observation classCode="OBS" moodCode="EVN">
							<code nullFlavor="NI"/>
						</observation>
					</entry>		
				</section>
			</component>

<!-- 
********************************************************
Procedures - Optional - Copy from CCD sample
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.12"/>
					<!-- Procedures section template -->
					<code code="47519-4" codeSystem="2.16.840.1.113883.6.1"/>
					<title>Procedures</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Procedure</th>
									<th>Date</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										<content ID="Proc1">Total hip replacement, left</content>
									</td>
									<td>1998</td>
								</tr>
							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<procedure classCode="PROC" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.29"/>
							<!-- Procedure activity template -->
							<id root="e401f340-7be2-11db-9fe1-0800200c9a66"/>
							<code code="52734007" codeSystem="2.16.840.1.113883.6.96"
								displayName="Total hip replacement">
								<originalText>
									<reference value="#Proc1"/>
								</originalText>
								<qualifier>
									<name code="272741003" displayName="Laterality"/>
									<value code="7771000" displayName="Left"/>
								</qualifier>
							</code>
							<statusCode code="completed"/>
							<effectiveTime value="1998"/>
							<participant typeCode="DEV">
								<participantRole classCode="MANU">
									<templateId root="2.16.840.1.113883.10.20.1.52"/>
									<!-- Product instance template -->
									<id root="03ca01b0-7be1-11db-9fe1-0800200c9a66"/>
									<scopingEntity nullFlavor="NI"/>
								</participantRole>
							</participant>
						</procedure>
					</entry>
				</section>
			</component>
<!--
********************************************************
Problems section - Optional - Copy from CCD sample
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.11"/>
					<!-- Problem section template -->
					<code code="11450-4" codeSystem="2.16.840.1.113883.6.1"/>
					<title>Problems</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr>
									<th>Condition</th>
									<th>Effective Dates</th>
									<th>Condition Status</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Asthma</td>
									<td>1950</td>
									<td>Active</td>
								</tr>
								<tr>
									<td>Pneumonia</td>
									<td>Jan 1997</td>
									<td>Resolved</td>
								</tr>
								<tr>
									<td>"</td>
									<td>Mar 1999</td>
									<td>Resolved</td>
								</tr>
								<tr>
									<td>Myocardial Infarction</td>
									<td>Jan 1997</td>
									<td>Resolved</td>
								</tr>
							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="6a2fa88d-4174-4909-aece-db44b60a3abb"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.28"/>
									<!-- Problem observation template -->
									<id root="d11275e7-67ae-11db-bd13-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime>
										<low value="1950"/>
									</effectiveTime>
									<value xsi:type="CD" code="195967001"
										codeSystem="2.16.840.1.113883.6.96" displayName="Asthma"/>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.50"/>
											<!-- Problem status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="55561003"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Active"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="ec8a6ff8-ed4b-4f7e-82c3-e98e58b45de7"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.28"/>
									<!-- Problem observation template -->
									<id root="ab1791b0-5c71-11db-b0de-0800200c9a66"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime>
										<low value="199701"/>
									</effectiveTime>
									<value xsi:type="CD" code="233604007"
										codeSystem="2.16.840.1.113883.6.96" displayName="Pneumonia"/>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.50"/>
											<!-- Problem status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="413322009"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Resolved"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="d11275e9-67ae-11db-bd13-0800200c9a66"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.28"/>
									<!-- Problem observation template -->
									<id root="9d3d416d-45ab-4da1-912f-4583e0632000"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime>
										<low value="199903"/>
									</effectiveTime>
									<value xsi:type="CD" code="233604007"
										codeSystem="2.16.840.1.113883.6.96" displayName="Pneumonia"/>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.50"/>
											<!-- Problem status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="413322009"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Resolved"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
							<entryRelationship typeCode="SUBJ" inversionInd="true">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.41"/>
									<!-- Episode observation template -->
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<value xsi:type="CD" code="404684003"
										codeSystem="2.16.840.1.113883.6.96"
										displayName="Clinical finding">
										<qualifier>
											<name code="246456000" displayName="Episodicity"/>
											<value code="288527008" displayName="New episode"/>
										</qualifier>
									</value>
									<entryRelationship typeCode="SAS">
										<act classCode="ACT" moodCode="EVN">
											<id root="ec8a6ff8-ed4b-4f7e-82c3-e98e58b45de7"/>
											<code nullFlavor="NA"/>
										</act>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
					<entry typeCode="DRIV">
						<act classCode="ACT" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.27"/>
							<!-- Problem act template -->
							<id root="5a2c903c-bd77-4bd1-ad9d-452383fbfefa"/>
							<code nullFlavor="NA"/>
							<entryRelationship typeCode="SUBJ">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.28"/>
									<!-- Problem observation template -->
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<effectiveTime>
										<low value="199701"/>
									</effectiveTime>
									<value xsi:type="CD" code="22298006"
										codeSystem="2.16.840.1.113883.6.96"
										displayName="Myocardial infarction"/>
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="EVN">
											<templateId root="2.16.840.1.113883.10.20.1.50"/>
											<!-- Problem status observation template -->
											<code code="33999-4" codeSystem="2.16.840.1.113883.6.1"
												displayName="Status"/>
											<statusCode code="completed"/>
											<value xsi:type="CE" code="413322009"
												codeSystem="2.16.840.1.113883.6.96"
												displayName="Resolved"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</act>
					</entry>
				</section>
			</component>

			<!--
********************************************************
Reason for Visit / Chief Complaint  - Optional
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.2.8"/>
					<code codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" code="46239-0"
						displayName="REASON FOR VISIT"/>
					<title>Reason for Visit</title>
					<text>
						<paragraph>Chest Pain.</paragraph>
					</text>
					<entry>
						<observation classCode="OBS" moodCode="EVN">
							<code nullFlavor="NI"/>
						</observation>
					</entry>
				</section>
			</component>
			<!--
********************************************************
Review of Systems  - Optional
********************************************************
-->

			<component>
				<section>
					<!-- IHE Review of Systems templateId -->
					<templateId root="1.3.6.1.4.1.19376.1.5.3.1.3.18"/>
					<code code="10187-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
						displayName="REVIEW OF SYSTEMS"/>
					<title>Review of Systems</title>
					<text>Review of systems otherwise negative.</text>
					<entry>
						<observation classCode="OBS" moodCode="EVN">
							<code nullFlavor="NI"/>
						</observation>
					</entry>
				</section>
			</component>
			<!--
********************************************************
Social History  - Optional - Copy from CCD sample
********************************************************
-->

			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.15"/> <!-- Social history section template -->
					<code code="29762-2" codeSystem="2.16.840.1.113883.6.1"/> 
					<title>Social History</title> 
					<text>
						<table border="1" width="100%">
							<thead>
								<tr><th>Social History Element</th><th>Description</th><th>Effective Dates</th></tr>
							</thead>
							<tbody>
								<tr><td>Cigarette smoking</td><td>1 pack per day</td><td>1947 - 1972</td></tr>
								<tr><td>"</td><td>None</td><td>1973 - </td></tr>
								<tr><td>Alcohol consumption</td><td>None</td><td>1973 - </td></tr>			
							</tbody>
						</table>
					</text>	
					<entry typeCode="DRIV">
						<observation classCode="OBS" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.33"/> <!-- Social history observation template -->
							<id root="9b56c25d-9104-45ee-9fa4-e0f3afaa01c1"/>
							<code code="230056004" codeSystem="2.16.840.1.113883.6.96" displayName="Cigarette smoking"/>
							<statusCode code="completed"/> 
							<effectiveTime><low value="1947"/><high value="1972"/></effectiveTime>
							<value xsi:type="ST">1 pack per day</value>
						</observation>
					</entry>	
					<entry typeCode="DRIV">
						<observation classCode="OBS" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.33"/> <!-- Social history observation template -->
							<id root="45efb604-7049-4a2e-ad33-d38556c9636c"/>
							<code code="230056004" codeSystem="2.16.840.1.113883.6.96" displayName="Cigarette smoking"/>
							<statusCode code="completed"/> 
							<effectiveTime><low value="1973"/></effectiveTime>
							<value xsi:type="ST">None</value>
							<entryRelationship typeCode="SUBJ" inversionInd="true">
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.41"/> <!-- Episode observation template -->
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
									<statusCode code="completed"/>
									<value xsi:type="CD" code="404684003" codeSystem="2.16.840.1.113883.6.96" displayName="Clinical finding">
										<qualifier>
											<name code="246456000" displayName="Episodicity"/>
											<value code="288527008" displayName="New episode"/>
										</qualifier>
									</value>
									<entryRelationship typeCode="SAS">
										<observation classCode="OBS" moodCode="EVN">
											<id root="9b56c25d-9104-45ee-9fa4-e0f3afaa01c1"/>
											<code code="230056004" codeSystem="2.16.840.1.113883.6.96" displayName="Cigarette smoking"/>
										</observation>
									</entryRelationship>
								</observation>
							</entryRelationship>
						</observation>
					</entry>	
					<entry typeCode="DRIV">
						<observation classCode="OBS" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.33"/> <!-- Social history observation template -->
							<id root="37f76c51-6411-4e1d-8a37-957fd49d2cef"/>
							<code code="160573003" codeSystem="2.16.840.1.113883.6.96" displayName="Alcohol consumption"/>
							<statusCode code="completed"/> 
							<effectiveTime><low value="1973"/></effectiveTime>
							<value xsi:type="ST">None</value>
						</observation>
					</entry>	
				</section>
			</component>

<!-- 
********************************************************
Vital Signs section - Optional - Copy from CCD sample
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.1.16"/> <!-- Vital signs section template -->
					<code code="871336-3" codeSystem="2.16.840.1.113883.6.1"/>
					<title>Vital Signs</title>
					<text>
						<table border="1" width="100%">
							<thead>
								<tr><th align="right">Date / Time: </th><th>Nov 14, 1999</th><th>April 7, 2000</th></tr>
							</thead>
							<tbody>
								<tr><th align="left">Height</th><td>177 cm</td><td>177 cm</td></tr>
								<tr><th align="left">Weight</th><td>86 kg</td><td>88 kg</td></tr>
								<tr><th align="left">Blood Pressure</th><td>132/86 mmHg</td><td>145/88 mmHg</td></tr>
							</tbody>
						</table>
					</text>
					<entry typeCode="DRIV">
						<organizer classCode="CLUSTER" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.35"/> <!-- Vital signs organizer template -->
							<id root="c6f88320-67ad-11db-bd13-0800200c9a66"/>
							<code code="46680005" codeSystem="2.16.840.1.113883.6.96" displayName="Vital signs"/>
							<statusCode code="completed"/>
							<effectiveTime value="19991114"/>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/> <!-- Result observation template -->
									<id root="c6f88321-67ad-11db-bd13-0800200c9a66"/>
									<code code="50373000" codeSystem="2.16.840.1.113883.6.96" displayName="Body height"/>
									<statusCode code="completed"/>
									<effectiveTime value="19991114"/>
									<value xsi:type="PQ" value="177" unit="cm"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
										<value xsi:type="IVL_PQ">
											<low value="160" unit="cm"/>
											<high value="190" unit="cm"/>
										</value>
									</observationRange>
									</referenceRange>
								</observation>
							</component>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/> <!-- Result observation template -->
									<id root="c6f88322-67ad-11db-bd13-0800200c9a66"/>
									<code code="27113001" codeSystem="2.16.840.1.113883.6.96" displayName="Body weight"/>
									<statusCode code="completed"/>
									<effectiveTime value="19991114"/>
									<value xsi:type="PQ" value="86" unit="kg"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="60" unit="kg"/>
												<high value="90" unit="kg"/>
											</value>
										</observationRange>
									</referenceRange>
								
								</observation>
							</component>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/> <!-- Result observation template -->
									<id root="c6f88323-67ad-11db-bd13-0800200c9a66"/>
									<code code="271649006" codeSystem="2.16.840.1.113883.6.96" displayName="Systolic BP"/>
									<statusCode code="completed"/>
									<effectiveTime value="19991114"/>
									<value xsi:type="PQ" value="132" unit="mm[Hg]"/>
									<interpretationCode code="L" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="135" unit="meq/l"/>
												<high value="145" unit="meq/l"/>
											</value>
										</observationRange>
									</referenceRange>
								</observation>
							</component>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/> <!-- Result observation template -->
									<id root="c6f88324-67ad-11db-bd13-0800200c9a66"/>
									<code code="271650006" codeSystem="2.16.840.1.113883.6.96" displayName="Diastolic BP"/>
									<statusCode code="completed"/>
									<effectiveTime value="19991114"/>
									<value xsi:type="PQ" value="86" unit="mm[Hg]"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="60" unit="meq/l"/>
												<high value="90" unit="meq/l"/>
											</value>
										</observationRange>
									</referenceRange>
								
								</observation>
							</component>
						</organizer>
					</entry>
					<entry typeCode="DRIV">
						<organizer classCode="CLUSTER" moodCode="EVN">
							<templateId root="2.16.840.1.113883.10.20.1.35"/> <!-- Vital signs organizer template -->
							<id root="d11275e0-67ae-11db-bd13-0800200c9a66"/>
							<code code="46680005" codeSystem="2.16.840.1.113883.6.96" displayName="Vital signs"/>
							<statusCode code="completed"/>
							<effectiveTime value="20000407"/>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/> <!-- Result observation template -->
									<id root="d11275e1-67ae-11db-bd13-0800200c9a66"/>
									<code code="50373000" codeSystem="2.16.840.1.113883.6.96" displayName="Body height"/>
									<statusCode code="completed"/>
									<effectiveTime value="20000407"/>
									<value xsi:type="PQ" value="177" unit="cm"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="160" unit="cm"/>
												<high value="190" unit="cm"/>
											</value>
										</observationRange>
									</referenceRange>
								
								</observation>
							</component>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/> <!-- Result observation template -->
									<id root="d11275e2-67ae-11db-bd13-0800200c9a66"/>
									<code code="27113001" codeSystem="2.16.840.1.113883.6.96" displayName="Body weight"/>
									<statusCode code="completed"/>
									<effectiveTime value="20000407"/>
									<value xsi:type="PQ" value="88" unit="kg"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="60" unit="kg"/>
												<high value="90" unit="kg"/>
											</value>
										</observationRange>
									</referenceRange>
								</observation>
							</component>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/> <!-- Result observation template -->
									<id root="d11275e3-67ae-11db-bd13-0800200c9a66"/>
									<code code="271649006" codeSystem="2.16.840.1.113883.6.96" displayName="Systolic BP"/>
									<statusCode code="completed"/>
									<effectiveTime value="20000407"/>
									<value xsi:type="PQ" value="145" unit="mm[Hg]"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="135" unit="meq/l"/>
												<high value="145" unit="meq/l"/>
											</value>
										</observationRange>
									</referenceRange>
								
								</observation>
							</component>
							<component>
								<observation classCode="OBS" moodCode="EVN">
									<templateId root="2.16.840.1.113883.10.20.1.31"/> <!-- Result observation template -->
									<id root="d11275e4-67ae-11db-bd13-0800200c9a66"/>
									<code code="271650006" codeSystem="2.16.840.1.113883.6.96" displayName="Diastolic BP"/>
									<statusCode code="completed"/>
									<effectiveTime value="20000407"/>
									<value xsi:type="PQ" value="88" unit="mm[Hg]"/>
									<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
									<referenceRange>
										<observationRange>
											<value xsi:type="IVL_PQ">
												<low value="60" unit="meq/l"/>
												<high value="90" unit="meq/l"/>
											</value>
										</observationRange>
									</referenceRange>
								</observation>
							</component>
						</organizer>
					</entry>
				</section>
			</component>
		</structuredBody>
	</component>
</ClinicalDocument>
