ЕСОЗ - публічна документація

Test Cases Get Episode

Get Episode by id

#DescriptionInputExpected resultActual resultStatus
1Valid datavalid id200, valid response
passed
2Missing scope
403
passed
3Declaration validation
403
passed
4Patient is inactive
not handled

Get Episode by search params

#DescriptionInputExpected resultActual resultStatus
1Valid datano search paramsall patients episodesall patient`s episodespassed
2Missing scopetoken without scope episode:read403
passed
3Declaration validation
handledhandledpassed
4Patient is inactive
not handled

5Search by code
200,valid response

6Search by period from

Patient_id: df60ece6-4933-4a09-8459-0ac6393dfabb
Episodes:

1) "period": {
"end": null,
"start": "2014-02-02"
},

2) "period": {
"end": null,
"start": "2018-07-02"
},

3) "period": {
"end": "2018-10-17",
"start": "2017-01-01"
},
search by period_from=2000-01-01

200,valid response

all collection (3 episodes)

200,valid response

all collection (3 episodes)

passed
7search by period_from=2017-02-02

200,valid response

all collection (3 episodes)

200,valid response

all collection (3 episodes)

passed
8search by period_from=2018-11-012 episodes
(episodes that not closed yet)
2 episodes
(episodes that not closed yet)
passed
9Search by period to

~same patient~

search by period_to=2020-01-01

200,valid response

3 episodes

200,valid response

3 episodes

passed
10search by period_to=2015-01-01

200,valid response

1 episode

200,valid response

1 episode

passed
11search by period_to=2000-01-01empty arrayempty arraypassed
12Combined search: search period insidesearch by period_from=2017-02-02 period_to=2018-06-02

200,valid response

2 episodes
(#1 & #3 )

200,valid response

2 episodes
(#1 & #3 )

passed
13Combined search: search period covers allsearch by period_from=2000-01-01 period_to=2020-01-01

200,valid response

3 episodes

200,valid response

3 episodes

passed
14Combined search: search period intersect startsearch by period_from=2000-01-01 period_to=2015-01-011 episode
(#1)

1 episode
(#1)
passed
15Combined search: search period intersect endsearch by period_from=2017-02-02 period_to=2018-11-02

200,valid response

3 episodes

200,valid response

3 episodes

passed
16Combined search: search period in futuresearch by period_from=2020-02-02 period_to=2030-09-02

200,valid response

2 episodes
(#1 & #2)

200,valid response

2 episodes
(#1 & #2)

passed
17Combined search: search period in pastsearch by period_from=2000-02-02 period_to=2013-09-02emptyemptypassed
18Invalid search params
handled, 422handled, 422passed

ЕСОЗ - публічна документація