Purpose
This WS is designed to create new Innm (post).
...
- Verify the validity of access token
- Check user scope (scope = 'innm:write') in order to perform this action
- In case error - generate 401 response
...
Validate unique for Innms
- Check unique by `innm_identifier`.
- if found - return 409 error (message: "Duplicate innm identifier!")
Create new Innm
- Create new record in innms with status INACTIVE Mapping (where <rd> = request_for_medication_request.data )
- Mapping
- DestinationSource
id name $.name innm_identifier $.innm_identifier status INACTIVE is_active TRUE inserted_at :timestamp inserted_by user_id updated_at :timestamp updated_by user_id