<root  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="urn:hl7-org:v3 ../../C-CDA%20rules/infrastructure/cda/CDA_SDTC.xsd"
	xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc">
<!-- 
********************************************************
Results section
********************************************************

Note:  In EMERGE DB, all results are laboratory test results that are assigned to a specific Lab Category.
	For example, HDL, LDL, Total Ch and Triglycerides are all grouped under Lipid Panel.
Each lab test is associated with one, and only one, LabCategory.
Lab tests can further be organized as "BATTERY" or "CLUSTERS" aka. classCode (CONF:7121, C-CDA IG page 503).
	For example, HDL, LDL, Total Ch and Triglycerides are BATTERY of Lab Category "Lipid Panels" because these tests
	are executed together,  whereas HIV and Chlamydia tests are CLUSTERS since these tests need not be executed
	together but are categorized under same lab category ("Microbiology") and may be reported on same Lab Report.

The following list shows ALL Laboratory tests available in EMERGE db and how they correspond to Labcategories,
and whether such tests are considered CLUSTER or BATTERY in EMERGE db:

TEST	LabCATEGORY classCode
HbA1c test	Blood Chemistry CLUSTER
Prostate Specific Antigen Test	Blood Chemistry CLUSTER
Pap Test	Cytology	CLUSTER
FOBT	FOBT CLUSTER
High Density Lipoprotein (HDL)	Lipid Panel  	BATTERY
Low Density Lipoprotein (LDL)	Lipid Panel BATTERY
Total Cholesterol	Lipid Panel BATTERY
Triglycerides	Lipid Panel BATTERY
Chlamydia Screening	Microbiology CLUSTER
Group A Streptococcus Test	Microbiology CLUSTER
Gleason Score	Pathology CLUSTER
Gleason Score <=6	Pathology CLUSTER
HIV Screening	Serology CLUSTER
Pregnancy Test	Serology CLUSTER
Rh Status Baby	Serology CLUSTER
Rh Status Mother	Serology CLUSTER
Urine Macroalbumin	Urinalysis CLUSTER

Note that laboratories may sometimes differ in terms of what they consider BATTERY as opposed to CLUSTER for soem tests;
 depending on method that is used to execute such lab tests.

The <entry> tags for Results section (further below after narrative <text> tags) are organized based on the following rule:
(1) All tests belonging to the same Lab Category are grouped as <components> under one <entry> having one <organizer>.
	For example, HDL LDL, Total Ch and TG are declared as 4 <components> belonging to one <entry>, having one <organizer>
(2) In cases where patient has two lipid panels performed on two different dates, such case will result in two <entry> tags,
	each <entry> tag having one <organizer> and 4 <components>.

Note that C-CDA schema explicitly allows one, and only one, <organizer> per <entry> (CONF:7113, C-CDA IG page 288).

