Indivo Reporting SchemaΒΆ
See the schema for Indivo Document Metadata Schema and specific indivo:doc schemas.
Schema:
<?xml version="1.0" encoding="ISO-8859-1" ?> <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:complexType name="Report"> <xs:sequence> <xs:element name="Meta" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:sequence> <xs:element name="Document" minOccurs="1" maxOccurs="1" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Item" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:sequence> <xs:choice minOccurs="1" maxOccurs="1"> <xs:element name="Allergy" /> <xs:element name="Equipment" /> <xs:element name="Immunization" /> <xs:element name="LabReport" /> <xs:element name="Medication" /> <xs:element name="Problem" /> <xs:element name="Procedure" /> <xs:element name="SimpleClinicalNote" /> <xs:element name="VitalSign" /> <xs:element name="AggregateReport" /> </xs:choice> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> <xs:element name="Reports"> <xs:complexType> <xs:sequence> <xs:element name="Summary" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:attribute name="total_document_count" use="optional" type="xs:int" /> <xs:attribute name="limit" use="optional" type="xs:int" /> <xs:attribute name="offset" use="optional" type="xs:int" /> <xs:attribute name="order_by" use="optional" type="xs:string"/> </xs:complexType> </xs:element> <xs:element name="QueryParams" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:sequence> <xs:element name="GroupBy" minOccurs="0" maxOccurs="1"> <xs:complexType> <xs:attribute name="value" use="required" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="DateGroup" minOccurs="0" maxOccurs="1"> <xs:complexType> <xs:attribute name="value" use="required" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="AggregateBy" minOccurs="0" maxOccurs="1"> <xs:complexType> <xs:attribute name="value" use="required" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="DateRange" minOccurs="0" maxOccurs="1"> <xs:complexType> <xs:attribute name="value" use="required" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="Filters" minOccurs="0" maxOccurs="1"> <xs:complexType> <xs:sequence> <xs:element name="Filter" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:attribute name="name" use="required" type="xs:string" /> <xs:attribute name="value" use="required" type="xs:string" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Report" type="indivo:Report" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
Example:
<?xml version="1.0" encoding="utf-8" ?> <Reports xmlns="http://indivo.org/vocab/xml/documents#"> <Summary total_document_count="2" limit="100" offset="0" order_by="date_measured" /> <QueryParams> <DateRange value="date_measured*1995-03-10T00:00:00Z*" /> <Filters> <Filter name="lab_type" value="hematology"/> </Filters> </QueryParams> <Report> <Meta> <Document id="261ca370-927f-41af-b001-7b615c7a468e" type="http://indivo.org/vocab/xml/documents#Lab" size="1653" digest="0799971784e5a2d199cd6585415a8cd57f7bf9e4f8c8f74ef67a1009a1481cd6" record_id=""> <createdAt>2011-05-02T17:48:13Z</createdAt> <creator id="mymail@mail.ma" type="Account"> <fullname>full name</fullname> </creator> <original id="261ca370-927f-41af-b001-7b615c7a468e"/> <label>testing</label> <status>active</status> <nevershare>false</nevershare> </Document> </Meta> <Item> <LabReport xmlns="http://indivo.org/vocab/xml/documents#"> <dateMeasured>1998-07-16T12:00:00Z</dateMeasured> <labType>hematology</labType> <laboratory> <name>Quest</name> <address>300 Longwood Ave, Boston MA 02215</address> </laboratory> <comments>was looking pretty sick</comments> <firstPanelName>CBC</firstPanelName> </LabReport> </Item> </Report> <Report> <Meta> <Document id="1b7270a6-5925-450c-9273-5a74386cef63" type="http://indivo.org/vocab/xml/documents#Lab" size="1653" digest="c1be22813ab83f6b3858878a802f372eef754fcdd285e44a5fdb7387d6ee3667" record_id=""> <createdAt>2011-05-02T17:48:13Z</createdAt> <creator id="mymail@mail.ma" type="Account"> <fullname>full name</fullname> </creator> <original id="1b7270a6-5925-450c-9273-5a74386cef63"/> <label>testing</label> <status>active</status> <nevershare>false</nevershare> </Document> </Meta> <Item> <LabReport xmlns="http://indivo.org/vocab/xml/documents#"> <dateMeasured>2009-07-16T12:00:00Z</dateMeasured> <labType>hematology</labType> <laboratory> <name>Quest</name> <address>300 Longwood Ave, Boston MA 02215</address> </laboratory> <comments>was looking pretty sick</comments> <firstPanelName>CBC</firstPanelName> </LabReport> </Item> </Report> </Reports>