ЕСОЗ - публічна документація
Two registries tests
# | Description | Preconditions | Step by step | Expected result | Actual result |
---|---|---|---|---|---|
1 | Get drugs (New attributes in response) | At least one medical program correctly configured. New attributes for program medications is not set (start_date, end_date, registry_number) |
| Response 200
| |
2 | Get drugs (Only active program medication is returned) | At least one medical program correctly configured. There are 4 program medications:
|
| Response 200
| |
3 | Qualify medication request (New attributes in response) | Medical program correctly configured. Medication request exists and is active. Dosage has one active program_medication |
| Response 200
| |
4 | Qualify medication request (Only active program medication is returned) | Medical program correctly configured. Medication request exists and is active. Dosage has one active and one inactive program_medications |
| Response 200
| |
5 | Qualify medication request (Error when there are no active program_medications) | Medical program correctly configured. Medication request exists and is active. Dosage has one inactive program_medication (end_date in the past) |
| Response 200
| |
6 | Create medication dispense (Create dispense without program_medication_id) | Medical program correctly configured. Medication request exists and is active. There is only one program medication related to specified medication |
| Response 200
| |
7 | Create medication dispense (Create dispense with program_medication_id) | Medical program correctly configured. Medication request exists and is active. There is only one program medication related to specified medication |
| Response 200
| |
8 | Create medication dispense (Create dispense without program_medication_id with more than one program medications available) | Medical program correctly configured. Medication request exists and is active. There are two program medications related to specified medication |
| Response 200
| |
9 | Create medication dispense (Create dispense with inactive program medication) | Medical program correctly configured. Medication request exists and is active. Program medication's end_date in the past |
| Response 409 | |
10 | Create medication dispense (Create dispense with incorrect program medication) | Medical program correctly configured. Medication request exists and is active. |
| Response 409 |
ЕСОЗ - публічна документація