Get COMPOSITION tags
Retrieves the list of all ITEM_TAG resources associated with the target COMPOSITION
identified by uid_based_id and owned by the EHR identified by ehr_id.
Cadasto exception: the
uid_based_idmust be aversioned_object_uid(HIER_OBJECT_ID). Targeting a specific version with an OBJECT_VERSION_ID is not supported.
Returns an empty list when the target has no tags. More than one ITEM_TAG may be
associated with a single target — they are uniquely identified by their (key, target_path) pair.
- Type: stringrequired
EHR identifier taken from EHR.ehr_id.value.
- Type: string Format: uuidrequired
An identifier in the form of a HIER_OBJECT_ID identifier taken from VERSIONED_OBJECT.uid.value (i.e. a
versioned_object_uid).Cadasto exception: unlike the upstream openEHR ITS-REST specification, Cadasto only accepts the
versioned_object_uidform on/tagsendpoints. Targeting a specific version with an OBJECT_VERSION_ID is not supported — tags are scoped to the versioned object as a whole.
- application/json
- 404
404 Not Foundis returned when an EHR withehr_iddoes not exist, or when theuid_based_iddoes not exist.
curl https://cataniamc.prod.cadasto.com/openehr/v1/ehr/7d44b88c-4199-4bad-97dc-d78268e01398/composition/8849182c-82ad-4088-a07f-48ead4180515/tags
[
{
"key": "flag",
"value": "follow-up",
"target_path": "/composition/start_time/value",
"target": {
"id": {
"_type": "HIER_OBJECT_ID",
"value": "8849182c-82ad-4088-a07f-48ead4180515"
},
"namespace": "local",
"type": "COMPOSITION"
},
"owner_id": {
"id": {
"_type": "HIER_OBJECT_ID",
"value": "7d44b88c-4199-4bad-97dc-d78268e01398"
},
"namespace": "local",
"type": "EHR"
}
}
]