.sync
authorEric Prud'hommeaux <eric@w3.org>
Thu, 28 Oct 2010 11:55:37 -0400
changeset 33 3334734509e9
parent 32 ad74a85b5902
child 34 c1cef20da460
.sync
syntheticPatients/AD_PCHR_1-indivo.xml
syntheticPatients/AD_PCHR_1-tmo.trig
syntheticPatients/AD_PCHR_2-indivo.xml
syntheticPatients/AD_PCHR_2-tmo.trig
syntheticPatients/AD_PCHR_2.xml
syntheticPatients/AD_PCHR_3-indivo.xml
syntheticPatients/AD_PCHR_3-tmo.trig
syntheticPatients/AD_PCHR_3.xml
syntheticPatients/AD_PCHR_4-indivo.xml
syntheticPatients/AD_PCHR_4-tmo.trig
syntheticPatients/AD_PCHR_4.xml
syntheticPatients/AD_PCHR_5-indivo.xml
syntheticPatients/AD_PCHR_5-tmo.trig
syntheticPatients/AD_PCHR_5.xml
syntheticPatients/AD_PCHR_6-indivo.xml
syntheticPatients/AD_PCHR_6-tmo.trig
syntheticPatients/AD_PCHR_6.xml
syntheticPatients/AD_PCHR_7-indivo.xml
syntheticPatients/AD_PCHR_7-tmo.trig
syntheticPatients/AD_PCHR_7.xml
syntheticPatients/Indivo2Trig.xsl
syntheticPatients/Pat2Indivo2.xsl
--- a/syntheticPatients/AD_PCHR_1-indivo.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_1-indivo.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- -*- mode: nxml; tab-width: 8; -*- --><?xml-stylesheet type="text/xsl" href="Patrdf2html.xsl"?><Envelope xmlns="http://indivo.org/vocab/xml/documents#">
    <CurrentStatus>
+      <PatientID>000000001</PatientID>
       <Contact>
          <name>
             <fullName>George Andrew Tour</fullName>
@@ -60,7 +61,7 @@
          <Prescription>
             <medication>
                <dateStarted>2009-05-15</dateStarted>
-               <name type="http://indivo.org/codes/ndc">000007414020</name>
+               <name type="http://indivo.org/codes/ndc">00007414020</name>
                <genericName>COREG TABLETS</genericName>
                <dose>
                   <value>999</value>
@@ -83,7 +84,7 @@
          <Prescription>
             <medication>
                <dateStarted>2009-05-20</dateStarted>
-               <name type="http://indivo.org/codes/ndc">000071015595</name>
+               <name type="http://indivo.org/codes/ndc">00071015540</name>
                <genericName>LIPITOR TABLETS</genericName>
                <dose>
                   <value>999</value>
@@ -113,7 +114,7 @@
                   <unit type="http://indivo.org/codes/units#" value="999"/>
                </dose>
                <strength>
-                  <value>1.00</value>
+                  <value>3.00</value>
                   <unit type="http://indivo.org/codes/units#" value="MG"/>
                </strength>
                <frequency>q.d.</frequency>
@@ -188,13 +189,19 @@
             <diagnosedBy>Henry No</diagnosedBy>
          </Problem>
          <Problem>
-            <dateOnset>2009-05-20T12:00:00</dateOnset>
+            <dateOnset>2009-05-17T12:00:00</dateOnset>
             <name type="http://indivo.org/codes/ICD9" value="427">atrial fibrillation</name>
             <comments>...</comments>
             <diagnosedBy>Henry No</diagnosedBy>
          </Problem>
          <Problem>
-            <dateOnset>2009-08-10T12:00:00</dateOnset>
+            <dateOnset>2009-07-15T12:00:00</dateOnset>
+            <name type="http://indivo.org/codes/ICD9" value="331">dementia</name>
+            <comments>...</comments>
+            <diagnosedBy>Henry No</diagnosedBy>
+         </Problem>
+         <Problem>
+            <dateOnset>2009-07-16T12:00:00</dateOnset>
             <name type="http://indivo.org/codes/ICD9" value="331">alzheimer’s disease</name>
             <comments>...</comments>
             <diagnosedBy>Henry No</diagnosedBy>
