~ tabbify to 3 to see upcoming diffs more clearly
authorEric Prud'hommeaux <eric@w3.org>
Sun, 03 Oct 2010 13:13:52 -0400
changeset 12 288b84433388
parent 11 874112250113
child 13 d823686e9b2c
~ tabbify to 3 to see upcoming diffs more clearly
.project
syntheticPatients/AD_PCHR_1-indivo.xml
syntheticPatients/AD_PCHR_1-tmo.trig
syntheticPatients/AD_PCHR_1.xml
syntheticPatients/Indivo2Trig.xsl
syntheticPatients/Makefile
syntheticPatients/Pat2Indivo2.xsl
syntheticPatients/indivo-schemas/allergy.xsd
syntheticPatients/indivo-schemas/contact.xsd
syntheticPatients/indivo-schemas/envelope.xsd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.project	Sun Oct 03 13:13:52 2010 -0400
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>TMO-Indivo</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+	</natures>
+</projectDescription>
--- a/syntheticPatients/AD_PCHR_1-indivo.xml	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/AD_PCHR_1-indivo.xml	Sun Oct 03 13:13:52 2010 -0400
@@ -1,308 +1,308 @@
 <!-- -*- XML -*- -->
 <?xml-stylesheet type="text/xsl" href="Patrdf2html.xsl"?><Envelope xmlns="http://indivo.org/vocab/xml/documents#">
-  <CurrentStatus>
-    <Contact>
-    <name>
-        <fullName>George Andrew Tour</fullName>
-        <givenName>George</givenName>
-        <familyName>Tour</familyName>
-    </name>
-    <email type="personal">
+   <CurrentStatus>
+      <Contact>
+         <name>
+            <fullName>George Andrew Tour</fullName>
+            <givenName>George</givenName>
+            <familyName>Tour</familyName>
+         </name>
+         <email type="personal">
         gtour@hotmail.com
     </email>
-    <email type="work">
+         <email type="work">
         george.tour@technology.com
     </email>
