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

Test Cases for Get Allergy_Intolerance

Get Allergy_Intolerance by id

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

200,

valid response 

200,

valid response 

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

passed
3Invalid id
404404passed
4Declaration validation

id of the patient who doesn`t have a declaration

with the current doctor

401401
Access denied - you have no active declaration with the patient
passed

Get Allergy_Intolerance by search params

#DescriptionInputExpected resultActual resultStatus
1Valid dataNo search params

200,

valid response 

200,

valid response 

passed
2Missing scopeToken without scope "allergy_intolerance:read"403

3Invalid id
404404passed
4Declaration validation

id of the patient who doesn`t have a declaration

with the current doctor

403401
Access denied - you have no active declaration with the patient
passed
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 2 AI

200,

2 AI

200,
2 AI

passed
10Search by encounter that does not contain any AI
empty arrayempty arraypassed
11Search by encounter id that does no 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 AI


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

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