Get Immunization 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 "immunization:read" | 403 | 403 "Your scope does not allow to access this resource. Missing allowances: immunization: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 Immunization 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 "immunization:read" | 403 | 403 "Your scope does not allow to access this resource. Missing allowances: immunization: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 | 403 | 401 Access denied - you have no active declaration with the patient | passed |
5 | Valid search by vaccine_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 1 immunization | 200, 1 immunization in response | 200, valid response | passed |
10 | Search by encounter that does not contain any immunizations | empty array | empty array | passed | |
11 | Search by encounter id that does no exist | empty array | empty array | passed | |
12 | Valid search by episode | episode that contains 1 immunization | 1 item in array | all the collection | failed |
13 | Search by episode that is empty (no encounter) | id of an empty episode | empty array | all the collection | failed |
14 | Search by episode that does not contain any immunizations | empty array | all the collection | failed | |
15 | Search by episode id that does no exist | empty array | all the collection | failed | |
16 | Valid search by combitantion | 200, valid response | 200, valid response | ||
17 | Invalid search by encounter | ||||
18 | Invalid search by episode |