From 6ec4b8f7711baaf7f34ff0f6c40d8597e799f9cb Mon Sep 17 00:00:00 2001 From: Bostjan Lah Date: Tue, 6 Nov 2018 08:29:57 +0100 Subject: [PATCH] Fixes #52 Fixes #53 Fixes #61 --- REST_API/includes/composition.apib | 24 ------------------------ REST_API/includes/ehr_status.apib | 2 +- REST_API/includes/overview.apib | 1 - 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/REST_API/includes/composition.apib b/REST_API/includes/composition.apib index e8c25a39..893e0a35 100644 --- a/REST_API/includes/composition.apib +++ b/REST_API/includes/composition.apib @@ -105,30 +105,6 @@ If the request body already contains a composition uid it must match the ... } -+ Request minimal (application/json) - - + Body - - { - "_type": "COMPOSITION", - "name": { - "_type": "DV_TEXT", - "value": "Vital Signs" - }, - ... - } - - + Headers - - Prefer: return=minimal - -+ Response 204 - - + Headers - - Location: {baseUrl}/ehr/{ehr_id}/composition/{version_uid} - ETag: {version_uid} - + Request wrong type (application/json) + Headers diff --git a/REST_API/includes/ehr_status.apib b/REST_API/includes/ehr_status.apib index 04f8f066..58eda2b0 100644 --- a/REST_API/includes/ehr_status.apib +++ b/REST_API/includes/ehr_status.apib @@ -61,7 +61,7 @@ otherwise the latest trunk version is returned. + Response 404 - `404 Not Found` returned when `EHR` with `ehr_id` does not exist or has been deleted or + `404 Not Found` returned when `EHR` with `ehr_id` does not exist or a version of an `EHR_STATUS` resource does not exist at the specified `version_at_time`. + Body diff --git a/REST_API/includes/overview.apib b/REST_API/includes/overview.apib index f8a204ca..75bfa99c 100644 --- a/REST_API/includes/overview.apib +++ b/REST_API/includes/overview.apib @@ -48,7 +48,6 @@ Throughout this specification, a set of short terms is being used as described b |`versioned_object_uid`| The value of a VERSIONED_OBJECT unique identifier, stored under VERSIONED_OBJECT.uid.value, e.g. 8849182c-82ad-4088-a07f-48ead4180515 | |`version_uid`| The value of a VERSION unique identifier, stored under VERSION.uid.value, e.g. 8849182c-82ad-4088-a07f-48ead4180515::example.domain.com::2 | |`preceding_version_uid`| The value of a previous VERSION unique identifier, used usually for PUT or DELETE methods, e.g. 8849182c-82ad-4088-a07f-48ead4180515::example.domain.com::1 | -|`object_id`| A placeholder for either `versioned_object_uid` or `version_uid` identifier | |`version_at_time`| Time specifier used to retrieve the VERSION at specified time; the value is a timestamp in the ISO8601 format (e.g. 2015-01-20T19:30:22.765+01:00) | |`timestamp`| A timestamp in the ISO8601 format (e.g. 2015-01-20T19:30:22.765+01:00) | |`UUID`| A universally unique identifier ([RFC 4122](https://tools.ietf.org/html/rfc4122)) (e.g. 8849182c-82ad-4088-a07f-48ead4180515)