-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor all PARTY operations so that they are now based on concrete …
…type PERSON (#99 SPECITS-70)
- Loading branch information
1 parent
81ff048
commit 906472f
Showing
38 changed files
with
196 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: | | ||
The `Location` response header indicates the URL of the PERSON resource. | ||
schema: | ||
type: string | ||
format: url | ||
example: 'https://openEHRSys.example.com/v1/demographic/person/6cb19121-4307-4648-9da0-d62e4d51f19b::openEHRSys.example.com::2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
operationId: person_create | ||
summary: Create PERSON | ||
description: | | ||
Creates the first version of a new PERSON. | ||
tags: | ||
- PERSON | ||
parameters: | ||
- $ref: ../parameters/header/Prefer.yaml | ||
requestBody: | ||
description: | | ||
The PERSON. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../schemas/demographic/Person.yaml | ||
required: true | ||
responses: | ||
'201': | ||
$ref: ../responses/201_PERSON.yaml | ||
'400': | ||
$ref: ../responses/400.yaml | ||
'422': | ||
$ref: ../responses/422.yaml | ||
'404': | ||
$ref: ../responses/404.yaml |
12 changes: 6 additions & 6 deletions
12
specifications/operations/party_delete.yaml → specifications/operations/person_delete.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
operationId: party_delete | ||
summary: Delete PARTY | ||
operationId: person_delete | ||
summary: Delete PERSON | ||
description: | | ||
Deletes the PARTY identified by `uid_based_id`. | ||
Deletes the PERSON identified by `uid_based_id`. | ||
The `uid_based_id` MUST be in a form of an OBJECT_VERSION_ID identifier taken from the last (most recent) VERSION.uid.value, representing the `preceding_version_uid` to be deleted. | ||
tags: | ||
- PARTY | ||
- PERSON | ||
parameters: | ||
- $ref: ../parameters/path/uid_based_id_as_version_uid.yaml | ||
responses: | ||
'204': | ||
$ref: ../responses/204_PARTY_deleted.yaml | ||
$ref: ../responses/204_PERSON_deleted.yaml | ||
'400': | ||
$ref: ../responses/400_already_deleted.yaml | ||
'404': | ||
$ref: ../responses/404.yaml | ||
'409': | ||
$ref: ../responses/409_PARTY_with_uid_based_id.yaml | ||
$ref: ../responses/409_PERSON_with_uid_based_id.yaml |
14 changes: 7 additions & 7 deletions
14
specifications/operations/party_get.yaml → specifications/operations/person_get.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
operationId: person_update | ||
summary: Update PERSON | ||
description: | | ||
Updates PERSON identified by `uid_based_id`. | ||
The `uid_based_id` can take only a form of an HIER_OBJECT_ID identifier taken from VERSIONED_OBJECT.uid.value (i.e. a `versioned_object_uid`). | ||
If the request body already contains a PERSON.uid.value, it must match the `uid_based_id` in the URL. | ||
The existing latest `version_uid` of PERSON resource (i.e. the `preceding_version_uid`) must be specified in the `If-Match` header. | ||
tags: | ||
- PERSON | ||
parameters: | ||
- $ref: ../parameters/path/uid_based_id_as_versioned_object_uid.yaml | ||
- $ref: ../parameters/header/If-Match.yaml | ||
- $ref: ../parameters/header/Prefer.yaml | ||
requestBody: | ||
description: | | ||
The new PERSON. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../schemas/demographic/Person.yaml | ||
required: true | ||
responses: | ||
'200': | ||
$ref: ../responses/200_PERSON_updated.yaml | ||
'400': | ||
$ref: ../responses/400.yaml | ||
'404': | ||
$ref: ../responses/404.yaml | ||
'412': | ||
$ref: ../responses/412_PERSON.yaml | ||
'422': | ||
$ref: ../responses/422.yaml |
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
specifications/operations/versioned_party_revision_history.yaml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
specifications/operations/versioned_party_version_get_at_time.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
operationId: versioned_person_get | ||
summary: Get versioned PERSON | ||
description: | | ||
Retrieves a VERSIONED_PERSON identified by `versioned_object_uid`. | ||
tags: | ||
- PERSON | ||
parameters: | ||
- $ref: ../parameters/path/versioned_object_uid_PERSON.yaml | ||
responses: | ||
'200': | ||
$ref: ../responses/200_VERSIONED_PERSON.yaml | ||
'404': | ||
$ref: ../responses/404.yaml |
13 changes: 13 additions & 0 deletions
13
specifications/operations/versioned_person_revision_history.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
operationId: versioned_person_revision_history | ||
summary: Get versioned PERSON revision history | ||
description: | | ||
Retrieves revision history of the VERSIONED_PERSON identified by `versioned_object_uid`. | ||
tags: | ||
- PERSON | ||
parameters: | ||
- $ref: ../parameters/path/versioned_object_uid_PERSON.yaml | ||
responses: | ||
'200': | ||
$ref: ../responses/200_REVISION_HISTORY.yaml | ||
'404': | ||
$ref: ../responses/404.yaml |
16 changes: 16 additions & 0 deletions
16
specifications/operations/versioned_person_version_get_at_time.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
operationId: versioned_person_version_get_at_time | ||
summary: Get versioned PERSON version at time | ||
description: | | ||
Retrieves a VERSION from the VERSIONED_PERSON identified by `versioned_object_uid`. | ||
If `version_at_time` is supplied, retrieves the VERSION extant _at specified time_, otherwise retrieves the _latest_ VERSION. | ||
tags: | ||
- PERSON | ||
parameters: | ||
- $ref: ../parameters/path/versioned_object_uid_PERSON.yaml | ||
- $ref: ../parameters/query/version_at_time.yaml | ||
responses: | ||
'200': | ||
$ref: ../responses/200_VERSION_of_PERSON_at_time.yaml | ||
'404': | ||
$ref: ../responses/404_not_found_or_no_version_at_time.yaml |
10 changes: 5 additions & 5 deletions
10
...ns/versioned_party_version_get_by_id.yaml → ...s/versioned_person_version_get_by_id.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
operationId: versioned_composition_version_get_by_id | ||
summary: Get versioned PARTY version by id | ||
summary: Get versioned PERSON version by id | ||
description: | | ||
Retrieves a VERSION identified by `version_uid` of a VERSIONED_PARTY identified by `versioned_object_uid`. | ||
Retrieves a VERSION identified by `version_uid` of a VERSIONED_PERSON identified by `versioned_object_uid`. | ||
tags: | ||
- PARTY | ||
- PERSON | ||
parameters: | ||
- $ref: ../parameters/path/versioned_object_uid_PARTY.yaml | ||
- $ref: ../parameters/path/versioned_object_uid_PERSON.yaml | ||
- $ref: ../parameters/path/version_uid.yaml | ||
responses: | ||
'200': | ||
$ref: ../responses/200_VERSION_of_PARTY_by_id.yaml | ||
$ref: ../responses/200_VERSION_of_PERSON_by_id.yaml | ||
'404': | ||
$ref: ../responses/404.yaml |
2 changes: 1 addition & 1 deletion
2
...ters/path/versioned_object_uid_PARTY.yaml → ...ers/path/versioned_object_uid_PERSON.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.