ЕСОЗ - публічна документація
Test Cases for Get Allergy_Intolerance
Get Allergy_Intolerance by id
# | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|
1 | Valid data | Valid id of the existing patient | 200, valid response | 200, valid response | passed |
2 | Missing scope | Token without scope "allergy_intolerance:read" | 403 | 403 "Your scope does not allow to access this resource. Missing allowances: allergy_intolerance:read" | passed |
3 | Invalid id | 404 | 404 | passed | |
4 | Declaration validation | id of the patient who doesn`t have a declaration with the current doctor | 401 | 401 Access denied - you have no active declaration with the patient | passed |
Get Allergy_Intolerance by search params
# | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|
1 | Valid data | No search params | 200, valid response | 200, valid response | passed |
2 | Missing scope | Token without scope "allergy_intolerance:read" | 403 | ||
3 | Invalid id | 404 | 404 | passed | |
4 | Declaration validation | id of the patient who doesn`t have a declaration with the current doctor | 403 | 401 Access denied - you have no active declaration with the patient | passed |
5 | Valid search by code | 200, valid response | 200, valid response | passed | |
6 | Valid search by date_from | 200, valid response | 200, valid response | passed | |
7 | Valid search by date_to | 200, valid response | 200, valid response | passed | |
8 | Valid search by date combination | 200, valid response | 200, valid response | passed | |
9 | Valid search by encouner | encounter contains 2 AI | 200, 2 AI | 200, | passed |
10 | Search by encounter that does not contain any AI | empty array | empty array | passed | |
11 | Search by encounter id that does no exist | empty array | empty array | passed | |
12 | Valid search by episode | 1 item in array | 1 item in array | passed | |
13 | Search by episode that is empty (no encounter) | empty array | empty array | passed | |
14 | Search by episode that does not contain any AI | empty array | empty array | passed | |
15 | Search by episode id that does no exist | empty array | empty array | passed | |
16 | Valid search by combitantion | 200, valid response | 200, valid response | passed | |
17 | Invalid search by date | not a date | 422 | 422 | passed |
18 | Invalid search by encounter | not a uuid | 422 | 422 | passed |
19 | Invalid search by episode | not a uuid | 422 | 422 | passed |
ЕСОЗ - публічна документація