# | Block | Description | Input | Expected result | Actual result | Status |
---|---|---|---|---|---|---|
1 | Happy Pass Valid data | Single Valid Encounter reference existing Visit, Condition | Encounter |
200 created | 200 created | passed | |||
2 | Encouner+Visit | Encounter Visit | 201 | ||
3 | Encouner+Several conditions | Encounter 2 Conditions | 201 | ||
4 | Encounter + Several conditions + Historical condition | Encounter 2 Conditions (1 historical) | 201 | ||
5 | Encounter + Several Observations | Encounter 2 Observations | 201 | ||
6 | Encounter + Observations+Conditions Observations are Evidences for Conditions | Encounter 2 Observations 2 Conditions Conditions reference observations | 201 | ||
7 | Encounter+Several Allergy_Intolerances | Encounter 2 Allergy_Intolerances | 201 | ||
8 | Encounter+Immunizations | Encounter 2 Immunizations | 201 | ||
9 | Encounter+Immunizations+Observations Observations are reactions for Immunizations | Encounter 2 Immunizations 2 Observations Observations reference Immuizations | 201 | ||
10 | Full Package | Visit 25 Observations (10 historical) 5 immunization (4 historical, 1 with reaction) 5 allergy_intolerances | 201 | ||
11 |
Invalid 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 | |||
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 | ||||||
Encounter reference episode that is not active | 409 | |||||
Encounter reference condition that does not exist | 409 | |||||
Encounter reference condition that does not belong to the current patient | 409 | |||||
Encounter reference condition that canceled | 409 | |||||
Encounter reference division that does not exist | 409 | |||||
Encounter reference division that does not belong to the current legal_entity | 409 | |||||
Encounter reference division that is not active | 409 | |||||
Invalid Visit | not unique visit id | 409 | 409 | passed | ||
Period validation handled | handled | handled | passed | |||
Visit submitted but not referenced | not handled | 422 "description": "Visit with such ID is not found", |