# | Block | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|---|
1 | Common validations | Single Valid Encounter reference existing Visit, Condition | Encounter | 200 created current diagnoses are set to the episode | 200 created current diagnoses are set to the episode | passed |
2 | Encouner+Visit | Encounter Visit | 200 created | 200 created | passed | |
3 | Encouner+Several conditions | Encounter 2 Conditions | 200 created | 200 created | passed | |
4 | Encounter + Several conditions + Historical condition | Encounter 2 Conditions (1 historical) | 201 | passed | ||
5 | Encounter + Several Observations | Encounter 2 Observations | 200 created | 200 created | passed | |
6 | Encounter + Observations+Conditions Observations are Evidences for Conditions | Encounter 2 Observations 2 Conditions Conditions reference observations | 200 created | 200 created | passed | |
7 | Encounter+Several Allergy_Intolerances | Encounter 2 Allergy_Intolerances | 201 | passed | ||
8 | Encounter+Immunizations | Encounter 2 Immunizations | 201 | passed | ||
9 | Encounter+Immunizations+Observations Observations are reactions for Immunizations | Encounter 2 Immunizations 2 Observations Observations reference Immuizations | 201 | passed | ||
10 | Full Package | Visit 25 Observations (10 historical) 5 immunization (4 historical, 1 with reaction) 5 allergy_intolerances | 201 | passed | ||
11 | Encounter | Encounter reference visit that does not exist | id of visit that does not exist | 409 | 422 | passed |
12 | Encounter reference visit that belongs to the other patient | 409 | 409 | passed | ||
13 | Encounter reference episode that does not exist | 409 | 422 | passed | ||
14 | Encounter reference episode that belongs to the other patient | id of an episode that belongs to another patient | 409 | 422 | passed | |
15 | Encounter reference episode that belongs to other LE | 409 | 422 | passed | ||
16 | Encounter reference episode that is not active | 409 | 422 | passed | ||
17 | Encounter reference condition that does not exist | 409 | 422 | passed | ||
18 | Encounter reference condition that does not belong to the current patient | 409 | 422 | passed | ||
19 | Encounter reference condition that canceled | 409 | 422 | passed | ||
20 | Encounter reference division that does not exist | 409 | 422 | passed | ||
21 | Encounter reference division that does not belong to the current legal_entity | 409 | 422 | passed | ||
22 | Encounter reference division that is not active | 409 | ||||
23 | Encounter date >current_date | 422 | 422 | passed | ||
24 | Encounter date < permitted min date | 422 | 422 | passed | ||
25 | Invalid | not unique visit id | 409 | 409 | passed | |
26 | Period validation handled | handled | handled | passed | ||
27 | Visit submitted but not referenced | not handled | 422 "description": "Visit with such ID is not found", | passed | ||
28 | Empty sign content | 422 | passed | |||
29 | Sign content is not a base 64 string | 422 | passed | |||
30 | Sign content IS a base 64 string but not JSON | 422 | passed | |||
31 | Sign content IS a json but not corresponding | 422 | passed | |||
32 | Condition | condition id that already exists in DB | 409 | 409 "Condition with id already exists" | passed | |
2933 | condition id that repeated in the request | 409 | 409 | passed | ||
3034 | condition reference wrong encounter (not from payload) | 409 | 409 | passed | ||
3135 | onset_date longer than current datetime | 2300 г | 422 | 422 | passed | |
3236 | evidence reference observation that does not exist | 422 | 422 | passed | ||
3337 | evidence reference observation that belongs to another patient | 422 | 422 | passed | ||
3438 | evidence reference observation in entered_in_error status | 409 | can not reproduce | |||
3539 | asserter validation handled | true | true | passed | ||
3640 | date < permitted min date | 422 | 422 | passed | ||
3741 | Observation | observation id that already exists in DB | 409 | 409 | passed | |
3842 | observation id that repeated in the request | 409 | 409 | passed | ||
3943 | observation reference encounter that is not in payload | 409 | 409 | passed | ||
4044 | Period validation handled | handled | handled | passed | ||
4145 | issued > current date_time | 409 | 409 | passed | ||
4246 | Performer validation handled | handled | handled | passed | ||
4347 | All value_types handled | quantity codeable_concept string boolean range ratio sampled_data time date_time period | passed | |||
4448 | Component types | + | + | |||
4549 | date < permitted min date | 422 | 422 | passed | ||
4650 | Immunization | Valid request case immunization is given | passed | |||
4751 | Valid request case immunization is not given | passed | ||||
4852 | Historical immunization | passed | ||||
4953 | immunization id that already exists in DB | passed | ||||
5054 | immunization id that repeated in the request | passed | ||||
5155 | immunization reference encounter that is not in payload | passed | ||||
5256 | date < permitted min date | 422 | 422 | passed | ||
5357 | Allergy Intolerance | Valid request | Package contains 2 AIs | 202 created | 202 created | passed |
5458 | Allergy Intolerance id that already exists in DB | 409 | 409 | passed | ||
5559 | Allergy Intolerance id that repeated in the request | 422 | 422 | passed | ||
5660 | Allergy Intolerance reference encounter that is not in payload | 422 | 422 | passed | ||
5761 | Onset date is longer than the current date time | 422 | 422 | passed | ||
5862 | Last occurrence is longer than the current date time | 422 | 422 | passed | ||
5963 | Performer validation handled | handled | handled | passed | ||
6064 | date < permitted min date | 422 | 422 | passed |
...