Purpose
This WS is designed to create new medication (post).
APIary
Input parameters (filters)
- name
- start_at
- route
- container_dosage info
- package_qty
- package_min_qty
- code_ATX
- manufacturer_name_country info
- certificate
- expired_certificate_date
- ingridients info
- innm_id
- dosage info
- is_active_substance
Authorize
- Verify the validity of access token
- Check user scope (scope = 'medication:write') in order to perform this action
- In case error - generate 401 response
Validate request (JSON schema)
Validate request using JSON schema (link !!! TBD)
Validate unique for Innms
- Check unique by `innm_identifier`.
- if found - return 409 error (message: "Duplicate innm identifier!")