Firm Pencil Down Week

Hi all,

I still can’t believe that Gsoc 2014 comes to an end ,time flies so fast!!

It had been a great summer for me,I have learned many things from GSoC. I’m thankful to the OpenMRS Community for giving me this opportunity.

Accomplished following tasks this week

  1. Made final video presentation
  2. Written Junit Tests
  3. Cleaned code,Removed unnecessary log messages
  4. Completed Documentation

OpenMRS CDA Generator Documentation : https://wiki.openmrs.org/display/projects/CDA+Generator+Module+Documentation

Source Code : https://github.com/openmrs/openmrs-module-cdagenerator

I would be working on project to enhance and improve it .I will be contributing to OpenMRS Community and will also encourage my college juniors and friends to participate in OpenMRS.

I’m grateful to my mentor Suranga Nath Kasturirathne for  help and support all this summer 🙂

Thanks everyone 🙂

Advertisements

Soft Pencil Down!

Time flies very fast, one more week and GSoC ends!!

Accomplished following tasks this week

  • Refined and added new concepts to Family History Section
  • Resolved few minor bugs
  • written method Display Concept Id in String format(1112)  rather in Integer form(1,112)
  • modified error page to include error messages and added few messages in message.properties file
  • Added few Junit Tests
  • Worked on final presentation

I almost completed making final video presentation and will be uploading it very soon!

 

Demo of OpenMRS CDA Generator Module is here

committed code at github

Next task are

  • update wiki pages
  • release omod
  • few more junit test

 

Thanks!!! 🙂

 

 

 

Populated History of Past Illness Section and Handled Null Observations

Hi,

Accomplished following tasks this week

  1. worked on generating answers for history of past Illness section
  2. Code to handle null observations in all sections
  3. refined pregnancy history section
  4. Export CDA form validation
  5. resolved few minor bugs

Here is History of Past Illness Section


History of Past Illness Section

<component>
<section>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.3.8″/>
<code code=”11348-0″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PAST ILLNESS”/>
<title>The History of Past Illness section shall contain a narrative description of the conditions the patient suffered in the past. It shall include entries for problems as described in the Entry Content Modules</title>
<text>Text as described above</text>
<entry>
<act classCode=”ACT” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.27″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5.1″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5.2″/>
<id root=”ea645215-f9cf-4277-8edc-3cb18b2b77be”/>
<code nullFlavor=”NA”/>
<statusCode code=”active”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
</effectiveTime>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”45e5b079-5f94-4d1e-8707-ebc207200fd3″/>
<code code=”282291009″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>No Observations found for concept Name:DIAGNOSIS LISTand Concept id:1284</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”396782006″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Past Medical History Unknown”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”bed52452-1e81-437c-89d3-0d43b4c1fd68″/>
<code code=”418799008″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>FEVER</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1728″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”SIGN/SYMPTOM NAME”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”c2ca1586-8777-49b0-a8e8-d90195e347f2″/>
<code code=”418799008″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>NO</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1729″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”SIGN/SYMPTOM PRESENT”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”cec5f6b6-4c3f-48be-9430-1ebfb9af5992″/>
<code code=”418799008″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>2014-07-01 00:00:00</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1730″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”SIGN/SYMPTOM START DATE”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”00868357-db7e-4aae-a761-27377cadfa1f”/>
<code code=”418799008″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>4</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1731″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”SIGN/SYMPTOM DURATION”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”7a86a48c-0519-4039-b9e8-2af65a15ae2f”/>
<code code=”418799008″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>HOURS</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1732″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”DURATION UNITS”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”c6a61280-63dd-47dd-9314-760ffba9fb7c”/>
<code code=”418799008″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>SUDDENLY</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1838″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”SIGN/SYMPTOMS ONSET (QUALITATIVE)”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”5054ea0e-0c55-49e6-bc57-a89b137e992f”/>
<code code=”409586006″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>false</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1154″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”NEW COMPLAINTS”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”a5bd446c-7d34-41bf-8d12-2da0212bd2a0″/>
<code code=”282291009″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>MALARIA</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1628″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”PAST MEDICAL HISTORY ADDED”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”c2ca1586-8777-49b0-a8e8-d90195e347f2″/>
<code code=”282291009″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>NO</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”1729″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”SIGN/SYMPTOM PRESENT”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”81b2c185-1e09-46cc-bd5b-31ef929b25f7″/>
<code code=”282291009″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>2014-01-01 00:00:00</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”159948″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Diagnosis date”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”65513f86-c651-4b22-a556-2fb2147b873e”/>
<code code=”282291009″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>

