Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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]"
      }
    ],

Archie

Archie can serialize RM Objects to XML using the standard openEHR RM XSD, or it can be used to serialize to JSON. The format we have now is very similar that the one Marand uses: snake_cased attribute names, type names as the same notation as the RM specs. Our EHR is still in the prototype phase, so the format is still subject to change, and no results from AQL queries yet.

The code to configure Jackson (XML serialization library) to serialize to/from this exact format is not yet present in Archie.

Code Block
languagejs
 "data" : {
      "type" : "HISTORY",
      "name" : {
        "type" : "DV_TEXT",
        "value" : "history"
      },
      "archetype_node_id" : "id2",
      "events" : [ {
        "type" : "POINT_EVENT",
        "name" : {
          "type" : "DV_TEXT",
          "value" : "any event"
        },
        "archetype_node_id" : "id7",
        "time" : {
          "type" : "DV_DATE_TIME",
          "magnitude" : 1466427403,
          "value" : "2016-06-20T14:56:43.702+02:00"
        },    
		"data" : {
          "type" : "ITEM_TREE",
          "name" : {
            "type" : "DV_TEXT"
          },
          "archetype_node_id" : "id4",
          "items" : [ {
            "type" : "ELEMENT",
            "name" : {
              "type" : "DV_TEXT",
              "value" : "Systolic"
            },
            "archetype_node_id" : "id5",
            "value" : {
              "type" : "DV_QUANTITY",
              "magnitude" : 120.0,
              "precision" : 0,
              "units" : "mm[Hg]"
            },
            "path" : "/data[id2]/event[id7]/data[id4]/item[id5]"
          }, {
            "type" : "ELEMENT",
            "name" : {
              "type" : "DV_TEXT",
              "value" : "Diastolic"
            },
            "archetype_node_id" : "id6",
            "value" : {
              "type" : "DV_QUANTITY",
              "magnitude" : 80.0,
              "precision" : 0,
              "units" : "mm[Hg]"
            },
            "path" : "/data[id2]/event[id7]/data[id4]/item[id6]"
          },







 

JSON Specifics

 

 

Proposed Standard

...