-    <address type="home">
-        <streetAddress>15 Water St.</streetAddress>
-        <postalCode>53326</postalCode>
-        <locality>New Hope</locality>
-        <region>Massachusetts</region>
-        <country>US</country>
-        <timeZone>-5GMT</timeZone>
-    </address>
-    <location type="home">
-        <latitude>41N</latitude>
-        <longitude>69W</longitude>
-    </location>
-    <phoneNumber type="home">123456</phoneNumber>
-    <phoneNumber type="work">17891011734</phoneNumber>
-    <instantMessengerName protocol="aim">scotour</instantMessengerName>
-</Contact>
-    <PrimaryCarePhysician>
-      <name>
-        <fullName>Henry No</fullName>
-        <givenName>Henry</givenName>
-        <familyName>No</familyName>
-      </name>
-      <address>
-        <streetAddress>20 Water St.</streetAddress>
-        <postalCode>53326</postalCode>
-        <locality>New Hope</locality>
-        <region>Massachusetts</region>
-        <country>US</country>
-        <timeZone>-5GMT</timeZone>
-      </address>
-      <phoneNumber>17891011782</phoneNumber>
-    </PrimaryCarePhysician>
-    <Demographics>
-    <dateOfBirth>1934-05-15</dateOfBirth>
-    <dateOfDeath>XXXX-XX-XX</dateOfDeath>
-    <gender>Male</gender>
-    <ethnicity>Basque</ethnicity>
-    <language>EN</language>
-    <maritalStatus>Single</maritalStatus>
-    <employmentStatus>Retired</employmentStatus>
-    <employmentIndustry>Technology</employmentIndustry>
-    <occupation>Developer</occupation>
-    <religion>Catholic</religion>
-    <income>100,000 USD</income>
-    <highestEducation>PhD</highestEducation>
-    <organDonor>false</organDonor>
-</Demographics>
-    <Prescriptions>
-      <Prescription>
-        <medication>
-          <dateStarted>2009-05-15</dateStarted>
-          <name type="http://indivo.org/codes/ndc">000007414020</name>
-          <brandName/>
-          <dose>
-            <value>999</value>
-            <unit type="http://indivo.org/codes/units#" value="999"/>
-          </dose>
-          <strength>
-            <value>6.25</value>
-            <unit type="http://indivo.org/codes/units#" value="MG"/>
-          </strength>
-          <frequency>b.i.d.</frequency>
-        </medication>
-        <prescribedBy>
-          <name>Henry No</name>
-        </prescribedBy>
-        <dispenseAsWritten>true</dispenseAsWritten>
-        <refillInfo>3</refillInfo>
-        <instructions>...</instructions>
-      </Prescription>
-      <Prescription>
-        <medication>
-          <dateStarted>2009-05-20</dateStarted>
-          <name type="http://indivo.org/codes/ndc">000071015595</name>
-          <brandName/>
-          <dose>
-            <value>999</value>
-            <unit type="http://indivo.org/codes/units#" value="999"/>
-          </dose>
-          <strength>
-            <value>10</value>
-            <unit type="http://indivo.org/codes/units#" value="MG"/>
-          </strength>
-          <frequency>q.d.</frequency>
-        </medication>
-        <prescribedBy>
-          <name>Henry No</name>
-        </prescribedBy>
-        <dispenseAsWritten>true</dispenseAsWritten>
-        <refillInfo>3</refillInfo>
-        <instructions>...</instructions>
-      </Prescription>
-      <Prescription>
-        <medication>
-          <dateStarted>2009-05-20</dateStarted>
-          <name type="http://indivo.org/codes/ndc">66105051810</name>
-          <brandName/>
-          <dose>
-            <value>999</value>
-            <unit type="http://indivo.org/codes/units#" value="999"/>
-          </dose>
-          <strength>
-            <value>1.00</value>
-            <unit type="http://indivo.org/codes/units#" value="MG"/>
-          </strength>
-          <frequency>q.d.</frequency>
-        </medication>
-        <prescribedBy>
-          <name>Henry No</name>
-        </prescribedBy>
-        <dispenseAsWritten>true</dispenseAsWritten>
-        <refillInfo>0</refillInfo>
-        <instructions>...</instructions>
-      </Prescription>
-      <Prescription>
-        <medication>
-          <dateStarted>2009-08-10</dateStarted>
-          <dateStopped>2009-08-15</dateStopped>
-          <name type="http://indivo.org/codes/ndc">11071084101</name>
-          <brandName/>
-          <dose>
-            <value>999</value>
-            <unit type="http://indivo.org/codes/units#" value="999"/>
-          </dose>
-          <strength>
-            <value>5.00</value>
-            <unit type="http://indivo.org/codes/units#" value="MG"/>
-          </strength>
-          <frequency>q.d.</frequency>
-        </medication>
-        <prescribedBy>
-          <name>Henry No</name>
-        </prescribedBy>
-        <dispenseAsWritten>true</dispenseAsWritten>
-        <refillInfo>3</refillInfo>
-        <instructions>...</instructions>
-      </Prescription>
-      <Prescription>
-        <medication>
-          <dateStarted>2009-08-15</dateStarted>
-          <name type="http://indivo.org/codes/ndc">62856083130</name>
-          <brandName/>
-          <dose>
-            <value>999</value>
-            <unit type="http://indivo.org/codes/units#" value="999"/>
-          </dose>
-          <strength>
-            <value>5.00</value>
-            <unit type="http://indivo.org/codes/units#" value="MG"/>
-          </strength>
-          <frequency>q.d.</frequency>
-        </medication>
-        <prescribedBy>
-          <name>Henry No</name>
-        </prescribedBy>
-        <dispenseAsWritten>true</dispenseAsWritten>
-        <refillInfo>0</refillInfo>
-        <instructions>...</instructions>
-      </Prescription>
-    </Prescriptions>
-    <Conditions>
-      <Problem>
-        <dateOnset>2009-05-15T12:00:00</dateOnset>
-        <name type="http://indivo.org/codes/ICD9" value="410">hypertension</name>
-        <comments>...</comments>
-        <diagnosedBy>Henry No</diagnosedBy>
-      </Problem>
-      <Problem>
-        <dateOnset>2009-05-20T12:00:00</dateOnset>
-        <name type="http://indivo.org/codes/ICD9" value="272">hypercholesterolaemia</name>
-        <comments>...</comments>
-        <diagnosedBy>Henry No</diagnosedBy>
-      </Problem>
-      <Problem>
-        <dateOnset>2009-05-20T12: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>
-        <name type="http://indivo.org/codes/ICD9" value="331">alzheimer’s disease</name>
-        <comments>...</comments>
-        <diagnosedBy>Henry No</diagnosedBy>
-      </Problem>
-    </Conditions>
-    <Procedures>
-      <Procedure>
-        <datePerformed>2000-07-01T12:00:00</datePerformed>
-        <name type="http://indivo.org/codes/ICD9_Procedure" value="47.09">appendectomy via incision</name>
-        <Provider>
-          <name>Henry No</name>
-          <institution>Redding Hospital</institution>
-        </Provider>
-        <comments> …..</comments>
-      </Procedure>
-    </Procedures>
-    <Allergies>
-      <Allergy>
-        <allergen>
-          <type type="http://codes.indivo.org/codes/allergentypes/">drugs</type>
-          <name type="http://codes.indivo.org/codes/allergens/">none</name>
-        </allergen>
-      </Allergy>
-      <Allergy>
-        <allergen>
-          <type type="http://codes.indivo.org/codes/allergentypes/">food</type>
-          <name type="http://codes.indivo.org/codes/allergens/">fish</name>
-        </allergen>
-      </Allergy>
-      <Allergy>
-        <allergen>
-          <type type="http://codes.indivo.org/codes/allergentypes/">environment</type>
-          <name type="http://codes.indivo.org/codes/allergens/">dust</name>
-        </allergen>
-      </Allergy>
-    </Allergies>
-    <Immunizations>
-      <Immunization>
-        <dateAdministered>1940-01-01T00:00:00</dateAdministered>
-        <administeredBy>Henry No</administeredBy>
-        <vaccine>
-          <type>measles</type>
-          <manufacturer/>
-          <lot/>
-          <expiration/>
-        </vaccine>
-        <sequence>1</sequence>
-        <anatomicSurface>oral</anatomicSurface>
-        <adverseEvent/>
-      </Immunization>
-      <Immunization>
-        <dateAdministered>1940-01-01T00:00:00</dateAdministered>
-        <administeredBy>Henry No</administeredBy>
-        <vaccine>
-          <type>mumps</type>
-          <manufacturer/>
-          <lot/>
-          <expiration/>
-        </vaccine>
-        <sequence>1</sequence>
-        <anatomicSurface>oral</anatomicSurface>
-        <adverseEvent/>
-      </Immunization>
-      <Immunization>
-        <dateAdministered>1949-01-01T00:00:00</dateAdministered>
-        <administeredBy>Henry No</administeredBy>
-        <vaccine>
-          <type>rubella</type>
-          <manufacturer/>
-          <lot/>
-          <expiration/>
-        </vaccine>
-        <sequence>1</sequence>
-        <anatomicSurface>intramuscular</anatomicSurface>
-        <adverseEvent/>
-      </Immunization>
-      <Immunization>
-        <dateAdministered>2005-01-01T00:00:00</dateAdministered>
-        <administeredBy>Henry No</administeredBy>
-        <vaccine>
-          <type>tetanus</type>
-          <manufacturer/>
-          <lot/>
-          <expiration/>
-        </vaccine>
-        <sequence>1</sequence>
-        <anatomicSurface>intramuscular</anatomicSurface>
-        <adverseEvent/>
-      </Immunization>
-    </Immunizations>
-    <lifestyle>  
-       <alcoholConsumption>
+         <address type="home">
+            <streetAddress>15 Water St.</streetAddress>
+            <postalCode>53326</postalCode>
+            <locality>New Hope</locality>
+            <region>Massachusetts</region>
+            <country>US</country>
+            <timeZone>-5GMT</timeZone>
+         </address>
+         <location type="home">
+            <latitude>41N</latitude>
+            <longitude>69W</longitude>
+         </location>
+         <phoneNumber type="home">123456</phoneNumber>
+         <phoneNumber type="work">17891011734</phoneNumber>
+         <instantMessengerName protocol="aim">scotour</instantMessengerName>
+      </Contact>
+      <PrimaryCarePhysician>
+         <name>
+            <fullName>Henry No</fullName>
+            <givenName>Henry</givenName>
+            <familyName>No</familyName>
+         </name>
+         <address>
+            <streetAddress>20 Water St.</streetAddress>
+            <postalCode>53326</postalCode>
+            <locality>New Hope</locality>
+            <region>Massachusetts</region>
+            <country>US</country>
+            <timeZone>-5GMT</timeZone>
+         </address>
+         <phoneNumber>17891011782</phoneNumber>
+      </PrimaryCarePhysician>
+      <Demographics>
+         <dateOfBirth>1934-05-15</dateOfBirth>
+         <dateOfDeath>XXXX-XX-XX</dateOfDeath>
+         <gender>Male</gender>
+         <ethnicity>Basque</ethnicity>
+         <language>EN</language>
+         <maritalStatus>Single</maritalStatus>
+         <employmentStatus>Retired</employmentStatus>
+         <employmentIndustry>Technology</employmentIndustry>
+         <occupation>Developer</occupation>
+         <religion>Catholic</religion>
+         <income>100,000 USD</income>
+         <highestEducation>PhD</highestEducation>
+         <organDonor>false</organDonor>
+      </Demographics>
+      <Prescriptions>
+         <Prescription>
+            <medication>
+               <dateStarted>2009-05-15</dateStarted>
+               <name type="http://indivo.org/codes/ndc">000007414020</name>
+               <brandName/>
+               <dose>
+                  <value>999</value>
+                  <unit type="http://indivo.org/codes/units#" value="999"/>
+               </dose>
+               <strength>
+                  <value>6.25</value>
+                  <unit type="http://indivo.org/codes/units#" value="MG"/>
+               </strength>
+               <frequency>b.i.d.</frequency>
+            </medication>
+            <prescribedBy>
+               <name>Henry No</name>
+            </prescribedBy>
+            <dispenseAsWritten>true</dispenseAsWritten>
+            <refillInfo>3</refillInfo>
+            <instructions>...</instructions>
+         </Prescription>
+         <Prescription>
+            <medication>
+               <dateStarted>2009-05-20</dateStarted>
+               <name type="http://indivo.org/codes/ndc">000071015595</name>
+               <brandName/>
+               <dose>
+                  <value>999</value>
+                  <unit type="http://indivo.org/codes/units#" value="999"/>
+               </dose>
+               <strength>
+                  <value>10</value>
+                  <unit type="http://indivo.org/codes/units#" value="MG"/>
+               </strength>
+               <frequency>q.d.</frequency>
+            </medication>
+            <prescribedBy>
+               <name>Henry No</name>
+            </prescribedBy>
+            <dispenseAsWritten>true</dispenseAsWritten>
+            <refillInfo>3</refillInfo>
+            <instructions>...</instructions>
+         </Prescription>
+         <Prescription>
+            <medication>
+               <dateStarted>2009-05-20</dateStarted>
+               <name type="http://indivo.org/codes/ndc">66105051810</name>
+               <brandName/>
+               <dose>
+                  <value>999</value>
+                  <unit type="http://indivo.org/codes/units#" value="999"/>
+               </dose>
+               <strength>
+                  <value>1.00</value>
+                  <unit type="http://indivo.org/codes/units#" value="MG"/>
+               </strength>
+               <frequency>q.d.</frequency>
+            </medication>
+            <prescribedBy>
+               <name>Henry No</name>
+            </prescribedBy>
+            <dispenseAsWritten>true</dispenseAsWritten>
+            <refillInfo>0</refillInfo>
+            <instructions>...</instructions>
+         </Prescription>
+         <Prescription>
+            <medication>
+               <dateStarted>2009-08-10</dateStarted>
+               <dateStopped>2009-08-15</dateStopped>
+               <name type="http://indivo.org/codes/ndc">11071084101</name>
+               <brandName/>
+               <dose>
+                  <value>999</value>
+                  <unit type="http://indivo.org/codes/units#" value="999"/>
+               </dose>
+               <strength>
+                  <value>5.00</value>
+                  <unit type="http://indivo.org/codes/units#" value="MG"/>
+               </strength>
+               <frequency>q.d.</frequency>
+            </medication>
+            <prescribedBy>
+               <name>Henry No</name>
+            </prescribedBy>
+            <dispenseAsWritten>true</dispenseAsWritten>
+            <refillInfo>3</refillInfo>
+            <instructions>...</instructions>
+         </Prescription>
+         <Prescription>
+            <medication>
+               <dateStarted>2009-08-15</dateStarted>
+               <name type="http://indivo.org/codes/ndc">62856083130</name>
+               <brandName/>
+               <dose>
+                  <value>999</value>
+                  <unit type="http://indivo.org/codes/units#" value="999"/>
+               </dose>
+               <strength>
+                  <value>5.00</value>
+                  <unit type="http://indivo.org/codes/units#" value="MG"/>
+               </strength>
+               <frequency>q.d.</frequency>
+            </medication>
+            <prescribedBy>
+               <name>Henry No</name>
+            </prescribedBy>
+            <dispenseAsWritten>true</dispenseAsWritten>
+            <refillInfo>0</refillInfo>
+            <instructions>...</instructions>
+         </Prescription>
+      </Prescriptions>
+      <Conditions>
+         <Problem>
+            <dateOnset>2009-05-15T12:00:00</dateOnset>
+            <name type="http://indivo.org/codes/ICD9" value="410">hypertension</name>
+            <comments>...</comments>
+            <diagnosedBy>Henry No</diagnosedBy>
+         </Problem>
+         <Problem>
+            <dateOnset>2009-05-20T12:00:00</dateOnset>
+            <name type="http://indivo.org/codes/ICD9" value="272">hypercholesterolaemia</name>
+            <comments>...</comments>
+            <diagnosedBy>Henry No</diagnosedBy>
+         </Problem>
+         <Problem>
+            <dateOnset>2009-05-20T12: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>
+            <name type="http://indivo.org/codes/ICD9" value="331">alzheimer’s disease</name>
+            <comments>...</comments>
+            <diagnosedBy>Henry No</diagnosedBy>
+         </Problem>
+      </Conditions>
+      <Procedures>
+         <Procedure>
+            <datePerformed>2000-07-01T12:00:00</datePerformed>
+            <name type="http://indivo.org/codes/ICD9_Procedure" value="47.09">appendectomy via incision</name>
+            <Provider>
+               <name>Henry No</name>
+               <institution>Redding Hospital</institution>
+            </Provider>
+            <comments> …..</comments>
+         </Procedure>
+      </Procedures>
+      <Allergies>
+         <Allergy>
+            <allergen>
+               <type type="http://codes.indivo.org/codes/allergentypes/">drugs</type>
+               <name type="http://codes.indivo.org/codes/allergens/">none</name>
+            </allergen>
+         </Allergy>
+         <Allergy>
+            <allergen>
+               <type type="http://codes.indivo.org/codes/allergentypes/">food</type>
+               <name type="http://codes.indivo.org/codes/allergens/">fish</name>
+            </allergen>
+         </Allergy>
+         <Allergy>
+            <allergen>
+               <type type="http://codes.indivo.org/codes/allergentypes/">environment</type>
+               <name type="http://codes.indivo.org/codes/allergens/">dust</name>
+            </allergen>
+         </Allergy>
+      </Allergies>
+      <Immunizations>
+         <Immunization>
+            <dateAdministered>1940-01-01T00:00:00</dateAdministered>
+            <administeredBy>Henry No</administeredBy>
+            <vaccine>
+               <type>measles</type>
+               <manufacturer/>
+               <lot/>
+               <expiration/>
+            </vaccine>
+            <sequence>1</sequence>
+            <anatomicSurface>oral</anatomicSurface>
+            <adverseEvent/>
+         </Immunization>
+         <Immunization>
+            <dateAdministered>1940-01-01T00:00:00</dateAdministered>
+            <administeredBy>Henry No</administeredBy>
+            <vaccine>
+               <type>mumps</type>
+               <manufacturer/>
+               <lot/>
+               <expiration/>
+            </vaccine>
+            <sequence>1</sequence>
+            <anatomicSurface>oral</anatomicSurface>
+            <adverseEvent/>
+         </Immunization>
+         <Immunization>
+            <dateAdministered>1949-01-01T00:00:00</dateAdministered>
+            <administeredBy>Henry No</administeredBy>
+            <vaccine>
+               <type>rubella</type>
+               <manufacturer/>
+               <lot/>
+               <expiration/>
+            </vaccine>
+            <sequence>1</sequence>
+            <anatomicSurface>intramuscular</anatomicSurface>
+            <adverseEvent/>
+         </Immunization>
+         <Immunization>
+            <dateAdministered>2005-01-01T00:00:00</dateAdministered>
+            <administeredBy>Henry No</administeredBy>
+            <vaccine>
+               <type>tetanus</type>
+               <manufacturer/>
+               <lot/>
+               <expiration/>
+            </vaccine>
+            <sequence>1</sequence>
+            <anatomicSurface>intramuscular</anatomicSurface>
+            <adverseEvent/>
+         </Immunization>
+      </Immunizations>
+      <lifestyle>  
+         <alcoholConsumption>
            <frequency>2</frequency>
            <units>week</units>
            <quantity>4</quantity>
            <date>2004-08-15</date>
