Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


#Block DescriptionInputExpected resultActual resultStatus
1Common validationsSingle Valid Encounter reference existing Visit, ConditionEncounter200
created
200
created
passed
2Encouner+Visit

Encounter

Visit

200
created
200
created
passed
3Encouner+Several conditions

Encounter

2 Conditions

200
created
200
created
passed
4Encounter + Several conditions + Historical conditionEncounter
2 Conditions (1 historical)
201
passed
5Encounter + Several Observations

Encounter

2 Observations

200
created
200
created
passed
6Encounter + Observations+Conditions
Observations are Evidences for Conditions

Encounter

2 Observations

2 Conditions

Conditions reference observations

200
created
200
created
passed
7Encounter+Several Allergy_Intolerances

Encounter

2 Allergy_Intolerances

201
passed
8Encounter+Immunizations

Encounter

2 Immunizations

201
passed
9Encounter+Immunizations+Observations
Observations are reactions for Immunizations

Encounter

2 Immunizations

2 Observations

Observations reference Immuizations

201
passed
10Full Package

Visit
Encounter
3 Conditions (1 historical)

25 Observations (10 historical)

5 immunization (4 historical, 1 with reaction)

5 allergy_intolerances

201

11EncounterEncounter reference visit that does not exist

id of visit that does not exist

409422passed
12Encounter reference visit that belongs to the other patient
409409passed
13Encounter reference episode that does not exist
409422

passed
14Encounter reference episode that belongs to the other patientid of an episode that belongs to another patient409422passed
15Encounter reference episode that belongs to other LE
409422passed
16Encounter reference episode that is not active
409422passed
1617Encounter reference condition that does not exist
409422passed
1718Encounter reference condition that does not belong to the current patient
409

1819Encounter reference condition that canceled
409

1920Encounter reference division that does not exist
409

2021Encounter reference division that does not belong to the current legal_entity
409

2122Encounter reference division that is not active
409

2223Encounter date >current_date
422422passed
2324Encounter date < permitted min date
422422
Wrong description
failed
2425Invalidnot unique visit id
409409passed
2526Period validation handled
handledhandledpassed
2627Visit submitted but not referenced
not handled422
"description": "Visit with such ID is not found",
passed
2728Conditioncondition id that already exists in DB
409409
"Condition with id  already exists"
passed
2829condition id that repeated in the request
409409

passed
2930condition reference wrong  encounter (not from payload)
409409passed
3031onset_date longer than current datetime2300 г422422passed
3132evidence reference observation that does not exist
422422passed
3233evidence reference observation that belongs to another patient 
422422passed
3334evidence reference observation in entered_in_error status
409can not reproduce
3435asserter validation handled
truetruepassed
3536date < permitted min date



3637Observation




observation id that already exists in DB
409409passed
3738observation id that repeated in the request
409409passed
3839observation reference encounter that is not in payload
409409passed
3940Period validation handled
handledhandledpassed
4041issued > current date_time
409409passed
4142Performer validation handled
handledhandledpassed
4243All value_types handled

quantity
codeable_concept
string
boolean
range
ratio
sampled_data
time
date_time
period


passed
4344Component types



4445date < permitted min date
422422passed
4546Immunization

Valid request case immunization is given


failed
4647Valid request case immunization is not given



4748Historical immunization



4849immunization id that already exists in DB



4950immunization id that repeated in the request



5051immunization reference encounter that is not in payload



5152date < permitted min date
422422passed
5253Allergy IntoleranceValid requestPackage contains 2 AIs

202

created


202

created

passed
5354Allergy Intolerance id that already exists in DB
409409passed
5455Allergy Intolerance id that repeated in the request
422422passed
5556Allergy Intolerance reference encounter that is not in payload
422422passed
5657Onset date is longer than the current date time
422422passed
5758

Last occurrence is longer than the current date time


422422passed
5859Performer validation handled
handledhandledpassed
5960date < permitted min date
422422passed

...