ЕСОЗ - публічна документація
Test Cases Summary: Get Diagnostic Report
Get Diagnostic Report by id
# | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|
1 | Valid data, allowed diagnostic report code | valid token valid diagnostic report id (diagnostic report code allowed) | 200, | 200, | passed |
2 | Getting diagnostic report that is not from white list | valid token valid diagnostic report id (diagnostic report code is not allowed) | 404 | 404 | passed |
3 | ABAC validation | false | false | passed | |
4 | wrong scopes | token without scope "summary:read" | 403 | 403 | passed |
Get Diagnostic Report by search params
# | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|
1 | Valid data | valid token no search params | 200, the response contains only diagnostic reports from a white-list | passed | |
2 | ABAC handled | false | false | passed | |
3 | wrong scopes | token without scope patient_summary:read | 403 | 403 | passed |
4 | code from white-list | search param "code=1234" | patient's diagnostic report with such code the response contains only diagnostic reports from a white-list | patient's diagnostic reports with such code | passed |
5 | code not from white-list | empty array | |||
6 | issued_from | the response contains only diagnostic reports from a white-list | passed | ||
7 | issued_to | the response contains only diagnostic reports from a white-list | passed | ||
8 | combination issued_from+ issued_to | the response contains only diagnostic reports from a white-list | passed |
ЕСОЗ - публічна документація