EHR_STATUS

Get EHR_STATUS version at time

Changed on

Retrieves a VERSION from the VERSIONED_EHR_STATUS associated with the EHR identified by ehr_id.

If version_at_time is supplied, retrieves the VERSION extant at specified time, otherwise retrieves the latest VERSION.

get/ehr/{ehr_id}/versioned_ehr_status/version

Request

  • Base URL
    https://openEHRSys.example.com/v1
  • Auth
    none required

Path parameters

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

EHR identifier taken from EHR.ehr_id.value.

Query parameters

version_at_timestring datetime
Example:2015-01-20T19:30:22.765+01:00

A given time in the extended ISO 8601 format.

Headers

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

Response

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

_typestring
signaturestring

Example response

{
  "contribution": {
    "id": {
      "_type": "OBJECT_VERSION_ID",
      "value": "fb458d9c-1323-42bc-b7f8-787f3660a0b5::openEHRSys.example.com::1"
    },
    "namespace": "local",
    "type": "COMPOSITION"
  },
  "commit_audit": {
    "system_id": "9624982A-9F42-41A5-9318-AE13D5F5031F",
    "committer": {
      "_type": "PARTY_IDENTIFIED",
      "name": "A user name"
    },
    "time_committed": {
      "value": "2017-08-15T10:37:15.422+02:00"
    },
    "change_type": {
      "value": "creation",
      "defining_code": {
        "terminology_id": {
          "value": "openehr"
        },
        "code_string": "249"
      }
    },
    "description": {
      "value": "Description text"
    }
  }
}

Changes

    • info

      added SECTION discriminator mapping keys to the // response property for the response status

    • info

      added SECTION discriminator mapping keys to the /// response property for the response status

    • info

      the //// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the //////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the ////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the //////////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the ////////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the //////////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the ////////////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the //////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the //////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      the ////// response's property pattern was changed from /^[><=?]$/ to ^[><=?]$ for the status

    • info

      added the required property //// to the response with the status

    • info

      added the required property //////// to the response with the status

    • info

      added the required property //////// to the response with the status

    • info

      added the new optional header request parameter Accept

    • info

      added the new optional header request parameter Content-Type