Get Observation by id
# | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|
1 | Valid data, allowed observation code | valid token valid observation id (observation code allowed) | 200, | 200, | passed |
2 | Getting observation that is not from white list | valid token valid observation id (observation code is not allowed) | 404 | ||
3 | Declaration validation handled | false | false | passed | |
4 | wrong scopes | token without scope "observation:read" | 403 | 403 | passed |
Get Observation by search params
# | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|
1 | Valid data | valid token no search params | 200, the response contains only observations from a white-list | passed | |
2 | Collection is empty | empty array | empty array | passed | |
3 | Declaration validation handled | false | false | passed | 3|
4 | wrong scopes | token without scope patient_summary:read | 403 | 403 | passed | 4
5 | code from white-list | search param "code=1234" | patient's observations with such code the response contains only observations from a white-list | patient's observations with such code | passed | 5
6 | code not from white-list | empty array | 6|||
7 | encounter_id | search param "encounter_id={{encounter_id}}" | observations that belong to the encounter the response contains only observations from a white-list | no observations | passed | 7
8 | episode_id | search param "episode_id={{episode_id}}" | observations that belong to the episode the response contains only observations from a white-list | all patients observations | passed | 8
9 | issued_from | the response contains only observations from a white-list | passed | 9||
10 | issued_to | the response contains only observations from a white-list | passed | 10||
11 | combination issued_from+ issued_to | the response contains only observations from a white-list | passed | 11||
12 | combination episode_id+encounter_id | the response contains only observations from a white-list | passed |