EHR_STATUS

Get versioned EHR_STATUS revision history

Retrieves revision history of the VERSIONED_EHR_STATUS associated with the EHR identified by ehr_id.

get/ehr/{ehr_id}/versioned_ehr_status/revision_history

Path parameters

ehr_idstring uuid required
Example:7d44b88c-4199-4bad-97dc-d78268e01398

EHR identifier taken from EHR.ehr_id.value.

Headers

Accept'application/json' | 'application/xml'
Content-Type'application/json' | 'application/xml'

Response

200 OK is returned when the requested REVISION_HISTORY is successfully retrieved.

Example response

{
  "items": [
    {
      "version_id": {
        "value": "8849182c-82ad-4088-a07f-48ead4180515::openEHRSys.example.com::1"
      },
      "audits": [
        {
          "system_id": "d60e2348-b083-48ce-93b9-916cef1d3a5a",
          "time_committed": {
            "value": "2015-01-20T19:30:22.765+01:00"
          },
          "change_type": {
            "value": "creation",
            "defining_code": {
              "terminology_id": {
                "value": "openehr"
              },
              "code_string": "249"
            }
          },
          "description": {
            "value": "An optional description string"
          },
          "committer": {
            "_type": "PARTY_IDENTIFIED",
            "name": "A user name"
          }
        }
      ]
    }
  ]
}