-->
			<component>
				<section>
					<!-- conforms to Results section with entries optional -->
					<templateId root="2.16.840.1.113883.10.20.22.2.3"/>
					<!-- Results section with entries required -->
					<templateId root="2.16.840.1.113883.10.20.22.2.3.1"/>
					<code code="30954-2" codeSystem="2.16.840.1.113883.6.1"
						codeSystemName="LOINC" displayName="Results"/>
					<title>Results</title>
					<text>

			<table>
				<thead>
					<tr>
						<th>Group Description</th>
						<th>Code System</th>
						<th>Code</th>
						<th>Code Description</th>
						<th>Value</th>
						<th>Unit</th>
						<th>Reference Range</th>
						<th>Date and Time</th>
						<th>Status</th>
					</tr>
				</thead>
				<tbody>
											<tr>
							<td>FOBT</td>
							<td>LOINC</td>
							<td>2335-8</td>
							<td><content ID="Result1"/>Hemoccult Stl Ql</td>
							<td>negative</td>
							<td></td>
							<td>NA</td>
							<td>03-31-2010 10:00:00</td>
							<td>Completed</td>
						</tr>
							<tr>
								<td/>
								<td>CPT</td>
								<td>82274</td>
								<td>Assay test for blood, fecal</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
							<tr>
								<td/>
								<td>HCPCS</td>
								<td>G0328</td>
								<td>Fecal blood scrn immunoassay</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
							<tr>
								<td/>
								<td>ICD-9-CM</td>
								<td>V76.51</td>
								<td>Special screening for malignant neoplasms of colon</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
							<tr>
								<td/>
								<td>SNOMED-CT</td>
								<td>252156002</td>
								<td>Occult blood screening</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
						<tr>
							<td>High Density Lipoprotein (HDL)</td>
							<td>LOINC</td>
							<td>14646-4</td>
							<td><content ID="Result2"/>HDLc SerPl-sCnc</td>
							<td>54</td>
							<td>mg/dL</td>
							<td>&gt;=40 mg/dL</td>
							<td>03-31-2010 10:00:00</td>
							<td>Completed</td>
						</tr>
							<tr>
								<td/>
								<td>CPT</td>
								<td>83701</td>
								<td>Lipoprotein bld, hr fraction</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
							<tr>
								<td/>
								<td>SNOMED-CT</td>
								<td>28036006</td>
								<td>High density lipoprotein cholesterol measurement</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
						<tr>
							<td>Low Density Lipoprotein (LDL)</td>
							<td>LOINC</td>
							<td>2089-1</td>
							<td><content ID="Result3"/>LDLc SerPl-mCnc</td>
							<td>113.2</td>
							<td>mg/dL</td>
							<td>&lt;130 mg/dL (calc)</td>
							<td>03-31-2010 10:00:00</td>
							<td>Completed</td>
						</tr>
							<tr>
								<td/>
								<td>CPT</td>
								<td>83721</td>
								<td>Assay of blood lipoprotein</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
							<tr>
								<td/>
								<td>SNOMED-CT</td>
								<td>113079009</td>
								<td>Low density lipoprotein cholesterol measurement</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
						<tr>
							<td>Total Cholesterol</td>
							<td>LOINC</td>
							<td>2093-3</td>
							<td><content ID="Result4"/>Cholest SerPl-mCnc</td>
							<td>186</td>
							<td>mg/dL</td>
							<td>125-200 mg/dL</td>
							<td>03-31-2010 10:00:00</td>
							<td>Completed</td>
						</tr>
							<tr>
								<td/>
								<td>CPT</td>
								<td>82465</td>
								<td>Assay, bld/serum cholesterol</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
							<tr>
								<td/>
								<td>SNOMED-CT</td>
								<td>121868005</td>
								<td>Total cholesterol measurement</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
						<tr>
							<td>Triglycerides</td>
							<td>LOINC</td>
							<td>12951-0</td>
							<td><content ID="Result5"/>Trigl SerPl Calc-mCnc</td>
							<td>94</td>
							<td>mg/dL</td>
							<td>10-39 years: 55-110 mg/dL | 40-59 years: 70-150 mg/dL | &gt;60 years: 80-150 mg/dL | Therapeutic Target: &lt;100 mg/dL </td>
							<td>03-31-2010 10:00:00</td>
							<td>Completed</td>
						</tr>
							<tr>
								<td/>
								<td>CPT</td>
								<td>84478</td>
								<td>Assay of triglycerides</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
							<tr>
								<td/>
								<td>SNOMED-CT</td>
								<td>14740000</td>
								<td>Triglycerides measurement</td>
								<td/>
								<td/>
								<td/>
								<td/>
								<td/>
							</tr>
				</tbody>
			</table>					</text>
						
							<entry typeCode="DRIV">
								<organizer classCode="CLUSTER" moodCode="EVN">
									<!-- ** Result organizer ** -->
									<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
									<id root="7d5a02b0-67a4-11db-bd13-0800200c9a66"/>
									<code xsi:type="CE" code="167670005" displayName="FOBT"
										codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED-CT"/>
									<statusCode code="completed"/>
								<component>
									<observation classCode="OBS" moodCode="EVN">
										<!-- ** Result observation ** -->
										<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
										<id root="107c2dc0-67a5-11db-bd13-0800200c9a66"/>
										<code xsi:type="CE" code="2335-8" displayName="Hemoccult Stl Ql"
											codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC">
											<!-- ** Translations from LOINC to other coding systems (standard or local) ** -->
												<translation code="82274" codeSystem="2.16.840.1.113883.6.12"
													displayName="Assay test for blood, fecal" codeSystemName="CPT"/>
												<translation code="G0328" codeSystem="2.16.840.1.113883.6.13"
													displayName="Fecal blood scrn immunoassay" codeSystemName="HCPCS"/>
												<translation code="V76.51" codeSystem="2.16.840.1.113883.6.103"
													displayName="Special screening for malignant neoplasms of colon" codeSystemName="ICD-9-CM"/>
												<translation code="252156002" codeSystem="2.16.840.1.113883.6.96"
													displayName="Occult blood screening" codeSystemName="SNOMED-CT"/>
										</code>
										<statusCode code="completed"/>
										<effectiveTime value="20100331100000"/>
										<value xsi:type="CD" code="c" displayName="negative" codeSystem="2.16.840.1.113883.6.96" codeSystemName=" SNOMED-CT"/>
										<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
										<referenceRange>
											<observationRange>
												<text>NA</text>
											</observationRange>
										</referenceRange>
									</observation>
								</component>
								</organizer>
							</entry>
							<entry typeCode="DRIV">
							<organizer classCode="BATTERY" moodCode="EVN">
								<!-- ** Result organizer ** -->
								<templateId root="2.16.840.1.113883.10.20.22.4.1"/>
								<id root="7d5a02b0-67a4-11db-bd13-0800200c9a66"/>
								<code xsi:type="CE" code="16254007" displayName="Lipid Panel"
									codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED-CT"/>
								<statusCode code="completed"/>
								<component>
									<observation classCode="OBS" moodCode="EVN">
										<!-- ** Result observation ** -->
										<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
										<id root="107c2dc0-67a5-11db-bd13-0800200c9a66"/>
										<code xsi:type="CE" code="14646-4" displayName="HDLc SerPl-sCnc"
											codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC">
											<!-- ** Translations from LOINC to other coding systems (standard or local) ** -->
												<translation code="83701" codeSystem="2.16.840.1.113883.6.12"
													displayName="Lipoprotein bld, hr fraction" codeSystemName="CPT"/>
												<translation code="28036006" codeSystem="2.16.840.1.113883.6.96"
													displayName="High density lipoprotein cholesterol measurement" codeSystemName="SNOMED-CT"/>
										</code>
										<statusCode code="completed"/>
										<effectiveTime value="20100331100000"/>
										<value xsi:type="PQ" value="54" unit="mg/dL"/>
										<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
										<referenceRange>
											<observationRange>
												<text>&gt;=40 mg/dL</text>
											</observationRange>
										</referenceRange>
									</observation>
								</component>
								<component>
									<observation classCode="OBS" moodCode="EVN">
										<!-- ** Result observation ** -->
										<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
										<id root="107c2dc0-67a5-11db-bd13-0800200c9a66"/>
										<code xsi:type="CE" code="2089-1" displayName="LDLc SerPl-mCnc"
											codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC">
											<!-- ** Translations from LOINC to other coding systems (standard or local) ** -->
												<translation code="83721" codeSystem="2.16.840.1.113883.6.12"
													displayName="Assay of blood lipoprotein" codeSystemName="CPT"/>
												<translation code="113079009" codeSystem="2.16.840.1.113883.6.96"
													displayName="Low density lipoprotein cholesterol measurement" codeSystemName="SNOMED-CT"/>
										</code>
										<statusCode code="completed"/>
										<effectiveTime value="20100331100000"/>
										<value xsi:type="PQ" value="113.2" unit="mg/dL"/>
										<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
										<referenceRange>
											<observationRange>
												<text>&lt;130 mg/dL (calc)</text>
											</observationRange>
										</referenceRange>
									</observation>
								</component>
								<component>
									<observation classCode="OBS" moodCode="EVN">
										<!-- ** Result observation ** -->
										<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
										<id root="107c2dc0-67a5-11db-bd13-0800200c9a66"/>
										<code xsi:type="CE" code="2093-3" displayName="Cholest SerPl-mCnc"
											codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC">
											<!-- ** Translations from LOINC to other coding systems (standard or local) ** -->
												<translation code="82465" codeSystem="2.16.840.1.113883.6.12"
													displayName="Assay, bld/serum cholesterol" codeSystemName="CPT"/>
												<translation code="121868005" codeSystem="2.16.840.1.113883.6.96"
													displayName="Total cholesterol measurement" codeSystemName="SNOMED-CT"/>
										</code>
										<statusCode code="completed"/>
										<effectiveTime value="20100331100000"/>
										<value xsi:type="PQ" value="186" unit="mg/dL"/>
										<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
										<referenceRange>
											<observationRange>
												<text>125-200 mg/dL</text>
											</observationRange>
										</referenceRange>
									</observation>
								</component>
								<component>
									<observation classCode="OBS" moodCode="EVN">
										<!-- ** Result observation ** -->
										<templateId root="2.16.840.1.113883.10.20.22.4.2"/>
										<id root="107c2dc0-67a5-11db-bd13-0800200c9a66"/>
										<code xsi:type="CE" code="12951-0" displayName="Trigl SerPl Calc-mCnc"
											codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC">
											<!-- ** Translations from LOINC to other coding systems (standard or local) ** -->
												<translation code="84478" codeSystem="2.16.840.1.113883.6.12"
													displayName="Assay of triglycerides" codeSystemName="CPT"/>
												<translation code="14740000" codeSystem="2.16.840.1.113883.6.96"
													displayName="Triglycerides measurement" codeSystemName="SNOMED-CT"/>
										</code>
										<statusCode code="completed"/>
										<effectiveTime value="20100331100000"/>
										<value xsi:type="PQ" value="94" unit="mg/dL"/>
										<interpretationCode code="N" codeSystem="2.16.840.1.113883.5.83"/>
										<referenceRange>
											<observationRange>
												<text>10-39 years: 55-110 mg/dL | 40-59 years: 70-150 mg/dL | &gt;60 years: 80-150 mg/dL | Therapeutic Target: &lt;100 mg/dL </text>
											</observationRange>
										</referenceRange>
									</observation>
								</component>
						</organizer>
					</entry>
				</section>
			</component>
			<!-- 
