Get EHR by id

Retrieve the EHR with the specified ehr_id.

Send the optional include-cadasto-person-uid request header to also receive the linked PERSON UID in the cadasto-person-uid response header — see the Cadasto demographic link guide.

Path Parameters
  • ehr_id
    Type: string
    required

    EHR identifier taken from EHR.ehr_id.value.

Headers
  • include-cadasto-person-uid
    Type: string

    Opt-in request header for GET /ehr/{ehr_id}. When present (any value), the response includes a cadasto-person-uid response header carrying the UID of the linked PERSON, if a link exists.

    Cadasto extension: this header is not part of the openEHR ITS-REST specification.

    Without this header the link lookup is skipped and the response header is omitted. The header value itself is ignored — 1, true, or any non-empty string all opt in.

    See the Cadasto demographic link guide.

Responses
  • application/json
  • 404

    404 Not Found is returned when an EHR with ehr_id does not exist.

Request Example for get/ehr/{ehr_id}
curl https://cataniamc.prod.cadasto.com/openehr/v1/ehr/7d44b88c-4199-4bad-97dc-d78268e01398
{
  "system_id": {
    "value": "9624982A-9F42-41A5-9318-AE13D5F5031F"
  },
  "ehr_id": {
    "value": "7d44b88c-4199-4bad-97dc-d78268e01398"
  },
  "ehr_status": {
    "id": {
      "_type": "OBJECT_VERSION_ID",
      "value": "8849182c-82ad-4088-a07f-48ead4180515::cataniamc.prod.cadasto.com::1"
    },
    "namespace": "local",
    "type": "EHR_STATUS"
  },
  "ehr_access": {
    "id": {
      "_type": "OBJECT_VERSION_ID",
      "value": "59a8d0ac-140e-4feb-b2d6-af99f8e68af8::cataniamc.prod.cadasto.com::1"
    },
    "namespace": "local",
    "type": "EHR_ACCESS"
  },
  "time_created": {
    "value": "2015-01-20T19:30:22.765+01:00"
  }
}