A ROLE update holding a CLUSTER with no items is refused with 400
role_refused/update_role-cluster_no_items
Description
Creates a ROLE, then updates it with content whose identity details hold a CLUSTER with an empty items list. The published ITS-JSON schema (openehr_rm_1.1.0_all.json, CLUSTER.items, minItems 1) refuses the body, so it is syntactically invalid content, so the update is answered 400 Bad Request and the latest version is still the created one.
document: role_refused
Where it sits
- Chapter
- Demographic
- Capability
- Demographicdemographic
- Standing
- BASE · RefusalsEvery claimant of the capability runs it.
Spec citation
HTTP status codes
The service cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, syntactically invalid content)
An expectation is refuted by a better reading of the cited text, and by nothing else.
Steps
| Step | Operation | Description |
|---|---|---|
| performer | $sourceDescriptions.demographic.person_create | Create the PERSON that plays the ROLE and keep the versioned_object_uid of its container. |
| create | $sourceDescriptions.demographic.role_create | Create the ROLE asking for the full representation, keep its version_uid and derive the versioned_object_uid of its container. |
| update | $sourceDescriptions.demographic.role_update | Update the ROLE with the refused content under the version_uid of the create. |
| latest | $sourceDescriptions.demographic.versioned_party_version_get_at_time | Read the latest VERSION of the container. |