********************************************************
Social History section
********************************************************
-->
			<component>
				<section>
					<templateId root="2.16.840.1.113883.10.20.22.2.17"/>
					<!-- Social history section template -->
					<code code="29762-2" codeSystem="2.16.840.1.113883.6.1"
						codeSystemName="LOINC"
						displayName="Social History"/>
					<title>Social History</title>
					<text>

			<table>
				<thead>
					<tr>
						<th>Group Description</th>
						<th>Code System</th>
						<th>Code</th>
						<th>Code Description</th>
						<th>Date and Time</th>
						<th>Status</th>
					</tr>
				</thead>
				<tbody>
											<tr>
							<td>Tobacco Use</td>
							<td>SNOMED-CT</td>
							<td>266919005</td>
							<td><content ID="SocialHistory1"/>Never smoker (Never Smoked)</td>
							<td>03-31-2010 10:00:00</td>
							<td>Active</td>
						</tr>
							<tr>
								<td/>
								<td>SNOMED-CT</td>
								<td>449868002</td>
								<td>Current every day smoker</td>
								<td/>
								<td/>
							</tr>
				</tbody>
			</table>					</text>
						<entry typeCode="DRIV">
							<observation classCode="OBS" moodCode="EVN">
									<!-- ** Smoking status observation ** -->
									<templateId root="2.16.840.1.113883.10.20.22.4.78"/>
									<id extension="123456789" root="2.16.840.1.113883.19"/>
									<code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4">
										<originalText>
											Tobacco Use + Never smoker (Never Smoked)
											<reference value="#SocialHistory1" />
										</originalText>
									</code>
									<statusCode code="completed"/>
									<effectiveTime>
										<low value="20100331100000"/>
									</effectiveTime>
								<value xsi:type="CD" code="266919005" codeSystem="2.16.840.1.113883.6.96"
									displayName="Never smoker (Never Smoked)" codeSystemName="SNOMED-CT">
										<translation code="449868002" codeSystem="2.16.840.1.113883.6.96"
											displayName="Current every day smoker" codeSystemName="SNOMED-CT"/>
								</value>
							</observation>
						</entry>
				</section>
			</component>

</root>