Patient suffered from following disease in past

1)Fever

2)Malaria

3)Memory loss

</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”160221″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Past medical history added (text)”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”a516d739-0bac-4918-a47f-8058bde47838″/>
<code code=”404684003″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>PAST MEDICAL HISTORY</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”162537″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Findings”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”73449f08-9316-4646-907b-28a89aa66ccb”/>
<code code=”248536006″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>MEMORY PROBLEMS</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”162536″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Functional limitation”/>
</observation>
</entryRelationship>
<entryRelationship typeCode=”SUBJ” inversionInd=”false”>
<observation classCode=”OBS” moodCode=”EVN” negationInd=”false”>
<templateId root=”2.16.840.1.113883.10.20.1.28″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.5″/>
<id root=”4e55eae5-8fed-4fac-a636-c5fb0e05db1c”/>
<code code=”64572001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<text>Illness</text>
<statusCode code=”completed”/>
<effectiveTime>
<low nullFlavor=”UNK”/>
<high nullFlavor=”UNK”/>
</effectiveTime>
<value xsi:type=”CD” code=”162535″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Condition”/>
</observation>
</entryRelationship>
</act>
</entry>
</section>
</component>


 

  • you can see how our cda message with all null observations looks like here
  • refined pregnancy history section’s “value” attribute to handle any datatype (INT,PQ,ED,ST,TS,CE,IVL_TS).
  • added few more helper methods in CDAHelper class to refine answers.

Export CDA Form Validation Screen Shots

err1 err2

Updated this wiki page and committed code at github

Thanks 🙂

 

Populated Vital signs Section,History of Infection Section and refined few other sections

Hi,

This week I’ve worked on generating answers for Vital sign section and History of Infection section.

Here is Vital signs section


Vital Signs Section