@@ -233,7 +240,7 @@
       </Allergies>
       <Immunizations>
          <Immunization>
-            <dateAdministered>1940-01-01T00:00:00</dateAdministered>
+            <dateAdministered>1968-01-01T00:00:00</dateAdministered>
             <administeredBy>Henry No</administeredBy>
             <vaccine>
                <type>measles</type>
@@ -242,11 +249,11 @@
                <expiration/>
             </vaccine>
             <sequence>1</sequence>
-            <anatomicSurface>oral</anatomicSurface>
+            <anatomicSurface>subcutaneous injection</anatomicSurface>
             <adverseEvent/>
          </Immunization>
          <Immunization>
-            <dateAdministered>1940-01-01T00:00:00</dateAdministered>
+            <dateAdministered>1968-01-01T00:00:00</dateAdministered>
             <administeredBy>Henry No</administeredBy>
             <vaccine>
                <type>mumps</type>
@@ -255,11 +262,11 @@
                <expiration/>
             </vaccine>
             <sequence>1</sequence>
-            <anatomicSurface>oral</anatomicSurface>
+            <anatomicSurface>subcutaneous injection</anatomicSurface>
             <adverseEvent/>
          </Immunization>
          <Immunization>
-            <dateAdministered>1949-01-01T00:00:00</dateAdministered>
+            <dateAdministered>1969-01-01T00:00:00</dateAdministered>
             <administeredBy>Henry No</administeredBy>
             <vaccine>
                <type>rubella</type>
@@ -268,7 +275,7 @@
                <expiration/>
             </vaccine>
             <sequence>1</sequence>
-            <anatomicSurface>intramuscular</anatomicSurface>
+            <anatomicSurface>subcutaneous injection</anatomicSurface>
             <adverseEvent/>
          </Immunization>
          <Immunization>
@@ -319,7 +326,7 @@
             <fname>Susie</fname>
             <sex>Female</sex>
             <alive>no</alive>
-            <ageAtDeath>24</ageAtDeath>
+            <ageAtDeath>32</ageAtDeath>
             <cancer>no</cancer>
             <causeOfDeath>TB</causeOfDeath>
          </subject>
@@ -354,7 +361,8 @@
             <relation>mother</relation>
             <fname>Elizabeth</fname>
             <sex>Female</sex>
-            <alive>yes</alive>
+            <alive>no</alive>
+            <ageAtDeath>77</ageAtDeath>
             <cancer>no</cancer>
             <medicalConditions x_1="RA">yes</medicalConditions>
          </subject>
@@ -362,7 +370,8 @@
             <relation>father</relation>
             <fname>Frank</fname>
             <sex>Male</sex>
-            <alive>yes</alive>
+            <alive>no</alive>
+            <ageAtDeath>63</ageAtDeath>
             <cancer>yes</cancer>
             <cancerType>Colorectal</cancerType>
             <cancerTypeColorectalAge>62</cancerTypeColorectalAge>
@@ -465,7 +474,7 @@
       <LabTests>
          <Test>
             <dateMeasured>2009-05-18</dateMeasured>
-            <name>Ambry test </name>
+            <name>Warfarin Sensitivity</name>
             <SNPresult>
                <LabTest>
                   <variant_Synonyms>VKOR; MST134; MST576; VKCFD2; EDTP308; MGC2694; FLJ00289; IMAGE345520</variant_Synonyms>
@@ -475,7 +484,7 @@
          </Test>
          <Test>
             <dateMeasured>2009-05-18</dateMeasured>
-            <name/>
+            <name>Warfarin Sensitivity</name>
             <SNPresult>
                <LabTest>
                   <variant_Synonyms> CPC9; CYP2C; CYP2C10; MGC88320; P450IIC9; MGC149605; CYP2C9 </variant_Synonyms>
