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:

committed code at github