<component>
<section>
<templateId root=”2.16.840.1.113883.10.20.1.16″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.3.25″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.1.5.3.2″/>
<code code=”8716-3″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Coded Vital Signs”/>
<title>The vital signs section contains coded measurement results of a patient’s vital signs.</title>
<text>
<table>
<thead>
<tr>
<th>Vital Signs Element</th>
<th>Description</th>
<th>Effective Dates</th>
</tr>
</thead>
<tbody>
<tr>
<td ID = “_49” >HEAD CIRCUMFERENCE</td>
<td>21.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_45” >DIASTOLIC BLOOD PRESSURE</td>
<td>85.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_48” >Weight (kg)</td>
<td>63.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_43” >Pulse</td>
<td>15.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_41” >Respiratory rate</td>
<td>15.0</td>
<td>07-21-2014</td>
</tr>
<tr>
<td ID = “_47” >Height (cm)</td>
<td>168.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_46” >Temperature (C)</td>
<td>28.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_42” >Blood oxygen saturation</td>
<td>58.0</td>
<td>07-21-2014</td>
</tr>
<tr>
<td ID = “_44″ >SYSTOLIC BLOOD PRESSURE</td>
<td>115.0</td>
<td>07-14-2014</td>
</tr>
</tbody>
</table>
</text>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”f062cf5c-1ba7-4f65-8747-a8b4cd1b925a”/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”f062cf5c-1ba7-4f65-8747-a8b4cd1b925a”/>
<code xsi:type=”CE” code=”8287-5″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HEAD CIRCUMFERENCE”/>
<text><reference value=”#_49″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<value xsi:type=”PQ” value=”21.0″ unit=”cm”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”cf940238-e7a8-47e1-86a3-ba5b00796116″/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”cf940238-e7a8-47e1-86a3-ba5b00796116″/>
<code xsi:type=”CE” code=”8462-4″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”DIASTOLIC BLOOD PRESSURE”/>
<text><reference value=”#_45″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<value xsi:type=”PQ” value=”85.0″ unit=”mmHg”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”a31fbb46-12ec-4fc7-a818-3b6724b64f36″/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”a31fbb46-12ec-4fc7-a818-3b6724b64f36″/>
<code xsi:type=”CE” code=”3141-9″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Weight (kg)”/>
<text><reference value=”#_48″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<value xsi:type=”PQ” value=”63.0″ unit=”kg”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”ee50ec3c-8e47-460d-b5ee-7ce76fa339d7″/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”ee50ec3c-8e47-460d-b5ee-7ce76fa339d7″/>
<code xsi:type=”CE” code=”8867-4″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Pulse”/>
<text><reference value=”#_43″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<value xsi:type=”PQ” value=”15.0″ unit=”rate/min”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”032b6ebc-502b-492c-9613-ba8034109dff”/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”032b6ebc-502b-492c-9613-ba8034109dff”/>
<code xsi:type=”CE” code=”9279-1″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Respiratory rate”/>
<text><reference value=”#_41″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<value xsi:type=”PQ” value=”15.0″ unit=”rate/min”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”dcde187b-6b11-4bf4-bfc9-6b4c769e0682″/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”dcde187b-6b11-4bf4-bfc9-6b4c769e0682″/>
<code xsi:type=”CE” code=”8302-2″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Height (cm)”/>
<text><reference value=”#_47″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<value xsi:type=”PQ” value=”168.0″ unit=”cm”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”a2b7c059-a41b-4517-a569-581992480299″/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”a2b7c059-a41b-4517-a569-581992480299″/>
<code xsi:type=”CE” code=”8310-5″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Temperature (C)”/>
<text><reference value=”#_46″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<value xsi:type=”PQ” value=”28.0″ unit=”DEGC”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”01170488-3714-449d-989d-e2502ff5e991″/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”01170488-3714-449d-989d-e2502ff5e991″/>
<code xsi:type=”CE” code=”2710-2″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Blood oxygen saturation”/>
<text><reference value=”#_42″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<value xsi:type=”PQ” value=”58.0″ unit=”%”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.32″/>
<templateId root=”2.16.840.1.113883.10.20.1.35″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.1″/>
<id root=”0a752d5a-2c44-422c-9893-c266763daf88″/>
<code code=”46680005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Vital signs”/>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.2″/>
<id root=”0a752d5a-2c44-422c-9893-c266763daf88″/>
<code xsi:type=”CE” code=”8480-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”SYSTOLIC BLOOD PRESSURE”/>
<text><reference value=”#_44″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010636″/>
<value xsi:type=”PQ” value=”115.0″ unit=”mmHg”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC”/>
</observation>
</component>
</organizer>
</entry>
</section>
</component>

 

History of Infection section looks like


 

History of Infection:

