+ Indivo2RDFXML.xsl and AD_PCHR_*-tmo.rdf
authorEric Prud'hommeaux <eric@w3.org>
Thu, 24 Feb 2011 10:13:41 -0500
changeset 39 9c504d3bdf5e
parent 38 c903152963c8
child 40 fa011128db3b
+ Indivo2RDFXML.xsl and AD_PCHR_*-tmo.rdf
syntheticPatients/AD_PCHR_1-tmo.rdf
syntheticPatients/AD_PCHR_2-tmo.rdf
syntheticPatients/AD_PCHR_3-tmo.rdf
syntheticPatients/AD_PCHR_4-tmo.rdf
syntheticPatients/AD_PCHR_5-tmo.rdf
syntheticPatients/AD_PCHR_6-tmo.rdf
syntheticPatients/AD_PCHR_7-tmo.rdf
syntheticPatients/Indivo2RDFXML.xsl
syntheticPatients/Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/AD_PCHR_1-tmo.rdf	Thu Feb 24 10:13:41 2011 -0500
@@ -0,0 +1,391 @@
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+         xmlns="tag:[email protected]:2009/tmo/translator#"
+         xmlns:foaf="http://xmlns.com/foaf/0.1/"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+         xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+         xmlns:cpr="http://purl.org/cpr/0.75#"
+         xmlns:in="http://indivo.org/vocab/xml/documents#"
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+         xmlns:trans="tag:[email protected]:2009/tmo/translator#"
+         xmlns:ro="http://www.obofoundry.org/ro/ro.owl#"
+         xmlns:skos="http://www.w3.org/2004/02/skos/core#"
+         xmlns:dct="http://purl.org/dc/terms/">
+   <cpr:patient-record rdf:about=""/>
+   <rdf:Descrption rdf:nodeID="patient">
+      <cpr:subjectOfDescription rdf:resource=""/>
+   </rdf:Descrption>
+   <rdf:Description rdf:nodeID="patient">
+      <cpr:patientID>000000001</cpr:patientID>
+   </rdf:Description>
+   <cpr:patient rdf:nodeID="patient">
+      <foaf:name>George Andrew Tour</foaf:name>
+      <foaf:givenName>George</foaf:givenName>
+      <foaf:familyName>Tour</foaf:familyName>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+    
+    
+    
+    
+    
+   </cpr:patient>
+   <rdf:Description rdf:about="trans:PrimaryCarePhysician">
+      <rdfs:subClassOf rdf:resource="cpr:physician"/>
+      <!--ont--></rdf:Description>
+   <trans:PrimaryCarePhysician rdf:nodeID="pricare">
+      <foaf:name>Henry No</foaf:name>
+      <foaf:givenName>Henry</foaf:givenName>
+      <foaf:familyName>No</foaf:familyName>
+      
+      
+    </trans:PrimaryCarePhysician>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:demographics indivo:dateOfBirth="1934-05-15" indivo:gender="Male&#34;&#xA;      "/>
+   </rdf:Description>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-05-15</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/00007414020</trans:ndcCode>
+            <trans:genericName>COREG TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-05-20</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/00071015540</trans:ndcCode>
+            <trans:genericName>LIPITOR TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-05-20</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/66105051810</trans:ndcCode>
+            <trans:genericName>COUMADIN TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-08-10</cpr:startsNoEarlierThan>
+      <cpr:stopsNoEarlierThan>2009-08-15</cpr:stopsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/11071084101</trans:ndcCode>
+            <trans:genericName>DONEPEZIL HYDROCHLORIDE TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-08-15</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/62856083130</trans:ndcCode>
+            <trans:genericName>ARICEPT TABLETS ORALLY DISINTEGRATING</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-05-15T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#hypertension"/>
+            <trans:ICD9>410</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <hypertension>
+      <dct:identifier>hypertension</dct:identifier>
+   </hypertension>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-05-20T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#hypercholesterolaemia"/>
+            <trans:ICD9>272</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <hypercholesterolaemia>
+      <dct:identifier>hypercholesterolaemia</dct:identifier>
+   </hypercholesterolaemia>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-05-17T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#atrial_fibrillation"/>
+            <trans:ICD9>427</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <atrial_fibrillation>
+      <dct:identifier>atrial fibrillation</dct:identifier>
+   </atrial_fibrillation>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-07-15T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#dementia"/>
+            <trans:ICD9>331</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <dementia>
+      <dct:identifier>dementia</dct:identifier>
+   </dementia>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-07-16T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#alzheimers_disease"/>
+            <trans:ICD9>331</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <alzheimers_disease>
+      <dct:identifier>alzheimer’s disease</dct:identifier>
+   </alzheimers_disease>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-05-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-15 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-15 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-15 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-15 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-15 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-05-17</trans:dateOfEncounter>
+      <trans:workingDiagnosis>atrial fibrillation</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-17 ;--><trans:testName>Rhythm ECG</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-05-18</trans:dateOfEncounter>
+      <trans:workingDiagnosis>atrial fibrillation</trans:workingDiagnosis>
+      <trans:reportedSymptoms>irregular pulse</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource="Warfarin_Sensitivity"/>
+            <!--indivo:dateMeasured 2009-05-18 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_VKOR"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource="Warfarin_Sensitivity"/>
+            <!--indivo:dateMeasured 2009-05-18 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_CPC9"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <rdf:Description rdf:about="variant_VKOR">
+      <skos:relatedMatch rdf:resource="variant_MST134"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_MST134">
+      <dct:identifier>MST134</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_VKOR">
+      <skos:relatedMatch rdf:resource="variant_MST576"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_MST576">
+      <dct:identifier>MST576</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_VKOR">
+      <skos:relatedMatch rdf:resource="variant_VKCFD2"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_VKCFD2">
+      <dct:identifier>VKCFD2</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_VKOR">
+      <skos:relatedMatch rdf:resource="variant_EDTP308"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_EDTP308">
+      <dct:identifier>EDTP308</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_VKOR">
+      <skos:relatedMatch rdf:resource="variant_MGC2694"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_MGC2694">
+      <dct:identifier>MGC2694</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_VKOR">
+      <skos:relatedMatch rdf:resource="variant_FLJ00289"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_FLJ00289">
+      <dct:identifier>FLJ00289</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_VKOR">
+      <skos:relatedMatch rdf:resource="variant_IMAGE345520"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_IMAGE345520">
+      <dct:identifier>IMAGE345520</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CPC9">
+      <skos:relatedMatch rdf:resource="variant_CYP2C"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2C">
+      <dct:identifier>CYP2C</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CPC9">
+      <skos:relatedMatch rdf:resource="variant_CYP2C10"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2C10">
+      <dct:identifier>CYP2C10</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CPC9">
+      <skos:relatedMatch rdf:resource="variant_MGC88320"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_MGC88320">
+      <dct:identifier>MGC88320</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CPC9">
+      <skos:relatedMatch rdf:resource="variant_P450IIC9"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_P450IIC9">
+      <dct:identifier>P450IIC9</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CPC9">
+      <skos:relatedMatch rdf:resource="variant_MGC149605"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_MGC149605">
+      <dct:identifier>MGC149605</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CPC9">
+      <skos:relatedMatch rdf:resource="variant_CYP2C9"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2C9">
+      <dct:identifier>CYP2C9</dct:identifier>
+   </rdf:Description>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-05-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>none</trans:workingDiagnosis>
+      <trans:reportedSymptoms>none</trans:reportedSymptoms>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-06-03</trans:dateOfEncounter>
+      <trans:workingDiagnosis>none</trans:workingDiagnosis>
+      <trans:reportedSymptoms>none</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-06-03 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-03</trans:dateOfEncounter>
+      <trans:workingDiagnosis>none</trans:workingDiagnosis>
+      <trans:reportedSymptoms>none</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-03 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Confusion, Declining memory</trans:reportedSymptoms>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-16</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms> Confusion, Declining memory </trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-16 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-16 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-16 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource="ADmark_Alzheimers_Evaluation"/>
+            <!--indivo:dateMeasured 2009-07-16 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_APOE4"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <rdf:Description rdf:about="variant_APOE4">
+      <skos:relatedMatch rdf:resource="variant_NG_007084_2_g_7903T_C"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_NG_007084_2_g_7903T_C">
+      <dct:identifier>NG_007084.2:g.7903T&gt;C</dct:identifier>
+   </rdf:Description>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-08-03</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-08-03 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-08-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>adverse event to Donepezil</trans:workingDiagnosis>
+      <trans:reportedSymptoms>nausea</trans:reportedSymptoms>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-11-03</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-11-03 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+</rdf:RDF>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/AD_PCHR_2-tmo.rdf	Thu Feb 24 10:13:41 2011 -0500
@@ -0,0 +1,745 @@
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+         xmlns="tag:[email protected]:2009/tmo/translator#"
+         xmlns:foaf="http://xmlns.com/foaf/0.1/"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+         xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+         xmlns:cpr="http://purl.org/cpr/0.75#"
+         xmlns:in="http://indivo.org/vocab/xml/documents#"
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+         xmlns:trans="tag:[email protected]:2009/tmo/translator#"
+         xmlns:ro="http://www.obofoundry.org/ro/ro.owl#"
+         xmlns:skos="http://www.w3.org/2004/02/skos/core#"
+         xmlns:dct="http://purl.org/dc/terms/">
+   <cpr:patient-record rdf:about=""/>
+   <rdf:Descrption rdf:nodeID="patient">
+      <cpr:subjectOfDescription rdf:resource=""/>
+   </rdf:Descrption>
+   <rdf:Description rdf:nodeID="patient">
+      <cpr:patientID>000000002</cpr:patientID>
+   </rdf:Description>
+   <cpr:patient rdf:nodeID="patient">
+      <foaf:name>Monica Mary Mall</foaf:name>
+      <foaf:givenName>Monica</foaf:givenName>
+      <foaf:familyName>Mall</foaf:familyName>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+      <foaf:mbox rdf:resource="mailto:false"/>
+    
+    
+    
+    
+   </cpr:patient>
+   <rdf:Description rdf:about="trans:PrimaryCarePhysician">
+      <rdfs:subClassOf rdf:resource="cpr:physician"/>
+      <!--ont--></rdf:Description>
+   <trans:PrimaryCarePhysician rdf:nodeID="pricare">
+      <foaf:name>Bill Stall</foaf:name>
+      <foaf:givenName>Bill</foaf:givenName>
+      <foaf:familyName>Stall</foaf:familyName>
+      
+      
+    </trans:PrimaryCarePhysician>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:demographics indivo:dateOfBirth="1937-05-15" indivo:gender="Female&#34;&#xA;      "/>
+   </rdf:Description>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2007-07-20</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/26053006601</trans:ndcCode>
+            <trans:genericName>ATORVASTATIN TABLET</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2007-07-20</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/63739043401</trans:ndcCode>
+            <trans:genericName>CHEWABLE ORANGE ASPIRIN TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2008-03-20</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/55111019690</trans:ndcCode>
+            <trans:genericName>CLOPIDOGREL TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2008-03-20</cpr:startsNoEarlierThan>
+      <cpr:stopsNoEarlierThan>2009-08-15</cpr:stopsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/54569597500</trans:ndcCode>
+            <trans:genericName>CARVEDILOL TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2008-05-18</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/54569529101</trans:ndcCode>
+            <trans:genericName>FLUOXETINE CAPSULES</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2008-05-18</cpr:startsNoEarlierThan>
+      <cpr:stopsNoEarlierThan>2009-08-15</cpr:stopsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/54569476401</trans:ndcCode>
+            <trans:genericName>DIAZEPAM TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-10-15</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/54907010101</trans:ndcCode>
+            <trans:genericName>MEMANTINE HYDROCHLORIDE</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2004-07-10T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#mild_cognitive_impairment"/>
+            <trans:ICD9>290.0</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <mild_cognitive_impairment>
+      <dct:identifier>mild cognitive impairment</dct:identifier>
+   </mild_cognitive_impairment>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2007-07-20T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#hypercholesterolaemia"/>
+            <trans:ICD9>272</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <hypercholesterolaemia>
+      <dct:identifier>hypercholesterolaemia</dct:identifier>
+   </hypercholesterolaemia>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2008-03-18T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#myocardial_infarction"/>
+            <trans:ICD9>410.3</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <myocardial_infarction>
+      <dct:identifier>myocardial infarction</dct:identifier>
+   </myocardial_infarction>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2008-05-16T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#anxiety_depression"/>
+            <trans:ICD9>300.4</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <anxiety_depression>
+      <dct:identifier>anxiety depression</dct:identifier>
+   </anxiety_depression>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-10-15T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#alzheimers_disease"/>
+            <trans:ICD9>331</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <alzheimers_disease>
+      <dct:identifier>alzheimer’s disease</dct:identifier>
+   </alzheimers_disease>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2004-07-10</trans:dateOfEncounter>
+      <trans:workingDiagnosis>mild cognitive impairment</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2004-07-17</trans:dateOfEncounter>
+      <trans:workingDiagnosis>mild cognitive impairment</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-07-17 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2004-07-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-07-20 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-07-20 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-07-20 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-07-20 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-07-20 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-07-20 ;--><trans:testName>Syphilis test; quantitative</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2004-10-01</trans:dateOfEncounter>
+      <trans:workingDiagnosis>mild cognitive impairment</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource="ADmark_Alzheimers_Evaluation"/>
+            <!--indivo:dateMeasured 2004-10-01 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_APOE4"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-10-01 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2004-10-01 ;--><trans:testName>Spinal tap</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <rdf:Description rdf:about="variant_APOE4">
+      <skos:relatedMatch rdf:resource="variant_NG_007084_2_g_7903T_C"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_NG_007084_2_g_7903T_C">
+      <dct:identifier>NG_007084.2:g.7903T&gt;C</dct:identifier>
+   </rdf:Description>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2005-04-01</trans:dateOfEncounter>
+      <trans:workingDiagnosis>mild cognitive impairment</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-04-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-04-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-04-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-04-01 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-04-01 ;--><trans:testName>Spinal tap</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2005-07-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-07-20 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-07-20 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-07-20 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-07-20 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-07-20 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2005-10-01</trans:dateOfEncounter>
+      <trans:workingDiagnosis>mild cognitive impairment</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-10-01 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-10-01 ;--><trans:testName>Spinal tap</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2006-04-01</trans:dateOfEncounter>
+      <trans:workingDiagnosis>mild cognitive impairment</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-04-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-04-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-04-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-04-01 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-04-01 ;--><trans:testName>Spinal tap</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2006-07-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-07-20 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-07-20 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-07-20 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-07-20 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-07-20 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2006-10-01</trans:dateOfEncounter>
+      <trans:workingDiagnosis>mild cognitive impairment</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-10-01 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2006-10-01 ;--><trans:testName>Spinal tap</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2007-07-18</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-07-18 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-07-18 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-07-18 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-07-18 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-07-18 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2007-10-01</trans:dateOfEncounter>
+      <trans:workingDiagnosis>mild cognitive impairment</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-10-01 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-10-01 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-10-01 ;--><trans:testName>Spinal tap</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2007-10-18</trans:dateOfEncounter>
+      <trans:workingDiagnosis>none</trans:workingDiagnosis>
+      <trans:reportedSymptoms>none</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-10-18 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-01-18</trans:dateOfEncounter>
+      <trans:workingDiagnosis>none</trans:workingDiagnosis>
+      <trans:reportedSymptoms>none</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-01-18 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-03-18</trans:dateOfEncounter>
+      <trans:workingDiagnosis>myocardial infarction</trans:workingDiagnosis>
+      <trans:reportedSymptoms>chest pains</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>Rhythm ECG</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>Rhythm ECG</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>Rhythm ECG</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>TNI Biomarker</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>PT INR APTT Fibrogen</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-18 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-03-19</trans:dateOfEncounter>
+      <trans:workingDiagnosis>myocardial infarction</trans:workingDiagnosis>
+      <trans:reportedSymptoms>myocardial infarction</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource=""/>
+            <!--indivo:dateMeasured 2008-03-19 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_CYP2C19"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <rdf:Description rdf:about="variant_CYP2C19">
+      <skos:relatedMatch rdf:resource="variant_RP11-400G3_4"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP11-400G3_4">
+      <dct:identifier>RP11-400G3.4</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2C19">
+      <skos:relatedMatch rdf:resource="variant_CPCJ"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CPCJ">
+      <dct:identifier>CPCJ</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2C19">
+      <skos:relatedMatch rdf:resource="variant_CYP2C"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2C">
+      <dct:identifier>CYP2C</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2C19">
+      <skos:relatedMatch rdf:resource="variant_P450C2C"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_P450C2C">
+      <dct:identifier>P450C2C</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2C19">
+      <skos:relatedMatch rdf:resource="variant_P450IIC19"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_P450IIC19">
+      <dct:identifier>P450IIC19</dct:identifier>
+   </rdf:Description>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2005-05-16</trans:dateOfEncounter>
+      <trans:workingDiagnosis>anxiety depression</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Depression</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-05-16 ;--><trans:testName>Depression Questionnaire</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-05-17</trans:dateOfEncounter>
+      <trans:workingDiagnosis>myocardial infarction</trans:workingDiagnosis>
+      <trans:reportedSymptoms>depression</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource=""/>
+            <!--indivo:dateMeasured 2008-05-17 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_RP4-669P10_2"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_CPD6"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CPD6">
+      <dct:identifier>CPD6</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_CYP2D"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2D">
+      <dct:identifier>CYP2D</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_CYP2D_"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2D_">
+      <dct:identifier>[email protected]</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_CYP2DL1"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_CYP2DL1">
+      <dct:identifier>CYP2DL1</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_MGC120389"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_MGC120389">
+      <dct:identifier>MGC120389</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_MGC120390"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_MGC120390">
+      <dct:identifier>MGC120390</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_P450-DB1"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_P450-DB1">
+      <dct:identifier>P450-DB1</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_P450C2D"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_P450C2D">
+      <dct:identifier>P450C2D</dct:identifier>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_RP4-669P10_2">
+      <skos:relatedMatch rdf:resource="variant_P450DB1"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_P450DB1">
+      <dct:identifier>P450DB1</dct:identifier>
+   </rdf:Description>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2005-05-18</trans:dateOfEncounter>
+      <trans:workingDiagnosis>anxiety depression</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Depression</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-05-18 ;--><trans:testName>Depression Questionnaire</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2005-06-18</trans:dateOfEncounter>
+      <trans:workingDiagnosis>anxiety depression</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Depression</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-06-18 ;--><trans:testName>Depression Questionnaire</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-07-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-07-20 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-07-20 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-07-20 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-07-20 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-07-20 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Confusion, Declining memory</trans:reportedSymptoms>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-20 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-20 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-20 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-20 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-20 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+</rdf:RDF>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/AD_PCHR_3-tmo.rdf	Thu Feb 24 10:13:41 2011 -0500
@@ -0,0 +1,288 @@
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+         xmlns="tag:[email protected]:2009/tmo/translator#"
+         xmlns:foaf="http://xmlns.com/foaf/0.1/"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+         xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+         xmlns:cpr="http://purl.org/cpr/0.75#"
+         xmlns:in="http://indivo.org/vocab/xml/documents#"
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+         xmlns:trans="tag:[email protected]:2009/tmo/translator#"
+         xmlns:ro="http://www.obofoundry.org/ro/ro.owl#"
+         xmlns:skos="http://www.w3.org/2004/02/skos/core#"
+         xmlns:dct="http://purl.org/dc/terms/">
+   <cpr:patient-record rdf:about=""/>
+   <rdf:Descrption rdf:nodeID="patient">
+      <cpr:subjectOfDescription rdf:resource=""/>
+   </rdf:Descrption>
+   <rdf:Description rdf:nodeID="patient">
+      <cpr:patientID>000000003</cpr:patientID>
+   </rdf:Description>
+   <cpr:patient rdf:nodeID="patient">
+      <foaf:name>Benny Smith</foaf:name>
+      <foaf:givenName>Benny</foaf:givenName>
+      <foaf:familyName>Smith</foaf:familyName>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+    
+    
+    
+    
+    
+   </cpr:patient>
+   <rdf:Description rdf:about="trans:PrimaryCarePhysician">
+      <rdfs:subClassOf rdf:resource="cpr:physician"/>
+      <!--ont--></rdf:Description>
+   <trans:PrimaryCarePhysician rdf:nodeID="pricare">
+      <foaf:name>Sridhar Banerjee</foaf:name>
+      <foaf:givenName>Sridhar</foaf:givenName>
+      <foaf:familyName>Banerjee</foaf:familyName>
+      
+      
+    </trans:PrimaryCarePhysician>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:demographics indivo:dateOfBirth="1946-12-07" indivo:gender="Male&#34;&#xA;      "/>
+   </rdf:Description>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2005-07-09</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/63856-223-40</trans:ndcCode>
+            <trans:genericName>CODEINE TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2005-07-09</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/0025-1525-31</trans:ndcCode>
+            <trans:genericName>CELECOXIB CAPSULES</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2006-11-11</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/67618-106-60</trans:ndcCode>
+            <trans:genericName>DOCUSATE SODIUM CAPSULES</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2007-11-09</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/0054-8486-16</trans:ndcCode>
+            <trans:genericName>LACTULOSE</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2007-11-09</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/0179-0016-70-30</trans:ndcCode>
+            <trans:genericName>OMEPRAZOLE CAPSULES</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-11-09</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/0000</trans:ndcCode>
+            <trans:genericName>DONEPEZIL HYDROCHLORIDE TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2001-01-03T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#osteoarthrosis_generalized_involving_hand"/>
+            <trans:ICD9>715.04</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <osteoarthrosis_generalized_involving_hand>
+      <dct:identifier>Osteoarthrosis generalized involving hand</dct:identifier>
+   </osteoarthrosis_generalized_involving_hand>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2005-11-03T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#alzheimers_disease"/>
+            <trans:ICD9>331</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <alzheimers_disease>
+      <dct:identifier>Alzheimer's Disease</dct:identifier>
+   </alzheimers_disease>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2007-09-23T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#dyspepsia_and_other_specified_disorders_of_stomach"/>
+            <trans:ICD9>536.8</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <dyspepsia_and_other_specified_disorders_of_stomach>
+      <dct:identifier>Dyspepsia and other specified disorders of stomach</dct:identifier>
+   </dyspepsia_and_other_specified_disorders_of_stomach>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>1996-09-12</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 1996-09-12 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 1996-09-12 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 1996-09-12 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 1996-09-12 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 1996-09-12 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2002-07-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2002-07-15 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2002-07-15 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2002-07-15 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2002-07-15 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2002-07-15 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-11-05</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-05 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-05 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-05 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-05 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-05 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2003-17-05</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Alzheimer's disease</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2003-17-05 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2003-17-05 ;--><trans:testName>Mini-mental state examination</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2003-17-05 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2003-17-05 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2005-12-05</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Alzheimer's disease</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-12-05 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-12-05 ;--><trans:testName>Mini-mental state examination</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-12-05 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-12-05 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-12-05 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-12-05 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2005-12-05 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2007-10-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Alzheimer's disease</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-10-15 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2007-10-15 ;--><trans:testName>Mini-mental state examination</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+</rdf:RDF>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/AD_PCHR_4-tmo.rdf	Thu Feb 24 10:13:41 2011 -0500
@@ -0,0 +1,218 @@
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+         xmlns="tag:[email protected]:2009/tmo/translator#"
+         xmlns:foaf="http://xmlns.com/foaf/0.1/"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+         xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+         xmlns:cpr="http://purl.org/cpr/0.75#"
+         xmlns:in="http://indivo.org/vocab/xml/documents#"
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+         xmlns:trans="tag:[email protected]:2009/tmo/translator#"
+         xmlns:ro="http://www.obofoundry.org/ro/ro.owl#"
+         xmlns:skos="http://www.w3.org/2004/02/skos/core#"
+         xmlns:dct="http://purl.org/dc/terms/">
+   <cpr:patient-record rdf:about=""/>
+   <rdf:Descrption rdf:nodeID="patient">
+      <cpr:subjectOfDescription rdf:resource=""/>
+   </rdf:Descrption>
+   <rdf:Description rdf:nodeID="patient">
+      <cpr:patientID>000000004</cpr:patientID>
+   </rdf:Description>
+   <cpr:patient rdf:nodeID="patient">
+      <foaf:name>Edward Quesada</foaf:name>
+      <foaf:givenName>Edward</foaf:givenName>
+      <foaf:familyName>Quesada</foaf:familyName>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+    
+    
+    
+    
+    
+   </cpr:patient>
+   <rdf:Description rdf:about="trans:PrimaryCarePhysician">
+      <rdfs:subClassOf rdf:resource="cpr:physician"/>
+      <!--ont--></rdf:Description>
+   <trans:PrimaryCarePhysician rdf:nodeID="pricare">
+      <foaf:name>Margaret Cho</foaf:name>
+      <foaf:givenName>Margaret</foaf:givenName>
+      <foaf:familyName>Cho</foaf:familyName>
+      
+      
+    </trans:PrimaryCarePhysician>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:demographics indivo:dateOfBirth="1931-09-12" indivo:gender="Male&#34;&#xA;      "/>
+   </rdf:Description>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>1989-05-15</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/00179178370</trans:ndcCode>
+            <trans:genericName>TEGRETOL TABLETS EXTENDED RELEASE</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-08-20</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/11071084201</trans:ndcCode>
+            <trans:genericName>DONEPEZIL HYDROCHLORIDE TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-05-20</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/54569597500</trans:ndcCode>
+            <trans:genericName>CARVEDILOL TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>1950-05-15T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#epilepsy_and_recurrent_seizures"/>
+            <trans:ICD9>345</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <epilepsy_and_recurrent_seizures>
+      <dct:identifier>Epilepsy and recurrent seizures</dct:identifier>
+   </epilepsy_and_recurrent_seizures>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>1995-05-20T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#hypertension"/>
+            <trans:ICD9>402.1</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <hypertension>
+      <dct:identifier>Hypertension</dct:identifier>
+   </hypertension>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-05-20T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#alzheimers_dementia"/>
+            <trans:ICD9>331.0</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <alzheimers_dementia>
+      <dct:identifier>Alzheimer’s Dementia</dct:identifier>
+   </alzheimers_dementia>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2001-06-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>epilepsy</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2001-06-15 ;--><trans:testName>HLA-B 1502 Genotype; Carbamazepine Hypersensitivity</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2001-06-15 ;--><trans:testName>Cytochrome P450 1A2 Genotyping</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2001-06-15 ;--><trans:testName>Cytochrome P450 2C9 Genotyping</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2001-06-15 ;--><trans:testName>Cytochrome P450 2C19 Genotyping</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2001-06-15 ;--><trans:testName>Cytochrome P450 2C19 Genotyping</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2003-07-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Urea Metabolism Disorder</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Nausea</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2003-07-15 ;--><trans:testName>Ornithine Transcarbamylase Genotyping</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2003-07-15 ;--><trans:testName>carbamoyl-phosphate synthetase 1 genotyping</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-01-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>none</trans:workingDiagnosis>
+      <trans:reportedSymptoms>none</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-01-20 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms> Confusion, Declining memory </trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-15 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-15 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-15 ;--><trans:testName/>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-15 ;--><trans:testName>Comprehensive metabolic panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-15 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-16</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms> Confusion, Declining memory </trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-16 ;--><trans:testName>Other psychologic evaluation and testing</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-16 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource="ADmark_Alzheimers_Evaluation"/>
+            <!--indivo:dateMeasured 2009-07-16 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_APOE4"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <rdf:Description rdf:about="variant_APOE4">
+      <skos:relatedMatch rdf:resource="variant_NG_007084_2_g_7903T_C"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_NG_007084_2_g_7903T_C">
+      <dct:identifier>NG_007084.2:g.7903T&gt;C</dct:identifier>
+   </rdf:Description>
+</rdf:RDF>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/AD_PCHR_5-tmo.rdf	Thu Feb 24 10:13:41 2011 -0500
@@ -0,0 +1,250 @@
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+         xmlns="tag:[email protected]:2009/tmo/translator#"
+         xmlns:foaf="http://xmlns.com/foaf/0.1/"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+         xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+         xmlns:cpr="http://purl.org/cpr/0.75#"
+         xmlns:in="http://indivo.org/vocab/xml/documents#"
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+         xmlns:trans="tag:[email protected]:2009/tmo/translator#"
+         xmlns:ro="http://www.obofoundry.org/ro/ro.owl#"
+         xmlns:skos="http://www.w3.org/2004/02/skos/core#"
+         xmlns:dct="http://purl.org/dc/terms/">
+   <cpr:patient-record rdf:about=""/>
+   <rdf:Descrption rdf:nodeID="patient">
+      <cpr:subjectOfDescription rdf:resource=""/>
+   </rdf:Descrption>
+   <rdf:Description rdf:nodeID="patient">
+      <cpr:patientID>000000005</cpr:patientID>
+   </rdf:Description>
+   <cpr:patient rdf:nodeID="patient">
+      <foaf:name>Georg Steffen Möller</foaf:name>
+      <foaf:givenName>Georg</foaf:givenName>
+      <foaf:familyName>Möller</foaf:familyName>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+    
+    
+    
+    
+    
+    
+   </cpr:patient>
+   <rdf:Description rdf:about="trans:PrimaryCarePhysician">
+      <rdfs:subClassOf rdf:resource="cpr:physician"/>
+      <!--ont--></rdf:Description>
+   <trans:PrimaryCarePhysician rdf:nodeID="pricare">
+      <foaf:name>David Winizki</foaf:name>
+      <foaf:givenName>David</foaf:givenName>
+      <foaf:familyName>Winizki</foaf:familyName>
+      
+      
+    </trans:PrimaryCarePhysician>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:demographics indivo:dateOfBirth="1945-04-05" indivo:gender="Male&#34;&#xA;      "/>
+   </rdf:Description>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2008-02-03</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/5456944671</trans:ndcCode>
+            <trans:genericName>ATORVASTATIN TABLET</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2008-05-06</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/000007414020</trans:ndcCode>
+            <trans:genericName>CARVEDILOL TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2008-05-06</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/6050502532</trans:ndcCode>
+            <trans:genericName>CLOPIDOGREL TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-06-18</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/6050500652</trans:ndcCode>
+            <trans:genericName>OMEPRAZOLE CAPSULES</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-07-22</cpr:startsNoEarlierThan>
+      <cpr:stopsNoEarlierThan>2009-10-29</cpr:stopsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/0093732098</trans:ndcCode>
+            <trans:genericName>DONEPEZIL HYDROCHLORIDE TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2008-02-03T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#hypertension"/>
+            <trans:ICD9>410</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <hypertension>
+      <dct:identifier>hypertension</dct:identifier>
+   </hypertension>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-07-21T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#alzheimers_disease"/>
+            <trans:ICD9>331</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <alzheimers_disease>
+      <dct:identifier>alzheimer’s disease</dct:identifier>
+   </alzheimers_disease>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2008-05-06T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#acute_coronary_occlusion_without_myocardial_infarction"/>
+            <trans:ICD9>414</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <acute_coronary_occlusion_without_myocardial_infarction>
+      <dct:identifier>acute coronary occlusion without myocardial infarction</dct:identifier>
+   </acute_coronary_occlusion_without_myocardial_infarction>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-06-18T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#gastroesophageal_reflux_disease"/>
+            <trans:ICD9>530.81</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <gastroesophageal_reflux_disease>
+      <dct:identifier>gastroesophageal reflux disease</dct:identifier>
+   </gastroesophageal_reflux_disease>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-07-23T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#nausea_and_vomiting"/>
+            <trans:ICD9>787.0</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <nausea_and_vomiting>
+      <dct:identifier>nausea and vomiting</dct:identifier>
+   </nausea_and_vomiting>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-07-23T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#adverse_drug_effect"/>
+            <trans:ICD9>9995.2</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <adverse_drug_effect>
+      <dct:identifier>adverse drug effect</dct:identifier>
+   </adverse_drug_effect>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2002-02-02</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-03-02</trans:dateOfEncounter>
+      <trans:workingDiagnosis>hypertension</trans:workingDiagnosis>
+      <trans:reportedSymptoms>headache, somnolence</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-02 ;--><trans:testName>Rhythm ECG</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-03-02 ;--><trans:testName>Mini-mental state examination</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-05-06</trans:dateOfEncounter>
+      <trans:workingDiagnosis>acute coronary syndrome</trans:workingDiagnosis>
+      <trans:reportedSymptoms>chest pain, nausea, diaphoresis</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-05-06 ;--><trans:testName>Blood Test</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-05-06 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-05-06 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-05-06 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-05-06 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-05-06 ;--><trans:testName>Mini-mental state examination</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-06-18</trans:dateOfEncounter>
+      <trans:workingDiagnosis>gastroesophageal reflux disease</trans:workingDiagnosis>
+      <trans:reportedSymptoms>dysphagia, nausea</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-06-18 ;--><trans:testName>Mini-mental state examination</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-06-18 ;--><trans:testName>Magnetic resonance imaging of brain and brain</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-21</trans:dateOfEncounter>
+      <trans:workingDiagnosis>alzheimer's disease</trans:workingDiagnosis>
+      <trans:reportedSymptoms>memory loss</trans:reportedSymptoms>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-23</trans:dateOfEncounter>
+      <trans:workingDiagnosis>adverse drug effect</trans:workingDiagnosis>
+      <trans:reportedSymptoms>nausea and vomiting</trans:reportedSymptoms>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-30</trans:dateOfEncounter>
+      <trans:workingDiagnosis>referral for trial</trans:workingDiagnosis>
+      <trans:reportedSymptoms/>
+   </trans:Encounter>
+</rdf:RDF>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/AD_PCHR_6-tmo.rdf	Thu Feb 24 10:13:41 2011 -0500
@@ -0,0 +1,196 @@
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+         xmlns="tag:[email protected]:2009/tmo/translator#"
+         xmlns:foaf="http://xmlns.com/foaf/0.1/"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+         xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+         xmlns:cpr="http://purl.org/cpr/0.75#"
+         xmlns:in="http://indivo.org/vocab/xml/documents#"
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+         xmlns:trans="tag:[email protected]:2009/tmo/translator#"
+         xmlns:ro="http://www.obofoundry.org/ro/ro.owl#"
+         xmlns:skos="http://www.w3.org/2004/02/skos/core#"
+         xmlns:dct="http://purl.org/dc/terms/">
+   <cpr:patient-record rdf:about=""/>
+   <rdf:Descrption rdf:nodeID="patient">
+      <cpr:subjectOfDescription rdf:resource=""/>
+   </rdf:Descrption>
+   <rdf:Description rdf:nodeID="patient">
+      <cpr:patientID>000000006</cpr:patientID>
+   </rdf:Description>
+   <cpr:patient rdf:nodeID="patient">
+      <foaf:name>Marianne Huber</foaf:name>
+      <foaf:givenName>Gerlinde</foaf:givenName>
+      <foaf:familyName>Huber</foaf:familyName>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+      <foaf:mbox rdf:resource="mailto:[email protected]"/>
+    
+    
+    
+    
+
+   </cpr:patient>
+   <rdf:Description rdf:about="trans:PrimaryCarePhysician">
+      <rdfs:subClassOf rdf:resource="cpr:physician"/>
+      <!--ont--></rdf:Description>
+   <trans:PrimaryCarePhysician rdf:nodeID="pricare">
+      <foaf:name>Larry Lu</foaf:name>
+      <foaf:givenName>Larry</foaf:givenName>
+      <foaf:familyName>Lu</foaf:familyName>
+      
+      
+    </trans:PrimaryCarePhysician>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:demographics indivo:dateOfBirth="1940-01-01" indivo:gender="Female&#34;&#xA;      "/>
+   </rdf:Description>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-07-20&gt;</cpr:startsNoEarlierThan>
+      <cpr:stopsNoEarlierThan>2009-11-16</cpr:stopsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/11071084101</trans:ndcCode>
+            <trans:genericName>DONEPEZIL HYDROCHLORIDE TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <cpr:substance-administration>
+      <trans:prescribedTo rdf:nodeID="patient"/>
+      <cpr:startsNoEarlierThan>2009-11-09</cpr:startsNoEarlierThan>
+      <ro:has_participant>
+         <cpr:medication>
+            <trans:ndcCode>http://indivo.org/codes/ndc/00069-1520-68</trans:ndcCode>
+            <trans:genericName>AMLODIPINE TABLETS</trans:genericName>
+         </cpr:medication>
+      </ro:has_participant>
+   </cpr:substance-administration>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2008-11-09T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#hypertension"/>
+            <trans:ICD9>401.9</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <hypertension>
+      <dct:identifier>Hypertension</dct:identifier>
+   </hypertension>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-11-09T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#hypocalcemia"/>
+            <trans:ICD9>275.41</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <hypocalcemia>
+      <dct:identifier>Hypocalcemia</dct:identifier>
+   </hypocalcemia>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-05-10</trans:dateOfEncounter>
+      <trans:workingDiagnosis>false</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-10 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-10 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-10 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-10 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-05-10 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Confusion, Declining memory</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-15 ;--><trans:testName>Syphilis test; quantitative</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-15 ;--><trans:testName>Administration of psychologic test</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-15 ;--><trans:testName>Magnetic resonance imaging of brain and brain stem</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-07-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-07-20 ;--><trans:testName>Alzheimer's Disease Assessment Scale-cognitive subscale</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource="ADmark_Alzheimers_Evaluation"/>
+            <!--indivo:dateMeasured 2009-07-20 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_APOE4"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <rdf:Description rdf:about="variant_APOE4">
+      <skos:relatedMatch rdf:resource="variant_NG_007084_2_g_7903T_C"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_NG_007084_2_g_7903T_C">
+      <dct:identifier>NG_007084.2:g.7903T&gt;C</dct:identifier>
+   </rdf:Description>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-09-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Major Depression</trans:workingDiagnosis>
+      <trans:workingDiagnosis>Abnormal gait</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Depression, gait problems</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-09-15 ;--><trans:testName>Administration of psychologic test</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-11-09</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Major Depression</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Depression</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-11-09 ;--><trans:testName>Rhythm ECG</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-11-09 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-11-16</trans:dateOfEncounter>
+      <trans:workingDiagnosis>referral to endocrinologist</trans:workingDiagnosis>
+      <trans:reportedSymptoms>none</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-11-16 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+</rdf:RDF>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/AD_PCHR_7-tmo.rdf	Thu Feb 24 10:13:41 2011 -0500
@@ -0,0 +1,154 @@
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+         xmlns="tag:[email protected]:2009/tmo/translator#"
+         xmlns:foaf="http://xmlns.com/foaf/0.1/"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+         xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+         xmlns:cpr="http://purl.org/cpr/0.75#"
+         xmlns:in="http://indivo.org/vocab/xml/documents#"
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+         xmlns:trans="tag:[email protected]:2009/tmo/translator#"
+         xmlns:ro="http://www.obofoundry.org/ro/ro.owl#"
+         xmlns:skos="http://www.w3.org/2004/02/skos/core#"
+         xmlns:dct="http://purl.org/dc/terms/">
+   <cpr:patient-record rdf:about=""/>
+   <rdf:Descrption rdf:nodeID="patient">
+      <cpr:subjectOfDescription rdf:resource=""/>
+   </rdf:Descrption>
+   <rdf:Description rdf:nodeID="patient">
+      <cpr:patientID>000000007</cpr:patientID>
+   </rdf:Description>
+   <cpr:patient rdf:nodeID="patient">
+      <foaf:name>Julianne Sarah Christopherson</foaf:name>
+      <foaf:givenName>Julianne</foaf:givenName>
+      <foaf:familyName>Christopherson</foaf:familyName>
+    
+    
+    
+    
+    
+    
+    
+   </cpr:patient>
+   <rdf:Description rdf:about="trans:PrimaryCarePhysician">
+      <rdfs:subClassOf rdf:resource="cpr:physician"/>
+      <!--ont--></rdf:Description>
+   <trans:PrimaryCarePhysician rdf:nodeID="pricare">
+      <foaf:name>Michael Matthews</foaf:name>
+      <foaf:givenName>Michael</foaf:givenName>
+      <foaf:familyName>Matthews</foaf:familyName>
+      
+      
+    </trans:PrimaryCarePhysician>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:demographics indivo:dateOfBirth="1978-01-31" indivo:gender="Female&#34;&#xA;      "/>
+   </rdf:Description>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>1978-01-31T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#down_syndrome"/>
+            <trans:ICD9>758</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <down_syndrome>
+      <dct:identifier>Down Syndrome</dct:identifier>
+   </down_syndrome>
+   <rdf:Description rdf:nodeID="patient">
+      <trans:hasCondition>
+         <rdf:Description>
+            <cpr:startsNoLaterThan>2009-02-01T12:00:00</cpr:startsNoLaterThan>
+            <trans:diagnosedWith rdf:resource="tag:[email protected]:2009/tmo/translator#alzheimers_disease"/>
+            <trans:ICD9>331</trans:ICD9>
+            <!--unmatched comments--><!--unmatched diagnosedBy--></rdf:Description>
+      </trans:hasCondition>
+   </rdf:Description>
+   <alzheimers_disease>
+      <dct:identifier>Alzheimer’s Disease</dct:identifier>
+   </alzheimers_disease>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2008-11-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>true</trans:workingDiagnosis>
+      <trans:reportedSymptoms>true</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-15 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-15 ;--><trans:testName>Lipid panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-15 ;--><trans:testName>Hepatic function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-15 ;--><trans:testName>Renal function panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-15 ;--><trans:testName>Thyroid stimulating hormone (TSH)</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-15 ;--><trans:testName>Corticotropic Releasing Hormone Stimulation Panel</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2008-11-15 ;--><trans:testName>CoagulationBattery</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-01-15</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms>Confusion, Becomes lost</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-01-15 ;--><trans:testName>Administration of psychologic test</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-01-15 ;--><trans:testName>Magnetic resonance imaging of brain and brain stem</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-01-15 ;--><trans:testName>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</trans:testName>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-01-20</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Dementia</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+      <trans:test>
+         <rdf:Description><!--indivo:dateMeasured 2009-01-20 ;--><trans:testName>Alzheimer's Disease Assessment Scale-cognitive subscale</trans:testName>
+         </rdf:Description>
+      </trans:test>
+      <trans:test>
+         <rdf:Description>
+            <rdf:type rdf:resource="ADmark_Alzheimers_Evaluation"/>
+            <!--indivo:dateMeasured 2009-01-20 ;--><trans:result>
+               <SNPResult>
+                  <trans:feature rdf:resource="variant_APOE4"/>
+                  <trans:present>true</trans:present>
+               </SNPResult>
+            </trans:result>
+         </rdf:Description>
+      </trans:test>
+   </trans:Encounter>
+   <rdf:Description rdf:about="variant_APOE4">
+      <skos:relatedMatch rdf:resource="variant_NG_007084_2_g_7903T_C"/>
+   </rdf:Description>
+   <rdf:Description rdf:about="variant_NG_007084_2_g_7903T_C">
+      <dct:identifier>NG_007084.2:g.7903T&gt;C</dct:identifier>
+   </rdf:Description>
+   <trans:Encounter>
+      <trans:patient rdf:nodeID="patient"/>
+      <trans:dateOfEncounter>2009-01-30</trans:dateOfEncounter>
+      <trans:workingDiagnosis>Alzheimers Disease</trans:workingDiagnosis>
+      <trans:reportedSymptoms>false</trans:reportedSymptoms>
+   </trans:Encounter>
+</rdf:RDF>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/Indivo2RDFXML.xsl	Thu Feb 24 10:13:41 2011 -0500
@@ -0,0 +1,269 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Id: Pat2rdf.xsl,v 1.23 2009/11/30 03:42:28 eric Exp $ -->
+<xsl:stylesheet 
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:in="http://indivo.org/vocab/xml/documents#"
+    version="1.0"
+    xmlns="tag:[email protected]:2009/tmo/translator#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:foaf="http://xmlns.com/foaf/0.1/"
+    xmlns:trans="tag:[email protected]:2009/tmo/translator#"  
+    xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+    xmlns:cpr="http://purl.org/cpr/0.75#"
+    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+    xmlns:ro="http://www.obofoundry.org/ro/ro.owl#"
+    xmlns:skos="http://www.w3.org/2004/02/skos/core#"
+    xmlns:dct="http://purl.org/dc/terms/"
+    >
+
+<xsl:output method="xml" indent='yes' encoding='utf-8'
+	    omit-xml-declaration="yes"	    
+	    media-type="text/turtle" version="1.0"/>
+
+<xsl:template match="in:Envelope">
+  <rdf:RDF>
+    <cpr:patient-record rdf:about="" />
+    <rdf:Descrption rdf:nodeID="patient">
+      <cpr:subjectOfDescription rdf:resource=""/>
+    </rdf:Descrption>
+    <xsl:apply-templates select="in:CurrentStatus"/>
+    <xsl:apply-templates select="in:Encounter"/>
+  </rdf:RDF>
+</xsl:template>
+
+<xsl:template match="in:CurrentStatus">
+  <xsl:apply-templates select="in:PatientID"/>
+  <xsl:apply-templates select="in:Contact"/>
+  <xsl:apply-templates select="in:PrimaryCarePhysician"/>
+  <xsl:apply-templates select="in:Demographics"/>
+  <xsl:apply-templates select="in:Prescriptions"/>
+  <xsl:apply-templates select="in:Conditions"/>
+  <!-- xsl:apply-templates select="in:Procedures"/ -->
+  <!-- xsl:apply-templates select="in:Allergies"/ -->
+  <!-- xsl:apply-templates select="in:Immunizations"/ -->
+  <!-- xsl:apply-templates select="in:lifestyle"/ -->
+  <!-- xsl:apply-templates select="in:familyHistory"/ -->
+</xsl:template>
+
+<xsl:template match="in:PatientID">
+  <rdf:Description rdf:nodeID="patient">
+    <cpr:patientID><xsl:value-of select="."/></cpr:patientID>
+  </rdf:Description>
+</xsl:template>
+
+<xsl:template match="in:Contact">
+  <xsl:call-template name="contact">
+    <xsl:with-param name="subject" select="'patient'"/>
+    <xsl:with-param name="type" select="'cpr:patient'"/>
+  </xsl:call-template>
+</xsl:template>
+
+<xsl:template match="in:PrimaryCarePhysician">
+  <rdf:Description rdf:about="trans:PrimaryCarePhysician">
+    <rdfs:subClassOf rdf:resource="cpr:physician"/><xsl:comment>ont</xsl:comment>
+  </rdf:Description>
+  <xsl:call-template name="contact">
+    <xsl:with-param name="subject" select="'pricare'"/>
+    <xsl:with-param name="type" select="'trans:PrimaryCarePhysician'"/>
+  </xsl:call-template>
+</xsl:template>
+
+<xsl:template match="in:Demographics">
+  <rdf:Description rdf:nodeID="patient">
+    <trans:demographics>
+      <xsl:attribute name="indivo:dateOfBirth">
+	<xsl:apply-templates mode="date" select="in:dateOfBirth"/>
+      </xsl:attribute>
+      <xsl:attribute name="indivo:gender">
+	<xsl:value-of select="in:gender/text()"/>"
+      </xsl:attribute>
+    </trans:demographics>
+  </rdf:Description>
+</xsl:template>
+
+<xsl:template name="contact">
+  <xsl:param name="subject"/>
+  <xsl:param name="type"/>
+  <xsl:element name="{$type}">
+    <xsl:attribute name="rdf:nodeID">
+      <xsl:value-of select="$subject"/>
+    </xsl:attribute>
+    <xsl:apply-templates mode="contact"/>
+  </xsl:element>
+</xsl:template>
+
+<xsl:template mode="contact" match="in:name">
+  <xsl:apply-templates mode="contact" select="*"/>
+</xsl:template>
+
+<xsl:template mode="contact" match="in:fullName">
+  <foaf:name><xsl:value-of select="text()"/></foaf:name>
+</xsl:template>
+
+<xsl:template mode="contact" match="in:givenName">
+  <foaf:givenName><xsl:value-of select="text()"/></foaf:givenName>
+</xsl:template>
+
+<xsl:template mode="contact" match="in:familyName">
+  <foaf:familyName><xsl:value-of select="text()"/></foaf:familyName>
+</xsl:template>
+
+<xsl:template mode="contact" match="in:email">
+  <xsl:if test="text()">
+    <foaf:mbox>
+      <xsl:attribute name="rdf:resource">
+	<xsl:value-of select="concat('mailto:', text())"/>
+      </xsl:attribute>
+    </foaf:mbox>
+  </xsl:if>
+</xsl:template>
+
+<xsl:template mode="contact" match="*">
+</xsl:template>
+
+<xsl:template match="in:Prescriptions">
+  <xsl:apply-templates select="in:Prescription"/>
+</xsl:template>
+
+<xsl:template match="in:Prescription">
+  <cpr:substance-administration>
+    <trans:prescribedTo rdf:nodeID="patient"/>
+    <cpr:startsNoEarlierThan><xsl:apply-templates mode="date" select="in:medication/in:dateStarted"/></cpr:startsNoEarlierThan><!-- trans:dateStarted -->
+    <xsl:if test="in:medication/in:dateStopped"> 
+      <cpr:stopsNoEarlierThan><xsl:apply-templates mode="date" select="in:medication/in:dateStopped"/></cpr:stopsNoEarlierThan>
+    </xsl:if>
+    <ro:has_participant><cpr:medication>
+      <trans:ndcCode><xsl:value-of select="concat('http://indivo.org/codes/ndc/', normalize-space(in:medication/in:name))"/></trans:ndcCode>
+      <trans:genericName><xsl:value-of select="in:medication/in:genericName"/></trans:genericName>
+    </cpr:medication></ro:has_participant>
+  </cpr:substance-administration>
+</xsl:template>
+
+<xsl:template match="in:Conditions">
+  <xsl:apply-templates select="in:Problem"/>
+</xsl:template>
+
+<xsl:template match="in:Problem">
+  <rdf:Description rdf:nodeID="patient">
+    <trans:hasCondition><rdf:Description><xsl:apply-templates mode="problem" select="*"/></rdf:Description></trans:hasCondition>
+  </rdf:Description>
+  <xsl:apply-templates mode="resources" select="in:name"/>
+</xsl:template>
+
+<xsl:template mode="problem" match="in:dateOnset">
+  <cpr:startsNoLaterThan><xsl:apply-templates mode="date" select="."/></cpr:startsNoLaterThan>
+</xsl:template>
+
+<xsl:template mode="problem" match="in:name">
+   <xsl:variable name="problemL"  select="text()"/>
+   <xsl:variable name="problem"   select="lower-case(replace(replace(translate($problemL,' >.:@','_____'),$SQ2,''),$SQ,''))"/>
+  <trans:diagnosedWith><xsl:attribute name="rdf:resource"><xsl:value-of select="concat('tag:[email protected]:2009/tmo/translator#', $problem)"/></xsl:attribute></trans:diagnosedWith>
+  <trans:ICD9><xsl:value-of select="@value"/></trans:ICD9>
+</xsl:template>
+
+<xsl:template mode="resources" match="in:name">
+   <xsl:variable name="problemL"  select="text()"/>
+   <xsl:variable name="problem"   select="lower-case(replace(replace(translate($problemL,' >.:@','_____'),$SQ2,''),$SQ,''))"/>
+   <xsl:element name="{$problem}">
+     <dct:identifier><xsl:value-of select="$problemL"/></dct:identifier>
+   </xsl:element>
+</xsl:template>
+
+<xsl:template mode="problem" match="*">
+<xsl:comment>unmatched <xsl:value-of select="name()"/></xsl:comment>
+</xsl:template>
+
+<xsl:template match="in:Encounter">
+  <trans:Encounter>
+    <trans:patient rdf:nodeID="patient"/>
+    <trans:dateOfEncounter><xsl:apply-templates mode="date" select="in:Date"/></trans:dateOfEncounter>
+    <xsl:apply-templates select="in:WorkingDiagnosis/in:PreliminaryDiagnosis"/>
+    <trans:reportedSymptoms><xsl:value-of select="in:ReportedSymptoms/text()"/></trans:reportedSymptoms>
+<xsl:apply-templates select="in:LabTests/in:Test"/>    
+  </trans:Encounter>
+<xsl:apply-templates select="*//in:SNPresult" mode="relate-variants"/>    
+</xsl:template>
+
+<xsl:template match="in:PreliminaryDiagnosis">
+    <trans:workingDiagnosis><xsl:value-of select="in:DiagnosisDescription/text()"/></trans:workingDiagnosis>
+</xsl:template>
+
+<xsl:template match="in:Test">
+  <trans:test><rdf:Description>
+    <xsl:comment>indivo:dateMeasured <xsl:apply-templates mode="date" select="in:dateMeasured"/> ;</xsl:comment>
+    <trans:testName><xsl:value-of select="in:name/text()"/></trans:testName>
+    <xsl:apply-templates select="in:result"/><xsl:apply-templates select="in:SNPresult"/>
+  </rdf:Description></trans:test>
+</xsl:template>
+
+<xsl:template match="in:Test[in:SNPresult]">
+  <!-- @@ got invalid QName {}  trans:test><xsl:element name="{replace(replace(in:name/text(),' ','_'),$SQ,'')}" -->
+  <trans:test><rdf:Description>
+    <rdf:type><xsl:attribute name="rdf:resource"><xsl:value-of select="replace(replace(in:name/text(),' ','_'),$SQ,'')"/></xsl:attribute></rdf:type>
+    <xsl:comment>indivo:dateMeasured <xsl:apply-templates mode="date" select="in:dateMeasured"/> ;</xsl:comment>
+    <xsl:apply-templates select="in:result"/>
+    <xsl:apply-templates select="in:SNPresult"/>
+  </rdf:Description></trans:test>
+</xsl:template>
+<xsl:variable name="SQ">
+<xsl:text>'</xsl:text>
+</xsl:variable>
+<xsl:variable name="SQ2">
+<xsl:text>’</xsl:text>
+</xsl:variable>
+<xsl:variable name="DQ">
+<xsl:text>"</xsl:text>
+</xsl:variable>
+<xsl:variable name="NL">
+<xsl:text>
+</xsl:text>
+</xsl:variable>
+
+<xsl:template match="in:result">
+<xsl:comment>@@not done ;</xsl:comment>
+</xsl:template>
+
+<!-- Replaced by lebot Jan 2011 
+xsl:template match="in:SNPresult">
+       trans:result [
+           trans:variant_Synonyms "<xsl:value-of select="in:LabTest/in:variant_Synonyms/text()"/>" ;
+       ] ;
+</xsl:template-->
+
+<xsl:template match="in:SNPresult">
+   <xsl:variable name="variant-synonyms" select="tokenize(in:LabTest/in:variant_Synonyms/text(),'[,;]')"/>
+   <xsl:variable name="primary-synonymL"  select="normalize-space($variant-synonyms[1])"/>
+   <xsl:variable name="primary-synonym"   select="concat('variant_',translate($primary-synonymL,'>.:@','____'))"/>
+   <trans:result><SNPResult>
+     <trans:feature><xsl:attribute name="rdf:resource"><xsl:value-of select="$primary-synonym"/></xsl:attribute></trans:feature>
+     <trans:present>true</trans:present>
+   </SNPResult></trans:result>
+</xsl:template>
+
+<xsl:template match="in:SNPresult" mode="relate-variants">
+   <xsl:variable name="variant-synonyms" select="tokenize(in:LabTest/in:variant_Synonyms/text(),'[,;]')"/>
+   <xsl:variable name="primary-synonymL"  select="normalize-space($variant-synonyms[1])"/>
+   <xsl:variable name="primary-synonym"   select="concat('variant_',translate($primary-synonymL,'>.:@','____'))"/>
+   <xsl:for-each select="$variant-synonyms">
+      <xsl:if test="position() gt 1">
+         <xsl:variable name="secondary-synonymL"  select="normalize-space(.)"/>
+         <xsl:variable name="secondary-synonym"  select="concat('variant_',translate($secondary-synonymL,'>.:@','____'))"/>
+	 <rdf:Description>
+	   <xsl:attribute name="rdf:about"><xsl:value-of select="$primary-synonym"/></xsl:attribute>
+	   <skos:relatedMatch><xsl:attribute name="rdf:resource"><xsl:value-of select="$secondary-synonym"/></xsl:attribute></skos:relatedMatch>
+	 </rdf:Description>
+	 <rdf:Description>
+	   <xsl:attribute name="rdf:about"><xsl:value-of select="$secondary-synonym"/></xsl:attribute>
+	   <dct:identifier><xsl:value-of select="$secondary-synonymL"/></dct:identifier>
+	 </rdf:Description>
+      </xsl:if>
+   </xsl:for-each>
+</xsl:template>
+
+<!-- Utility templates
+-->
+
+<xsl:template mode="date" match="*"><xsl:value-of select="text()"/><!-- ^^xsd:dateTime --></xsl:template>
+
+</xsl:stylesheet>
--- a/syntheticPatients/Makefile	Mon Feb 07 07:23:06 2011 -0500
+++ b/syntheticPatients/Makefile	Thu Feb 24 10:13:41 2011 -0500
@@ -22,6 +22,9 @@
  AD_PCHR_6.html AD_PCHR_6.rdf \
  AD_PCHR_7.html AD_PCHR_7.rdf
 
+%-tmo.rdf : %-indivo.xml Indivo2RDFXML.xsl
+	$(XSLT) $^ > [email protected]
+
 %.rdf : %.xml Pat2rdf.xsl
 	$(XSLT) $^ > [email protected]