Table of Contents |
---|
Purpose
Any medication request with the ACTIVE status can be blocked by NHS employee with indicating block_reason.
Specification
Apiary | |
Apiary |
...
Table of Contents |
---|
Purpose
Use this method to block Medication request for dispense.
Specification
Page Properties | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Logic
In order to block medication request block_reason
and block_reason_code
should be added in request.
This method can't be used by employees with type 'PHARMACIST'. For pharmacists please use Block Medication Request by Pharmacy User.
The medication request can be blocked or unlocked by the NHS employee at any time also with having the appropriate scope: medication_request: block.
For medication requests that has been blocked by NHS employee parameter is_blocked = true is set.
For medication requests that has been unlocked, is_blocked = false
Medication requests which are in the status is_blocked = true cannot be dispensed in the PHARMACY.
On create/process medication dispense for the medication request with is_blocked = true parameter return an error 422 with msg "Medication request is blocked".
Information about blocking or unblocking medication request is displayed in Event Manager.
The person with the authentication_method = OTP can be notified by SMS about blocking or unlocking with the following appropriate messages:
...
Code Block |
---|
«Ваш рецепт №---- розблоковано НСЗУ. Можете отримати ліки в аптеці» |
Preconditions
No
Global and configurable parameters
No
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | d290f1ee-6c54-4b01-90e6-d701748f0851 |
Filters
No
Request structure
See on Apiary
Example:
Expand | ||
---|---|---|
| ||
|
Authorize
Request to process the request using a token in the headers
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Validate request
API paragraph not found
Request data validation
API paragraph not found
Parameters that are used when processing the request
Configuration parameters
API paragraph not found
Dictionaries
API paragraph not found
Processing
API paragraph not found
Response structure
See on Apiary
Example:
Expand | ||
---|---|---|
| ||
|
Post-processing processes
API paragraph not found
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 | Response |
|
401 | Unauthorized Error |
|
Backward compatibility
API paragraph not found