<component>
<section>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.1.16.2.1.1″/>
<code code=”XX-HistoryOfInfection” codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF INFECTION”/>
<title>The history of infection section shall contain a narrative description of any infections the patient may have contracted prior to the patient’s current condition</title>
<text>
<table>
<thead>
<tr>
<th>History Of Infection Element</th>
<th>Description</th>
<th>Effective Dates</th>
</tr>
</thead>
<tbody>
<tr>
<td ID = “_52” >History of Genital Herpes</td>
<td>NO</td>
<td>07-22-2014</td>
</tr>
<tr>
<td ID = “_50” >PATIENT LIVES WITH CONFIRMED TB CASE</td>
<td>UNKNOWN</td>
<td>07-21-2014</td>
</tr>
<tr>
<td ID = “_53” >Exposed to Genital Herpes</td>
<td>false</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_54″ >HIV INFECTED</td>
<td>NEGATIVE</td>
<td>07-22-2014</td>
</tr>
</tbody>
</table>
</text>
<entry typeCode=”DRIV”>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.1.16.5.6″/>
<id root=”353d7481-73ca-4f38-847f-41bb8f604ae7″/>
<code code=”402888002″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”History of Genital Herpes”/>
<text><reference value=”#_52″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010634″/>
<value xsi:type=”CD” code=”402888002″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”History of Genital Herpes”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
</observation>
</entry>
<entry typeCode=”DRIV”>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.1.16.5.6″/>
<id root=”8e0f10bd-7720-423c-95b3-05432eea4ac3″/>
<code code=”170464005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”PATIENT LIVES WITH CONFIRMED TB CASE”/>
<text><reference value=”#_50″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<value xsi:type=”CD” code=”170464005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”PATIENT LIVES WITH CONFIRMED TB CASE”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
</observation>
</entry>
<entry typeCode=”DRIV”>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.1.16.5.6″/>
<id root=”bbc61551-4d6c-47fa-a763-d784fb0f1e52″/>
<code code=”240480009″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Exposed to Genital Herpes”/>
<text><reference value=”#_53″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<value xsi:type=”CD” code=”240480009″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Exposed to Genital Herpes”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
</observation>
</entry>
<entry typeCode=”DRIV”>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.1.16.5.6″/>
<id root=”cb521e78-9cb1-4f57-8e9f-c8a9aa6b4459″/>
<code code=”165816005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”HIV INFECTED”/>
<text><reference value=”#_54″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140728010635″/>
<value xsi:type=”CD” code=”165816005″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”HIV INFECTED”/>
<interpretationCode code=”N” codeSystem=”2.16.840.1.113883.5.83″/>
<methodCode codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
<targetSiteCode xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT”/>
</observation>
</entry>
</section>
</component>


I’ve also refined following sections

  • Chief complaint
  • History of present Illness
  • Review of System
  • Social History
  • History of Pregnancy

currently  I’m working on History of past Illness section.Updated wiki page and committed code at github

 

 

 

Populated Family Medical History and Pregnancy History Sections with data

This week I’ve worked on generating answers for family medical history section and Pregnancy history section and I’ll be adding few more concepts to these sections once we decide the best approach to handle concepts whose data type is N/A.

let us see how these sections look like

 


 

Family Medical History Section :

<component>
<section>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.3.14″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.3.15″/>
<templateId root=”2.16.840.1.113883.10.20.1.4″/>
<code code=”10157-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF FAMILY MEMBER DISEASES “/>
<title>The family history section shall include entries for family history as described in the Entry Content Modules</title>
<text>
<table>
<thead>
<tr>
<th>Relation</th>
<th>Age</th>
<th>Diagnosis</th>
</tr>
</thead>
<tbody>
<tr>
<td>PARTNER OR SPOUSE</td>
<td>47.0</td>
<td ID = “_25” >UNKNOWN</td>
</tr>
<tr>
<td>Child</td>
<td>23.0</td>
<td ID = “_28″ >UNKNOWN</td>
</tr>
</tbody>
</table>
</text>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.23″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.15″/>
<statusCode code=”completed”/>
<subject typeCode=”SBJ”>
<relatedSubject classCode=”PRS”>
<code code=”10157-6″ codeSystem=”2.16.840.1.113883.5.111″ codeSystemName=”RoleCode”/>
<addr><country> </country></addr>
<telecom nullFlavor=”UNK”/>
<subject>
<name/>
<administrativeGenderCode code=”A”/>
<birthTime nullFlavor=”UNK”/>
</subject>
</relatedSubject>
</subject>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.3″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”2.16.840.1.113883.10.20.1.22″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10157-6″/>
<text><reference value=”#_25″/></text>
<statusCode code=”completed”/>
<effectiveTime nullFlavor=”UNK” value=”20140720013223″/>
<value xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.26″/>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.1.23″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.15″/>
<statusCode code=”completed”/>
<subject typeCode=”SBJ”>
<relatedSubject classCode=”PRS”>
<code code=”10157-6″ codeSystem=”2.16.840.1.113883.5.111″ codeSystemName=”RoleCode”/>
<addr><country> </country></addr>
<telecom nullFlavor=”UNK”/>
<subject>
<name/>
<administrativeGenderCode code=”A”/>
<birthTime nullFlavor=”UNK”/>
</subject>
</relatedSubject>
</subject>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.3″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”2.16.840.1.113883.10.20.1.22″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10157-6″/>
<text><reference value=”#_28″/></text>
<statusCode code=”completed”/>
<effectiveTime nullFlavor=”UNK” value=”20140720013223″/>
<value xsi:type=”CE” codeSystem=”2.16.840.1.113883.6.26″/>
</observation>
</component>
</organizer>
</entry>
</section>
</component>
Pregnancy History Section:

