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

Test Cases Summary: Get Observations

Get Observation by id

#DescriptionInputExpected resultActual resultStatus
1Valid data, allowed observation codevalid token
valid observation id
(observation code allowed)

200,
correct response


200,
correct response


passed
2Getting observation that is  not from white listvalid token
valid observation id
(observation code is not allowed)
404

3Declaration validation handled
falsefalsepassed
4wrong scopestoken without scope "observation:read"403403passed

Get Observation by search params

#DescriptionInputExpected resultActual resultStatus
1Valid data  valid token
no search params

200,
correct response

the response contains only observations from a white-list



passed
2Collection is empty
empty arrayempty arraypassed
3Declaration validation handled
falsefalsepassed
4wrong scopestoken without scope patient_summary:read403403passed
5code from white-listsearch param "code=1234"

patient's observations with such code

the response contains only observations from a white-list

patient's observations with such codepassed
6code not from white-list
empty array

7encounter_idsearch param "encounter_id={{encounter_id}}"

observations that belong to the encounter

the response contains only observations from a white-list

no observationspassed
8episode_idsearch param "episode_id={{episode_id}}"observations that belong to the episode
the response contains only observations from a white-list
all patients observationspassed
9issued_from
the response contains only observations from a white-list
passed
10issued_to
the response contains only observations from a white-list
passed
11combination issued_from+ issued_to
the response contains only observations from a white-list
passed
12combination episode_id+encounter_id
the response contains only observations from a white-list
passed

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