ЕСОЗ - публічна документація
Test Cases for Get Diagnostic Report
Get Diagnostic Report 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 "diagnostic_report:read" | 403 | 403 "Your scope does not allow to access this resource. Missing allowances: diagnostic_report:read" | passed |
3 | Invalid id | 404 | 404 | passed | |
4 | ABAC validations |
Get Diagnostic Report 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 "diagnostic_report:read" | 403 | 403 "Your scope does not allow to access this resource. Missing allowances: "diagnostic_report:read" | passed |
3 | Invalid id | 404 | 404 | passed | |
4 | ABAC validationa | ||||
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 1 dr | 200, 1 dr response | 200, valid response | passed |
10 | Search by encounter that does not contain any dr | empty array | empty array | passed | |
11 | Search by encounter id that does not 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 DRs | 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 |
ЕСОЗ - публічна документація