ЕСОЗ - публічна документація
Test Cases Get Episode
Get Episode by id
# | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|
1 | Valid data | valid id | 200, valid response | passed | |
2 | Missing scope | 403 | passed | ||
3 | Declaration validation | 403 | passed | ||
4 | Patient is inactive | not handled |
Get Episode by search params
# | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|
1 | Valid data | no search params | all patients episodes | all patient`s episodes | passed |
2 | Missing scope | token without scope episode:read | 403 | passed | |
3 | Declaration validation | handled | handled | passed | |
4 | Patient is inactive | not handled | |||
5 | Search by code | 200,valid response | |||
6 | Search by period from | Patient_id: df60ece6-4933-4a09-8459-0ac6393dfabb 2) "period": { 3) "period": { | 200,valid response all collection (3 episodes) | 200,valid response all collection (3 episodes) | passed |
7 | search by period_from=2017-02-02 | 200,valid response all collection (3 episodes) | 200,valid response all collection (3 episodes) | passed | |
8 | search by period_from=2018-11-01 | 2 episodes (episodes that not closed yet) | 2 episodes (episodes that not closed yet) | passed | |
9 | Search by period to | ~same patient~ search by period_to=2020-01-01 | 200,valid response 3 episodes | 200,valid response 3 episodes | passed |
10 | search by period_to=2015-01-01 | 200,valid response 1 episode | 200,valid response 1 episode | passed | |
11 | search by period_to=2000-01-01 | empty array | empty array | passed | |
12 | Combined search: search period inside | search by period_from=2017-02-02 period_to=2018-06-02 | 200,valid response 2 episodes | 200,valid response 2 episodes | passed |
13 | Combined search: search period covers all | search by period_from=2000-01-01 period_to=2020-01-01 | 200,valid response 3 episodes | 200,valid response 3 episodes | passed |
14 | Combined search: search period intersect start | search by period_from=2000-01-01 period_to=2015-01-01 | 1 episode (#1) | 1 episode (#1) | passed |
15 | Combined search: search period intersect end | search by period_from=2017-02-02 period_to=2018-11-02 | 200,valid response 3 episodes | 200,valid response 3 episodes | passed |
16 | Combined search: search period in future | search by period_from=2020-02-02 period_to=2030-09-02 | 200,valid response 2 episodes | 200,valid response 2 episodes | passed |
17 | Combined search: search period in past | search by period_from=2000-02-02 period_to=2013-09-02 | empty | empty | passed |
18 | Invalid search params | handled, 422 | handled, 422 | passed |
ЕСОЗ - публічна документація