pre-approval: not yet approved by the openEHR SEC · Trial mode: runs, results and verdicts are complete, and no certificate is issued.

Veredictum

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

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

StepOperationDescription
performer$sourceDescriptions.demographic.person_createCreate the PERSON that plays the ROLE and keep the versioned_object_uid of its container.
create$sourceDescriptions.demographic.role_createCreate the ROLE asking for the full representation, keep its version_uid and derive the versioned_object_uid of its container.
update$sourceDescriptions.demographic.role_updateUpdate the ROLE with the refused content under the version_uid of the create.
latest$sourceDescriptions.demographic.versioned_party_version_get_at_timeRead the latest VERSION of the container.