Status
Page Properties |
---|
Specification | | Apiary | | JSON Schema request | | JSON Schema response | |
|
Purpose
This WS is designed to describe the process of creating new medical program.
APIary
http://docs.uaehealthapi.apiary.io/#reference/internal.-nhs-admin/medical-programs/create-medical-program
Input parameters
Authorize
- Verify the validity of access token
- Check user scope (scope = 'medical_programs:write') in order to perform this action
- In case error - generate 401 response
Validate request (JSON schema)
- Validate request using JSON schemas (TBD):
- Return 422 with list of validation errors in case validation fails (422 EView)
Create new Medical Program
- Create new record in Medical_programs
- Fill data
|
id |
|
name | $.name |
is_active | $.is_active |
inserted_at | :timestamp |
inserted_by | user_id |
updated_at | :timestamp |
updated_by | user_id |
Prepare & return response data structure
- Fill response WS data structure
- Validate response using JSON schemas (TBD)
- Return 422 with list of validation errors in case validation fails (422 EView)