...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents |
---|
...
...
Specification
...
Apiary |
...
JSON Schema request |
| ||||||||
JSON Schema response |
|
Purpose
This WS is designed to create new medical program.
Specification
WS logic
Authorize
- Verify the validity of access token
- In case error - generate 401 response
- Check user scope (scope = 'medical_program:write') in order to perform this action
- In case error - generate 403 response
...
Create new Medical Program
- Create new record in Medical_programs
Destination | Source | Description |
---|---|---|
id | Autogenerated | |
name | Request: $.name | |
is_active | Const: true | |
inserted_at | Timestamp: now() | Get current date-time |
inserted_by | Token: user_id | Extract user from token |
updated_at | Timestamp: now() | Get current date-time |
updated_by | Token: user_id | Extract user from token |
Prepare & return response data structure
...