Table of Contents |
---|
...
This WS allows to mark Specimen as entered-in-error.
Specification
Link | |
Resource | /api/patients/patient_id/specimens/id/actions/ |
Scope | specimen:cancel |
Components | Specimen |
Microservices |
|
Protocol type | REST |
Request type | PATCH |
Sync/Async | Async |
Public/Private/Internal | Public |
Key points
Only an employee who registered a Specimen, has an approval or a med_admin from the same legal entity, if they have an appropriate scope, are able to cancel the Specimen.
Request should be signed with DS.
The specimen is cancelled asynchronously
Signed content of a Specimen must be equal to the Specimen stored in DB. See Get Specimen details
status_reason must be added to signed content
status must be changed to
entered_in_error
for the purpose of displaying in the signed content
Logic
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
patient_id |
| String | Unique patient identifier |
|
id |
| String | Unique specimen identifier | aff00bf6-68bf-4b49-b66d-f031d48922b3 |
Dictionaries
specimen_cancel_reasons
Request structure
See on Apiary
...
See on Apiary
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 |
|
|
401 | Invalid access token |
|
403 |
|
|
409 |
|
|
422 |
|
|