<component>
<section>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.1.5.3.4″/>
<code code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<title>The pregnancy history section contains coded entries describing the patient history of pregnancies</title>
<text>
<table>
<thead>
<tr>
<th>Pregnancy History Element</th>
<th>Description</th>
<th>Effective Dates</th>
</tr>
</thead>
<tbody>
<tr>
<td ID = “_37” >BIRTH WEIGHT, QUALITATIVE</td>
<td>NORMAL</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_29” >NUMBER OF BIRTHS FROM CURRENT PREGNANCY</td>
<td>1.0</td>
<td>07-17-2014</td>
</tr>
<tr>
<td ID = “_34” >Gravida</td>
<td>1.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_18” >LAST MENSTRUAL PERIOD</td>
<td>2014-07-01 00:00:00.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_40” >number of full term pregnancies</td>
<td>1.0</td>
<td>07-16-2014</td>
</tr>
<tr>
<td ID = “_32” >TOTAL NUMBER OF LIVING CHILDREN</td>
<td>1.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_30” >Number of preterm births</td>
<td>1.0</td>
<td>07-16-2014</td>
</tr>
<tr>
<td ID = “_33” >Number of abortions/miscarriages</td>
<td>0.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_38” >Menstrual status</td>
<td>CURRENTLY PREGNANT</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_1” >PREGNANCY STATUS</td>
<td>YES</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_35” >gestational age at birth (weeks)</td>
<td>30.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_36” >Duration of labor</td>
<td>7.0</td>
<td>07-14-2014</td>
</tr>
<tr>
<td ID = “_39″ >ESTIMATED DATE OF CONFINEMENT</td>
<td>2014-10-02 00:00:00.0</td>
<td>07-14-2014</td>
</tr>
</tbody>
</table>
</text>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_37″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>NORMAL</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_29″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>1.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_34″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>1.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_18″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>2014-07-01 00:00:00.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_40″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>1.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_32″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>1.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_30″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>1.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_33″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>0.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_38″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>CURRENTLY PREGNANT</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_1″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>YES</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_35″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>30.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_36″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>7.0</value>
</observation>
</component>
</organizer>
</entry>
<entry typeCode=”DRIV”>
<organizer classCode=”CLUSTER” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5.1″/>
<id root=”id”/>
<code code=”118185001″ codeSystem=”2.16.840.1.113883.6.96″ codeSystemName=”SNOMED CT” displayName=”Pregnancy Finding”/>
<statusCode code=”completed”/>
<component>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.4.13.5″/>
<id root=”id”/>
<code xsi:type=”CE” code=”10162-6″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PREGNANCIES”/>
<text><reference value=”#_39″/></text>
<statusCode code=”completed”/>
<effectiveTime value=”20140720013224″/>
<value xsi:type=”ST”>2014-10-02 00:00:00.0</value>
</observation>
</component>
</organizer>
</entry>
</section>
</component>

 


