# | Description | Route | Input | Expected result | Actual Result | Status | ||
---|---|---|---|---|---|---|---|---|
1 | Scope validation | token without scope "episode:read" | 403 | 403 | passed | |||
2 | Data consistency validation: get entity by id using wrong episode id | {{host}}/api/patients/{{patient_id}}/episodes/{{WRONG_episode_id}}/encounters/encounter_id | 404 | 200 | FAILED | |||
3 | Data consistency validation: get entities by search params using wrong episode id | {{host}}/api/patients/{{patient_id}}/episodes/{{WRONG_episode_id}}/encounters? | 404 | 200 | FAILED | |||
4 | User with active declaration receives access: HP | episode by id | doctor with an active declaration from third-party LE, no approval | 200 | ||||
5 | episode by search params | 200 | ||||||
6 | encounter by id | 200 | ||||||
7 | encounter by search params | 200 | ||||||
8 | encounter by id via episode context | 200 | ||||||
9 | encounter by search params via episode context | 200 list filtered | ||||||
10 | condition by id | 200 | ||||||
11 | condition by search params | 200 | ||||||
12 | condition by id via episode context | 200 | ||||||
13 | condition by search params via episode context | 200 list filtered | ||||||
14 | observation by id | 200 | ||||||
15 | observation by search params | 200 | ||||||
16 | observation by id via episode context | 200 | ||||||
17 | observation by search params via episode context | 200 list filtered | ||||||
18 | immunization by id | 200 | ||||||
19 | immunization by search params | 200 | ||||||
20 | immunization by id via episode context | 200 | ||||||
21 | immunization by search params via episode context | 200 list filtered | ||||||
22 | allergy_intolerance by id | 200 | BLOCKED by AI creation bug | |||||
23 | allergy_intolerance by search params | 200 | BLOCKED by AI creation bug | |||||
24 | allergy_intolerance by id via episode context | 200 | BLOCKED by AI creation bug | |||||
25 | allergy_intolerance by search params via episode context | 200 list filtered | BLOCKED by AI creation bug | |||||
26 | User with episode approval receives access: HP | doctor without an active declaration from third-party LE having approval | BLOCKED by approval creation bug | |||||
27 | User with episode approval try to receive access: approval expired | 403 access denied | BLOCKED by approval creation bug | |||||
28 | User with episode approval try to receive access: no episode matches | 403 access denied | BLOCKED by approval creation bug | |||||
29 | User from the same LE receives access: HP | 1-22 | doctor without an active declaration from managing_organization, no approval | 200 | 403 access denied | FAILED | ||
30 | Combination of rules | 31 | User with no permissions | 1-22 | 403 access denied | 403 access denied | passed |
...