-       </alcoholConsumption>
-       <exercise>
+         </alcoholConsumption>
+         <exercise>
            <frequency>5</frequency>
            <units>week</units>
            <averageDuration>25</averageDuration>
            <date>2004-08-15</date>
-       </exercise>
-       <smoking>
+         </exercise>
+         <smoking>
            <packYears>0</packYears>
            <history>never</history>
            <date>2004-08-15</date>
-       </smoking>
-       <diet>
+         </smoking>
+         <diet>
             <fruitVegetablesRating>10</fruitVegetablesRating>
             <wholeGrainsRating>7</wholeGrainsRating>
             <dairyRating>4</dairyRating>
@@ -310,365 +310,365 @@
             <fatsRating>4</fatsRating>
             <junkFoodRating>2</junkFoodRating>
             <date>2004-08-15</date>
-       </diet>
-  </lifestyle>
-    <familyHistory>
-      <subject id="1">
-         <relation>maternalGrandmother</relation>
-         <fname>Susie</fname>
-         <sex>Female</sex>
-         <alive>no</alive>
-         <ageAtDeath>24</ageAtDeath>
-         <cancer>no</cancer>
-         <causeOfDeath>TB</causeOfDeath>
-      </subject>
-      <subject id="2">
-         <relation>maternalGrandfather</relation>
-         <fname>Paul</fname>
-         <sex>Male</sex>
-         <alive>no</alive>
-         <ageAtDeath>81</ageAtDeath>
-         <cancer>no</cancer>
-         <causeOfDeath>Old Age</causeOfDeath>
-      </subject>
-      <subject id="3">
-         <relation>paternalGrandmother</relation>
-         <fname>Betty</fname>
-         <sex>Female</sex>
-         <alive>no</alive>
-         <ageAtDeath>62</ageAtDeath>
-         <cancer>no</cancer>
-         <causeOfDeath>myocardialInfarction</causeOfDeath>
-      </subject>
-      <subject id="4">
-         <relation>paternalGrandfather</relation>
-         <fname>Gary</fname>
-         <sex>Male</sex>
-         <alive>no</alive>
-         <ageAtDeath>45</ageAtDeath>
-         <cancer>no</cancer>
-         <causeOfDeath>MedicalError</causeOfDeath>
-      </subject>
-      <subject id="5">
-         <relation>mother</relation>
-         <fname>Elizabeth</fname>
-         <sex>Female</sex>
-         <alive>yes</alive>
-         <cancer>no</cancer>
-         <medicalConditions x_1="RA">yes</medicalConditions>
-      </subject>
-      <subject id="6">
-         <relation>father</relation>
-         <fname>Frank</fname>
-         <sex>Male</sex>
-         <alive>yes</alive>
-         <cancer>yes</cancer>
-         <cancerType>Colorectal</cancerType>
-         <cancerTypeColorectalAge>62</cancerTypeColorectalAge>
-      </subject>
-      <subject id="7">
-         <relation>brother</relation>
-         <fname>Jake</fname>
-         <sex>Male</sex>
-         <alive>yes</alive>
-         <cancer>no</cancer>
-      </subject>
-</familyHistory>
-  </CurrentStatus>
-  <Encounter>
-    <Date>2009-05-15</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>true</MedicalBaseline>
-    <MedicalTest>Annual Medical</MedicalTest>
-    <ReportedSymptoms>false</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-        <DiagnosisDescription>false</DiagnosisDescription>
-      </PreliminaryDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests>
-      <Test>
-        <dateMeasured>2009-05-15</dateMeasured>
-        <name>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</name>
-        <status>@@@</status>
-      </Test>
-      <Test>
-        <dateMeasured>2009-05-15</dateMeasured>
-        <name>Lipid panel</name>
-        <status>@@@</status>
-      </Test>
-      <Test>
-        <dateMeasured>2009-05-15</dateMeasured>
-        <name>Hepatic function panel</name>
-        <status>@@@</status>
-      </Test>
-      <Test>
-        <dateMeasured>2009-05-15</dateMeasured>
-        <name>Renal function panel</name>
-        <status>@@@</status>
-      </Test>
-      <Test>
-        <dateMeasured>2009-05-15</dateMeasured>
-        <name>Thyroid stimulating hormone (TSH)</name>
-        <status>@@@</status>
-      </Test>
-    </LabTests>
-  </Encounter>
-  <Encounter>
-    <Date>2009-05-17</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>true</MedicalBaseline>
-    <MedicalTest>routine</MedicalTest>
-    <ReportedSymptoms>false</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-          <DiagnosisDescription>atrial fibrillation</DiagnosisDescription>
-          <ICD9>427</ICD9>
-          <ICD9Description>atrial fibrillation</ICD9Description>
-       </PreliminaryDiagnosis>
-      <DifferentialDiagnosis>
-          <ICD9>427</ICD9>
-          <ICD9Description>Atrial fibrillation</ICD9Description>
+         </diet>
+      </lifestyle>
+      <familyHistory>
+         <subject id="1">
+            <relation>maternalGrandmother</relation>
+            <fname>Susie</fname>
+            <sex>Female</sex>
+            <alive>no</alive>
+            <ageAtDeath>24</ageAtDeath>
+            <cancer>no</cancer>
+            <causeOfDeath>TB</causeOfDeath>
+         </subject>
+         <subject id="2">
+            <relation>maternalGrandfather</relation>
+            <fname>Paul</fname>
+            <sex>Male</sex>
+            <alive>no</alive>
+            <ageAtDeath>81</ageAtDeath>
+            <cancer>no</cancer>
+            <causeOfDeath>Old Age</causeOfDeath>
+         </subject>
+         <subject id="3">
+            <relation>paternalGrandmother</relation>
+            <fname>Betty</fname>
+            <sex>Female</sex>
+            <alive>no</alive>
+            <ageAtDeath>62</ageAtDeath>
+            <cancer>no</cancer>
+            <causeOfDeath>myocardialInfarction</causeOfDeath>
+         </subject>
+         <subject id="4">
+            <relation>paternalGrandfather</relation>
+            <fname>Gary</fname>
+            <sex>Male</sex>
+            <alive>no</alive>
+            <ageAtDeath>45</ageAtDeath>
+            <cancer>no</cancer>
+            <causeOfDeath>MedicalError</causeOfDeath>
+         </subject>
+         <subject id="5">
+            <relation>mother</relation>
+            <fname>Elizabeth</fname>
+            <sex>Female</sex>
+            <alive>yes</alive>
+            <cancer>no</cancer>
+            <medicalConditions x_1="RA">yes</medicalConditions>
+         </subject>
+         <subject id="6">
+            <relation>father</relation>
+            <fname>Frank</fname>
+            <sex>Male</sex>
+            <alive>yes</alive>
+            <cancer>yes</cancer>
+            <cancerType>Colorectal</cancerType>
+            <cancerTypeColorectalAge>62</cancerTypeColorectalAge>
+         </subject>
+         <subject id="7">
+            <relation>brother</relation>
+            <fname>Jake</fname>
+            <sex>Male</sex>
+            <alive>yes</alive>
+            <cancer>no</cancer>
+         </subject>
+      </familyHistory>
+   </CurrentStatus>
+   <Encounter>
+      <Date>2009-05-15</Date>
+      <Contact>
+        <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>true</MedicalBaseline>
+      <MedicalTest>Annual Medical</MedicalTest>
+      <ReportedSymptoms>false</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>false</DiagnosisDescription>
+         </PreliminaryDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests>
+         <Test>
+            <dateMeasured>2009-05-15</dateMeasured>
+            <name>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</name>
+            <status>@@@</status>
+         </Test>
+         <Test>
+            <dateMeasured>2009-05-15</dateMeasured>
+            <name>Lipid panel</name>
+            <status>@@@</status>
+         </Test>
+         <Test>
+            <dateMeasured>2009-05-15</dateMeasured>
+            <name>Hepatic function panel</name>
+            <status>@@@</status>
+         </Test>
+         <Test>
+            <dateMeasured>2009-05-15</dateMeasured>
+            <name>Renal function panel</name>
+            <status>@@@</status>
+         </Test>
+         <Test>
+            <dateMeasured>2009-05-15</dateMeasured>
+            <name>Thyroid stimulating hormone (TSH)</name>
+            <status>@@@</status>
+         </Test>
+      </LabTests>
+   </Encounter>
+   <Encounter>
+      <Date>2009-05-17</Date>
+      <Contact>
+         <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>true</MedicalBaseline>
+      <MedicalTest>routine</MedicalTest>
+      <ReportedSymptoms>false</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>atrial fibrillation</DiagnosisDescription>
+            <ICD9>427</ICD9>
+            <ICD9Description>atrial fibrillation</ICD9Description>
+         </PreliminaryDiagnosis>
+         <DifferentialDiagnosis>
+            <ICD9>427</ICD9>
+            <ICD9Description>Atrial fibrillation</ICD9Description>
+         </DifferentialDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests>
+         <Test>
+            <dateMeasured>2009-05-17</dateMeasured>
+            <name>Rhythm ECG</name>
+            <HCLSresult>
+               <LabTest>
+                  <variant_Synonyms/>
+               </LabTest>
+            </HCLSresult>
+            <status>@@@</status>
+         </Test>
+      </LabTests>
+   </Encounter>
+   <Encounter>
+      <Date>2009-05-18</Date>
+      <Contact>
+        <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>true</MedicalBaseline>
+      <MedicalTest>true</MedicalTest>
+      <ReportedSymptoms>irregular pulse</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>atrial fibrillation</DiagnosisDescription>
+         </PreliminaryDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests>
+         <Test>
+            <dateMeasured>2009-05-18</dateMeasured>
+            <name>Ambry test </name>
+            <SNPresult>
+               <LabTest>
+                  <variant_Synonyms>VKOR; MST134; MST576; VKCFD2; EDTP308; MGC2694; FLJ00289; IMAGE345520</variant_Synonyms>
+               </LabTest>
+            </SNPresult>
+            <status>@@@</status>
+         </Test>
+         <Test>
+            <dateMeasured>2009-05-18</dateMeasured>
+            <name/>
+            <SNPresult>
+               <LabTest>
+                  <variant_Synonyms> CPC9; CYP2C; CYP2C10; MGC88320; P450IIC9; MGC149605; CYP2C9 </variant_Synonyms>
+               </LabTest>
+            </SNPresult>
+            <status>@@@</status>
+         </Test>
+      </LabTests>
+   </Encounter>
+   <Encounter>
+      <Date>2009-05-20</Date>
+      <Contact>
+        <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>true</MedicalBaseline>
+      <MedicalTest>false</MedicalTest>
+      <ReportedSymptoms>none</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>none</DiagnosisDescription>
+         </PreliminaryDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests/>
+   </Encounter>
+   <Encounter>
+      <Date>2009-06-03</Date>
+      <Contact>
+         <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>true</MedicalBaseline>
+      <MedicalTest>true</MedicalTest>
+      <ReportedSymptoms>none</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>none</DiagnosisDescription>
+         </PreliminaryDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests>
+         <Test>
+            <dateMeasured>2009-06-03</dateMeasured>
+            <name>Lipid panel</name>
+            <status>@@@</status>
+         </Test>
+      </LabTests>
+   </Encounter>
+   <Encounter>
+      <Date>2009-07-03</Date>
+      <Contact>
+        <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>true</MedicalBaseline>
+      <MedicalTest>true</MedicalTest>
+      <ReportedSymptoms>none</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>none</DiagnosisDescription>
+         </PreliminaryDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests>
+         <Test>
+            <dateMeasured>2009-07-03</dateMeasured>
+            <name>Lipid panel</name>
+            <status>@@@</status>
+         </Test>
+      </LabTests>
+   </Encounter>
+   <Encounter>
+      <Date>2009-07-15</Date>
+      <Date>2009-07-16</Date>
+      <Contact>
+         <fullName>Henry No</fullName>
+      </Contact>
+      <Contact>
+         <fullName>Mark Tourney</fullName>
+      </Contact>
+      <MedicalBaseline>false</MedicalBaseline>
+      <MedicalBaseline>false</MedicalBaseline>
+      <MedicalTest>false</MedicalTest>
+      <MedicalTest>true</MedicalTest>
+      <ReportedSymptoms>Confusion, Declining memory</ReportedSymptoms>
+      <ReportedSymptoms> Confusion, Declining memory </ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>Dementia</DiagnosisDescription>
+            <ICD9>331</ICD9>
+            <ICD9Description> Other cerebral degenerations</ICD9Description>
+         </PreliminaryDiagnosis>
+         <DifferentialDiagnosis>
        </DifferentialDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests>
