Greetings to all,
I work as a QlikView BI consultant and am looking to extract lab results from the CCD into a format that can be easily imported into QlikView and analyzed and graphed.
Unfortunately, the test result section of the CCD is non-optimal for easy extraction (see real example from HealthVault below).
I'm looking for a converter that would extract the test results into a more easily consumable form, e.g. CSV or at least some better structured XML. I did find one utility, but it is written in Excel / VB and doesn't work all that well. I eventually want the XML below to look like:
Name, Result, Unit, Range, Flag, Substance, Date
Thyroid-stimulating hormone (TSH), 1.19, uiU/ml (micro international units per milliliter), , , , 2012-10-30
...
If a converter does not exist, I can write one, in Python or Java. I need this converter to be scriptable, capable of cranking through thousands of CCDs and assembling the output into a format that could be inserted into a traditional RDBMS or into a high performance BI / analytics tool.
Any thoughts or suggestions?
Thanks and regards,
Kevin Pinto
<code code="30954-2" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Relevant diagnostics test and/or laboratory data" />
<content
styleCode="Bold">Thyroid-stimulating hormone (TSH)</content>
</td>
</tr>
</tbody>
</table>
<td>Thyroid-stimulating hormone (TSH)</td>
<td>1.19 uiU/ml (micro international units per milliliter)</td>
</tr>
</tbody>
</table>