Delete multiple EHRs
Deletes all or multiple EHRs, or a specified subset of EHRs identified using the ehr_id query parameter.
NOTE: This functionality is intended primarily for development or testing purposes and may be disabled in production environments, in which case server may respond with
405 Method Not Allowed.
All resources associated with or owned by the targeted EHRs (such as COMPOSITION, EHR_STATUS, ITEM_TAG, CONTRIBUTION, and their historical versions) will also be permanently and physically deleted, in compliance with applicable data protection regulations (e.g., the GDPR in the European Union).
The server may execute this operation asynchronously (e.g. in batches), in which case returns status 202 Accepted.
If the deletion is processed synchronously and completes successfully, the server returns status 204 No Content.
- Type: string Format: uuidehr
_id An optional parameter to perform the operation on a subset of EHRs.
- 202
202 Acceptedis returned when the requested operation has been accepted for processing, but processing has not been completed or may not have started (i.e. when requests are processed asynchronously). - 204
- 404
404 Not Foundis returned when, based on the request parameters, the server did not find a current representation of a target resource, or is not willing to disclose that one exists. - 405
405 Method Not Allowedis returned when the service knows the request method, but the target resource doesn't support this method (e.g. due to security concerns).
curl https://openEHRSys.example.com/v1/admin/ehr/all \
--request DELETE