/
Test Cases for Get Diagnostic Report
Published Mar 21, 2019

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

Test Cases for Get Diagnostic Report

Get Diagnostic Report by id

#DescriptionInputExpected resultActual resultStatus
1Valid dataValid id of the existing patient 

200,

valid response 

200,

valid response 

passed
2Missing scopeToken without scope "diagnostic_report:read"403403 "Your scope does not allow to access this resource. Missing allowances: diagnostic_report:read"

passed
3Invalid id
404404passed
4ABAC validations



Get Diagnostic Report by search params

#DescriptionInputExpected resultActual resultStatus
1Valid dataNo search params

200,

valid response 

200,

valid response 

passed
2Missing scopeToken without scope "diagnostic_report:read"403403 "Your scope does not allow to access this resource. Missing allowances: "diagnostic_report:read"passed
3Invalid id
404404passed
4ABAC validationa



5Valid search by code

200,

valid response

200,

valid response

passed
6Valid search by date_from

200,

valid response

200,

valid response

passed
7Valid search by date_to

200,

valid response

200,

valid response

passed
8Valid search by date combination

200,

valid response

200,

valid response

passed
9Valid search by encounerencounter contains 1 dr

200,

1 dr response

200,

valid response
1 dr in response

passed
10Search by encounter that does not contain any dr
empty arrayempty arraypassed
11Search by encounter id that does not exist
empty arrayempty arraypassed
12Valid search by episode
1 item in array

1 item in array

passed
13Search by episode that is empty (no encounter)


empty arrayempty arraypassed
14Search by episode that does not contain any DRs


empty arrayempty arraypassed
15Search by episode id that does no exist


empty arrayempty arraypassed
16Valid search by combitantion

200,

valid response

200,

valid response

passed
17Invalid search by datenot a date422422passed
18Invalid search by encounternot a uuid422422passed
19Invalid search by episodenot a uuid422422passed

Related content

Test Cases Summary: Get Observations
Test Cases Summary: Get Observations
More like this
Get Approved Diagnostic Reports
Get Approved Diagnostic Reports
Read with this
Test Cases for Get Allergy_Intolerance
Test Cases for Get Allergy_Intolerance
More like this
Cancel Diagnostic Report Package
Cancel Diagnostic Report Package
Read with this
Test Cases Summary: Get Diagnostic Report
Test Cases Summary: Get Diagnostic Report
More like this
Відкликання діагностичного звіту
Відкликання діагностичного звіту
Read with this

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