-      <Test>
-        <dateMeasured>2009-05-17</dateMeasured>
-        <name>Rhythm ECG</name>
-        <HCLSresult>
-          <LabTest>
-            <variant_Synonyms/>
-          </LabTest>
-        </HCLSresult>
-        <status>@@@</status>
-      </Test>
-    </LabTests>
-  </Encounter>
-  <Encounter>
-    <Date>2009-05-18</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>true</MedicalBaseline>
-    <MedicalTest>true</MedicalTest>
-    <ReportedSymptoms>irregular pulse</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-        <DiagnosisDescription>atrial fibrillation</DiagnosisDescription>
-      </PreliminaryDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests>
-      <Test>
-        <dateMeasured>2009-05-18</dateMeasured>
-        <name>Ambry test </name>
-        <SNPresult>
-          <LabTest>
-            <variant_Synonyms>VKOR; MST134; MST576; VKCFD2; EDTP308; MGC2694; FLJ00289; IMAGE345520</variant_Synonyms>
-          </LabTest>
-        </SNPresult>
-        <status>@@@</status>
-      </Test>
-      <Test>
-        <dateMeasured>2009-05-18</dateMeasured>
-        <name/>
-        <SNPresult>
-          <LabTest>
-            <variant_Synonyms> CPC9; CYP2C; CYP2C10; MGC88320; P450IIC9; MGC149605; CYP2C9 </variant_Synonyms>
-          </LabTest>
-        </SNPresult>
-        <status>@@@</status>
-      </Test>
-    </LabTests>
-  </Encounter>
-  <Encounter>
-    <Date>2009-05-20</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>true</MedicalBaseline>
-    <MedicalTest>false</MedicalTest>
-    <ReportedSymptoms>none</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-        <DiagnosisDescription>none</DiagnosisDescription>
-      </PreliminaryDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests/>
-  </Encounter>
-  <Encounter>
-    <Date>2009-06-03</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>true</MedicalBaseline>
-    <MedicalTest>true</MedicalTest>
-    <ReportedSymptoms>none</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-        <DiagnosisDescription>none</DiagnosisDescription>
-      </PreliminaryDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests>
-      <Test>
-        <dateMeasured>2009-06-03</dateMeasured>
-        <name>Lipid panel</name>
-        <status>@@@</status>
-      </Test>
-    </LabTests>
-  </Encounter>
-  <Encounter>
-    <Date>2009-07-03</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>true</MedicalBaseline>
-    <MedicalTest>true</MedicalTest>
-    <ReportedSymptoms>none</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-        <DiagnosisDescription>none</DiagnosisDescription>
-      </PreliminaryDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests>
-      <Test>
-        <dateMeasured>2009-07-03</dateMeasured>
-        <name>Lipid panel</name>
-        <status>@@@</status>
-      </Test>
-    </LabTests>
-  </Encounter>
-  <Encounter>
-    <Date>2009-07-15</Date>
-    <Date>2009-07-16</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <Contact>
-      <fullName>Mark Tourney</fullName>
-    </Contact>
-    <MedicalBaseline>false</MedicalBaseline>
-    <MedicalBaseline>false</MedicalBaseline>
-    <MedicalTest>false</MedicalTest>
-    <MedicalTest>true</MedicalTest>
-    <ReportedSymptoms>Confusion, Declining memory</ReportedSymptoms>
-    <ReportedSymptoms> Confusion, Declining memory </ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-          <DiagnosisDescription>Dementia</DiagnosisDescription>
-          <ICD9>331</ICD9>
-          <ICD9Description> Other cerebral degenerations</ICD9Description>
-       </PreliminaryDiagnosis>
-      <DifferentialDiagnosis>
-       </DifferentialDiagnosis>
-    </WorkingDiagnosis>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-          <DiagnosisDescription>Dementia</DiagnosisDescription>
-          <ICD9>331</ICD9>
-          <ICD9Description> Other cerebral degenerations</ICD9Description>
-       </PreliminaryDiagnosis>
-      <DifferentialDiagnosis>
-          <ICD9>331.0</ICD9>
-          <ICD9Description>Alzheimer's disease</ICD9Description>
-       </DifferentialDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests>
-      <Test>
-        <dateMeasured>2009-07-15</dateMeasured>
-        <name>Other psychologic evaluation and testing</name>
-        <HCLSresult>
-          <LabTest>
-            <variant_Synonyms/>
-          </LabTest>
-        </HCLSresult>
-        <status>@@@</status>
-      </Test>
-      <Test>
-        <dateMeasured>2009-07-15</dateMeasured>
-        <name>Magnetic resonance imaging of brain and brain</name>
-        <HCLSresult>
-          <LabTest>
-            <variant_Synonyms/>
-          </LabTest>
-        </HCLSresult>
-        <status>@@@</status>
-      </Test>
-      <Test>
-        <dateMeasured>2009-07-15</dateMeasured>
-        <name>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</name>
-        <status>@@@</status>
-      </Test>
-      <Test>
-        <dateMeasured>2009-07-15</dateMeasured>
-        <name>ADmark Alzheimer's Evaluation</name>
-        <SNPresult>
-          <LabTest>
-            <variant_Synonyms>APOE4, NG_007084.2:g.7903T&gt;C</variant_Synonyms>
-          </LabTest>
-        </SNPresult>
-        <status>@@@</status>
-      </Test>
-    </LabTests>
-  </Encounter>
-  <Encounter>
-    <Date>2009-08-03</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>true</MedicalBaseline>
-    <MedicalTest>true</MedicalTest>
-    <ReportedSymptoms>false</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-        <DiagnosisDescription>false</DiagnosisDescription>
-      </PreliminaryDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests>
-      <Test>
-        <dateMeasured>2009-08-03</dateMeasured>
-        <name>Lipid panel</name>
-        <status>@@@</status>
-      </Test>
-    </LabTests>
-  </Encounter>
-  <Encounter>
-    <Date>2009-08-15</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>false</MedicalBaseline>
-    <MedicalTest>none</MedicalTest>
-    <ReportedSymptoms>nausea</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-        <DiagnosisDescription>adverse event to Donepezil</DiagnosisDescription>
-      </PreliminaryDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests/>
-  </Encounter>
-  <Encounter>
-    <Date>2009-11-03</Date>
-    <Contact>
-      <fullName>Henry No</fullName>
-    </Contact>
-    <MedicalBaseline>true</MedicalBaseline>
-    <MedicalTest>false</MedicalTest>
-    <ReportedSymptoms>false</ReportedSymptoms>
-    <WorkingDiagnosis>
-      <PreliminaryDiagnosis>
-        <DiagnosisDescription>false</DiagnosisDescription>
-      </PreliminaryDiagnosis>
-    </WorkingDiagnosis>
-    <LabTests>
-      <Test>
-        <dateMeasured>2009-11-03</dateMeasured>
-        <name>Lipid panel</name>
-        <status>@@@</status>
-      </Test>
-    </LabTests>
-  </Encounter>
-</Envelope>
+      </WorkingDiagnosis>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>Dementia</DiagnosisDescription>
+            <ICD9>331</ICD9>
+            <ICD9Description> Other cerebral degenerations</ICD9Description>
+         </PreliminaryDiagnosis>
+         <DifferentialDiagnosis>
+            <ICD9>331.0</ICD9>
+            <ICD9Description>Alzheimer's disease</ICD9Description>
+         </DifferentialDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests>
+         <Test>
+            <dateMeasured>2009-07-15</dateMeasured>
+            <name>Other psychologic evaluation and testing</name>
+            <HCLSresult>
+               <LabTest>
+                  <variant_Synonyms/>
+               </LabTest>
+            </HCLSresult>
+            <status>@@@</status>
+         </Test>
+         <Test>
+            <dateMeasured>2009-07-15</dateMeasured>
+            <name>Magnetic resonance imaging of brain and brain</name>
+            <HCLSresult>
+               <LabTest>
+                  <variant_Synonyms/>
+               </LabTest>
+            </HCLSresult>
+            <status>@@@</status>
+         </Test>
+         <Test>
+            <dateMeasured>2009-07-15</dateMeasured>
+            <name>Blood count; complete (CBC), automated (Hgb, Hct, RBC, WBC and platelet count) and automated differential WBC count</name>
+            <status>@@@</status>
+         </Test>
+         <Test>
+            <dateMeasured>2009-07-15</dateMeasured>
+            <name>ADmark Alzheimer's Evaluation</name>
+            <SNPresult>
+               <LabTest>
+                  <variant_Synonyms>APOE4, NG_007084.2:g.7903T&gt;C</variant_Synonyms>
+               </LabTest>
+            </SNPresult>
+            <status>@@@</status>
+         </Test>
+      </LabTests>
+   </Encounter>
+   <Encounter>
+      <Date>2009-08-03</Date>
+      <Contact>
+        <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>true</MedicalBaseline>
+      <MedicalTest>true</MedicalTest>
+      <ReportedSymptoms>false</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>false</DiagnosisDescription>
+         </PreliminaryDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests>
+         <Test>
+            <dateMeasured>2009-08-03</dateMeasured>
+            <name>Lipid panel</name>
+            <status>@@@</status>
+         </Test>
+      </LabTests>
+   </Encounter>
+   <Encounter>
+      <Date>2009-08-15</Date>
+      <Contact>
+         <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>false</MedicalBaseline>
+      <MedicalTest>none</MedicalTest>
+      <ReportedSymptoms>nausea</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>adverse event to Donepezil</DiagnosisDescription>
+         </PreliminaryDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests/>
+   </Encounter>
+   <Encounter>
+      <Date>2009-11-03</Date>
+      <Contact>
+         <fullName>Henry No</fullName>
+      </Contact>
+      <MedicalBaseline>true</MedicalBaseline>
+      <MedicalTest>false</MedicalTest>
+      <ReportedSymptoms>false</ReportedSymptoms>
+      <WorkingDiagnosis>
+         <PreliminaryDiagnosis>
+            <DiagnosisDescription>false</DiagnosisDescription>
+         </PreliminaryDiagnosis>
+      </WorkingDiagnosis>
+      <LabTests>
+         <Test>
+            <dateMeasured>2009-11-03</dateMeasured>
+            <name>Lipid panel</name>
+            <status>@@@</status>
+         </Test>
+      </LabTests>
+   </Encounter>
+</Envelope>
\ No newline at end of file
--- a/syntheticPatients/AD_PCHR_1-tmo.trig	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/AD_PCHR_1-tmo.trig	Sun Oct 03 13:13:52 2010 -0400
@@ -6,38 +6,38 @@
 {
 _:patient  a trans:Patient ;
   
-    
+         
   foaf:name "George Andrew Tour" ;
 
   foaf:givenName "George" ;
 
   foaf:familyName "Tour" ;
 
-    
-  foaf:mbox <gtour@hotmail.com> ;
-
-    
-  foaf:mbox <george.tour@technology.com> ;
+         
+  foaf:mbox <mailto:gtour@hotmail.com> ;
 
-    
-    
-    
-    
-    
+         
+  foaf:mbox <mailto:george.tour@technology.com> ;
 
+         
+         
+         
+         
+         
+      
   . 
 _:pricare  a trans:PrimaryCarePhysician ;
   
-      
+         
   foaf:name "Henry No" ;
 
   foaf:givenName "Henry" ;
 
   foaf:familyName "No" ;
 
+         
+         
       
-      
-    
   . 
 
   _:patient trans:hasCondition [
--- a/syntheticPatients/AD_PCHR_1.xml	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/AD_PCHR_1.xml	Sun Oct 03 13:13:52 2010 -0400
@@ -25,7 +25,7 @@
 
 <Demographics>
     <dateOfBirth>1934-05-15</dateOfBirth>
-    <dateOfDeath>XXXX-XX-XX</dateOfDeath>
+    <dateOfDeath>9999-01-01</dateOfDeath>
     <gender>Male</gender>
     <ethnicity>Basque</ethnicity>
     <language>EN</language>
--- a/syntheticPatients/Indivo2Trig.xsl	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/Indivo2Trig.xsl	Sun Oct 03 13:13:52 2010 -0400
@@ -66,7 +66,7 @@
 </xsl:template>
 
 <xsl:template mode="contact" match="in:email">
-  foaf:mbox &lt;<xsl:value-of select="normalize-space(text())"/>&gt; ;
+  foaf:mbox &lt;mailto:<xsl:value-of select="normalize-space(text())"/>&gt; ;
 </xsl:template>
 
 <xsl:template mode="contact" match="*">
--- a/syntheticPatients/Makefile	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/Makefile	Sun Oct 03 13:13:52 2010 -0400
@@ -1,8 +1,18 @@
-XSLT := saxonb-xslt -ext:on
+XSLT ?= saxonb-xslt -ext:on
+SPARQL ?= ~/checkouts/swobjects/bin/SPARQL
 
 all : \
- AD_PCHR_1.html AD_PCHR_2.html \
- AD_PCHR_1.rdf AD_PCHR_2.rdf \
+ AD_PCHR_1-indivo.xml AD_PCHR_1-tmo.trig \
+ AD_PCHR_2-indivo.xml AD_PCHR_2-tmo.trig \
+ AD_PCHR_3-indivo.xml AD_PCHR_3-tmo.trig \
+ AD_PCHR_4-indivo.xml AD_PCHR_4-tmo.trig \
+ AD_PCHR_5-indivo.xml AD_PCHR_5-tmo.trig \
+ AD_PCHR_6-indivo.xml AD_PCHR_6-tmo.trig \
+ AD_PCHR_7-indivo.xml AD_PCHR_7-tmo.trig
+
+old : \
+ AD_PCHR_1.html AD_PCHR_1.rdf \
+ AD_PCHR_2.html AD_PCHR_2.rdf \
  AD_PCHR_3.html AD_PCHR_3.rdf \
  AD_PCHR_4.html AD_PCHR_4.rdf \
  AD_PCHR_5.html AD_PCHR_5.rdf \
@@ -12,7 +22,10 @@
 %.rdf : %.xml Pat2rdf.xsl
 	$(XSLT) $^ > $@
 
-%-indivo.xml : %.xml Pat2Indivo.xsl
+%-indivo.xml : %.xml Pat2Indivo2.xsl
+	$(XSLT) $^ > $@
+
+%-tmo.trig : %-indivo.xml Indivo2Trig.xsl
 	$(XSLT) $^ > $@
 
 %.html: %.rdf Patrdf2html.xsl
@@ -21,10 +34,17 @@
 xerces2val.class: xerces2val.java
 	javac $^
 
-test: AD_PCHR_1-indivo.xml document.xsd 
+validate: AD_PCHR_1-indivo.xml indivo-schemas/envelope.xsd 
 	# java xerces2val document.xsd $<
-	xmllint --noout --schema document.xsd $<
+	xmllint --noout --schema indivo-schemas/envelope.xsd $<
 
-note:
-	xmllint --noout --schema note.xsd note.xml
+TMOLIST  :=  t_1 t_2 t_3 t_4 t_5 t_6 t_7
+#$(error TMOLIST: $(TMOLIST))
 
+.PHONY: --compare
+
+t_%: AD_PCHR_%-tmo.trig --compare tests/email_%.srt
+	$(SPARQL) -qd $^ -e 'PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?mbox { ?s foaf:mbox ?mbox }' || echo $<\(0\): error !mbox
+
+test: all $(TMOLIST)
+
--- a/syntheticPatients/Pat2Indivo2.xsl	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/Pat2Indivo2.xsl	Sun Oct 03 13:13:52 2010 -0400
@@ -5,11 +5,11 @@
 		xmlns="http://indivo.org/vocab/xml/documents#">
 
 <xsl:output method="xml" indent='yes' encoding='utf-8'
-omit-xml-declaration="yes"	    
+omit-xml-declaration="no"	    
 media-type="application/indivo+xml" version="1.0"/>
 
 <xsl:template match="/root">
-  <xsl:comment> -*- XML -*- </xsl:comment><xsl:processing-instruction name="xml-stylesheet"><xsl:text>type="text/xsl" href="Patrdf2html.xsl"</xsl:text></xsl:processing-instruction>
+  <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="Contact"/>
@@ -82,6 +82,7 @@
 	</medication>
 	<prescribedBy>
 	  <name><xsl:value-of select="prescribedBy"/></name>
+	  <institution><xsl:value-of select="/root/Practice/practiceName"/></institution>
 	</prescribedBy>
 	<dispenseAsWritten>true</dispenseAsWritten>
 	<refillInfo><xsl:value-of select="refill"/></refillInfo>
--- a/syntheticPatients/indivo-schemas/allergy.xsd	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/indivo-schemas/allergy.xsd	Sun Oct 03 13:13:52 2010 -0400
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
+<?xml version="1.0" encoding="ISO-8859-1" ?><!-- -*- mode: nxml; tab-width: 4; -*- -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://indivo.org/vocab/xml/documents#" xmlns:indivo="http://indivo.org/vocab/xml/documents#"
 elementFormDefault="qualified">
 
--- a/syntheticPatients/indivo-schemas/contact.xsd	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/indivo-schemas/contact.xsd	Sun Oct 03 13:13:52 2010 -0400
@@ -18,7 +18,7 @@
   				</xs:sequence>
   			</xs:complexType>
   		</xs:element>
-  		<xs:element name="email" minOccurs="1"
+  		<xs:element name="email" minOccurs="0"
   			maxOccurs="unbounded">
   			<xs:complexType>
   				<xs:simpleContent>
@@ -53,7 +53,7 @@
   				<xs:attribute name="type" type="xs:string" />
   			</xs:complexType>
   		</xs:element>
-  		<xs:element name="location" maxOccurs="unbounded">
+  		<xs:element name="location" minOccurs="0" maxOccurs="unbounded">
   			<xs:complexType>
   				<xs:sequence>
   					<xs:element name="latitude" type="xs:string" />
--- a/syntheticPatients/indivo-schemas/envelope.xsd	Sat Oct 02 16:16:16 2010 -0400
+++ b/syntheticPatients/indivo-schemas/envelope.xsd	Sun Oct 03 13:13:52 2010 -0400
@@ -1,175 +1,183 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
-	targetNamespace="http://indivo.org/vocab/xml/documents#"
-	xmlns:indivo="http://indivo.org/vocab/xml/documents#"
-	elementFormDefault="qualified">
-
-	<xs:include schemaLocation="contact.xsd"/>
-	<xs:include schemaLocation="demographics.xsd"/>
-	<xs:include schemaLocation="medication.xsd"/>
-	<xs:include schemaLocation="problem.xsd"/>
-	<xs:include schemaLocation="procedure.xsd"/>
-	<xs:include schemaLocation="allergy.xsd"/>
-	<xs:include schemaLocation="immunization.xsd"/>
-	<xs:include schemaLocation="vitals.xsd"/>
-	<xs:include schemaLocation="lab.xsd"/>
-	
-	<xs:element name="Envelope" type="indivo:EnvelopeType"/>
-	
-	<xs:complexType name="EnvelopeType">
-		<xs:sequence>
-			<xs:element name="CurrentStatus" type="indivo:CurrentStatusType"/>
-			<xs:element name="Encounters" type="indivo:EncountersType"/>
-		</xs:sequence>
-	</xs:complexType>
-	
-	<xs:complexType name="CurrentStatusType">
-		<xs:sequence>
-			<xs:element name="Contact" type="indivo:ContactType"/>
-			<xs:element name="PrimaryCarePhysician" type="indivo:ContactType" minOccurs="0"/>
-			<xs:element name="Demographics" type="indivo:DemographicsType" minOccurs="0"/>
-			<xs:element name="Prescriptions" type="indivo:PrescriptionsType" minOccurs="0"/>
-			<xs:element name="Conditions" type="indivo:ConditionsType"/>
-			<xs:element name="Procedures" type="indivo:ProceduresType"/>
-			<xs:element name="Allergies" type="indivo:AllergiesType"/>
-			<xs:element name="Immunizations" type="indivo:ImmunizationsType"/>
-			<xs:element name="Lifestyle" type="indivo:LifestyleType"/>
-			<xs:element name="FamilyHistory" type="indivo:FamilyHistoryType"/>
-		</xs:sequence>
-	</xs:complexType>	
-	
-	<xs:complexType name="EncountersType">
-		<xs:sequence>
-			<xs:element name="Encounter" type="indivo:EncounterType" maxOccurs="unbounded"/>
-		</xs:sequence>
-	</xs:complexType>
-
-	<xs:complexType name="EncounterType">
-		<xs:sequence>
-			<xs:element name="Date" type="xs:dateTime"/>
-			<xs:element name="Physician" type="indivo:ContactRefType" minOccurs="0"/>
-			<xs:element name="Referral" type="xs:boolean"/>
-			<xs:element name="MedicalBaseline" type="xs:boolean"/>
-			<xs:element name="MedicalTest" type="xs:string"/>
-			<xs:element name="ReportedSymptoms" type="xs:boolean"/>
-			<xs:element name="WorkingDiagnosis" type="xs:boolean"/>
-			<xs:element name="PhysicianObservations" type="indivo:PhysicianObservationsType" minOccurs="0"/>
-			<xs:element name="LabTests" type="indivo:LabTestsType" minOccurs="0"/>
-		</xs:sequence>
-	</xs:complexType>
-
-	<xs:complexType name="PrescriptionsType">
-		<xs:sequence>
-			<xs:element name="Prescription" type="indivo:Prescription" minOccurs="0" maxOccurs="unbounded"/>
-		</xs:sequence>
-	</xs:complexType>
+	   targetNamespace="http://indivo.org/vocab/xml/documents#"
+	   xmlns:indivo="http://indivo.org/vocab/xml/documents#"
+	   elementFormDefault="qualified">
 
-	<xs:complexType name="ConditionsType"> <!-- They decided to call a condition a "problem", why not call this element "Problems" -->
-		<xs:sequence>
-			<xs:element name="Problem" type="indivo:ProblemType" minOccurs="0" maxOccurs="unbounded"/>
-		</xs:sequence>
-	</xs:complexType>
-	
-	<xs:complexType name="ProceduresType">
-		<xs:sequence>
-			<xs:element name="Procedure" type="indivo:ProcedureType" minOccurs="0" maxOccurs="unbounded"/>
-		</xs:sequence>
-	</xs:complexType>
-	
-	<xs:complexType name="AllergiesType">
-		<xs:sequence>
-			<xs:element name="Allergy" type="indivo:AllergyType" minOccurs="0" maxOccurs="unbounded"/>
-		</xs:sequence>
-	</xs:complexType>
-	
-	<xs:complexType name="ImmunizationsType">
-		<xs:sequence>
-			<xs:element name="Immunization" type="indivo:ImmunizationType" minOccurs="0" maxOccurs="unbounded"/>
-		</xs:sequence>
-	</xs:complexType>
-
-	<xs:complexType name="PhysicianObservationsType">
-		<xs:sequence>
-			<xs:element name="VitalSign" type="indivo:VitalSignType" minOccurs="0" maxOccurs="unbounded"/>
-		</xs:sequence>
-	</xs:complexType>
-
-	<xs:complexType name="LabTestsType">
-		<xs:sequence>
-			<xs:element name="LabTest" type="indivo:LabTest" minOccurs="0" maxOccurs="unbounded"/>
-		</xs:sequence>
-	</xs:complexType>
-
-	<xs:complexType name="LifestyleType">
-		<xs:sequence>
-			<xs:element name="AlcoholConsumption" type="indivo:AlcoholConsumptionType"/>
-			<xs:element name="Exercise" type="indivo:ExerciseType"/>
-			<xs:element name="Smoking" type="indivo:SmokingType"/>
-			<xs:element name="Diet" type="indivo:DietType"/>
-		</xs:sequence>
-	</xs:complexType>
-
-	<xs:complexType name="AlcoholConsumptionType">
-		<xs:sequence>
-			<xs:element name="Frequency" type="xs:int"/>
-			<xs:element name="Units" type="xs:string"/>
-			<xs:element name="Quantity" type="xs:int"/>
-			<xs:element name="Date" type="xs:dateTime"/>
-		</xs:sequence>
-	</xs:complexType>
+  <xs:include schemaLocation="contact.xsd"/>
+  <xs:include schemaLocation="demographics.xsd"/>
+  <xs:include schemaLocation="medication.xsd"/>
+  <xs:include schemaLocation="problem.xsd"/>
+  <xs:include schemaLocation="procedure.xsd"/>
+  <xs:include schemaLocation="allergy.xsd"/>
+  <xs:include schemaLocation="immunization.xsd"/>
+  <xs:include schemaLocation="vitals.xsd"/>
+  <xs:include schemaLocation="lab.xsd"/>
+  
+  <xs:element name="Envelope" type="indivo:EnvelopeType"/>
+  
+  <xs:complexType name="EnvelopeType">
+    <xs:sequence>
+      <xs:element name="CurrentStatus" type="indivo:CurrentStatusType"/>
+      <xs:element name="Encounters" type="indivo:EncountersType"/>
+    </xs:sequence>
+  </xs:complexType>
+  
+  <xs:complexType name="CurrentStatusType">
+    <xs:sequence>
+      <xs:element name="Contact" type="indivo:ContactType"/>
+      <xs:element name="PrimaryCarePhysician" type="indivo:ContactType" minOccurs="0"/>
+      <xs:element name="Demographics" type="indivo:DemographicsType" minOccurs="0"/>
+      <xs:element name="Prescriptions" type="indivo:PrescriptionsType" minOccurs="0"/>
+      <xs:element name="Conditions" type="indivo:ConditionsType"/>
+      <xs:element name="Procedures" type="indivo:ProceduresType"/>
+      <xs:element name="Allergies" type="indivo:AllergiesType"/>
+      <xs:element name="Immunizations" type="indivo:ImmunizationsType"/>
+      <xs:element name="Lifestyle" type="indivo:LifestyleType"/>
+      <xs:element name="FamilyHistory" type="indivo:FamilyHistoryType"/>
+    </xs:sequence>
+  </xs:complexType>	
+  
+  <xs:complexType name="EncountersType">
+    <xs:sequence>
+      <xs:element name="Encounter" type="indivo:EncounterType" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
 
-	<xs:complexType name="ExerciseType">
-		<xs:sequence maxOccurs="1" minOccurs="1">
-			<xs:element name="Frequency" type="xs:int"/>
-			<xs:element name="Units" type="xs:string"/>
-			<xs:element name="Duration" type="xs:int"/>
-			<xs:element name="Date" type="xs:dateTime"/>
-		</xs:sequence>
-	</xs:complexType>
-
-	<xs:complexType name="SmokingType">
-		<xs:sequence>
-			<xs:element name="PackYears" type="xs:int"/>
-			<xs:element name="History" type="xs:string"/>
-			<xs:element name="Date" type="xs:dateTime"/>
-		</xs:sequence>
-	</xs:complexType>
+  <xs:complexType name="EncounterType">
+    <xs:sequence>
+      <xs:element name="Date" type="xs:dateTime"/>
+      <xs:element name="Physician" type="indivo:ContactRefType" minOccurs="0"/>
+      <xs:element name="Referral" type="xs:boolean"/>
+      <xs:element name="MedicalBaseline" type="xs:boolean"/>
+      <xs:element name="MedicalTest" type="xs:string"/>
+      <xs:element name="ReportedSymptoms" type="xs:string" minOccurs="0"/>
+      <xs:element name="WorkingDiagnosis" type="indivo:WorkingDiagnosisType" minOccurs="0"/>
+      <xs:element name="PhysicianObservations" type="indivo:PhysicianObservationsType" minOccurs="0"/>
+      <xs:element name="LabTests" type="indivo:LabTestsType" minOccurs="0"/>
+    </xs:sequence>
+  </xs:complexType>
 
-	<xs:complexType name="DietType">
-		<xs:sequence>
-			<xs:element name="FruitVegetable" type="xs:int"/>
-			<xs:element name="WholeGrains" type="xs:int"/>
-			<xs:element name="Dairy" type="xs:int"/>
-			<xs:element name="Protein" type="xs:int"/>
-			<xs:element name="Fats" type="xs:int"/>
-			<xs:element name="JunkFood" type="xs:int"/>
-			<xs:element name="Date" type="xs:dateTime"/>
-		</xs:sequence>
-	</xs:complexType>
+  <xs:complexType name="PrescriptionsType">
+    <xs:sequence>
+      <xs:element name="Prescription" type="indivo:Prescription" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
 
-	<xs:complexType name="FamilyHistoryType">
-		<xs:sequence maxOccurs="unbounded" minOccurs="0">
-			<xs:element name="Subject" type="indivo:SubjectType"/>
-		</xs:sequence>
-	</xs:complexType>
-	
-	<xs:complexType name="SubjectType">
-		<xs:sequence>
-			<xs:element name="Relation" type="xs:string"/>
-			<xs:element name="Name" type="xs:string"/>
-			<xs:element name="Sex" type="xs:string"/>
-			<xs:element name="Alive" type="xs:boolean"/>
-			<xs:element name="AgeAtDeath" type="xs:int"/>
-			<xs:element name="Cancer" type="xs:string"/>
-			<xs:element name="CauseOfDeath" type="xs:string"/>
-		</xs:sequence>
-		<xs:attribute name="id" type="xs:ID"/>
-	</xs:complexType>
+  <xs:complexType name="ConditionsType"> <!-- They decided to call a condition a "problem", why not call this element "Problems" -->
+    <xs:sequence>
+      <xs:element name="Problem" type="indivo:ProblemType" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
+  
+  <xs:complexType name="ProceduresType">
+    <xs:sequence>
+      <xs:element name="Procedure" type="indivo:ProcedureType" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
+  
+  <xs:complexType name="AllergiesType">
+    <xs:sequence>
+      <xs:element name="Allergy" type="indivo:AllergyType" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
+  
+  <xs:complexType name="ImmunizationsType">
+    <xs:sequence>
+      <xs:element name="Immunization" type="indivo:ImmunizationType" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
 
-	<xs:complexType name="ContactRefType">
-		<xs:choice>
-			<xs:element name="Contact" type="indivo:ContactType"/>
-			<xs:element name="ContactRef" type="xs:anyURI"/>
-		</xs:choice>
-	</xs:complexType>
+  <xs:complexType name="WorkingDiagnosisType">
+    <xs:sequence> <!-- @@@ doesn't capture diagdesc | icd9desc -->
+      <xs:element name="DiagnosisDescription" type="xs:string" minOccurs="0"/>
+      <xs:element name="ICD9" type="xs:string" minOccurs="0"/>
+      <xs:element name="ICD9Description" type="xs:string" minOccurs="0"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="PhysicianObservationsType">
+    <xs:sequence>
+      <xs:element name="VitalSign" type="indivo:VitalSignType" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="LabTestsType">
+    <xs:sequence>
+      <xs:element name="LabTest" type="indivo:LabTest" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="LifestyleType">
+    <xs:sequence>
+      <xs:element name="AlcoholConsumption" type="indivo:AlcoholConsumptionType"/>
+      <xs:element name="Exercise" type="indivo:ExerciseType"/>
+      <xs:element name="Smoking" type="indivo:SmokingType"/>
+      <xs:element name="Diet" type="indivo:DietType"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="AlcoholConsumptionType">
+    <xs:sequence>
+      <xs:element name="Frequency" type="xs:int"/>
+      <xs:element name="Units" type="xs:string"/>
+      <xs:element name="Quantity" type="xs:int"/>
+      <xs:element name="Date" type="xs:dateTime"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="ExerciseType">
+    <xs:sequence maxOccurs="1" minOccurs="1">
+      <xs:element name="Frequency" type="xs:int"/>
+      <xs:element name="Units" type="xs:string"/>
+      <xs:element name="Duration" type="xs:int"/>
+      <xs:element name="Date" type="xs:dateTime"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="SmokingType">
+    <xs:sequence>
+      <xs:element name="PackYears" type="xs:int"/>
+      <xs:element name="History" type="xs:string"/>
+      <xs:element name="Date" type="xs:dateTime"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="DietType">
+    <xs:sequence>
+      <xs:element name="FruitVegetable" type="xs:int"/>
+      <xs:element name="WholeGrains" type="xs:int"/>
+      <xs:element name="Dairy" type="xs:int"/>
+      <xs:element name="Protein" type="xs:int"/>
+      <xs:element name="Fats" type="xs:int"/>
+      <xs:element name="JunkFood" type="xs:int"/>
+      <xs:element name="Date" type="xs:dateTime"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="FamilyHistoryType">
+    <xs:sequence maxOccurs="unbounded" minOccurs="0">
+      <xs:element name="Subject" type="indivo:SubjectType"/>
+    </xs:sequence>
+  </xs:complexType>
+  
+  <xs:complexType name="SubjectType">
+    <xs:sequence>
+      <xs:element name="Relation" type="xs:string"/>
+      <xs:element name="Name" type="xs:string"/>
+      <xs:element name="Sex" type="xs:string"/>
+      <xs:element name="Alive" type="xs:boolean"/>
+      <xs:element name="AgeAtDeath" type="xs:int"/>
+      <xs:element name="Cancer" type="xs:string"/>
+      <xs:element name="CauseOfDeath" type="xs:string"/>
+    </xs:sequence>
+    <xs:attribute name="id" type="xs:ID"/>
+  </xs:complexType>
+
+  <xs:complexType name="ContactRefType">
+    <xs:choice>
+      <xs:element name="Contact" type="indivo:ContactType"/>
+      <xs:element name="ContactRef" type="xs:anyURI"/>
+    </xs:choice>
+  </xs:complexType>
 </xs:schema>