package gov.samhsa.acs.dss.wsclient; import static org.junit.Assert.assertTrue; import gov.samhsa.acs.common.tool.SimpleMarshallerImpl; import gov.samhsa.acs.common.tool.exception.SimpleMarshallerException; import gov.samhsa.acs.dss.ws.schema.DSSRequest; import gov.samhsa.acs.dss.ws.schema.DSSResponse; import gov.samhsa.consent2share.commonunit.xml.XmlComparator; import java.io.IOException; import java.util.LinkedList; import java.util.List; import java.util.Scanner; import java.util.UUID; import org.custommonkey.xmlunit.DetailedDiff; import org.junit.Before; import org.junit.Test; import org.xml.sax.SAXException; public class DSSWebServiceClientIT { private static final String HOST = "localhost"; private static final String PORT = "8080"; private static final String SERVICE_PATH = "Pep/services/DSS"; private static final String ORIGINAL_C32_XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><?xml-stylesheet href=\"http://obhita.org/CDA.xsl\" type=\"text/xsl\"?><ClinicalDocument xmlns=\"urn:hl7-org:v3\" xmlns:hl7=\"urn:hl7-org:v3\" xmlns:sdtc=\"urn:hl7-org:sdtc\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 schema/cdar2c32/infrastructure/cda/C32_CDA.xsd\"><realmCode code=\"US\"/><typeId extension=\"POCD_HD000040\" root=\"2.16.840.1.113883.1.3\"/><templateId assigningAuthorityName=\"CDA/R2\" root=\"2.16.840.1.113883.3.27.1776\"/><templateId assigningAuthorityName=\"HL7/CDT Header\" root=\"2.16.840.1.113883.10.20.3\"/><templateId assigningAuthorityName=\"IHE/PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.1.1\"/><templateId assigningAuthorityName=\"HITSP/C32\" root=\"2.16.840.1.113883.3.88.11.32.1\"/><id assigningAuthorityName=\"FEI Systems Inc.\" root=\"2.16.840.1.113883.3.72\"/><code code=\"34133-9\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Summarization of episode note\"/><title>Summarization of episode note</title><effectiveTime value=\"201403071148\" xsi:type=\"IVL_TS\"/><confidentialityCode code=\"N\"/><languageCode code=\"en-US\"/><recordTarget><patientRole><id assigningAuthorityName=\"2.16.840.1.113883.4.357\" extension=\"d3bb3930-7241-11e3-b4f7-00155d3a2124\" root=\"2.16.840.1.113883.4.357\"/><addr><streetAddressLine>7175 Columbia Gateway Drive</streetAddressLine><city>Columbia</city><state>Maryland</state><postalCode>21046</postalCode></addr><telecom value=\"555-255-5454\"/><patient><name><family>Patientone</family><given>Asample</given></name><administrativeGenderCode code=\"M\" codeSystem=\"2.16.840.1.113883.5.1\" codeSystemName=\"HL7 AdministrativeGender\" displayName=\"Male\"/><birthTime value=\"19710510\"/><maritalStatusCode nullFlavor=\"UNK\"/><religiousAffiliationCode nullFlavor=\"UNK\"/><raceCode nullFlavor=\"UNK\"/><ethnicGroupCode nullFlavor=\"UNK\"/><birthplace nullFlavor=\"UNK\"><place><addr><streetAddressLine/><city/><state/><postalCode/></addr></place></birthplace><languageCommunication><templateId assigningAuthorityName=\"HITSP/C83\" root=\"2.16.840.1.113883.3.88.11.83.2\"/><templateId assigningAuthorityName=\"IHE/PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.2.1\"/><languageCode code=\"en-US\"/></languageCommunication></patient></patientRole></recordTarget><author><time value=\"20000407130000+0500\"/><assignedAuthor><id assigningAuthorityName=\"NPI\" extension=\"1114252178\" nullFlavor=\"UNK\" root=\"2.16.840.1.113883.4.6\"/><addr/><telecom/><assignedPerson><name><family>family</family><given>given</given><prefix>prefix</prefix></name></assignedPerson></assignedAuthor></author><custodian><assignedCustodian><representedCustodianOrganization><id extension=\"100010020002\" root=\"00000000-0000-0000-0000-000000000000\"/><name>Safe Harbor Enterprises</name><telecom nullFlavor=\"NI\"/><addr nullFlavor=\"NI\"/></representedCustodianOrganization></assignedCustodian></custodian><component><structuredBody><component><section><templateId assigningAuthorityName=\"HITSP/C83\" root=\"2.16.840.1.113883.3.88.11.83.103\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.3.6\"/><templateId assigningAuthorityName=\"HL7 CCD\" root=\"2.16.840.1.113883.10.20.1.11\"/><code code=\"11450-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Problem list\"/><title>Problems</title><text><table border=\"1\" width=\"100%\"><thead><tr><th>Problem Name</th><th>Problem Code</th><th>Effective Dates</th><th>Problem Status</th></tr></thead><tbody><tr ID=\"d17e240\"><td>Diabetes mellitus type 2 (disorder)</td><td>44054006</td><td/><td>Resolved</td></tr><tr ID=\"d17e263\"><td>Asthma (disorder)</td><td>195967001</td><td/><td>Inactive</td></tr><tr ID=\"d17e286\"><td>Coronary artery atheroma (disorder)</td><td>67682002</td><td/><td>Inactive</td></tr><tr ID=\"d17e309\"><td>Hyperlipidemia (disorder)</td><td>55822004</td><td/><td>Active</td></tr><tr ID=\"d17e332\"><td>Hypertension associated with transplantation (disorder)</td><td>427889009</td><td/><td>Active</td></tr><tr ID=\"d17e356\"><td>Acute HIV</td><td>111880001</td><td/><td>Active</td></tr><tr ID=\"d17e379\"><td>Substance Abuse Disorder</td><td>66214007</td><td/><td>Active</td></tr></tbody></table></text><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"d17e240\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"1\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"d17e240\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/><text><reference value=\"d17e240\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value code=\"44054006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Diabetes mellitus type 2 (disorder)\" xsi:type=\"CD\"/><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value code=\"413322009\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Resolved\" xsi:type=\"CD\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"d17e263\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"1\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"d17e263\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/><text><reference value=\"d17e263\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value code=\"195967001\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Asthma (disorder)\" xsi:type=\"CD\"/><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value code=\"73425007\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Inactive\" xsi:type=\"CD\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"d17e286\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"1\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"d17e286\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/><text><reference value=\"d17e286\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value code=\"67682002\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Coronary artery atheroma (disorder)\" xsi:type=\"CD\"/><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value code=\"73425007\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Inactive\" xsi:type=\"CD\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"d17e309\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"1\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"d17e309\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/><text><reference value=\"d17e309\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value code=\"55822004\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Hyperlipidemia (disorder)\" xsi:type=\"CD\"/><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Active\" xsi:type=\"CD\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"d17e332\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"1\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"d17e332\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/><text><reference value=\"d17e332\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value code=\"427889009\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Hypertension associated with transplantation (disorder)\" xsi:type=\"CD\"/><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Active\" xsi:type=\"CD\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"d17e356\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"1\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"d17e356\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/><text><reference value=\"d17e356\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value code=\"111880001\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Acute HIV\" xsi:type=\"CD\"/><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Active\" xsi:type=\"CD\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"d17e379\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"1\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"d17e379\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/><text><reference value=\"d17e379\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value code=\"66214007\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Substance Abuse Disorder\" xsi:type=\"CD\"/><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Active\" xsi:type=\"CD\"/></observation></entryRelationship></observation></entryRelationship></act></entry></section></component><component><section><templateId assigningAuthorityName=\"HITSP/C83\" root=\"2.16.840.1.113883.3.88.11.83.112\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.3.19\"/><templateId assigningAuthorityName=\"HL7 CCD\" root=\"2.16.840.1.113883.10.20.1.8\"/><code code=\"10160-0\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"History of medication use\"/><title>Medications</title><text><table border=\"1\" width=\"100%\"><thead><tr><th>RxNorm Code</th><th>Product</th><th>Generic Name</th><th>Brand Name</th><th>Dose</th><th>Form</th><th>Route</th><th>Frequency</th><th>Patient Instructions</th><th>Status</th><th>Date Started</th></tr></thead><tbody><tr ID=\"d17e143\"><td>993536</td><td>Medication</td><td>bupropion hydrochloride 200 MG 12 HR Extended Release Tablet [993536]</td><td/><td/><td/><td/><td>Two times a day</td><td/><td>Active</td><td>September 14, 2011 </td></tr><tr ID=\"d17e190\"><td>199663</td><td>Medication</td><td>Zidovudine 300 MG Oral Tablet [199663]</td><td/><td/><td/><td/><td>Two times a day</td><td/><td>Active</td><td>October 14, 2011 </td></tr></tbody></table></text><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.8\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.24\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\"/><id root=\"d17e143\"/><code code=\"10160-0\" codeSystem=\"2.16.840.1.113883.6.1\"/><text><reference value=\"d17e143\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20110914\"/><high nullFlavor=\"UNK\"/></effectiveTime><routeCode nullFlavor=\"UNK\"/><doseQuantity nullFlavor=\"UNK\"/><administrationUnitCode nullFlavor=\"UNK\"/><consumable><manufacturedProduct><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.8.2\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.53\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\"/><manufacturedMaterial><code code=\"993536\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\" displayName=\"bupropion hydrochloride 200 MG 12 HR Extended Release Tablet [993536]\"><originalText>bupropion hydrochloride 200 MG 12 HR Extended Release Tablet [993536]<reference/></originalText></code><name/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.8.1\"/><code code=\"329505003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.49\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3\"/><code code=\"PINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text><reference value=\"PntrtoSectionText\"/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.43\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3.1\"/><code code=\"FINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text><reference/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Status\"/><value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\" xsi:type=\"CE\"/></observation></entryRelationship></substanceAdministration></entry><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.8\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.24\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\"/><id root=\"d17e190\"/><code code=\"10160-0\" codeSystem=\"2.16.840.1.113883.6.1\"/><text><reference value=\"d17e190\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20111014\"/><high nullFlavor=\"UNK\"/></effectiveTime><routeCode nullFlavor=\"UNK\"/><doseQuantity nullFlavor=\"UNK\"/><administrationUnitCode nullFlavor=\"UNK\"/><consumable><manufacturedProduct><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.8.2\"/><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.53\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\"/><manufacturedMaterial><code code=\"199663\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\" displayName=\"Zidovudine 300 MG Oral Tablet [199663]\"><originalText>Zidovudine 300 MG Oral Tablet [199663]<reference/></originalText></code><name/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.8.1\"/><code code=\"329505003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.49\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3\"/><code code=\"PINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text><reference value=\"PntrtoSectionText\"/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.43\"/><templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3.1\"/><code code=\"FINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text><reference/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Status\"/><value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\" xsi:type=\"CE\"/></observation></entryRelationship></substanceAdministration></entry></section></component></structuredBody></component></ClinicalDocument>"; private static final String EXPECTED_SEGMENTED_C32_XML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ClinicalDocument xmlns=\"urn:hl7-org:v3\" xmlns:hl7=\"urn:hl7-org:v3\" xmlns:sdtc=\"urn:hl7-org:sdtc\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 schema/cdar2c32/infrastructure/cda/C32_CDA.xsd\"> <realmCode code=\"US\"/> <typeId extension=\"POCD_HD000040\" root=\"2.16.840.1.113883.1.3\"/> <templateId assigningAuthorityName=\"CDA/R2\" root=\"2.16.840.1.113883.3.27.1776\"/> <templateId assigningAuthorityName=\"HL7/CDT Header\" root=\"2.16.840.1.113883.10.20.3\"/> <templateId assigningAuthorityName=\"IHE/PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.1.1\"/> <templateId assigningAuthorityName=\"HITSP/C32\" root=\"2.16.840.1.113883.3.88.11.32.1\"/> <id assigningAuthorityName=\"FEI Systems Inc.\" root=\"2.16.840.1.113883.3.72\"/> <code code=\"34133-9\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Summarization of episode note\"/> <title>Summarization of episode note</title> <effectiveTime value=\"201405291155\" xsi:type=\"IVL_TS\"/> <confidentialityCode xmlns:ds4p=\"http://www.siframework.org/ds4p\" code=\"R\" codeSystem=\"2.16.840.1.113883.5.25\"/> <languageCode code=\"en-US\"/> <recordTarget> <patientRole> <id assigningAuthorityName=\"2.16.840.1.113883.4.357\" extension=\"d3bb3930-7241-11e3-b4f7-00155d3a2124\" root=\"2.16.840.1.113883.4.357\"/> <addr> <streetAddressLine>7175 Columbia Gateway Drive</streetAddressLine> <city>Columbia</city> <state>Maryland</state> <postalCode>21046</postalCode> </addr> <telecom value=\"555-255-5454\"/> <patient> <name> <family>Patientone</family> <given>Asample</given> </name> <administrativeGenderCode code=\"M\" codeSystem=\"2.16.840.1.113883.5.1\" codeSystemName=\"HL7 AdministrativeGender\" displayName=\"Male\"/> <birthTime value=\"19710510\"/> <maritalStatusCode nullFlavor=\"UNK\"/> <religiousAffiliationCode nullFlavor=\"UNK\"/> <raceCode nullFlavor=\"UNK\"/> <ethnicGroupCode nullFlavor=\"UNK\"/> <birthplace nullFlavor=\"UNK\"> <place> <addr> <streetAddressLine/> <city/> <state/> <postalCode/> </addr> </place> </birthplace> <languageCommunication> <templateId assigningAuthorityName=\"HITSP/C83\" root=\"2.16.840.1.113883.3.88.11.83.2\"/> <templateId assigningAuthorityName=\"IHE/PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.2.1\"/> <languageCode code=\"en-US\"/> </languageCommunication> </patient> </patientRole> </recordTarget> <author> <time value=\"20000407130000+0500\"/> <assignedAuthor> <id assigningAuthorityName=\"NPI\" extension=\"1114252178\" nullFlavor=\"UNK\" root=\"2.16.840.1.113883.4.6\"/> <addr/> <telecom/> <assignedPerson> <name> <family>family</family> <given>given</given> <prefix>prefix</prefix> </name> </assignedPerson> </assignedAuthor> </author> <custodian> <assignedCustodian> <representedCustodianOrganization> <id extension=\"100010020002\" root=\"00000000-0000-0000-0000-000000000000\"/> <name>Safe Harbor Enterprises</name> <telecom nullFlavor=\"NI\"/> <addr nullFlavor=\"NI\"/> </representedCustodianOrganization> </assignedCustodian> </custodian> <component> <structuredBody> <component> <section> <templateId assigningAuthorityName=\"HITSP/C83\" root=\"2.16.840.1.113883.3.88.11.83.103\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.3.6\"/> <templateId assigningAuthorityName=\"HL7 CCD\" root=\"2.16.840.1.113883.10.20.1.11\"/> <code code=\"11450-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Problem list\"/> <title>Problems</title> <text> <table border=\"1\" width=\"100%\"> <thead> <tr> <th>Problem Name</th> <th>Problem Code</th> <th>Effective Dates</th> <th>Problem Status</th> </tr> </thead> <tbody> <tr ID=\"d17e240\"> <td>Diabetes mellitus type 2 (disorder)</td> <td>44054006</td> <td/> <td>Resolved</td> </tr> <tr ID=\"d17e263\"> <td>Asthma (disorder)</td> <td>195967001</td> <td/> <td>Inactive</td> </tr> <tr ID=\"d17e286\"> <td>Coronary artery atheroma (disorder)</td> <td>67682002</td> <td/> <td>Inactive</td> </tr> <tr ID=\"d17e309\"> <td>Hyperlipidemia (disorder)</td> <td>55822004</td> <td/> <td>Active</td> </tr> <tr ID=\"d17e332\"> <td>Hypertension associated with transplantation (disorder)</td> <td>427889009</td> <td/> <td>Active</td> </tr> <tr ID=\"d17e356\"> <td/> <td/> <td/> <td>Active</td> </tr> <tr ID=\"d17e379\"> <td>Substance Abuse Disorder</td> <td>66214007</td> <td/> <td>Active</td> </tr> </tbody> </table> </text> <confidentialityCode xmlns:ds4p=\"http://www.siframework.org/ds4p\" code=\"R\" codeSystem=\"2.16.840.1.113883.5.25\"/> <entry typeCode=\"DRIV\"> <act classCode=\"ACT\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/> <id root=\"d17e240\"/> <code nullFlavor=\"NA\"/> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"> <sequenceNumber value=\"1\"/> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/> <id root=\"d17e240\"/> <code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/> <text> <reference value=\"d17e240\"/> </text> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <value code=\"44054006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Diabetes mellitus type 2 (disorder)\" xsi:type=\"CD\"/> <entryRelationship typeCode=\"REFR\"> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId root=\"2.16.840.1.113883.10.20.1.50\"/> <code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/> <value code=\"413322009\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Resolved\" xsi:type=\"CD\"/> </observation> </entryRelationship> </observation> </entryRelationship> </act> </entry> <entry typeCode=\"DRIV\"> <act classCode=\"ACT\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/> <id root=\"d17e263\"/> <code nullFlavor=\"NA\"/> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"> <sequenceNumber value=\"1\"/> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/> <id root=\"d17e263\"/> <code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/> <text> <reference value=\"d17e263\"/> </text> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <value code=\"195967001\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Asthma (disorder)\" xsi:type=\"CD\"/> <entryRelationship typeCode=\"REFR\"> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId root=\"2.16.840.1.113883.10.20.1.50\"/> <code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/> <value code=\"73425007\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Inactive\" xsi:type=\"CD\"/> </observation> </entryRelationship> </observation> </entryRelationship> <entryRelationship typeCode=\"COMP\"> <organizer classCode=\"CLUSTER\" moodCode=\"DEF\"> <templateId assigningAuthorityName=\"HL7 Security\" root=\"2.16.840.1.113883.3.3251.1.4\"/> <statusCode code=\"active\"/> <component typeCode=\"COMP\"> <observation classCode=\"OBS\" moodCode=\"DEF\"> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.21\"/> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.12\"/> <code code=\"SECCLASSOBS\" codeSystem=\"2.16.840.1.113883.1.11.20457\" codeSystemName=\"HL7 SecurityObservationTypeCodeSystem\" displayName=\"Security Classification\"/> <value code=\"R\" codeSystem=\"2.16.840.1.113883.5.1063\" codeSystemName=\"SecurityObservationValueCodeSystem\" displayName=\"Restricted\" xsi:type=\"CE\"> <originalText>Restricted Confidentiality</originalText> </value> </observation> </component> <component typeCode=\"COMP\"> <observation classCode=\"OBS\" moodCode=\"DEF\"> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.21\"/> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.14\"/> <code code=\"SECCONOBS\" codeSystem=\"2.16.840.1.113883.1.11.20457\" codeSystemName=\"HL7 SecurityObservationTypeCodeSystem\" displayName=\"Security Classification\"/> <value code=\"ENCRYPT\" codeSystem=\"2.16.840.1.113883.5.1063\" codeSystemName=\"SecurityObservationValueCodeSystem\" displayName=\"Encrypt information\" xsi:type=\"CE\"> <originalText>Encrypt information</originalText> </value> </observation> </component> <component typeCode=\"COMP\"> <observation classCode=\"OBS\" moodCode=\"DEF\"> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.21\"/> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.23\"/> <code code=\"SECCONOBS\" codeSystem=\"2.16.840.1.113883.1.11.20457\" codeSystemName=\"HL7 SecurityObservationTypeCodeSystem\" displayName=\"Security Classification\"/> <value code=\"NODSCLCD\" codeSystem=\"2.16.840.1.113883.5.1063\" codeSystemName=\"SecurityObservationValueCodeSystem\" displayName=\"Prohibition on disclosure without patient consent directive\" xsi:type=\"CE\"> <originalText>Prohibition on disclosure without patient consent directive</originalText> </value> </observation> </component> </organizer> </entryRelationship> </act> </entry> <entry typeCode=\"DRIV\"> <act classCode=\"ACT\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/> <id root=\"d17e286\"/> <code nullFlavor=\"NA\"/> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"> <sequenceNumber value=\"1\"/> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/> <id root=\"d17e286\"/> <code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/> <text> <reference value=\"d17e286\"/> </text> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <value code=\"67682002\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Coronary artery atheroma (disorder)\" xsi:type=\"CD\"/> <entryRelationship typeCode=\"REFR\"> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId root=\"2.16.840.1.113883.10.20.1.50\"/> <code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/> <value code=\"73425007\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Inactive\" xsi:type=\"CD\"/> </observation> </entryRelationship> </observation> </entryRelationship> </act> </entry> <entry typeCode=\"DRIV\"> <act classCode=\"ACT\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/> <id root=\"d17e309\"/> <code nullFlavor=\"NA\"/> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"> <sequenceNumber value=\"1\"/> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/> <id root=\"d17e309\"/> <code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/> <text> <reference value=\"d17e309\"/> </text> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <value code=\"55822004\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Hyperlipidemia (disorder)\" xsi:type=\"CD\"/> <entryRelationship typeCode=\"REFR\"> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId root=\"2.16.840.1.113883.10.20.1.50\"/> <code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/> <value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Active\" xsi:type=\"CD\"/> </observation> </entryRelationship> </observation> </entryRelationship> </act> </entry> <entry typeCode=\"DRIV\"> <act classCode=\"ACT\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/> <id root=\"d17e332\"/> <code nullFlavor=\"NA\"/> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"> <sequenceNumber value=\"1\"/> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/> <id root=\"d17e332\"/> <code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/> <text> <reference value=\"d17e332\"/> </text> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <value code=\"427889009\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Hypertension associated with transplantation (disorder)\" xsi:type=\"CD\"/> <entryRelationship typeCode=\"REFR\"> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId root=\"2.16.840.1.113883.10.20.1.50\"/> <code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/> <value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Active\" xsi:type=\"CD\"/> </observation> </entryRelationship> </observation> </entryRelationship> </act> </entry> <entry typeCode=\"DRIV\"> <act classCode=\"ACT\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"HITSP C83\" root=\"2.16.840.1.113883.3.88.11.83.7\"/> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.27\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/> <id root=\"d17e379\"/> <code nullFlavor=\"NA\"/> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"> <sequenceNumber value=\"1\"/> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId assigningAuthorityName=\"CCD\" root=\"2.16.840.1.113883.10.20.1.28\"/> <templateId assigningAuthorityName=\"IHE PCC\" root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/> <id root=\"d17e379\"/> <code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Problem\"/> <text> <reference value=\"d17e379\"/> </text> <statusCode code=\"completed\"/> <effectiveTime nullFlavor=\"UNK\" xsi:type=\"IVL_TS\"> <low nullFlavor=\"UNK\"/> <high nullFlavor=\"UNK\"/> </effectiveTime> <value code=\"66214007\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED\" displayName=\"Substance Abuse Disorder\" xsi:type=\"CD\"/> <entryRelationship typeCode=\"REFR\"> <observation classCode=\"OBS\" moodCode=\"EVN\"> <templateId root=\"2.16.840.1.113883.10.20.1.50\"/> <code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/> <value code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\" displayName=\"Active\" xsi:type=\"CD\"/> </observation> </entryRelationship> </observation> </entryRelationship> <entryRelationship typeCode=\"COMP\"> <organizer classCode=\"CLUSTER\" moodCode=\"DEF\"> <templateId assigningAuthorityName=\"HL7 Security\" root=\"2.16.840.1.113883.3.3251.1.4\"/> <statusCode code=\"active\"/> <component typeCode=\"COMP\"> <observation classCode=\"OBS\" moodCode=\"DEF\"> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.21\"/> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.12\"/> <code code=\"SECCLASSOBS\" codeSystem=\"2.16.840.1.113883.1.11.20457\" codeSystemName=\"HL7 SecurityObservationTypeCodeSystem\" displayName=\"Security Classification\"/> <value code=\"R\" codeSystem=\"2.16.840.1.113883.5.1063\" codeSystemName=\"SecurityObservationValueCodeSystem\" displayName=\"Restricted\" xsi:type=\"CE\"> <originalText>Restricted Confidentiality</originalText> </value> </observation> </component> <component typeCode=\"COMP\"> <observation classCode=\"OBS\" moodCode=\"DEF\"> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.21\"/> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.14\"/> <code code=\"SECCONOBS\" codeSystem=\"2.16.840.1.113883.1.11.20457\" codeSystemName=\"HL7 SecurityObservationTypeCodeSystem\" displayName=\"Security Classification\"/> <value code=\"ENCRYPT\" codeSystem=\"2.16.840.1.113883.5.1063\" codeSystemName=\"SecurityObservationValueCodeSystem\" displayName=\"Encrypt information\" xsi:type=\"CE\"> <originalText>Encrypt information</originalText> </value> </observation> </component> <component typeCode=\"COMP\"> <observation classCode=\"OBS\" moodCode=\"DEF\"> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.21\"/> <templateId assigningAuthorityName=\"HL7 CBCC\" root=\"2.16.840.1.113883.3.445.23\"/> <code code=\"SECCONOBS\" codeSystem=\"2.16.840.1.113883.1.11.20457\" codeSystemName=\"HL7 SecurityObservationTypeCodeSystem\" displayName=\"Security Classification\"/> <value code=\"NODSCLCD\" codeSystem=\"2.16.840.1.113883.5.1063\" codeSystemName=\"SecurityObservationValueCodeSystem\" displayName=\"Prohibition on disclosure without patient consent directive\" xsi:type=\"CE\"> <originalText>Prohibition on disclosure without patient consent directive</originalText> </value> </observation> </component> </organizer> </entryRelationship> </act> </entry> </section> </component> </structuredBody> </component></ClinicalDocument>"; private SimpleMarshallerImpl marshaller; private DSSWebServiceClient sut; @Before public void setUp() throws Exception { marshaller = new SimpleMarshallerImpl(); sut = new DSSWebServiceClient("http://" + HOST + ":" + PORT + "/" + SERVICE_PATH); } @Test public void testSegmentDocument() throws SimpleMarshallerException, SAXException, IOException { // Arrange // Request parameters: original C32 final String c32Xml = ORIGINAL_C32_XML; // Request parameters: enforcement policies final XacmlResult xacmlResult = new XacmlResult(); xacmlResult.setMessageId(UUID.randomUUID().toString()); xacmlResult.setPatientId("d3bb3930-7241-11e3-b4f7-00155d3a2124"); xacmlResult.setPdpDecision("Permit"); final List<String> obligations = new LinkedList<String>(); obligations.add("HIV"); obligations.add("10160-0"); xacmlResult.setPdpObligations(obligations); xacmlResult .setSubjectPurposeOfUse(SubjectPurposeOfUse.HEALTHCARE_TREATMENT); final String enforcementPolicies = marshaller.marshal(xacmlResult); final DSSRequest request = new DSSRequest(); request.setDocumentXml(c32Xml); request.setEnforcementPoliciesXml(enforcementPolicies); // Act final DSSResponse response = sut.segmentDocument(request); // Assert final List<String> ignoreList = new LinkedList<String>(); ignoreList.add("effectiveTime"); final DetailedDiff diff = XmlComparator.compareXMLs( EXPECTED_SEGMENTED_C32_XML, response.getSegmentedDocumentXml(), ignoreList); assertTrue(diff.similar()); } public static void main(String[] args) throws SimpleMarshallerException { // Read endpoint properties from console final Scanner scan = new Scanner(System.in); System.out.println("Please provide web service endpoint properties..."); System.out.println("Host:"); final String host = scan.nextLine(); System.out.println("Port:"); final String port = scan.nextLine(); System.out.println("Context:"); final String context = scan.nextLine(); scan.close(); // Initialize web service client System.out.println("Initializing the web service client..."); final String endpoint = "http://" + host + ":" + port + "/" + context + "/services/DSS"; final DSSWebServiceClient client = new DSSWebServiceClient(endpoint); System.out.println("Composing the request..."); // Request parameters: original C32 final String c32Xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><?xml-stylesheet href=\"http://obhita.org/CDA.xsl\" type=\"text/xsl\"?><ClinicalDocument xmlns=\"urn:hl7-org:v3\" xmlns:hl7=\"urn:hl7-org:v3\" xmlns:sdtc=\"urn:hl7-org:sdtc\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 schema/cdar2c32/infrastructure/cda/C32_CDA.xsd\"><realmCode code=\"US\"/><typeId root=\"2.16.840.1.113883.1.3\" extension=\"POCD_HD000040\"/><templateId root=\"2.16.840.1.113883.3.27.1776\" assigningAuthorityName=\"CDA/R2\"/><templateId root=\"2.16.840.1.113883.10.20.3\" assigningAuthorityName=\"HL7/CDT Header\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.1.1\" assigningAuthorityName=\"IHE/PCC\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.1\" assigningAuthorityName=\"HITSP/C32\"/><id root=\"2.16.840.1.113883.3.72\" assigningAuthorityName=\"FEI Systems Inc.\"/><code code=\"34133-9\" displayName=\"Summarization of episode note\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><title>Summarization of episode note</title><effectiveTime value=\"201412041205\"/><confidentialityCode code=\"N\"/><languageCode code=\"en-US\"/><recordTarget><patientRole><id root=\"00000000-0000-0000-0000-000000000000\" extension=\"SMT.14177127093673\"/><addr use=\"HP\" nullFlavor=\"UNK\"/><telecom use=\"HP\" nullFlavor=\"UNK\" value=\"\"/><patient><name><family>stevens</family><given>sam</given></name><administrativeGenderCode code=\"M\" codeSystem=\"2.16.840.1.113883.5.1\" codeSystemName=\"AdministrativeGenderCode\" displayName=\"Male\"/><birthTime value=\"19500101\"/><maritalStatusCode nullFlavor=\"UNK\"/><religiousAffiliationCode nullFlavor=\"UNK\"/><raceCode code=\"R5\" codeSystem=\"2.16.840.1.113883.6.238\" codeSystemName=\"CDC Race and Ethnicity\" displayName=\"White\"/><ethnicGroupCode code=\"E1.06\" codeSystem=\"2.16.840.1.113883.6.238\" codeSystemName=\"CDC Race and Ethnicity\" displayName=\"Puerto Rican\"/><birthplace nullFlavor=\"UNK\"><place><addr><streetAddressLine/><city/><state/><postalCode/></addr></place></birthplace><languageCommunication><templateId root=\"2.16.840.1.113883.3.88.11.83.2\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.2.1\" assigningAuthorityName=\"IHE/PCC\"/><languageCode code=\"en-US\"/></languageCommunication></patient></patientRole></recordTarget><author><time value=\"201412041205\"/><assignedAuthor><id nullFlavor=\"UNK\"/><addr/><telecom/><assignedPerson><name><family>Kinney</family><given>Rebecca</given><prefix/></name></assignedPerson></assignedAuthor></author><custodian><assignedCustodian><representedCustodianOrganization><id root=\"2.16.840.1.113883.4.6\" extension=\"1427467752\"/><name>PGCo Administrative Agency (MD-100100)</name><telecom/><addr/></representedCustodianOrganization></assignedCustodian></custodian><component><structuredBody><component><section><templateId root=\"2.16.840.1.113883.3.88.11.83.103\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.6\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"2.16.840.1.113883.10.20.1.11\" assigningAuthorityName=\"HL7 CCD\"/><code code=\"11450-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Problem list\"/><title>Problems</title><text><table width=\"100%\" border=\"1\"><thead><tr><th>Problem Name</th><th>Problem Code</th><th>Effective Dates</th><th>Problem Status</th></tr></thead><tbody><tr ID=\"d15e355\"><td>Alcohol Dependence</td><td>303.90</td><td>From: December 4, 2014 <br/> To: </td><td>Active</td></tr><tr ID=\"d15e378\"><td>Kaposi's sarcoma</td><td>176.9</td><td>From: December 4, 2014 <br/> To: </td><td>Active</td></tr><tr ID=\"d15e401\"><td>Adjustment Disorder With Anxiety</td><td>309.24</td><td>From: December 4, 2014 <br/> To: </td><td>Active</td></tr></tbody></table></text><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e355\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141204\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"0\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e355\"/><code code=\"404684003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Finding\"/><text><reference value=\"d15e355\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141204\"/><high nullFlavor=\"UNK\"/></effectiveTime><value nullFlavor=\"UNK\" xsi:type=\"CD\"><translation code=\"303.90\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9-CM\" displayName=\"Alcohol or drug dependence\"/></value><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value xsi:type=\"CD\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e378\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141204\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"0\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e378\"/><code code=\"404684003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Finding\"/><text><reference value=\"d15e378\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141204\"/><high nullFlavor=\"UNK\"/></effectiveTime><value nullFlavor=\"UNK\" xsi:type=\"CD\"><translation code=\"176.9\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9-CM\" displayName=\"Alcohol or drug dependence\"/></value><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value xsi:type=\"CD\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e401\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141204\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship inversionInd=\"false\" typeCode=\"SUBJ\"><sequenceNumber value=\"0\"/><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e401\"/><code code=\"404684003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Finding\"/><text><reference value=\"d15e401\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141204\"/><high nullFlavor=\"UNK\"/></effectiveTime><value nullFlavor=\"UNK\" xsi:type=\"CD\"><translation code=\"309.24\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9-CM\" displayName=\"Alcohol or drug dependence\"/></value><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><code code=\"33999-4\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"Status\"/><value xsi:type=\"CD\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\"/></observation></entryRelationship></observation></entryRelationship></act></entry></section></component><component><section><templateId root=\"2.16.840.1.113883.3.88.11.83.112\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.19\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"2.16.840.1.113883.10.20.1.8\" assigningAuthorityName=\"HL7 CCD\"/><code code=\"10160-0\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"History of medication use\"/><title>Medications</title><text><table width=\"100%\" border=\"1\"><thead><tr><th>RxNorm Code</th><th>Product</th><th>Generic Name</th><th>Brand Name</th><th>Dose</th><th>Form</th><th>Route</th><th>Frequency</th><th>Patient Instructions</th><th>Status</th><th>Date Started</th></tr></thead><tbody><tr ID=\"d15e155\"><td>151358</td><td>Medication</td><td>Antabuse (disulfiram)</td><td/><td>10</td><td/><td/><td>daily</td><td/><td>Active</td><td>December 1, 2014 </td></tr><tr ID=\"d15e202\"><td>352393</td><td>Medication</td><td>Abilify</td><td/><td>20</td><td/><td/><td>daily</td><td/><td>Active</td><td>December 1, 2014 </td></tr><tr ID=\"d15e249\"><td>281</td><td>Medication</td><td>Acyclovir</td><td/><td>30</td><td/><td/><td>daily</td><td/><td>Active</td><td>December 4, 2014 </td></tr><tr ID=\"d15e296\"><td>203457</td><td>Medication</td><td>Benadryl (diphenhydramine)</td><td/><td>unk</td><td/><td/><td>daily</td><td/><td>Active</td><td>December 4, 2014 </td></tr></tbody></table></text><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e155\"/><text><reference value=\"d15e155\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141201\"/><high nullFlavor=\"UNK\"/></effectiveTime><routeCode nullFlavor=\"UNK\"/><doseQuantity value=\"1\" unit=\"{10}\"/><administrationUnitCode nullFlavor=\"UNK\"/><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><manufacturedMaterial><code code=\"151358\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\" displayName=\"Antabuse (disulfiram)\"><originalText>Antabuse (disulfiram)<reference/></originalText></code><name/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"329505003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.49\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3\" assigningAuthorityName=\"IHE PCC\"/><code code=\"PINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text>This is the text of the Patient Instruction. Note that this instruction is printed in the narrative text of the parent Section and is refereced by the following pointer to it.<reference value=\"PntrtoSectionText\"/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.43\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3.1\" assigningAuthorityName=\"IHE PCC\"/><code code=\"FINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text><reference/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\"/></observation></entryRelationship></substanceAdministration></entry><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e202\"/><text><reference value=\"d15e202\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141201\"/><high nullFlavor=\"UNK\"/></effectiveTime><routeCode nullFlavor=\"UNK\"/><doseQuantity value=\"1\" unit=\"{20}\"/><administrationUnitCode nullFlavor=\"UNK\"/><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><manufacturedMaterial><code code=\"352393\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\" displayName=\"Abilify\"><originalText>Abilify<reference/></originalText></code><name/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"329505003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.49\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3\" assigningAuthorityName=\"IHE PCC\"/><code code=\"PINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text>This is the text of the Patient Instruction. Note that this instruction is printed in the narrative text of the parent Section and is refereced by the following pointer to it.<reference value=\"PntrtoSectionText\"/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.43\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3.1\" assigningAuthorityName=\"IHE PCC\"/><code code=\"FINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text><reference/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\"/></observation></entryRelationship></substanceAdministration></entry><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e249\"/><text><reference value=\"d15e249\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141204\"/><high nullFlavor=\"UNK\"/></effectiveTime><routeCode nullFlavor=\"UNK\"/><doseQuantity value=\"1\" unit=\"{30}\"/><administrationUnitCode nullFlavor=\"UNK\"/><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><manufacturedMaterial><code code=\"281\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\" displayName=\"Acyclovir\"><originalText>Acyclovir<reference/></originalText></code><name/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"329505003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.49\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3\" assigningAuthorityName=\"IHE PCC\"/><code code=\"PINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text>This is the text of the Patient Instruction. Note that this instruction is printed in the narrative text of the parent Section and is refereced by the following pointer to it.<reference value=\"PntrtoSectionText\"/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.43\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3.1\" assigningAuthorityName=\"IHE PCC\"/><code code=\"FINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text><reference/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\"/></observation></entryRelationship></substanceAdministration></entry><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d15e296\"/><text><reference value=\"d15e296\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20141204\"/><high nullFlavor=\"UNK\"/></effectiveTime><routeCode nullFlavor=\"UNK\"/><doseQuantity value=\"1\" unit=\"{unk}\"/><administrationUnitCode nullFlavor=\"UNK\"/><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><manufacturedMaterial><code code=\"203457\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNorm\" displayName=\"Benadryl (diphenhydramine)\"><originalText>Benadryl (diphenhydramine)<reference/></originalText></code><name/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"329505003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.49\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3\" assigningAuthorityName=\"IHE PCC\"/><code code=\"PINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text>This is the text of the Patient Instruction. Note that this instruction is printed in the narrative text of the parent Section and is refereced by the following pointer to it.<reference value=\"PntrtoSectionText\"/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"SUBJ\"><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.43\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3.1\" assigningAuthorityName=\"IHE PCC\"/><code code=\"FINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text><reference/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Active\"/></observation></entryRelationship></substanceAdministration></entry></section></component><component><section><templateId root=\"2.16.840.1.113883.3.88.11.83.127\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.1.5.3.3\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"2.16.840.1.113883.10.20.1.3\" assigningAuthorityName=\"HL7 CCD\"/><code code=\"46240-8\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"History of encounters\"/><title>Encounters</title><text><table border=\"1\" width=\"100%\"><thead><tr><th>Encounter</th><th>Performer</th><th>Location</th><th>Date</th></tr></thead><tbody><tr ID=\"d15e119\"><td>Alc &/or Drug Assessment</td><td> Rebecca Kinney</td><td>PGCo Administrative Agency (MD-100100)</td><td>December 4, 2014 </td></tr></tbody></table></text><entry typeCode=\"DRIV\"><encounter classCode=\"ENC\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.21\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.14\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.16\"/><id root=\"d15e119\"/><code code=\"H0001\" codeSystem=\"2.16.840.1.113883.6.12\" codeSystemName=\"CPT\" displayName=\"Alc &/or Drug Assessment\"><originalText>Alc &/or Drug Assessment<reference value=\"PointerToTextInSection\"/></originalText></code><text>IHE Requires reference to go here instead of originalText of code.<reference/></text><effectiveTime xsi:type=\"IVL_TS\" value=\"20141204\"/><performer><assignedEntity><id/><addr/><telecom/><assignedPerson><name> Rebecca Kinney</name></assignedPerson></assignedEntity></performer><participant typeCode=\"LOC\"><templateId root=\"2.16.840.1.113883.10.20.1.45\"/><participantRole classCode=\"SDLOC\"><id root=\"d15e119\"/><addr/><telecom/><playingEntity classCode=\"PLC\"><name>PGCo Administrative Agency (MD-100100)</name></playingEntity></participantRole></participant></encounter></entry></section></component></structuredBody></component></ClinicalDocument>"; // String c32XmlMIE = // "<?xml version=\"1.0\" ?><ClinicalDocument xmlns=\"urn:hl7-org:v3\" xmlns:voc=\"urn:hl7-org:v3/voc\" xmlns:sdtc=\"urn:hl7-org:sdtc\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:hl7-org:v3 CDA.xsd\"><!-- CCDA:0 --><realmCode code=\"US\"/><typeId root=\"2.16.840.1.113883.1.3\" extension=\"POCD_HD000040\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.1.1\"/><templateId root=\"2.16.840.1.113883.10.20.3\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.1\"/><templateId root=\"2.16.840.1.113883.10.20.12\"/><templateId root=\"2.16.840.1.113883.10.20.22.1.1\"/><templateId root=\"2.16.840.1.113883.10.20.22.1.2\"/><id root=\"1.2.840.114398.1.2924.0.4.29392\" extension=\"1\"/><code code=\"34133-9\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Summarization of episode note\"/><title/><effectiveTime value=\"20140619113437-0400\"/><confidentialityCode code=\"N\" codeSystem=\"2.16.840.1.113883.5.25\"/><languageCode code=\"en-US\"/><recordTarget><patientRole><id root=\"1.2.840.114398.1.2924.1\" extension=\"18380\"/><addr use=\"H\"><country>US</country></addr><telecom nullFlavor=\"UNK\" use=\"HP\"/><patient><name><family>Duck</family><given>Donald</given></name><administrativeGenderCode code=\"UN\" codeSystem=\"2.16.840.1.113883.5.1\"/><birthTime value=\"19791001000000-0400\"/><maritalStatusCode code=\"M\" codeSystem=\"2.16.840.1.113883.5.2\" displayName=\"Married\"/><raceCode code=\"2106-3\" codeSystem=\"2.16.840.1.113883.6.238\" displayName=\"White\"/><languageCommunication><templateId root=\"2.16.840.1.113883.3.88.11.83.2\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.2.1\"/><languageCode code=\"eng\"/></languageCommunication></patient></patientRole></recordTarget><author><time value=\"20140619113437-0400\"/><assignedAuthor><id root=\"2.16.840.1.113883.4.6\" extension=\"000000000\"/><addr use=\"H\"><streetAddressLine>1 A St.</streetAddressLine><city>Chicago</city><state>IL</state><postalCode>60601</postalCode><country>US</country></addr><telecom value=\"tel:000-000-0000\" use=\"HP\"/><assignedPerson><name><family>Person</family><given>Unknown</given></name></assignedPerson></assignedAuthor></author><custodian><assignedCustodian><representedCustodianOrganization><id root=\"1.2.840.114398.1.2924\"/><name> Prince George's County</name><telecom value=\"tel:+13017802951\" use=\"PUB\"/><addr use=\"PUB\"><streetAddressLine>14741 Govenor Oden Bowie Drive</streetAddressLine><city>Upper Marlboro</city><state>MD</state><postalCode>20772</postalCode><country>US</country></addr></representedCustodianOrganization></assignedCustodian></custodian><legalAuthenticator><time value=\"20140619113437-0400\"/><signatureCode code=\"S\"/><assignedEntity><id nullFlavor=\"NI\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name nullFlavor=\"UNK\"/></assignedPerson><representedOrganization><id root=\"1.2.840.114398.1.2924\"/><name> Prince George's County Health Department</name><telecom nullFlavor=\"UNK\" use=\"HP\"/><addr nullFlavor=\"UNK\"/></representedOrganization></assignedEntity></legalAuthenticator><documentationOf><serviceEvent classCode=\"PCPR\"><code code=\"97804\" codeSystem=\"2.16.840.1.113883.6.12\" codeSystemName=\"C4\"/><effectiveTime><low value=\"20080101000000-0500\"/><high value=\"20081231235959-0500\"/></effectiveTime></serviceEvent></documentationOf><component><structuredBody><component><section><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.1.5.3.2\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.25\"/><templateId root=\"2.16.840.1.113883.10.20.1.16\"/><id root=\"1.2.840.114398.1.2924\" extension=\"0\"/><code code=\"8716-3\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Vital Signs\"/><title>Coded Vital Signs</title><text><content ID=\"Obs_2600206\"> HEART RATE: 55bpm (2014-06-19 11:29:00)</content> ,<content ID=\"Obs_2600204\"> RESPIRATION RATE: 35pm (2014-06-19 11:29:00)</content> , <content ID=\"Obs_2600205\"> BODY TEMPERATURE: 99F (2014-06-19 11:29:00)</content> , <content ID=\"Obs_2600200\"> Systolic BP: 180mmHg (2014-06-19 11:29:00)</content> , <content ID=\"Obs_2600201\"> Diastolic BP: 100mmHg (2014-06-19 11:29:00)</content> , <content ID=\"Obs_2600198\"> BODY WEIGHT: 500lbs (2014-06-19 11:29:00)</content> , <content ID=\"Obs_2600197\">BODY HEIGHT: 60in (2014-06-19 11:29:00)</content></text><entry><organizer classCode=\"CLUSTER\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.1\"/><templateId root=\"2.16.840.1.113883.10.20.1.32\"/><templateId root=\"2.16.840.1.113883.10.20.1.35\"/><id root=\"1.2.840.114398.1.2924\" extension=\"0\"/><code code=\"46680005\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Vital signs\"/><statusCode code=\"completed\"/><effectiveTime value=\"20140619113437-0400\"/><author><time value=\"20140619113437-0400\"/><assignedAuthor><id root=\"2.16.840.1.113883.4.6\" extension=\"000000000\"/><addr use=\"H\"><streetAddressLine>1 A St.</streetAddressLine><city>Chicago</city><state>IL</state><postalCode>60601</postalCode><country>US</country></addr><telecom value=\"tel:000-000-0000\" use=\"HP\"/><assignedPerson><name><family>Person</family><given>Unknown</given></name></assignedPerson></assignedAuthor></author><component typeCode=\"COMP\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.2\"/><templateId root=\"2.16.840.1.113883.10.20.22.4.27\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600206\"/><code code=\"8867-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"HEART RATE\"/><text><reference value=\"#Obs_2600206\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619112900-0400\"/><value xsi:type=\"PQ\" value=\"55\" unit=\"/min\"/></observation></component><component typeCode=\"COMP\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.2\"/><templateId root=\"2.16.840.1.113883.10.20.22.4.27\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600204\"/><code code=\"9279-1\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"RESPIRATION RATE\"/><text><reference value=\"#Obs_2600204\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619112900-0400\"/><value xsi:type=\"PQ\" value=\"35\" unit=\"/min\"/></observation></component><component typeCode=\"COMP\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.2\"/><templateId root=\"2.16.840.1.113883.10.20.22.4.27\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600205\"/><code code=\"8310-5\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"BODY TEMPERATURE\"/><text><reference value=\"#Obs_2600205\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619112900-0400\"/><value xsi:type=\"PQ\" value=\"99\" unit=\"[degF]\"/></observation></component><component typeCode=\"COMP\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.2\"/><templateId root=\"2.16.840.1.113883.10.20.22.4.27\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600200\"/><code code=\"8480-6\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Systolic BP\"/><text><reference value=\"#Obs_2600200\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619112900-0400\"/><value xsi:type=\"PQ\" value=\"180\" unit=\"mm[Hg]\"/></observation></component><component typeCode=\"COMP\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.2\"/><templateId root=\"2.16.840.1.113883.10.20.22.4.27\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600201\"/><code code=\"8462-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Diastolic BP\"/><text><reference value=\"#Obs_2600201\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619112900-0400\"/><value xsi:type=\"PQ\" value=\"100\" unit=\"mm[Hg]\"/></observation></component><component typeCode=\"COMP\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.2\"/><templateId root=\"2.16.840.1.113883.10.20.22.4.27\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600198\"/><code code=\"29463-7\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"BODY WEIGHT\"/><text><reference value=\"#Obs_2600198\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619112900-0400\"/><value xsi:type=\"PQ\" value=\"500\" unit=\"[lb_av]\"/></observation></component><component typeCode=\"COMP\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.2\"/><templateId root=\"2.16.840.1.113883.10.20.22.4.27\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600197\"/><code code=\"8302-2\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"BODY HEIGHT\"/><text><reference value=\"#Obs_2600197\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619112900-0400\"/><value xsi:type=\"PQ\" value=\"60\" unit=\"[in_us]\"/></observation></component></organizer></entry></section></component><component><section><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.8\"/><templateId root=\"2.16.840.1.113883.10.20.4.9\"/><id root=\"1.2.840.114398.1.2924\" extension=\"1\"/><code code=\"11348-0\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"HISTORY OF PAST ILLNESS\"/><title>Conditions</title><text><content ID=\"CondRefId_0_9\">Hypertension( began 05-27-2014)</content> , <content ID=\"CondRefId_1_9\">Appendicitis( began 01-01-2000)</content> , <content ID=\"CondRefId_2_9\">Schizophrenia</content> , <content ID=\"CondRefId_3_9\" >Bipolar disorder, NOS( began 06-19-2014)</content> , <content ID=\"CondRefId_4_9\">Anger</content> , <content ID=\"CondRefId_5_9\" >Depression</content></text><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low value=\"20140527000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"568108\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_0_9\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20140527000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"38341003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Hypertensive disorder\"><originalText>Hypertension</originalText><translation code=\"401.9\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Hypertension\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low value=\"20000101000000-0500\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"568107\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_1_9\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20000101000000-0500\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"74400008\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Appendicitis\"><originalText>Appendicitis</originalText><translation code=\"541\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Appendicitis\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"598442\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_2_9\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"58214004\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Schizophrenia\"><originalText>Schizophrenia</originalText><translation code=\"295.90\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Schizophrenia\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low value=\"20140619000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"598441\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_3_9\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20140619000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"13746004\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Bipolar disorder\"><originalText>Bipolar disorder, NOS</originalText><translation code=\"296.80\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Bipolar disorder, NOS\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"598443\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_4_9\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"75408008\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Feeling angry\"><originalText>Anger</originalText><translation code=\"296.99\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Anger\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"598444\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_5_9\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"41006004\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Depression\"><originalText>Depression</originalText><translation code=\"311\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Depression\"/></value></observation></entryRelationship></act></entry></section></component><component><section><templateId root=\"2.16.840.1.113883.10.20.1.11\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.6\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.103\"/><templateId root=\"2.16.840.1.113883.10.20.22.2.5\"/><templateId root=\"2.16.840.1.113883.10.20.22.2.5.1\"/><id root=\"1.2.840.114398.1.2924\" extension=\"2\"/><code code=\"11450-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"PROBLEM LIST\"/><title>Problems (cont)</title><text><content ID=\"CondRefId_0_5\">Hypertension( began 05-27-2014)</content> , <content ID=\"CondRefId_1_5\">Appendicitis( began 01-01-2000)</content> , <content ID=\"CondRefId_2_5\">Schizophrenia</content> , <content ID=\"CondRefId_3_5\" >Bipolar disorder, NOS( began 06-19-2014)</content> , <content ID=\"CondRefId_4_5\">Anger</content> , <content ID=\"CondRefId_5_5\" >Depression</content></text><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low value=\"20140527000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"568108\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_0_5\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20140527000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"38341003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Hypertensive disorder\"><originalText>Hypertension</originalText><translation code=\"401.9\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Hypertension\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low value=\"20000101000000-0500\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"568107\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_1_5\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20000101000000-0500\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"74400008\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Appendicitis\"><originalText>Appendicitis</originalText><translation code=\"541\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Appendicitis\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"598442\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_2_5\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"58214004\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Schizophrenia\"><originalText>Schizophrenia</originalText><translation code=\"295.90\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Schizophrenia\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low value=\"20140619000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"598441\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_3_5\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20140619000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"13746004\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Bipolar disorder\"><originalText>Bipolar disorder, NOS</originalText><translation code=\"296.80\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Bipolar disorder, NOS\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"598443\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_4_5\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"75408008\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Feeling angry\"><originalText>Anger</originalText><translation code=\"296.99\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Anger\"/></value></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"598444\"/><code code=\"55607006\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Problem\"/><text><reference value=\"#CondRefId_5_5\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"41006004\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Depression\"><originalText>Depression</originalText><translation code=\"311\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Depression\"/></value></observation></entryRelationship></act></entry></section></component><component><section><templateId root=\"2.16.840.1.113883.10.20.1.14\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.122\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.28\"/><id root=\"1.2.840.114398.1.2924\" extension=\"3\"/><code code=\"30954-2\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Relevant diagnostic tests and/or laboratory data\"/><title>Results</title><text><content ID=\"Result_none\"> No Results</content></text><entry><organizer classCode=\"CLUSTER\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.32\"/><id root=\"1.2.840.114398.1.2924\" extension=\"0\"/><code nullFlavor=\"UNK\"/><statusCode code=\"completed\"/><component><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"false\"><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.16\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.15.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><id nullFlavor=\"NA\"/><code nullFlavor=\"UNK\"/><text><reference value=\"#Result_none\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"NA\"/><value xsi:type=\"ED\" nullFlavor=\"NA\"/></observation></component></organizer></entry></section></component><component><section><templateId root=\"2.16.840.1.113883.10.20.22.2.17\"/><id root=\"1.2.840.114398.1.2924\" extension=\"4\"/><code code=\"29762-2\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"SOCIAL HISTORY\"/><title>Social History</title><text><content ID=\"Obs_2600184\"> Smoking Cessation</content> : No (2014-06-19 00:00:00),<content ID=\"Obs_2600185\"> Language</content> : English (2014-06-19 11:29:45),<content ID=\"Obs_SMOKING-STATUS\"> Smoking Status</content> : Current every day smoker (2014-06-19 00:00:00), <content ID=\"Obs_2600179\"> Smoking Cigarettes</content> : Yes (2014-06-19 00:00:00), <content ID=\"Obs_2600181\">Smoking Cigars</content> : No (2014-06-19 00:00:00), <content ID=\"Obs_2600182\">Smoking Pipe</content> : No (2014-06-19 00:00:00), <content ID=\"Obs_2600183\">Smoking Smokeless</content> : No (2014-06-19 00:00:00), <content ID=\"Obs_2600186\"> Alcohol Use</content> : Yes (2014-06-19 00:00:00), <content ID=\"Obs_2600188\"> Caffeine Use</content> : Yes (2014-06-19 00:00:00), <content ID=\"Obs_2600190\"> Drug Use</content> : Yes (2014-06-19 00:00:00), <content ID=\"Obs_2600192\"> Exercise</content> : No (2014-06-19 00:00:00), <content ID=\"Obs_2600187\"> Alcohol Use - Drinks</content> : 10drink(s) per day (2014-06-19 00:00:00), <content ID=\"Obs_2600189\"> Caffeine Use - Cups</content> : 2cup(s) per day (2014-06-19 00:00:00)</text><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600184\"/><code nullFlavor=\"UNK\" displayName=\"Smoking Cessation\"/><text><reference value=\"#Obs_2600184\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">No</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600185\"/><code nullFlavor=\"UNK\" displayName=\"Language\"/><text><reference value=\"#Obs_2600185\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619112945-0400\"/><value xsi:type=\"ST\">English</value><author><time value=\"20140619112945-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"SMOKING-STATUS\"/><code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"HL7ActCode\" displayName=\"Assertion\"/><text><reference value=\"#Obs_2600177\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20140619000000-0400\"/></effectiveTime><value xsi:type=\"CD\" code=\"449868002\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Current every day smoker\"><originalText>Current every day smoker</originalText></value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600179\"/><code nullFlavor=\"UNK\" displayName=\"Smoking Cigarettes\"/><text><reference value=\"#Obs_2600179\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">Yes</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600181\"/><code nullFlavor=\"UNK\" displayName=\"Smoking Cigars\"/><text><reference value=\"#Obs_2600181\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">No</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600182\"/><code nullFlavor=\"UNK\" displayName=\"Smoking Pipe\"/><text><reference value=\"#Obs_2600182\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">No</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600183\"/><code nullFlavor=\"UNK\" displayName=\"Smoking Smokeless\"/><text><reference value=\"#Obs_2600183\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">No</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600186\"/><code nullFlavor=\"UNK\" displayName=\"Alcohol Use\"/><text><reference value=\"#Obs_2600186\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">Yes</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600188\"/><code nullFlavor=\"UNK\" displayName=\"Caffeine Use\"/><text><reference value=\"#Obs_2600188\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">Yes</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600190\"/><code nullFlavor=\"UNK\"><translation code=\"11342-3\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Drug Use\"/></code><text><reference value=\"#Obs_2600190\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">Yes</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600192\"/><code nullFlavor=\"UNK\" displayName=\"Exercise\"/><text><reference value=\"#Obs_2600192\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">No</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600187\"/><code nullFlavor=\"UNK\" displayName=\"Alcohol Use - Drinks\"/><text><reference value=\"#Obs_2600187\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">10</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry><entry typeCode=\"DRIV\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.4\"/><templateId root=\"2.16.840.1.113883.10.20.1.33\"/><id root=\"1.2.840.114398.1.2924.4\" extension=\"2600189\"/><code nullFlavor=\"UNK\" displayName=\"Caffeine Use - Cups\"/><text><reference value=\"#Obs_2600189\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"20140619000000-0400\"/><value xsi:type=\"ST\">2</value><author><time value=\"20140619000000-0400\"/><assignedAuthor><id root=\"1.2.840.114398.1.2924\" extension=\"1110\"/><id root=\"2.16.840.1.113883.4.6\"/><addr nullFlavor=\"UNK\"/><telecom nullFlavor=\"UNK\" use=\"HP\"/><assignedPerson><name><family>Medical Informatics Engineering</family><given>MIE</given></name></assignedPerson></assignedAuthor></author></observation></entry></section></component><component><section><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.14\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.15\"/><templateId root=\"2.16.840.1.113883.10.20.1.4\"/><id root=\"1.2.840.114398.1.2924\" extension=\"5\"/><code code=\"10157-6\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"HISTORY OF FAMILY MEMBER DISEASES\"/><title>Family history</title><text> Grandparent: <content ID=\"fhx_6927\">Cancer</content> ,</text><entry><organizer classCode=\"CLUSTER\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.23\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.15\"/><statusCode code=\"completed\"/><subject typeCode=\"SBJ\"><relatedSubject classCode=\"PRS\"><code code=\"0\" codeSystem=\"2.16.840.1.113883.5.111\" codeSystemName=\"RoleCode\" displayName=\"Grandparent\"/><addr use=\"HP\"><country>US</country></addr><telecom value=\"tel:+10000000000\" use=\"HP\"/><subject><name>Grandparent</name><administrativeGenderCode code=\"0\" codeSystem=\"2.16.840.1.113883.5.111\" codeSystemName=\"RoleCode\"/><birthTime value=\"19430101000000-0400\"/></subject></relatedSubject></subject><component typeCode=\"COMP\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.22\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13.3\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\"/><id nullFlavor=\"NA\"/><code code=\"0\" codeSystem=\"2.16.840.1.113883.5.111\" codeSystemName=\"RoleCode\"><originalText><reference value=\"#fhx_6927\"/></originalText></code><text><reference value=\"#fhx_6927\"/></text><statusCode code=\"completed\"/><effectiveTime nullFlavor=\"UNK\"/><value xsi:type=\"CD\"><originalText><reference value=\"#fhx_6927\"/></originalText><translation code=\"199.1\" codeSystem=\"2.16.840.1.113883.6.103\" codeSystemName=\"ICD-9CM\" displayName=\"Cancer\"/></value></observation></component></organizer></entry></section></component><component><section><templateId root=\"2.16.840.1.113883.10.20.1.2\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.13\"/><id root=\"1.2.840.114398.1.2924\" extension=\"6\"/><code code=\"48765-2\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><title>Allergies and Adverse Reactions</title><text><content ID=\"AgyRefId7\">STRAWBERRY</content> - hives, <content ID=\"AgyRefId8\" >Mil-A-Mulsion</content> - rash, <content ID=\"AgyRefId9\">LATEX</content></text><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.3\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.6\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.6\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.18\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.6\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><id root=\"1.2.840.114398.1.2924\" extension=\"87\"/><code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/><text><reference value=\"#AgyRefId7\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"416098002\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Drug Allergy\"/><participant typeCode=\"CSM\"><participantRole classCode=\"MANU\"><addr use=\"PUB\"/><telecom nullFlavor=\"UNK\"/><playingEntity classCode=\"MMAT\"><code displayName=\"STRAWBERRY\"><originalText><reference value=\"#AgyRefId7\"/></originalText></code><name>STRAWBERRY</name></playingEntity><scopingEntity/></participantRole></participant><entryRelationship typeCode=\"MFST\" inversionInd=\"true\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.54\"/><id root=\"1.2.840.114398.1.2924\" extension=\"10\"/><code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/><statusCode code=\"completed\"/><value xsi:type=\"CD\" displayName=\"hives\"><originalText>hives</originalText></value></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.55\"/><id root=\"1.2.840.114398.1.2924\" extension=\"11\"/><code code=\"SEV\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"HL7ActCode\" displayName=\"2.16.840.1.113883.5.4\"/><text> Unknown</text><statusCode code=\"completed\"/><value xsi:type=\"CD\" nullFlavor=\"UNK\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.3\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.6\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.6\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.18\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.6\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><id root=\"1.2.840.114398.1.2924\" extension=\"14358\"/><code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/><text><reference value=\"#AgyRefId8\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"416098002\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Drug Allergy\"/><participant typeCode=\"CSM\"><participantRole classCode=\"MANU\"><addr use=\"PUB\"/><telecom nullFlavor=\"UNK\"/><playingEntity classCode=\"MMAT\"><code displayName=\"Mil-A-Mulsion\"><originalText><reference value=\"#AgyRefId8\"/></originalText></code><name>Mil-A-Mulsion</name></playingEntity><scopingEntity/></participantRole></participant><entryRelationship typeCode=\"MFST\" inversionInd=\"true\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.54\"/><id root=\"1.2.840.114398.1.2924\" extension=\"12\"/><code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/><statusCode code=\"completed\"/><value xsi:type=\"CD\" displayName=\"rash\"><originalText>rash</originalText></value></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\" inversionInd=\"true\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.55\"/><id root=\"1.2.840.114398.1.2924\" extension=\"13\"/><code code=\"SEV\" codeSystem=\"2.16.840.1.113883.5.4\" codeSystemName=\"HL7ActCode\" displayName=\"2.16.840.1.113883.5.4\"/><text> Unknown</text><statusCode code=\"completed\"/><value xsi:type=\"CD\" nullFlavor=\"UNK\"/></observation></entryRelationship></observation></entryRelationship></act></entry><entry><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.27\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.3\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.6\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.6\"/><id root=\"1\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.18\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.6\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\"/><templateId root=\"2.16.840.1.113883.10.20.1.28\"/><id root=\"1.2.840.114398.1.2924\" extension=\"1\"/><code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/><text><reference value=\"#AgyRefId9\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" code=\"419199007\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Allergy to Substance\"/><participant typeCode=\"CSM\"><participantRole classCode=\"MANU\"><addr use=\"PUB\"/><telecom/><playingEntity classCode=\"MMAT\"><code code=\"1\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\" displayName=\"LATEX\"><originalText><reference value=\"#AgyRefId9\"/></originalText></code><name>LATEX</name></playingEntity><scopingEntity/></participantRole></participant></observation></entryRelationship><entryRelationship typeCode=\"MFST\" inversionInd=\"true\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.54\"/><id root=\"1.2.840.114398.1.2924\" extension=\"14\"/><code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/><statusCode code=\"completed\"/><value xsi:type=\"CE\"><originalText/></value></observation></entryRelationship></act></entry></section></component><component><section><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.19\"/><templateId root=\"2.16.840.1.113883.10.20.1.8\"/><id root=\"1.2.840.114398.1.2924\" extension=\"15\"/><code code=\"10160-0\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><title>Medications</title><text><content ID=\"pSig0\">Tylenol 325mg 2 tablets prn </content> ,<content ID=\"pSig1\" >hydrochlorothiazide 25mg 1 tablet qd </content> ,<content ID=\"pSig2\">Bactrim 400mg 2 tablets 1xwkly </content> ,<content ID=\"pSig3\">Zoloft 50mg 1 po qday (06-19-2014)</content> ,<content ID=\"pSig4\">Vicodin 5mg 2 po daily (06-19-2014)</content></text><entry><substanceAdministration classCode=\"SBADM\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.24\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.8\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\"/><id root=\"1.2.840.114398.1.2924\" extension=\"30667\"/><code code=\"209387\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\"><translation code=\"50580049660\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><text><reference value=\"#pSig0\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><doseQuantity value=\"2\"/><consumable><manufacturedProduct classCode=\"MANU\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\"/><manufacturedMaterial><code code=\"209387\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\" displayName=\"Tylenol 325mg 2 tablets prn \"><originalText><reference value=\"#pSig0\"/></originalText><translation code=\"50580049660\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><name>Tylenol</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.32.10\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\"/><code code=\"329505003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Over the counter products\"/><statusCode code=\"completed\"/></observation></entryRelationship></substanceAdministration></entry><entry><substanceAdministration classCode=\"SBADM\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.24\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.8\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\"/><id root=\"1.2.840.114398.1.2924\" extension=\"30668\"/><code code=\"310798\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\"><translation code=\"00172208380\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><text><reference value=\"#pSig1\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><effectiveTime operator=\"A\" xsi:type=\"PIVL_TS\" institutionSpecified=\"true\"><period value=\"24\" unit=\"h\"/></effectiveTime><doseQuantity value=\"1\"/><consumable><manufacturedProduct classCode=\"MANU\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\"/><manufacturedMaterial><code code=\"310798\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\" displayName=\"hydrochlorothiazide 25mg 1 tablet qd \"><originalText><reference value=\"#pSig1\"/></originalText><translation code=\"00172208380\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><name>hydrochlorothiazide</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.32.10\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\"/><code code=\"73639000\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Prescription Drug\"/><statusCode code=\"completed\"/></observation></entryRelationship></substanceAdministration></entry><entry><substanceAdministration classCode=\"SBADM\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.24\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.8\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\"/><id root=\"1.2.840.114398.1.2924\" extension=\"30669\"/><code code=\"208416\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\"><translation code=\"49708014501\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><text><reference value=\"#pSig2\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><doseQuantity value=\"2\"/><consumable><manufacturedProduct classCode=\"MANU\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\"/><manufacturedMaterial><code code=\"208416\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\" displayName=\"Bactrim 400mg 2 tablets 1xwkly \"><originalText><reference value=\"#pSig2\"/></originalText><translation code=\"49708014501\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><name>Bactrim</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.32.10\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\"/><code code=\"73639000\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Prescription Drug\"/><statusCode code=\"completed\"/></observation></entryRelationship></substanceAdministration></entry><entry><substanceAdministration classCode=\"SBADM\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.24\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.8\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\"/><id root=\"1.2.840.114398.1.2924\" extension=\"32271\"/><code code=\"208161\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\"><translation code=\"00049490041\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><text><reference value=\"#pSig3\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20140619000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><effectiveTime operator=\"A\" xsi:type=\"PIVL_TS\" institutionSpecified=\"true\"><period value=\"24\" unit=\"h\"/></effectiveTime><doseQuantity value=\"1\"/><consumable><manufacturedProduct classCode=\"MANU\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\"/><manufacturedMaterial><code code=\"208161\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\" displayName=\"Zoloft 50mg 1 po qday \"><originalText><reference value=\"#pSig3\"/></originalText><translation code=\"00049490041\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><name>Zoloft</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.32.10\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\"/><code code=\"73639000\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Prescription Drug\"/><statusCode code=\"completed\"/></observation></entryRelationship></substanceAdministration></entry><entry><substanceAdministration classCode=\"SBADM\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.24\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.8\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\"/><id root=\"1.2.840.114398.1.2924\" extension=\"32272\"/><code code=\"1310202\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\"><translation code=\"00074304153\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><text><reference value=\"#pSig4\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20140619000000-0400\"/><high nullFlavor=\"UNK\"/></effectiveTime><doseQuantity value=\"2\"/><consumable><manufacturedProduct classCode=\"MANU\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\"/><manufacturedMaterial><code code=\"1310202\" codeSystem=\"2.16.840.1.113883.6.88\" codeSystemName=\"RxNORM\" displayName=\"Vicodin 5mg 2 po daily \"><originalText><reference value=\"#pSig4\"/></originalText><translation code=\"00074304153\" codeSystem=\"2.16.840.1.113883.6.69\" codeSystemName=\"NDC\"/></code><name>Vicodin</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.32.10\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\"/><code code=\"73639000\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Prescription Drug\"/><statusCode code=\"completed\"/></observation></entryRelationship></substanceAdministration></entry></section></component><component><section><templateId root=\"2.16.840.1.113883.10.20.1.12\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.11\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.12\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.108\"/><id root=\"1.2.840.114398.1.2924\" extension=\"16\"/><code code=\"47519-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"HISTORY OF PROCEDURES\"/><title>Procedures</title><text><content ID=\"Procedure_88265\">Lithotripsy: 1999-05-05 00:00:00, </content><content ID=\"Procedure_94166\">Cholesterol Screening: 2014-06-19 00:00:00, </content><content ID=\"Procedure_94167\">Retinal Screening: 2014-06-19 00:00:00, </content></text><entry><procedure classCode=\"PROC\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.19\"/><templateId root=\"2.16.840.1.113883.10.20.1.29\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.17\"/><id root=\"1.2.840.114398.1.2924\" extension=\"88265\"/><code code=\"133864008\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Lithotripsy\"><originalText><reference value=\"#Procedure_88265\"/></originalText></code><text><reference value=\"#Procedure_88265\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"19990505000000-0400\"/><high nullFlavor=\"NA\"/></effectiveTime><priorityCode nullFlavor=\"UNK\"/></procedure></entry><entry><procedure classCode=\"PROC\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.19\"/><templateId root=\"2.16.840.1.113883.10.20.1.29\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.17\"/><id root=\"1.2.840.114398.1.2924\" extension=\"94166\"/><code code=\"275972003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Cholesterol Screening\"><originalText><reference value=\"#Procedure_94166\"/></originalText></code><text><reference value=\"#Procedure_94166\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20140619000000-0400\"/><high nullFlavor=\"NA\"/></effectiveTime><priorityCode nullFlavor=\"UNK\"/></procedure></entry><entry><procedure classCode=\"PROC\" moodCode=\"EVN\"><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.19\"/><templateId root=\"2.16.840.1.113883.10.20.1.29\"/><templateId root=\"2.16.840.1.113883.3.88.11.83.17\"/><id root=\"1.2.840.114398.1.2924\" extension=\"94167\"/><code code=\"390735007\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\" displayName=\"Retinal Screening\"><originalText><reference value=\"#Procedure_94167\"/></originalText></code><text><reference value=\"#Procedure_94167\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20140619000000-0400\"/><high nullFlavor=\"NA\"/></effectiveTime><priorityCode nullFlavor=\"UNK\"/></procedure></entry></section></component><component><section><templateId root=\"2.16.840.1.113883.10.20.1.1\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.34\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.35\"/><id root=\"1.2.840.114398.1.2924\" extension=\"17\"/><code code=\"42348-3\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"ADVANCED DIRECTIVES\"/><title>Advance Directives</title><text> </text></section></component><component><section><templateId root=\"2.16.840.1.113883.10.20.1.7\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.1.5.3.5\"/><id root=\"1.2.840.114398.1.2924\" extension=\"18\"/><code code=\"46264-8\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"HISTORY OF MEDICAL DEVICE USE\"/><title>Medical Devices</title><text> No history of medical device use.</text></section></component></structuredBody></component></ClinicalDocument>"; // String c32XmlDocumentationOf = // "<ClinicalDocument xmlns=\"urn:hl7-org:v3\" xmlns:sdtc=\"urn:hl7-org:sdtc\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><realmCode code=\"US\"/><typeId root=\"2.16.840.1.113883.1.3\" extension=\"POCD_HD000040\"/><templateId root=\"2.16.840.1.113883.3.27.1776\" assigningAuthorityName=\"CDA/R2\"/><templateId root=\"2.16.840.1.113883.10.20.3\" assigningAuthorityName=\"HL7/CDT Header\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.1.1\" assigningAuthorityName=\"IHE/PCC\"/><templateId root=\"2.16.840.1.113883.3.88.11.32.1\" assigningAuthorityName=\"HITSP/C32\"/><id root=\"2.16.840.1.113883.3.72\" extension=\"MU_Rev3_HITSP_C32C83_4Sections_RobustEntries_NoErrors\" assigningAuthorityName=\"NIST Healthcare Project\"/><!--The HL7/CCD specification requires that every CCD ClinicalDocument contain the specific LOINC code 34133-9. Note that Meaningful Use defers to IHE specifications which do not require the CCD templateId on the document itself, thus allowing other codes to be used at this location. To avoid confusion it may be best to stick with this code as fixed in the absence of another required substitute.--><code code=\"34133-9\" displayName=\"Summarization of episode note\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><title>ONC Meaningful Use Example Document</title><effectiveTime value=\"20101026130945\"/><confidentialityCode/><languageCode code=\"en-US\"/><recordTarget><patientRole><id root=\"ProviderID\" extension=\"PatientID\" assigningAuthorityName=\"Provider Name\"/><addr use=\"HP\" ><!--HITSP/C83 recommends that a patient have at least one address element with a use attribute of HP, i.e. home primary-->None of the following address elements are specifically required by HITSP C32, so the address could be be just plain text at this location? Use of one or more of the following labeled address lines, with meaningful content, is recommended.<streetAddressLine>First Address Line</streetAddressLine><streetAddressLine>Next Address line - if needed, etc.</streetAddressLine><city>CityName</city><state>StateName</state><postalCode>ZipCode(5or9)</postalCode><country>USA</country></addr><telecom/><patient><name><given>FirstName</given><given>Middle Name or Initial - if known</given><family>FamilyName</family></name><!--HITSP/C83 requires patient administrative gender, e.g. M, F, I (indeterminate)--><administrativeGenderCode code=\"F\" displayName=\"Female\" codeSystem=\"2.16.840.1.113883.5.1\" codeSystemName=\"HL7 AdministrativeGender\"/><birthTime value=\"19840704\"/><!--HITSP/C83 requires patient marital status - if known, e.g. S, M, D--><maritalStatusCode code=\"S\" displayName=\"Single\" codeSystem=\"2.16.840.1.113883.5.2\" codeSystemName=\"HL7 Marital status\"/><!--HITSP/C32 requires patient languages spoken - if known.--><languageCommunication><templateId root=\"2.16.840.1.113883.3.88.11.83.2\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.2.1\" assigningAuthorityName=\"IHE/PCC\"/><languageCode code=\"en-US\"/></languageCommunication></patient></patientRole></recordTarget><author><time value=\"20101026145730\"/><assignedAuthor><id/><addr/><telecom/><assignedPerson><name>Staff</name></assignedPerson><representedOrganization><name>NIST Healthcare Testing Laboratory</name><telecom/><addr/></representedOrganization></assignedAuthor></author><custodian><assignedCustodian><representedCustodianOrganization><id/><name/><telecom/><addr/></representedCustodianOrganization></assignedCustodian></custodian><!--HITSP/C32 requires one or more support modules (i.e. participant) - if known; if not known, the participant element(s) may be removed in their entirety. However, many medical facilities require recording of the Next-of-Kin (NOK). The following shows how to represent that information in a participant element.--><participant typeCode=\"IND\"><templateId root=\"2.16.840.1.113883.3.88.11.83.3\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.2.4\" assigningAuthorityName=\"IHE/PCC\"/><time value=\"2010\"/><associatedEntity classCode=\"NOK\"><code code=\"MTH\" displayName=\"Mother\" codeSystem=\"2.16.840.1.113883.5.111\" codeSystemName=\"HL7 RoleCode (Personal Relationship subset)\"/><addr/><telecom/><associatedPerson><name>NextOfKin(NOK) Name</name></associatedPerson></associatedEntity></participant><!--The following documentationOf element is not required by HITSP/C32 or C83, but it is the place to provide a list of performers (e.g. medical providers such as nurses, physicians), with id's and contact information, if those performers are referenced in a <performer>/<assignedEntity>/<id> element elsewhere in this document, especially in the Problems section. The National Provider Identifier (NPI) is a 10-digit string issued by the Center for Medicare and Medicaide Services and is required by HIPPA in a number of healthcare interactions.--><documentationOf typeCode=\"DOC\"><serviceEvent classCode=\"PCPR\"><effectiveTime><low value=\"20020601\"/><high value=\"20101026\"/></effectiveTime><performer typeCode=\"PRF\"><templateId root=\"2.16.840.1.113883.3.88.11.83.4\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.2.3\" assigningAuthorityName=\"IHE PCC\"/><functionCode code=\"PP\" displayName=\"Primary Care Provider\" codeSystem=\"2.16.840.1.113883.12.443\" codeSystemName=\"HL7 Provider Role\"><originalText>Primary Care Provider</originalText></functionCode><time><low value=\"20020716\"/><high value=\"20070915\"/></time><assignedEntity><id extension=\"Unknown\" root=\"2.16.840.1.113883.4.6\" assigningAuthorityName=\"NPI\"/><id extension=\"PseudoMD-1\" root=\"2.16.840.1.113883.3.72.5.2\" assigningAuthorityName=\"NIST Healthcare Testing Laboratory\"/><code code=\"200000000X\" displayName=\"Allopathic and Osteopathic Physicians\" codeSystemName=\"Provider Codes\" codeSystem=\"2.16.840.1.113883.6.101\"/><addr/><telecom/><assignedPerson><name><prefix>Dr.</prefix><given>Pseudo</given><family>Physician-1</family></name></assignedPerson><representedOrganization><id root=\"2.16.840.1.113883.3.72.5\"/><name>NIST HL7 Test Laboratory</name><telecom/><addr/></representedOrganization></assignedEntity></performer><performer typeCode=\"PRF\"><templateId root=\"2.16.840.1.113883.3.88.11.83.4\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.2.3\" assigningAuthorityName=\"IHE PCC\"/><functionCode code=\"PP\" displayName=\"Primary Care Provider\" codeSystem=\"2.16.840.1.113883.12.443\" codeSystemName=\"HL7 Provider Role\"><originalText>Primary Care Provider</originalText></functionCode><time><low value=\"20020716\"/><high value=\"20070915\"/></time><assignedEntity><id extension=\"Unknown\" root=\"2.16.840.1.113883.4.6\" assigningAuthorityName=\"NPI\"/><id extension=\"PseudoMD-2\" root=\"2.16.840.1.113883.3.72.5.2\" assigningAuthorityName=\"NIST Healthcare Testing Laboratory\"/><code code=\"200000000X\" displayName=\"Allopathic and Osteopathic Physicians\" codeSystemName=\"Provider Codes\" codeSystem=\"2.16.840.1.113883.6.101\"/><addr/><telecom value=\"tel:+1-301-975-3251\" use=\"HP\"/><assignedPerson><name><prefix>Dr.</prefix><given>Pseudo</given><family>Physician-2</family></name></assignedPerson><representedOrganization><id root=\"2.16.840.1.113883.3.72.5\"/><name>NIST HL7 Test Laboratory</name><telecom/><addr/></representedOrganization></assignedEntity></performer></serviceEvent></documentationOf><component><structuredBody><component><!--Problems--><section><templateId root=\"2.16.840.1.113883.3.88.11.83.103\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.6\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"2.16.840.1.113883.10.20.1.11\" assigningAuthorityName=\"HL7 CCD\"/><!--Problems section template--><code code=\"11450-4\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Problem list\"/><title>Problems</title><text><table border=\"1\" width=\"100%\"><thead><tr><th>Problem</th><th>Effective Dates</th><th>Problem Status</th></tr></thead><tbody><!--Acute HIV--><tr ID=\"PROBSUMMARY_0\"><td ID=\"PROBKIND_0\">Acute HIV</td><td>1990</td><td ID=\"PROBSTATUS_0\">Active</td></tr><!--Substance Abuse Disorder--><tr ID=\"PROBSUMMARY_1\"><td ID=\"PROBKIND_1\">Substance Abuse Disorder</td><td>1950</td><td ID=\"PROBSTATUS_1\">Active</td></tr><!--Sickle Cell Anemia--><tr ID=\"PROBSUMMARY_2\"><td ID=\"PROBKIND_2\">Sickle Cell Anemia</td><td>Jan 1997</td><td ID=\"PROBSTATUS_2\">Active</td></tr><tr ID=\"PROBSUMMARY_3\"><td ID=\"PROBKIND_3\">Pneumonia</td><td>Mar 1999</td><td ID=\"PROBSTATUS_3\">Resolved</td></tr><tr ID=\"PROBSUMMARY_4\"><td ID=\"PROBKIND_4\">Myocardial Infarction</td><td>Jan 1997</td><td ID=\"PROBSTATUS_4\">Resolved</td></tr><tr ID=\"PROBSUMMARY_5\"><td ID=\"PROBKIND_5\">Pregnancy</td><td>Oct 26, 2010</td><td ID=\"PROBSTATUS_5\">NOT currently pregnant</td></tr></tbody></table></text><!--Acute HIV--><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem act template --><id root=\"6a2fa88d-4174-4909-aece-db44b60a3abb\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low value=\"1990\"/><high nullFlavor=\"UNK\"/></effectiveTime><performer typeCode=\"PRF\"><assignedEntity><id extension=\"PseudoMD-2\" root=\"2.16.840.1.113883.3.72.5.2\"/><addr/><telecom/></assignedEntity></performer><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><id root=\"d11275e7-67ae-11db-bd13-0800200c9a66\"/><code code=\"64572001\" displayName=\"Condition\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\"/><text><reference value=\"#PROBSUMMARY_0\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"1950\"/></effectiveTime><value xsi:type=\"CD\" code=\"111880001\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Acute HIV\"/><entryRelationship typeCode=\"REFR\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.50\"/><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\"><originalText><reference value=\"#PROBSTATUS_0\"/></originalText></value></observation></entryRelationship></observation></entryRelationship></act></entry><!--Substance Abuse Disorder--><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem act template --><id root=\"6a2fa88d-4174-4909-aece-db44b60a3abb\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low value=\"1950\"/><high nullFlavor=\"UNK\"/></effectiveTime><performer typeCode=\"PRF\"><assignedEntity><id extension=\"PseudoMD-2\" root=\"2.16.840.1.113883.3.72.5.2\"/><addr/><telecom/></assignedEntity></performer><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><!--Problem observation template - NOT episode template--><id root=\"e11275e7-67ae-11db-bd13-0800200c9a66b827vs52h7\"/><code code=\"64572001\" displayName=\"Condition\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED-CT\"/><text><reference value=\"#PROBSUMMARY_1\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"2005\"/></effectiveTime><value xsi:type=\"CD\" code=\"66214007\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Substance Abuse Disorder\"/><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\"><originalText><reference value=\"#PROBSTATUS_1\"/></originalText></value></observation></entryRelationship></observation></entryRelationship></act></entry><!--Sickle Cell Anemia--><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem act template --><id root=\"ec8a6ff8-ed4b-4f7e-82c3-e98e58b45de7\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><performer typeCode=\"PRF\"><assignedEntity><id extension=\"PseudoMD-1\" root=\"2.16.840.1.113883.3.72.5.2\"/><addr/><telecom/></assignedEntity></performer><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><!--Problem observation template --><id root=\"ab1791b0-5c71-11db-b0de-0800200c9a66\"/><code displayName=\"Condition\" code=\"64572001\" codeSystemName=\"SNOMED-CT\" codeSystem=\"2.16.840.1.113883.6.96\"/><text><reference value=\"#PROBSUMMARY_2\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"199701\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" displayName=\"Sickle Cell Anemia\" code=\"234391009\" codeSystemName=\"SNOMED\" codeSystem=\"2.16.840.1.113883.6.96\"/><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\"><originalText><reference value=\"#PROBSTATUS_2\"/></originalText></value></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem act template --><id root=\"d11275e9-67ae-11db-bd13-0800200c9a66\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><performer typeCode=\"PRF\"><assignedEntity><id extension=\"PseudoMD-1\" root=\"2.16.840.1.113883.3.72.5.2\"/><addr/><telecom/></assignedEntity></performer><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem observation template --><id root=\"9d3d416d-45ab-4da1-912f-4583e0632000\"/><code displayName=\"Condition\" code=\"64572001\" codeSystemName=\"SNOMED-CT\" codeSystem=\"2.16.840.1.113883.6.96\"/><text><reference value=\"#PROBSUMMARY_3\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"199903\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" displayName=\"Pneumonia\" code=\"233604007\" codeSystemName=\"SNOMED\" codeSystem=\"2.16.840.1.113883.6.96\"/><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\"><originalText><reference value=\"#PROBSTATUS_3\"/></originalText></value></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem act template --><id root=\"5a2c903c-bd77-4bd1-ad9d-452383fbfefa\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><performer typeCode=\"PRF\"><assignedEntity><id extension=\"PseudoMD-2\" root=\"2.16.840.1.113883.3.72.5.2\"/><addr/><telecom/></assignedEntity></performer><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"HL7 CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem observation template --><id/><code displayName=\"Condition\" code=\"64572001\" codeSystemName=\"SNOMED-CT\" codeSystem=\"2.16.840.1.113883.6.96\"/><text><reference value=\"#PROBSUMMARY_4\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"199701\"/><high nullFlavor=\"UNK\"/></effectiveTime><value xsi:type=\"CD\" displayName=\"Myocardial infarction\" code=\"22298006\" codeSystemName=\"SNOMED\" codeSystem=\"2.16.840.1.113883.6.96\"/><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\"><originalText><reference value=\"#PROBSTATUS_4\"/></originalText></value></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.7\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem act template --><id root=\"5a2c903c-bd77-4bd1-ad9d-452383fbfefa\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><performer typeCode=\"PRF\"><assignedEntity><id extension=\"PseudoMD-1\" root=\"2.16.840.1.113883.3.72.5.2\"/><addr/><telecom/></assignedEntity></performer><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\" negationInd=\"true\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><!--Problem observation template --><id/><code displayName=\"Symptom\" code=\"418799008\" codeSystemName=\"SNOMED-CT\" codeSystem=\"2.16.840.1.113883.6.96\"/><text><reference value=\"#PROBSUMMARY_5\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high value=\"20101026\"/></effectiveTime><value xsi:type=\"CD\" displayName=\"Patient currently pregnant\" code=\"77386006\" codeSystemName=\"SNOMED\" codeSystem=\"2.16.840.1.113883.6.96\"/></observation></entryRelationship></act></entry></section></component><component><!--Allergies--><section><templateId root=\"2.16.840.1.113883.3.88.11.83.102\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.13\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"2.16.840.1.113883.10.20.1.2\" assigningAuthorityName=\"HL7 CCD\"/><!--Allergies/Reactions section template--><code code=\"48765-2\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Allergies\"/><title>Allergies and Adverse Reactions</title><text><table border=\"1\" width=\"100%\"><thead><tr><th>Type</th><th>Substance</th><th>Reaction</th><th>Status</th></tr></thead><tbody><tr ID=\"ALGSUMMARY_1\"><td ID=\"ALGTYPE_1\">Drug Allergy</td><td ID=\"ALGSUB_1\">Penicillin</td><td ID=\"ALGREACT_1\">Hives</td><td ID=\"ALGSTATUS_1\">Active</td></tr><tr ID=\"ALGSUMMARY_2\"><td ID=\"ALGTYPE_2\">Drug Intolerance</td><td ID=\"ALGSUB_2\">Aspirin</td><td ID=\"ALGREACT_2\">Wheezing</td><td ID=\"ALGSTATUS_2\">Active</td></tr><tr ID=\"ALGSUMMARY_3\"><td ID=\"ALGTYPE_3\">Drug Intolerance</td><td ID=\"ALGSUB_3\">Codeine</td><td ID=\"ALGREACT_3\">Nausea</td><td ID=\"ALGSTATUS_3\">Active</td></tr></tbody></table></text><confidentialityCode/><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.6\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.3\" assigningAuthorityName=\"IHE PCC\"/><!--Allergy act template --><id root=\"36e3e930-7b14-11db-9fe1-0800200c9a66\"/><code nullFlavor=\"NA\"/><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.18\" assigningAuthorityName=\"CCD\"/><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.6\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"2.16.840.1.113883.10.20.1.18\"/><!--Allergy observation template. NOTE that the HITSP/C83 requirement for code (i.e. allergy type) differs from the IHE PCC recommendation for code.--><id root=\"4adc1020-7b14-11db-9fe1-0800200c9a66\"/><code code=\"416098002\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"drug allergy\" codeSystemName=\"SNOMED CT\"/><text><reference value=\"#ALGSUMMARY_1\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><!--Note that IHE/PCC and HITSP/C32 differ in how to represent the drug, substance, or food that one is allergic to. IHE/PCC expects to see that information in <value> and HITSP/C32 expects to see it in <participant>.--><value xsi:type=\"CD\" code=\"70618\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Penicillin\" codeSystemName=\"RxNorm\"><originalText><reference value=\"#ALGSUB_1\"/></originalText></value><participant typeCode=\"CSM\"><participantRole classCode=\"MANU\"><addr/><telecom/><playingEntity classCode=\"MMAT\"><code code=\"70618\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Penicillin\" codeSystemName=\"RxNorm\"><originalText><reference value=\"#ALGSUB_1\"/></originalText></code><name>Penicillin</name></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\"><originalText><reference value=\"#ALGREACT_1\"/></originalText></value></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\"><originalText><reference value=\"#ALGSTATUS_1\"/></originalText></value></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.6\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.3\" assigningAuthorityName=\"IHE PCC\"/><!--Allergy act template --><id root=\"eb936010-7b17-11db-9fe1-0800200c9a66\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.18\" assigningAuthorityName=\"CCD\"/><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.6\" assigningAuthorityName=\"IHE PCC\"/><!--Allergy observation template. NOTE that the HITSP/C83 requirement for code (i.e. allergy type) differs from the IHE PCC recommendation for code.--><id root=\"eb936011-7b17-11db-9fe1-0800200c9a66\"/><code displayName=\"propensity to adverse reactions to drug\" code=\"419511003\" codeSystemName=\"SNOMED CT\" codeSystem=\"2.16.840.1.113883.6.96\"/><text><reference value=\"#ALGSUMMARY_2\"/></text><statusCode code=\"completed\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><!--Note that IHE/PCC and HITSP/C32 differ in how to represent the brug, substance, or food that one is allergic to. IHE/PCC expects to see that information in <value> and HITSP/C32 expects to see it in <participant>.--><value xsi:type=\"CD\" code=\"1191\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Aspirin\" codeSystemName=\"RxNorm\"><originalText><reference value=\"#ALGSUB_2\"/></originalText></value><participant typeCode=\"CSM\"><participantRole classCode=\"MANU\"><addr/><telecom/><playingEntity classCode=\"MMAT\"><code code=\"1191\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Aspirin\" codeSystemName=\"RxNorm\"><originalText><reference value=\"#ALGSUB_2\"/></originalText></code><name>Aspirin</name></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=\"272040008\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Wheezing\"><originalText><reference value=\"#ALGREACT_2\"/></originalText></value></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\"><originalText><reference value=\"#ALGSTATUS_2\"/></originalText></value></observation></entryRelationship></observation></entryRelationship></act></entry><entry typeCode=\"DRIV\"><act classCode=\"ACT\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.6\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.27\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.1\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5.3\" assigningAuthorityName=\"IHE PCC\"/><!--Allergy act template --><id root=\"c3df3b61-7b18-11db-9fe1-0800200c9a66\"/><code nullFlavor=\"NA\"/><statusCode code=\"active\"/><effectiveTime><low nullFlavor=\"UNK\"/></effectiveTime><entryRelationship typeCode=\"SUBJ\" inversionInd=\"false\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.18\"/><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.6\" assigningAuthorityName=\"IHE PCC\"/><!--Allergy observation template. NOTE that the HITSP/C83 requirement for code (i.e. allergy or adverse reaction type) differs from the IHE PCC recommendation for code.--><id root=\"c3df3b60-7b18-11db-9fe1-0800200c9a66\"/><code code=\"59037007\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"drug intolerance\" codeSystemName=\"SNOMED CT\"/><text><reference value=\"#ALGSUMMARY_3\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"200512\"/><high value=\"200601\"/></effectiveTime><!--Note that IHE/PCC and HITSP/C32 differ in how to represent the drug, substance, or food that one is allergic to. IHE/PCC expects to see that information in <value> and HITSP/C32 expects to see it in <participant>.--><value xsi:type=\"CD\" code=\"2670\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Codeine\" codeSystemName=\"RxNorm\"><originalText><reference value=\"#ALGSUB_3\"/></originalText></value><participant typeCode=\"CSM\"><participantRole classCode=\"MANU\"><addr/><telecom/><playingEntity classCode=\"MMAT\"><code code=\"2670\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Codeine\" codeSystemName=\"RxNorm\"><originalText><reference value=\"#ALGSUB_3\"/></originalText></code><name>Codeine</name></playingEntity></participantRole></participant><entryRelationship typeCode=\"MFST\" inversionInd=\"true\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.54\" assigningAuthorityName=\"CCD\"/><!-- Reaction observation template --><code code=\"ASSERTION\" codeSystem=\"2.16.840.1.113883.5.4\"/><text/><statusCode code=\"completed\"/><value xsi:type=\"CD\" code=\"73879007\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Nausea\"><originalText><reference value=\"#ALGREACT_3\"/></originalText></value><entryRelationship typeCode=\"SUBJ\"><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.55\" assigningAuthorityName=\"CCD\"/><code code=\"SEV\" displayName=\"Severity\" codeSystemName=\"HL7 ActCode\" codeSystem=\"2.16.840.1.113883.5.4\"/><text>Required by HITSP C-83</text><statusCode code=\"completed\"/><value xsi:type=\"CE\" displayName=\"moderate\" code=\"6736007\" codeSystemName=\"SNOMED\" codeSystem=\"2.16.840.1.113883.6.96\"/></observation></entryRelationship></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\"><originalText><reference value=\"#ALGSTATUS_3\"/></originalText></value></observation></entryRelationship></observation></entryRelationship></act></entry></section></component><component><!--Medications--><section><templateId root=\"2.16.840.1.113883.3.88.11.83.112\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.19\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"2.16.840.1.113883.10.20.1.8\" assigningAuthorityName=\"HL7 CCD\"/><!--Medications section template--><code code=\"10160-0\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"History of medication use\"/><title>Medications</title><text><table border=\"1\" width=\"100%\"><thead><tr><th>Medication</th><th>Dose</th><th>Form</th><th>Route</th><th>Sig Text</th><th>Dates</th><th>Status</th></tr></thead><tbody><!-- Bupropion Hydrochloride 200 MG Extended Release Tablet --><tr ID=\"MEDSUMMARY_1\"><td ID=\"MEDNAME_1\">Bupropion Hydrochloride 200 MG Extended Release Tablet</td><td ID=\"MEDDOSE_1\">200 mg</td><td ID=\"MEDFORM_1\">tablet</td><td ID=\"MEDROUTE_1\">oral</td><td ID=\"SIGTXT_1\">200mg PO daily</td><td>unknown</td><td ID=\"MEDSTATUS_1\">Active</td></tr><tr ID=\"MEDSUMMARY_2\"><td ID=\"MEDNAME_2\">clopidogrel (Plavix)</td><td ID=\"MEDDOSE_2\">75 mg</td><td ID=\"MEDFORM_2\">tablet</td><td ID=\"MEDROUTE_2\">oral</td><td ID=\"SIGTXT_2\">75mg PO daily</td><td>unknown</td><td ID=\"MEDSTATUS_2\">Active</td></tr><tr ID=\"MEDSUMMARY_3\"><td ID=\"MEDNAME_3\">metoprolol</td><td ID=\"MEDDOSE_3\">25 mg</td><td ID=\"MEDFORM_3\">tablet</td><td ID=\"MEDROUTE_3\">oral</td><td ID=\"SIGTXT_3\">25mg PO BID</td><td>Nov 2007+</td><td ID=\"MEDSTATUS_3\">Active</td></tr><tr ID=\"MEDSUMMARY_4\"><td ID=\"MEDNAME_4\">prednisone (Deltasone)</td><td ID=\"MEDDOSE_4\">20 mg</td><td ID=\"MEDFORM_4\">tablet</td><td ID=\"MEDROUTE_4\">oral</td><td ID=\"SIGTXT_4\">20mg PO daily</td><td>Mar 28, 2000+</td><td ID=\"MEDSTATUS_4\">Active</td></tr><tr ID=\"MEDSUMMARY_5\"><td ID=\"MEDNAME_5\">cephalexin (Keflex)</td><td ID=\"MEDDOSE_5\">500 mg</td><td ID=\"MEDFORM_5\">tablet</td><td ID=\"MEDROUTE_5\">oral</td><td ID=\"SIGTXT_5\">500mg PO QID x 7 days (for bronchitis)</td><td>Mar-Apr 2000</td><td ID=\"MEDSTATUS_5\">Completed</td></tr></tbody></table></text><!-- Bupropion Hydrochloride 200 MG Extended Release Tablet --><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><!--Medication activity template --><id root=\"cdbd5b05-6cde-11db-9fe1-08002tg964rfh8823ejba-00c9a66\"/><text><reference value=\"#SIGTEXT_1\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><effectiveTime xsi:type=\"PIVL_TS\" institutionSpecified=\"false\" operator=\"A\"><period value=\"24\" unit=\"h\"/></effectiveTime><!--The following route, dose and administrationUnit elements are HITSP/C83 Sig Components that are optional elements in a HITSP/C83 document. The dose and administrationUnit information is often inferable from the code (e.g. RxNorm code) of the consumable/manufacturedProduct. The route is often inferable from the administrativeUnit (e.g tablet implies oral route). --><routeCode code=\"C38288\" displayName=\"Oral\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA RouteOfAdministration\"><originalText><reference value=\"#MEDROUTE_1\"/></originalText><translation displayName=\"Swallow, oral\" code=\"PO\" codeSystemName=\"HL7 RouteOfAdministration\" codeSystem=\"2.16.840.1.113883.5.112\"/></routeCode><doseQuantity value=\"200\" unit=\"mg\"/><administrationUnitCode code=\"C42998\" displayName=\"Tablet\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA Dosage Forms\"><originalText><reference value=\"#MEDFORM_1\"/></originalText></administrationUnitCode><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Product template --><manufacturedMaterial><code code=\"993536\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Bupropion Hydrochloride 200 MG Extended Release Tablet\" codeSystemName=\"RxNorm\"><originalText><reference value=\"#MEDNAME_1\"/></originalText></code><name>Wellbutrin</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"REFR\"><!--To Identify Status--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" displayName=\"Active\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"><originalText><reference value=\"#MEDSTATUS_1\"/></originalText></value></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><!--To identify Rx or NOT--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"73639000\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Prescription Drug\"/></observation></entryRelationship></substanceAdministration></entry><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><!--Medication activity template --><id root=\"cdbd5b05-6cde-11db-9fe1-0800200c9a66\"/><text><reference value=\"#SIGTEXT_2\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low nullFlavor=\"UNK\"/><high nullFlavor=\"UNK\"/></effectiveTime><effectiveTime xsi:type=\"PIVL_TS\" institutionSpecified=\"false\" operator=\"A\"><period value=\"24\" unit=\"h\"/></effectiveTime><!--The following route, dose and administrationUnit elements are HITSP/C83 Sig Components that are optional elements in a HITSP/C83 document. The dose and administrationUnit information is often inferable from the code (e.g. RxNorm code) of the consumable/manufacturedProduct. The route is often inferable from the administrativeUnit (e.g tablet implies oral route). --><routeCode code=\"C38288\" displayName=\"Oral\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA RouteOfAdministration\"><originalText><reference value=\"#MEDROUTE_2\"/></originalText><translation displayName=\"Swallow, oral\" code=\"PO\" codeSystemName=\"HL7 RouteOfAdministration\" codeSystem=\"2.16.840.1.113883.5.112\"/></routeCode><doseQuantity value=\"75\" unit=\"mg\"/><administrationUnitCode code=\"C42998\" displayName=\"Tablet\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA Dosage Forms\"><originalText><reference value=\"#MEDFORM_2\"/></originalText></administrationUnitCode><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Product template --><manufacturedMaterial><code code=\"309362\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Clopidogrel 75 MG oral tablet\" codeSystemName=\"RxNorm\"><originalText><reference value=\"#MEDNAME_2\"/></originalText><translation code=\"174742\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Plavix\" codeSystemName=\"RxNorm\"/></code><name>Plavix</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"REFR\"><!--To Identify Status--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" displayName=\"Active\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"><originalText><reference value=\"#MEDSTATUS_2\"/></originalText></value></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><!--To identify Rx or NOT--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"73639000\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Prescription Drug\"/></observation></entryRelationship></substanceAdministration></entry><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><!--Medication activity template --><id root=\"cdbd5b01-6cde-11db-9fe1-0800200c9a66\"/><text><reference value=\"#SIGTEXT_3\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20071121\"/><high nullFlavor=\"UNK\"/></effectiveTime><effectiveTime xsi:type=\"PIVL_TS\" institutionSpecified=\"false\" operator=\"A\"><period value=\"12\" unit=\"h\"/></effectiveTime><!--The following route, dose and administrationUnit elements are HITSP/C83 Sig Components that are optional elements in a HITSP/C83 document. The dose and administrationUnit information is often inferable from the code (e.g. RxNorm code) of the consumable/manufacturedProduct. The route is often inferable from the administrativeUnit (e.g tablet implies oral route). --><routeCode code=\"C38288\" displayName=\"Oral\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA RouteOfAdministration\"><originalText><reference value=\"#MEDROUTE_3\"/></originalText><translation displayName=\"Swallow, oral\" code=\"PO\" codeSystemName=\"HL7 RouteOfAdministration\" codeSystem=\"2.16.840.1.113883.5.112\"/></routeCode><doseQuantity value=\"25\" unit=\"mg\"/><administrationUnitCode code=\"C42998\" displayName=\"Tablet\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA Dosage Forms\"><originalText><reference value=\"#MEDFORM_3\"/></originalText></administrationUnitCode><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Product template --><manufacturedMaterial><code code=\"430618\" displayName=\"Metoprolol 25 MG oral tablet\" codeSystemName=\"RxNorm\" codeSystem=\"2.16.840.1.113883.6.88\"><originalText><reference value=\"#MEDNAME_3\"/></originalText></code><name/></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"SUBJ\"><!--To identify Rx or NOT--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"73639000\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Prescription Drug\"/></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><!--Patient Instructions--><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.49\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3\" assigningAuthorityName=\"IHE PCC\"/><code code=\"PINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text>This is the text of the Patient Instruction. Note that this instruction is printed in the narrative text of the parent Section and is refereced by the following pointer to it.<reference value=\"PntrtoSectionText\"/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"SUBJ\"><!--Fill Instructions--><act classCode=\"ACT\" moodCode=\"INT\"><templateId root=\"2.16.840.1.113883.10.20.1.43\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.3.1\" assigningAuthorityName=\"IHE PCC\"/><code code=\"FINSTRUCT\" codeSystem=\"1.3.6.1.4.1.19376.1.5.3.2\" codeSystemName=\"IHEActCode\"/><text>This is the text of the Fulfillment Instruction. Note that this instruction is printed in the narrative text of the parent Section and is refereced by the following pointer to it.<reference value=\"PntrtoSectionText\"/></text><statusCode code=\"completed\"/></act></entryRelationship><entryRelationship typeCode=\"REFR\"><!--To Identify Status--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" displayName=\"Active\" code=\"55561003\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"><originalText><reference value=\"#MEDSTATUS_3\"/></originalText></value></observation></entryRelationship></substanceAdministration></entry><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><!--Medication activity template --><id root=\"cdbd5b03-6cde-11db-9fe1-0800200c9a66\"/><text><reference value=\"#SIGTEXT_4\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20000328\"/><high nullFlavor=\"UNK\"/></effectiveTime><effectiveTime xsi:type=\"PIVL_TS\" institutionSpecified=\"false\" operator=\"A\"><period value=\"24\" unit=\"h\"/></effectiveTime><!--The following route, dose and administrationUnit elements are HITSP/C83 Sig Components that are optional elements in a HITSP/C83 document. The dose and administrationUnit information is often inferable from the code (e.g. RxNorm code) of the consumable/manufacturedProduct. The route is often inferable from the administrativeUnit (e.g tablet implies oral route). --><routeCode code=\"C38288\" displayName=\"Oral\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA RouteOfAdministration\"><originalText><reference value=\"#MEDROUTE_4\"/></originalText><translation displayName=\"Swallow, oral\" code=\"PO\" codeSystemName=\"HL7 RouteOfAdministration\" codeSystem=\"2.16.840.1.113883.5.112\"/></routeCode><doseQuantity value=\"20\" unit=\"mg\"/><administrationUnitCode code=\"C42998\" displayName=\"Tablet\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA Dosage Forms\"><originalText><reference value=\"#MEDFORM_4\"/></originalText></administrationUnitCode><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Product template --><manufacturedMaterial><code code=\"312615\" displayName=\"Prednisone 20 MG oral tablet\" codeSystemName=\"RxNorm\" codeSystem=\"2.16.840.1.113883.6.88\"><originalText><reference value=\"#MEDNAME_4\"/></originalText><translation code=\"227730\" displayName=\"Deltasone\" codeSystemName=\"RxNorm\" codeSystem=\"2.16.840.1.113883.6.88\"/></code><name>Deltasone</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"REFR\"><!--To Identify Status--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" code=\"55561003\" displayName=\"Active\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"><originalText><reference value=\"#MEDSTATUS_4\"/></originalText></value></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><!--To identify Rx or NOT--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"329505003\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Over the counter product\"/></observation></entryRelationship></substanceAdministration></entry><entry typeCode=\"DRIV\"><substanceAdministration classCode=\"SBADM\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.24\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7\" assigningAuthorityName=\"IHE PCC\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.1\" assigningAuthorityName=\"IHE PCC\"/><!--Medication activity template --><id root=\"cdbd5b07-6cde-11db-9fe1-0800200c9a66\"/><text><reference value=\"#SIGTEXT_5\"/></text><statusCode code=\"completed\"/><effectiveTime xsi:type=\"IVL_TS\"><low value=\"20000328\"/><high value=\"20000404\"/></effectiveTime><effectiveTime xsi:type=\"PIVL_TS\" institutionSpecified=\"false\" operator=\"A\"><period value=\"6\" unit=\"h\"/></effectiveTime><!--The following route, dose and administrationUnit elements are HITSP/C83 Sig Components that are optional elements in a HITSP/C83 document. The dose and administrationUnit information is often inferable from the code (e.g. RxNorm code) of the consumable/manufacturedProduct. The route is often inferable from the administrativeUnit (e.g tablet implies oral route). --><routeCode code=\"C38288\" displayName=\"Oral\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA RouteOfAdministration\"><originalText><reference value=\"#MEDROUTE_2\"/></originalText><translation displayName=\"Swallow, oral\" code=\"PO\" codeSystemName=\"HL7 RouteOfAdministration\" codeSystem=\"2.16.840.1.113883.5.112\"/></routeCode><doseQuantity value=\"500\" unit=\"mg\"/><administrationUnitCode code=\"C42998\" displayName=\"Tablet\" codeSystem=\"2.16.840.1.113883.3.26.1.1\" codeSystemName=\"NCI - FDA Dosage Forms\"><originalText><reference value=\"#MEDFORM_5\"/></originalText></administrationUnitCode><consumable><manufacturedProduct><templateId root=\"2.16.840.1.113883.3.88.11.83.8.2\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.53\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.7.2\" assigningAuthorityName=\"IHE PCC\"/><!-- Product template --><manufacturedMaterial><code code=\"197454\" displayName=\"Cephalexin 500 MG oral tablet\" codeSystemName=\"RxNorm\" codeSystem=\"2.16.840.1.113883.6.88\"><originalText><reference value=\"#MEDNAME_5\"/></originalText><translation code=\"203167\" codeSystem=\"2.16.840.1.113883.6.88\" displayName=\"Keflex\" codeSystemName=\"RxNorm\"/></code><name>Keflex</name></manufacturedMaterial></manufacturedProduct></consumable><entryRelationship typeCode=\"REFR\"><!--To Identify Status--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.47\"/><code code=\"33999-4\" displayName=\"Status\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\"/><value xsi:type=\"CE\" code=\"73425007\" displayName=\"No Longer Active\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"><originalText><reference value=\"#MEDSTATUS_5\"/></originalText></value></observation></entryRelationship><entryRelationship typeCode=\"SUBJ\"><!--To identify Rx or NOT--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.8.1\" assigningAuthorityName=\"HITSP C83\"/><code code=\"73639000\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"Prescription Drug\"/></observation></entryRelationship><entryRelationship typeCode=\"RSON\"><!--Reason for Med--><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.28\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.5\" assigningAuthorityName=\"IHE PCC\"/><!-- Problem observation template --><id root=\"cdbd5b08-6cde-11db-9fe1-0800200c9a66\"/><code displayName=\"Condition\" code=\"64572001\" codeSystemName=\"SNOMED-CT\" codeSystem=\"2.16.840.1.113883.6.96\"/><text><reference value=\"#SIGTEXT_5\"/></text><statusCode code=\"completed\"/><effectiveTime><low value=\"20000328\"/></effectiveTime><value xsi:type=\"CD\" code=\"32398004\" displayName=\"Bronchitis\" codeSystem=\"2.16.840.1.113883.6.96\" codeSystemName=\"SNOMED CT\"/></observation></entryRelationship></substanceAdministration></entry></section></component><component><!--Results--><section><templateId root=\"2.16.840.1.113883.3.88.11.83.122\" assigningAuthorityName=\"HITSP/C83\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.3.28\" assigningAuthorityName=\"IHE PCC\"/><!--Diagnostic Results section template--><code code=\"30954-2\" codeSystem=\"2.16.840.1.113883.6.1\" codeSystemName=\"LOINC\" displayName=\"Results\"/><title>Diagnostic Results</title><text><table border=\"1\" width=\"100%\"><thead><tr><th> </th><th>March 23, 2000</th><th>April 06, 2000</th></tr></thead><tbody><tr><td colspan=\"3\"><content styleCode=\"BoldItalics\">Hematology</content></td></tr><tr ID=\"TESTSUMMARY_1\"><td ID=\"TESTRANGE_1\">HGB (M 13-18 g/dl; F 12-16 g/dl)</td><td>13.2</td><td> </td></tr><tr><td ID=\"TESTRANGE_2\">WBC (4.3-10.8 10+3/ul)</td><td>6.7</td><td> </td></tr><tr><td ID=\"TESTRANGE_3\">PLT (135-145 meq/l)</td><td>123 (L)</td><td> </td></tr><tr><td colspan=\"3\"><content styleCode=\"BoldItalics\">Chemistry</content></td></tr><tr><td ID=\"TESTRANGE_4\">NA (135-145meq/l)</td><td> </td><td>140</td></tr><tr><td ID=\"TESTRANGE_5\">K (3.5-5.0 meq/l)</td><td> </td><td>4.0</td></tr><tr><td ID=\"TESTRANGE_6\">CL (98-106 meq/l)</td><td> </td><td>102</td></tr><tr><td ID=\"TESTRANGE_7\">HCO3 (18-23 meq/l)</td><td> </td><td>35 (H)</td></tr></tbody></table></text><!--HITSP/C83 requires Diagnostic Results to have both Procedure and Results, but gives no guidance as to how they should be related together. If Result requires a specimen, the Procedure to obtain the specimen could be under the specimen. This example simply groups a Procedure with the Results obtained from that Procedure. This is probably not the best way to do it, but satisfies the requirements of both IHE/PCC and HITSP/C83 for Diagnostic Results. --><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=\"200003231430\"/><component><procedure classCode=\"PROC\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.17\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.29\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.19\" assigningAuthorityName=\"IHE PCC\"/><id/><code code=\"43789009\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"CBC WO DIFFERENTIAL\"><originalText>Extract blood for CBC test<reference value=\"Ptr to text in parent Section\"/></originalText></code><text>Extract blood for CBC test. Note that IHE rules require description and reference to go here rather than in originalText of code.<reference value=\"Ptr to text in parent Section\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"200003231430\"/><performer><assignedEntity><id extension=\"PseudoMD-1\" root=\"2.16.840.1.113883.3.72.5.2\"/><addr>See documentationOf in Header</addr><telecom/></assignedEntity></performer></procedure></component><component><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.15.1\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\" assigningAuthorityName=\"IHE PCC\"/><!-- Result observation template --><id root=\"107c2dc0-67a5-11db-bd13-0800200c9a66\"/><code code=\"30313-1\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"HGB\"/><text><reference value=\"#TESTSUMMARY_1\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"200003231430\"/><value xsi:type=\"PQ\" value=\"13.2\" unit=\"g/dl\"/><interpretationCode code=\"N\" codeSystem=\"2.16.840.1.113883.5.83\"/><referenceRange><observationRange><text>M 13-18 g/dl; F 12-16 g/dl<reference value=\"#TESTRANGE_1\" /></text></observationRange></referenceRange></observation></component><component><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.15.1\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\" assigningAuthorityName=\"IHE PCC\"/><!-- Result observation template --><id root=\"8b3fa370-67a5-11db-bd13-0800200c9a66\"/><code code=\"33765-9\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"WBC\"/><text><reference value=\"#TESTSUMMARY_2\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"200003231430\"/><value xsi:type=\"PQ\" value=\"6.7\" unit=\"10+3/ul\"/><interpretationCode code=\"N\" codeSystem=\"2.16.840.1.113883.5.83\"/><referenceRange><observationRange><text><reference value=\"#TESTRANGE_2\"/></text><value xsi:type=\"IVL_PQ\"><low value=\"4.3\" unit=\"10+3/ul\"/><high value=\"10.8\" unit=\"10+3/ul\"/></value></observationRange></referenceRange></observation></component><component><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.15.1\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\" assigningAuthorityName=\"IHE PCC\"/><!-- Result observation template --><id root=\"80a6c740-67a5-11db-bd13-0800200c9a66\"/><code code=\"26515-7\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"PLT\"/><text><reference value=\"#TESTSUMMARY_3\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"200003231430\"/><value xsi:type=\"PQ\" value=\"123\" unit=\"10+3/ul\"/><interpretationCode code=\"L\" codeSystem=\"2.16.840.1.113883.5.83\"/><referenceRange><observationRange><text><reference value=\"#TESTRANGE_3\"/></text><value xsi:type=\"IVL_PQ\"><low value=\"150\" unit=\"10+3/ul\"/><high value=\"350\" unit=\"10+3/ul\"/></value></observationRange></referenceRange></observation></component></organizer></entry><entry typeCode=\"DRIV\"><organizer classCode=\"BATTERY\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.10.20.1.32\"/><!--Result organizer template --><id root=\"a40027e0-67a5-11db-bd13-0800200c9a66\"/><code code=\"20109005\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"LYTES\" codeSystemName=\"SNOMED CT\"/><statusCode code=\"completed\"/><effectiveTime value=\"200004061300\"/><component><procedure classCode=\"PROC\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.17\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.29\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.19\" assigningAuthorityName=\"IHE PCC\"/><id root=\"2c09fea1-e931-477d-bef7-3611a10c6a99\"/><code code=\"20109005\" codeSystem=\"2.16.840.1.113883.6.96\" displayName=\"LYTES\" codeSystemName=\"SNOMED CT\"><originalText>Extract blood for electrolytes tests<reference value=\"Ptr to text in parent Section\"/></originalText></code><text>Extract blood for electrolytes tests. Not IHE rules require description and reference to go here rather than in originalText of code.<reference value=\"Ptr to text in parent Section\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"200004061300\"/><performer><assignedEntity><id extension=\"PseudoMD-3\" root=\"2.16.840.1.113883.3.72.5.2\"/><addr>See documentationOf in Header</addr><telecom/></assignedEntity></performer></procedure></component><component><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.15.1\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\" assigningAuthorityName=\"IHE PCC\"/><!--Result observation template --><id root=\"a40027e1-67a5-11db-bd13-0800200c9a66\"/><code code=\"2951-2\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"NA\"/><text><reference value=\"#TESTSUMMARY_4\"/></text><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><text><reference value=\"#TESTRANGE_4\"/></text><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.3.88.11.83.15.1\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\" assigningAuthorityName=\"IHE PCC\"/><!-- Result observation template --><id root=\"a40027e2-67a5-11db-bd13-0800200c9a66\"/><code code=\"2823-3\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"K\"/><text><reference value=\"#TESTSUMMARY_5\"/></text><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><text><reference value=\"#TESTRANGE_5\"/></text><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.3.88.11.83.15.1\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\" assigningAuthorityName=\"IHE PCC\"/><!-- Result observation template --><id root=\"a40027e3-67a5-11db-bd13-0800200c9a66\"/><code code=\"2075-0\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"CL\"/><text><reference value=\"#TESTSUMMARY_6\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"200004061300\"/><value xsi:type=\"PQ\" value=\"102\" unit=\"meq/l\"/><interpretationCode code=\"N\" codeSystem=\"2.16.840.1.113883.5.83\"/><referenceRange><observationRange><text><reference value=\"#TESTRANGE_6\"/></text><value xsi:type=\"IVL_PQ\"><low value=\"98\" unit=\"meq/l\"/><high value=\"106\" unit=\"meq/l\"/></value></observationRange></referenceRange></observation></component><component><observation classCode=\"OBS\" moodCode=\"EVN\"><templateId root=\"2.16.840.1.113883.3.88.11.83.15.1\" assigningAuthorityName=\"HITSP C83\"/><templateId root=\"2.16.840.1.113883.10.20.1.31\" assigningAuthorityName=\"CCD\"/><templateId root=\"1.3.6.1.4.1.19376.1.5.3.1.4.13\" assigningAuthorityName=\"IHE PCC\"/><!-- Result observation template --><id root=\"a40027e4-67a5-11db-bd13-0800200c9a66\"/><code code=\"1963-8\" codeSystem=\"2.16.840.1.113883.6.1\" displayName=\"HCO3\"/><text><reference value=\"#TESTSUMMARY_7\"/></text><statusCode code=\"completed\"/><effectiveTime value=\"200004061300\"/><value xsi:type=\"PQ\" value=\"35\" unit=\"meq/l\"/><interpretationCode code=\"H\" codeSystem=\"2.16.840.1.113883.5.83\"/><referenceRange><observationRange><text><reference value=\"#TESTRANGE_7\"/></text><value xsi:type=\"IVL_PQ\"><low value=\"18\" unit=\"meq/l\"/><high value=\"23\" unit=\"meq/l\"/></value></observationRange></referenceRange></observation></component></organizer></entry></section></component></structuredBody></component></ClinicalDocument>"; // Request parameters: enforcement policies final XacmlResult xacmlResult = new XacmlResult(); xacmlResult.setMessageId(UUID.randomUUID().toString()); xacmlResult .setPatientId("C2S.PG-STAG.JuFlZI:&2.16.840.1.113883.3.704.100.200.1.1.3.1&ISO:1578821153:1427467752:MIWtI2"); xacmlResult.setPdpDecision("Permit"); final List<String> obligations = new LinkedList<String>(); obligations.add("ALC"); obligations.add("HIV"); // obligations.add("10160-0"); xacmlResult.setPdpObligations(obligations); xacmlResult .setSubjectPurposeOfUse(SubjectPurposeOfUse.HEALTHCARE_TREATMENT); // Compose request final DSSRequest request = new DSSRequest(); request.setDocumentXml(c32Xml); final SimpleMarshallerImpl marshaller = new SimpleMarshallerImpl(); request.setEnforcementPoliciesXml(marshaller.marshal(xacmlResult)); System.out.println(request.getDocumentXml()); System.out.println(request.getEnforcementPoliciesXml()); request.setAudited(false); // Invoke remote operation System.out.println("Invoking the remote operation (table format)..."); final DSSResponse response = client.segmentDocument(request); // Get the segmented document from response System.out.println("Fetched the response (table format):"); System.out.println(response.getSegmentedDocumentXml()); System.out.println(); // // Invoke remote operation // request.setDocumentXml(c32XmlMIE); // System.out.println("Invoking the remote operation (content format)..."); // response = client.segmentDocument(request); // // // Get the segmented document from response // System.out.println("Fetched the response (content format):"); // System.out.println(response.getSegmentedDocumentXml()); // // System.out.println(); // // // Invoke remote operation // request.setDocumentXml(c32XmlDocumentationOf); // System.out // .println("Invoking the remote operation (documentationOf)..."); // response = client.segmentDocument(request); // // // Get the segmented document from response // System.out.println("Fetched the response (documentationOf):"); // System.out.println(response.getSegmentedDocumentXml()); } }