Existing Result sets
...
Attribute names are snake-case (like defined in MagicDraw). We also add attribute @class to every object to define the exact class used for the object. Class names are all upper case and also snake-case.
DIPS Arena EHR ResultSet
Below it the resultset from DIPS Arena EHR Server. The query used is the same as in the Marand example above.
Code Block |
---|
{ "@class": "RESULTSET", "@schemaversion": "0.1.0", "@type": "raw", "@created": "2016-06-17T14:18:00.422+02:00", "@generator": "DIPS.OpenEhr.ResultSets.Serialization.Json.ResultSetJsonWriter (5.0.0.0)", "name": null, "correlationid": "00000000-0000-0000-0000-000000000000", "totalResults": 31, "columns": [ { "name": "Temperature", "path": "/data[at0002]/events[at0003]/data[at0001]/items[at0004]/value" }, { "name": "Blood_Pressure_Systolic", "path": "/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value" }, { "name": "Diastolic", "path": "/data[at0001]/events[at0006]/data[at0003]/items[at0005]/value" } ], "rows": [ [ { "@class": "DV_QUANTITY", "magnitude": 37.0, "units": "Cel" }, { "@class": "DV_QUANTITY", "magnitude": 120.0, "units": "mm[Hg]" }, { "@class": "DV_QUANTITY", "magnitude": 80.0, "units": "mm[Hg]" } ], |
JSON Specifics
Proposed Standard
{
"@class": "RESULTSET",
"@schemaversion": "0.1.0",
"@type": "raw",
"@created": "2016-06-17T14:18:00.422+02:00",
"@generator": "DIPS.OpenEhr.ResultSets.Serialization.Json.ResultSetJsonWriter (5.0.0.0)",
"name": null,
"correlationid": "00000000-0000-0000-0000-000000000000",
"totalResults": 31,
"columns": [
{
"name": "Temperature",
"path": "/data[at0002]/events[at0003]/data[at0001]/items[at0004]/value"
},
{
"name": "Blood_Pressure_Systolic",
"path": "/data[at0001]/events[at0006]/data[at0003]/items[at0004]/value"
},
{
"name": "Diastolic",
"path": "/data[at0001]/events[at0006]/data[at0003]/items[at0005]/value"
}
],
"rows": [
[
{
"@class": "DV_QUANTITY",
"magnitude": 37.0,
"units": "Cel"
},
{
"@class": "DV_QUANTITY",
"magnitude": 120.0,
"units": "mm[Hg]"
},
{
"@class": "DV_QUANTITY",
"magnitude": 80.0,
"units": "mm[Hg]"
}
],