currently I’m working on vital signs section.I’ve also updated this wiki page and committed code at github.

thanks 🙂

 

GSoC Week 8

This week I’ve added few data elements like spouse, Natural father of fetus and Ethnicity into our cda message. I’ve also generated answers for review of system section.  Interacted with other open source developers on openhie-shr forum. I am currently working on adding Menstrual History organizer to review of systems section.


Review of system section

<component>
<section>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.3.18″/>
<code code=”10187-3″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”REVIEW OF SYSTEMS”/>
<title>The review of systems section shall contain a narrative description of the responses the patient gave to a set of routine questions on the functions of each anatomic body system.</title>
<text>
<table>
<thead>
<tr>
<th>Review of System Element</th>
<th>Description</th>
<th>Effective Dates</th>
</tr>
</thead>
<tbody>
<tr>
<td ID = “_477003” >Review of systems, HEENT</td>
<td>VISION DIFFICULTIES</td>
<td>07-08-2014</td>
</tr>
<tr>
<td ID = “_477004” >Review of systems, general</td>
<td>FEVER</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477005” >Review of systems, Obstetrical/Pregnancy</td>
<td>WEIGHT GAIN</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477006” >Review of systems, gastrointestinal</td>
<td>NEGATIVE</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477007” >Review of systems, genitourinary</td>
<td>NEGATIVE</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477008” >Review of systems, musculoskeletal</td>
<td>NEGATIVE</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477009” >Review of systems, cardiopulmonary</td>
<td>NEGATIVE</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477010” >Review of systems, developmental</td>
<td>MEMORY PROBLEMS</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477011” >Review of systems, central nervous system</td>
<td>MEMORY PROBLEMS</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477002” >LAST MENSTRUAL PERIOD</td>
<td>2014-07-02 00:00:00.0</td>
<td>07-07-2014</td>
</tr>
<tr>
<td ID = “_477012” >Total Mensus Monthly</td>
<td>2 to 4 times a month</td>
<td>07-08-2014</td>
</tr>
<tr>
<td ID = “_477013” >Duration of menstrual period</td>
<td>2.0</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477014” >CURRENTLY USING BIRTH CONTROL</td>
<td>true</td>
<td>06-27-2014</td>
</tr>
<tr>
<td ID = “_477015” >Age of menarche</td>
<td>2.0</td>
<td>06-27-2014</td>
</tr>
</tbody>
</table>
</text>
</section>
</component>


Tasks Accomplished:

  • Resolved all errors in CDA message.
  • Generated answers review of systems section.
  • Added spouse,natural father of fetus and ethinicity data elements to CDA message.
  • optimized and cleaned code.

committed code at github

updated this wiki page

 

Week 7-Started with generating answers (OpenMRS data) into particular sections

This week I was involved in generating answers for Social History section, History of present Illness section and Chief Complaint section of our APHP CDA message.

let’s see how these sections look now


<component>
<section>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.3.4″/>
<code code=”10164-2″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”HISTORY OF PRESENT ILLNES”/>
<title>This contains a narrative description of the patient’s Present Illness histroy</title>
<text><paragraph>This patient was only recently discharged for a recurrent GI bleed as described below. She presented to the ER today c/o a dark stool yesterday but a normal brown stool today. She was hypotensive in the 80?s resolved after.

Lab at discharge: Glucose 112, BUN 16, creatinine 1.1, electrolytes normal. H. pylori antibody pending. Admission hematocrit 16%, discharge hematocrit 29%. WBC 7300, platelet count 256,000. Urinalysis normal.

Urine culture: No growth. INR 1.1, PTT 40.She was transfused with 6 units of packed red blood cells with GI evaluation 12 September: Colonoscopy showed single red clot.
<paragraph></text>
</section>
</component>

