Table of Contents |
---|
Page Properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Check exist Medication by $.id .
if invalid - return 404 error (message: "INNM is not found!")
Validate status
...
with type=INNM & status is_active=
...
- Validate `is_active` == TRUE
true
if invalid
- return
409 eror404 error (message: "
Substance is not active !")
INNM
- if invalid - return 409 eror (message: "Type of record by id
is not
INNMfound!")
Prepare & return response data structure
...