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

Test Cases Get Conditions

Get Condition by id

#

Description

Input

Expected result

Actual result

Status

#

Description

Input

Expected result

Actual result

Status

1

Valid data  

valid token
valid condition id

200,
correct response

all value types are handled properly

200,
correct response

all value types are handled properly

passed

2

Declaration validation handled



true

true

passed

3

wrong scopes

token without scope "condition:read"

403

403

passed

Get Conditions by search params

#

Description

Input

Expected result

Actual result

Status

#

Description

Input

Expected result

Actual result

Status

1

Valid data  

valid token


200,
correct response

all value types are handled properly
response contains only conditions that belong to the patient

response if full

200,
correct response

all value types are handled properly
response contains only conditions that belong to the patient

response if full

passed

2

Declaration validation handled



true

true

passed

3

wrong scopes

token without scope "conditions:read"

403

403

passed

4

code

search param "code=1234"

patient's conditions with such code

patient's conditions with such code

passed

5

encounter_id

search param "encounter_id={{encounter_id}}"

conditions that belong to the encounter



passed

6

episode_id

search param "episode_id={{episode_id}}"

conditions that belong to the episode



passed

7

issued_from







passed

8

issued_to







passed

9

combinations







passed



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