Purpose
The service is designed to deactivate the medication register. The process uses the Jabba service. Upon execution of the request, a job is created, on the basis of which tasks are created. Each task is one request to create an entity from the register.
...
Page Properties | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Logic
Decode base64 file.
Validate input according to schema.
Return job identifier with result.
Preconditions
API paragraph not found
...
API paragraph not found
Request data validation
Check that request using schema
Return 422 with the list of validation errors in case validation fails.
Check that registerType IN ('DEACTIVATE_INNM_REGISTER', ‘DEACTIVATE_INNM_DOSAGE_REGISTER', ‘DEACTIVATE_BRAND_REGISTER', 'DEACTIVATE_PROGRAM_MEDICATION_REGISTER’) and correspond to file structure
Return 422 with the list of validation errors in case validation fails
Check that reasonDescription filled
Return 422 with the list of validation errors in case validation fails
Check decoded and encoded input file according to file structure
Return 422 with the list of validation errors in case validation fails
Check that the identifiers from the request exist and active
Return 404 with the list of validation errors in case validation fails.
Check inclusion in case user try to deactivate innm with active innm_dosage or innm_dosage with active brand and brand with active program medication
Return 422 with the list of validation errors in case validation fails.
File example:
DEACTIVATE_INNM_REGISTER
View file | ||
---|---|---|
|
DEACTIVATE_INNM_DOSAGE_REGISTER
View file | ||
---|---|---|
|
DEACTIVATE_BRAND_REGISTER
View file | ||
---|---|---|
|
DEACTIVATE_PROGRAM_MEDICATION_REGISTER
View file | ||
---|---|---|
|
...
Page Properties | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Backward compatibility
API paragraph not found