Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

#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

...

#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
34wrong scopestoken without scope patient_summary:read403403passed
45code 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
56code not from white-list
empty array

67encounter_idsearch param "encounter_id={{encounter_id}}"

observations that belong to the encounter

the response contains only observations from a white-list

no observationspassed
78episode_idsearch param "episode_id={{episode_id}}"observations that belong to the episode
the response contains only observations from a white-list
all patients observationspassed
89issued_from
the response contains only observations from a white-list
passed
910issued_to
the response contains only observations from a white-list
passed
1011combination issued_from+ issued_to
the response contains only observations from a white-list
passed
1112combination episode_id+encounter_id
the response contains only observations from a white-list
passed

...