A problem models either a condition (e.g. asthma), or an event (e.g. a heart attack). We initially considered modeling them separately. However, they are effectively identical in their data fields, and they can be differentiated by their code and duration. Thus, like Indivo 3, we use the same model.
See the schema for Indivo Coded Values.
Schema:
<?xml version="1.0" encoding="ISO-8859-1" ?> <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"> <include schemaLocation="codes.xsd" /> <element name="Problem"> <complexType> <sequence> <element name="dateOnset" type="dateTime" minOccurs="0" maxOccurs="1" /> <element name="dateResolution" type="dateTime" minOccurs="0" maxOccurs="1" /> <element name="name" type="indivo:CodedValue" minOccurs="1" maxOccurs="1" /> <element name="comments" type="string" minOccurs="0" maxOccurs="1" /> <element name="diagnosedBy" type="string" minOccurs="0" maxOccurs="1" /> </sequence> </complexType> </element> </schema>
Example:
<Problem xmlns="http://indivo.org/vocab/xml/documents#">
<dateOnset>2009-05-16T12:00:00</dateOnset>
<dateResolution>2009-05-16T16:00:00</dateResolution>
<name type="http://codes.indivo.org/problems/" value="123" abbrev="MI">Myocardial Infarction</name>
<comments>mild heart attack</comments>
<diagnosedBy>Dr. Mandl</diagnosedBy>
</Problem>