Table of Contents |
---|
Page Properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Check exist Medication by $.id.
if invalid - return 404 error (message: "Medication is not found!")
Validate
...
type
Purpose validation: Medication should be active (is_active == TRUE)
...
Validate `type` == MEDICATION
- if invalid - return 409 eror (message: "Type of record by id is not MEDICATION !")
Prepare & return response data structure
...