Specification
Patient request logic
- Only authenticated and authorized user can use this service
- New and Approved patient request can be rejected
- The request can be rejected only by the employee who works in the same legal entity in which the request was made.
...
- Change entity status in IL_DB.patient_request to REJECTED
Set updated_at - now() (Get current date-time)
Set updated_by - user_id (Extract user from token)