Table of Contents |
---|
...
Page Properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Purpose
This WS is design to update flags "is_active" for Medical Program.
APIary
...
- Check exist `program medication` by $.id & `is_active`=false
- if invalid - return 409 error (message: "There are active participants on this program. Only medical programs without participants can be deactivated.")
Validate PK Program Medications
...
- if invalid - return 409 error (message: "Medical program is not active and can't be deactivated again")
...
Deactivate Program Medications
Update medication medical program record by $.id set values:
Destination | Source | ||
---|---|---|---|
is_active | FALSE | medical_request_allowedFALSE | |
inserted_at | :timestamp | ||
inserted_by | user_id | ||
updated_at | :timestamp | ||
updated_by | user_id |
Prepare & return response data structure
...