Create EHR
Changed onCreate a new EHR with an auto-generated identifier.
An EHR_STATUS resource needs to be always created and committed in the new EHR. This resource MAY be also supplied by the client as the request body. If not supplied, a default EHR_STATUS will be used by the service with following attributes:
- is_queryable: true
- is_modifiable: true
- subject: a PARTY_SELF object
All other required EHR attributes and resources will be automatically created as needed by the EHR creation semantics.
Request
- Base URLhttps://openEHRSys.example.com/v1
- Authnone required
Headers
Request header to indicate the preference over response details. The response will contain the entire resource when the Prefer header has a value of return=representation, or only the resource identifier (e.g., the uid) when the value is return=identifier.
Request body
Response
201 Created is returned when the EHR has been successfully created, with the full resource in the body when Prefer header is return=representation, or only its identifiers when Prefer header is return=identifier.
Example response
{
"system_id": {
"value": "9624982A-9F42-41A5-9318-AE13D5F5031F"
},
"ehr_id": {
"value": "7d44b88c-4199-4bad-97dc-d78268e01398"
},
"ehr_status": {
"id": {
"_type": "OBJECT_VERSION_ID",
"value": "8849182c-82ad-4088-a07f-48ead4180515::openEHRSys.example.com::1"
},
"namespace": "local",
"type": "EHR_STATUS"
},
"ehr_access": {
"id": {
"_type": "OBJECT_VERSION_ID",
"value": "59a8d0ac-140e-4feb-b2d6-af99f8e68af8::openEHRSys.example.com::1"
},
"namespace": "local",
"type": "EHR_ACCESS"
},
"time_created": {
"value": "2015-01-20T19:30:22.765+01:00"
}
}Changes
- breaking
added the new required request property
/////// - breaking
added the new required request property
/////// - warning
changed the pattern of the request property
///////////////from/^[><=?]$/to^[><=?]$ - warning
changed the pattern of the request property
/////////////from/^[><=?]$/to^[><=?]$ - warning
changed the pattern of the request property
///////////////from/^[><=?]$/to^[><=?]$ - warning
changed the pattern of the request property
/////////////from/^[><=?]$/to^[><=?]$ - warning
changed the pattern of the request property
///////from/^[><=?]$/to^[><=?]$ - warning
changed the pattern of the request property
///////from/^[><=?]$/to^[><=?]$ - warning
changed the pattern of the request property
/////from/^[><=?]$/to^[><=?]$ - info
added
SECTIONdiscriminator mapping keys to the/request property - info
added
SECTIONdiscriminator mapping keys to the//request property - info
the
////////////response's property pattern was changed from/^[><=?]$/to^[><=?]$for the status - info
the
//////////response's property pattern was changed from/^[><=?]$/to^[><=?]$for the status - info
added the required property
////to the response with the status
- breaking
- info
added the new optional
headerrequest parameterAccept - info
added the new optional
headerrequest parameterContent-Type
- info