Update EHR_STATUS
Updates EHR_STATUS associated with the EHR identified by ehr_id.
The existing latest version_uid of EHR_STATUS resource (i.e. the preceding_version_uid) must be specified in the If-Match header.
The response will contain the updated EHR_STATUS resource when the Prefer header has a value of return=representation.
- Type: string
ehr _id requiredEHR identifier taken from EHR.ehr_id.value.
- Type: string
If - Match requiredHeader to make the request conditional. Together with
ETagrequest tag, it helps to prevent simultaneous updates of a resource from overwriting each other ("mid-air collisions"). The format is always anversion_uididentifier enclosed by double quotes. The operation will be performed only if the existing latestversion_uidof the resource (i.e. thepreceding_version_uid) matches this header's value. - Type: stringenum
Prefer Request header to indicate the preference over response details. The response will contain the entire resource when the
Preferheader has a value ofreturn=representation.valuesreturn=representation return=minimal
The new EHR_STATUS.
An EHR_STATUS resource
- Type: string
archetype _node _id required - Type: boolean
is _modifiable required - Type: boolean
is _queryable required name required_type Discriminatorenumconst:DV_TEXTrequiredvaluesD V _ T E X T
- Type: string
value required - Type: object · CODE_PHRASE
encoding - Type: string
formatting hyperlink - Type: object · CODE_PHRASE
language - Type: array object[] · TERM_MAPPING[]
mappings
subject required_type Discriminatorenumconst:PARTY_SELFrequiredvaluesP A R T Y _ S E L F
- Type: object · PARTY_REF
external _ref Identifier for parties in a demographic or identity service.
- Type: string
_type - Type: object · ARCHETYPED
archetype _details - Type: object · FEEDER_AUDIT
feeder _audit - Type: array object[] · LINK[]
links other _details _type DiscriminatorType: string- Type: string
archetype _node _id required - Type: object · ELEMENT
item required name required- Type: object · ARCHETYPED
archetype _details - Type: object · FEEDER_AUDIT
feeder _audit - Type: array object[] · LINK[]
links uid
- application/json
400 400 Bad Requestis returned when the request URL or body (if provided) could not be parsed or has invalid content.404 404 Not Foundis returned when an EHR withehr_iddoes not exist.
curl https://cataniamc.prod.cadasto.com/openehr/v1/ehr/7d44b88c-4199-4bad-97dc-d78268e01398/ehr_status \
--request PUT \
--header 'If-Match: "6cb19121-4307-4648-9da0-d62e4d51f19b::cataniamc.prod.cadasto.com::1"' \
--header 'Prefer: return=minimal' \
--header 'Content-Type: application/json' \
--data '{
"archetype_node_id": "openEHR-EHR-EHR_STATUS.generic.v1",
"name": {
"value": "EHR status"
},
"subject": {
"_type": "PARTY_SELF"
},
"is_queryable": true,
"is_modifiable": true
}'
{
"archetype_node_id": "openEHR-EHR-EHR_STATUS.generic.v1",
"name": {
"value": "EHR status"
},
"subject": {
"_type": "PARTY_SELF"
},
"is_queryable": true,
"is_modifiable": true
}