--- a/syntheticPatients/AD_PCHR_1-tmo.trig	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_1-tmo.trig	Thu Oct 28 11:55:37 2010 -0400
@@ -8,7 +8,10 @@
   @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
   @prefix ro: <http://www.obofoundry.org/ro/ro.owl#> .
 {
-  <> a cpr:patient-record ; trans:patient _:patient .
+  <> a cpr:patient-record .
+  _:patient cpr:subjectOfDescription <> .
+
+  _:patient cpr:patientID "000000001" .
 _:patient  a cpr:patient ;
   
          
@@ -125,7 +128,7 @@
   ] .
 
   _:patient trans:hasCondition [
-  cpr:startsNoLaterThan "2009-05-20T12:00:00" ;
+  cpr:startsNoLaterThan "2009-05-17T12:00:00" ;
 
   trans:diagnosedWith "atrial fibrillation" ;
   trans:ICD9 "427" ;
@@ -135,7 +138,17 @@
   ] .
 
   _:patient trans:hasCondition [
-  cpr:startsNoLaterThan "2009-08-10T12:00:00" ;
+  cpr:startsNoLaterThan "2009-07-15T12:00:00" ;
+
+  trans:diagnosedWith "dementia" ;
+  trans:ICD9 "331" ;
+
+  # unmatched comments
+  # unmatched diagnosedBy
+  ] .
+
+  _:patient trans:hasCondition [
+  cpr:startsNoLaterThan "2009-07-16T12:00:00" ;
 
   trans:diagnosedWith "alzheimer’s disease" ;
   trans:ICD9 "331" ;
@@ -210,7 +223,7 @@
 
     trans:test [
         # indivo:dateMeasured "2009-05-18" ;
-        trans:testName "Ambry test " ;
+        trans:testName "Warfarin Sensitivity" ;
         
     trans:result [
         trans:variant_Synonyms "VKOR; MST134; MST576; VKCFD2; EDTP308; MGC2694; FLJ00289; IMAGE345520" ;
@@ -220,7 +233,7 @@
 
     trans:test [
         # indivo:dateMeasured "2009-05-18" ;
-        trans:testName "" ;
+        trans:testName "Warfarin Sensitivity" ;
         
     trans:result [
         trans:variant_Synonyms " CPC9; CYP2C; CYP2C10; MGC88320; P450IIC9; MGC149605; CYP2C9 " ;
--- a/syntheticPatients/AD_PCHR_2-indivo.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_2-indivo.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- -*- mode: nxml; tab-width: 8; -*- --><?xml-stylesheet type="text/xsl" href="Patrdf2html.xsl"?><Envelope xmlns="http://indivo.org/vocab/xml/documents#">
    <CurrentStatus>
+      <PatientID>000000002</PatientID>
       <Contact>
          <name>
             <fullName>Monica Mary Mall</fullName>
--- a/syntheticPatients/AD_PCHR_2-tmo.trig	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_2-tmo.trig	Thu Oct 28 11:55:37 2010 -0400
@@ -8,7 +8,10 @@
   @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
   @prefix ro: <http://www.obofoundry.org/ro/ro.owl#> .
 {
-  <> a cpr:patient-record ; trans:patient _:patient .
+  <> a cpr:patient-record .
+  _:patient cpr:subjectOfDescription <> .
+
+  _:patient cpr:patientID "000000002" .
 _:patient  a cpr:patient ;
   
          
--- a/syntheticPatients/AD_PCHR_2.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_2.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -3,6 +3,7 @@
 $Id: AD_PCHR_2_Final.xml,v 1.7 2009/12/02 21:08:29 eric Exp $
  -->
 <root>
+<PatientID>000000002</PatientID>
 <Practice>
     <practiceName>All Health</practiceName>
     <practiceAddress>
--- a/syntheticPatients/AD_PCHR_3-indivo.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_3-indivo.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- -*- mode: nxml; tab-width: 8; -*- --><?xml-stylesheet type="text/xsl" href="Patrdf2html.xsl"?><Envelope xmlns="http://indivo.org/vocab/xml/documents#">
    <CurrentStatus>
+      <PatientID>000000003</PatientID>
       <Contact>
          <name>
             <fullName>Benny Smith</fullName>
--- a/syntheticPatients/AD_PCHR_3-tmo.trig	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_3-tmo.trig	Thu Oct 28 11:55:37 2010 -0400
@@ -8,7 +8,10 @@
   @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
   @prefix ro: <http://www.obofoundry.org/ro/ro.owl#> .
 {
-  <> a cpr:patient-record ; trans:patient _:patient .
+  <> a cpr:patient-record .
+  _:patient cpr:subjectOfDescription <> .
+
+  _:patient cpr:patientID "000000003" .
 _:patient  a cpr:patient ;
   
          
--- a/syntheticPatients/AD_PCHR_3.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_3.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -3,6 +3,7 @@
 $Id: AD_PCHR_3-2-1.xml,v 1.7 2009/12/02 21:08:29 eric Exp $
  -->
 <root>
+<PatientID>000000003</PatientID>
 <Practice>
     <practiceName>Family Health</practiceName>
     <practiceAddress>
--- a/syntheticPatients/AD_PCHR_4-indivo.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_4-indivo.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- -*- mode: nxml; tab-width: 8; -*- --><?xml-stylesheet type="text/xsl" href="Patrdf2html.xsl"?><Envelope xmlns="http://indivo.org/vocab/xml/documents#">
    <CurrentStatus>
+      <PatientID>000000004</PatientID>
       <Contact>
          <name>
             <fullName>Edward Quesada</fullName>
--- a/syntheticPatients/AD_PCHR_4-tmo.trig	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_4-tmo.trig	Thu Oct 28 11:55:37 2010 -0400
@@ -8,7 +8,10 @@
   @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
   @prefix ro: <http://www.obofoundry.org/ro/ro.owl#> .
 {
-  <> a cpr:patient-record ; trans:patient _:patient .
+  <> a cpr:patient-record .
+  _:patient cpr:subjectOfDescription <> .
+
+  _:patient cpr:patientID "000000004" .
 _:patient  a cpr:patient ;
   
          
--- a/syntheticPatients/AD_PCHR_4.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_4.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -52,6 +52,7 @@
 
   --> 
 <root>
+<PatientID>000000004</PatientID>
 <Practice>
     <practiceName>Endocrine Associates</practiceName>
     <practiceAddress>
--- a/syntheticPatients/AD_PCHR_5-indivo.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_5-indivo.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- -*- mode: nxml; tab-width: 8; -*- --><?xml-stylesheet type="text/xsl" href="Patrdf2html.xsl"?><Envelope xmlns="http://indivo.org/vocab/xml/documents#">
    <CurrentStatus>
+      <PatientID>000000005</PatientID>
       <Contact>
          <name>
             <fullName>Georg Steffen Möller</fullName>
--- a/syntheticPatients/AD_PCHR_5-tmo.trig	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_5-tmo.trig	Thu Oct 28 11:55:37 2010 -0400
@@ -8,7 +8,10 @@
   @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
   @prefix ro: <http://www.obofoundry.org/ro/ro.owl#> .
 {
-  <> a cpr:patient-record ; trans:patient _:patient .
+  <> a cpr:patient-record .
+  _:patient cpr:subjectOfDescription <> .
+
+  _:patient cpr:patientID "000000005" .
 _:patient  a cpr:patient ;
   
          
--- a/syntheticPatients/AD_PCHR_5.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_5.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -3,6 +3,7 @@
 $Id: AD_PCHR_5.xml,v 1.4 2009/12/02 20:00:59 eric Exp $
  -->
 <root>
+<PatientID>000000005</PatientID>
 <Practice>
     <practiceName>Ärztezentrum Schweizer Viertel</practiceName>
     <practiceAddress>
--- a/syntheticPatients/AD_PCHR_6-indivo.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_6-indivo.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- -*- mode: nxml; tab-width: 8; -*- --><?xml-stylesheet type="text/xsl" href="Patrdf2html.xsl"?><Envelope xmlns="http://indivo.org/vocab/xml/documents#">
    <CurrentStatus>
+      <PatientID>000000006</PatientID>
       <Contact>
          <name>
             <fullName>Marianne Huber</fullName>
--- a/syntheticPatients/AD_PCHR_6-tmo.trig	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_6-tmo.trig	Thu Oct 28 11:55:37 2010 -0400
@@ -8,7 +8,10 @@
   @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
   @prefix ro: <http://www.obofoundry.org/ro/ro.owl#> .
 {
-  <> a cpr:patient-record ; trans:patient _:patient .
+  <> a cpr:patient-record .
+  _:patient cpr:subjectOfDescription <> .
+
+  _:patient cpr:patientID "000000006" .
 _:patient  a cpr:patient ;
   
          
--- a/syntheticPatients/AD_PCHR_6.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_6.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -3,6 +3,7 @@
 $Id: AD_PCHR_6.xml,v 1.4 2009/12/02 21:07:59 eric Exp $
  -->
 <root>
+<PatientID>000000006</PatientID>
 <Practice>
     <practiceName>Community Health</practiceName>
     <practiceAddress>
--- a/syntheticPatients/AD_PCHR_7-indivo.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_7-indivo.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- -*- mode: nxml; tab-width: 8; -*- --><?xml-stylesheet type="text/xsl" href="Patrdf2html.xsl"?><Envelope xmlns="http://indivo.org/vocab/xml/documents#">
    <CurrentStatus>
+      <PatientID>000000007</PatientID>
       <Contact>
          <name>
             <fullName>Julianne Sarah Christopherson</fullName>
--- a/syntheticPatients/AD_PCHR_7-tmo.trig	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_7-tmo.trig	Thu Oct 28 11:55:37 2010 -0400
@@ -8,7 +8,10 @@
   @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
   @prefix ro: <http://www.obofoundry.org/ro/ro.owl#> .
 {
-  <> a cpr:patient-record ; trans:patient _:patient .
+  <> a cpr:patient-record .
+  _:patient cpr:subjectOfDescription <> .
+
+  _:patient cpr:patientID "000000007" .
 _:patient  a cpr:patient ;
   
          
--- a/syntheticPatients/AD_PCHR_7.xml	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/AD_PCHR_7.xml	Thu Oct 28 11:55:37 2010 -0400
@@ -22,6 +22,7 @@
 
  -->
 <root>
+<PatientID>000000007</PatientID>
 <Practice>
     <practiceName>UNMC Physicians</practiceName>
     <practiceAddress>
--- a/syntheticPatients/Indivo2Trig.xsl	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/Indivo2Trig.xsl	Thu Oct 28 11:55:37 2010 -0400
@@ -20,13 +20,15 @@
   @prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .
   @prefix ro: &lt;http://www.obofoundry.org/ro/ro.owl#&gt; .
 {
-  &lt;&gt; a cpr:patient-record ; trans:patient _:patient .
+  &lt;&gt; a cpr:patient-record .
+  _:patient cpr:subjectOfDescription &lt;&gt; .
 <xsl:apply-templates select="in:CurrentStatus"/>
 <xsl:apply-templates select="in:Encounter"/>
 }
 </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"/>
@@ -39,6 +41,10 @@
   <!-- xsl:apply-templates select="in:familyHistory"/ -->
 </xsl:template>
 
+<xsl:template match="in:PatientID">
+  _:patient cpr:patientID "<xsl:value-of select="."/>" .
+</xsl:template>
+
 <xsl:template match="in:Contact">
   <xsl:call-template name="contact">
     <xsl:with-param name="subject" select="'_:patient'"/>
--- a/syntheticPatients/Pat2Indivo2.xsl	Wed Oct 27 15:03:24 2010 -0400
+++ b/syntheticPatients/Pat2Indivo2.xsl	Thu Oct 28 11:55:37 2010 -0400
@@ -12,6 +12,7 @@
   <xsl:comment> -*- mode: nxml; tab-width: 8; -*- </xsl:comment><xsl:processing-instruction name="xml-stylesheet"><xsl:text>type="text/xsl" href="Patrdf2html.xsl"</xsl:text></xsl:processing-instruction>
   <Envelope>
     <CurrentStatus>
+      <xsl:apply-templates mode="copyToDefaultNS" select="PatientID"/>
       <xsl:apply-templates mode="copyToDefaultNS" select="Contact"/>
       <xsl:apply-templates select="Practice"/>
       <xsl:apply-templates mode="copyToDefaultNS" select="Demographics"/>