...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Purpose
This method is designed to get Medication Request details in order to show current request status, issued medication and its quantity
Specification
TBD
WS logic
Authorize user
- Verify the validity of access token
- Return 401 in case validation fails
- Check user scopes in order to perform this action (scope = 'medication_request:read')
- Return 403 in case invalid scope(s)
Check user context
Return response to user limited by context from user's token
Token type | Limitation |
---|---|
TOKENS_TYPES_PERSONAL | Limited by Legal Entity (ID) |
TOKENS_TYPES_ADMIN | No limitations |
TOKENS_TYPES_PHARMACY | No limitations |
Get medication request details
- Validate input parameter(s):
- id (PK) - return 404 in case no records in DB with this ID
- Get medication request
- Enrich medication request with external data:
- (view) person - get data from MPI
- (view) legal entity - get data from PRM
- (view) employee - get data from PRM
Qualify medication request
- Invoke Qualify Medication request by ID_EN
- Enrich response with qualification result