<component>
<section>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.1.13.2.1″/>
<code code=”10154-3″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Chief Complaint”/>
<title>This contains a narrative description of the patient’s chief complaint</title>
<text><paragraph>latest obs</paragraph></text>
</section>
</component>

<component>
<section>
<templateId root=”2.16.840.1.113883.10.20.1.15″/>
<templateId root=”1.3.6.1.4.1.19376.1.5.3.1.3.16″/>
<code code=”29762-2″ codeSystem=”2.16.840.1.113883.6.1″ codeSystemName=”LOINC” displayName=”Social History”/>
<title>The social history section shall contain a narrative description of the person’s beliefs, home life, community life, work life, hobbies, and risky habits</title>
<text>
<table Border=”1″ width=”100%”>
<thead>
<tr>
<th>Social History Element</th>
<th>Description</th>
<th>Effective Dates</th>
</tr>
</thead>
<tbody>
<tr>
<td> <content ID = “476981” >Alcohol use status</content></td>
<td>Never</td>
<td>00/03/2014</td>
</tr>
<tr>
<td> <content ID = “476984” >Smoker</content></td>
<td>NO</td>
<td>00/27/2014</td>
</tr>
<tr>
<td> <content ID = “476988” >Patient-generated history: Social history section text</content></td>
<td>paulo sigei omolo’s social history</td>
<td>00/04/2014</td>
</tr>
</tbody>
</table>
</text>
<entry typeCode=”DRIV”>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.22.4.38″/>
<id root=”1bb01069-296e-41c9-ba33-0a044815bec9″/>
<code code=”159449″ codeSystem=”2.16.840.1.113883.6.96″ displayName=”Alcohol use status”>
<originalText><reference value=”#476981″/></originalText>
</code>
<statusCode code=”completed”/>
<effectiveTime>
<low value=”20140703120000″/>
<high/>
</effectiveTime>
<value xsi:type=”ST”>Never</value>
</observation>
</entry>
<entry typeCode=”DRIV”>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.22.4.38″/>
<id root=”9142ac72-aea2-4303-bad5-5b1a0823cb6c”/>
<code code=”152722″ codeSystem=”2.16.840.1.113883.6.96″ displayName=”Smoker”>
<originalText><reference value=”#476984″/></originalText>
</code>
<statusCode code=”completed”/>
<effectiveTime>
<low value=”20140627120000″/>
<high/>
</effectiveTime>
<value xsi:type=”ST”>NO</value>
</observation>
</entry>
<entry typeCode=”DRIV”>
<observation classCode=”OBS” moodCode=”EVN”>
<templateId root=”2.16.840.1.113883.10.20.22.4.38″/>
<id root=”3d14761d-57b4-427e-af71-94f3f620a4e0″/>
<code code=”162143″ codeSystem=”2.16.840.1.113883.6.96″ displayName=”Patient-generated history: Social history section text”>
<originalText><reference value=”#476988″/></originalText>
</code>
<statusCode code=”completed”/>
<effectiveTime>
<low value=”20140704120000″/>
<high/>
</effectiveTime>
<value xsi:type=”ST”>paulo sigei omolo’s social history</value>
</observation>
</entry>
</section>
</component>


Tasks Accomplished :

  • Generated answers for few sections.
  • worked on representation of those answers .
  • integrated cda document validation code into our module.
  • worked on representation of cda document validation results on Error page.

Challenges faced:

  • “Missing Resource Exception” whiling integrating cda document validation in our module.

after going through many resources and links I figured out that two jars “emf.ecore” and “emf.common” must be added to classpath of “tomcat or any runtime environment you are using”. It Worked! no exception any more :)

during this week I’ve also interacted with other few developers on “eclipse emf forum” to get help on resolving my blocker.

Screenshot of cda document validation error page:

error

committed code  at github