Table of Contents |
---|
# | 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 | 422 | passed | |||
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 | ||
33 | condition id that repeated in the request | 409 | 409 | passed | |||
34 | condition reference wrong encounter (not from payload) | 409 | 409 | passed | |||
35 | onset_date longer than current datetime | 2300 г | 422 | 422 | passed | ||
36 | evidence reference observation that does not exist | 422 | 422 | passed | |||
37 | evidence reference observation that belongs to another patient | 422 | 422 | passed | |||
38 | evidence reference observation in entered_in_error status | 409 | can not reproduce | ||||
39 | asserter validation handled | true | true | passed | |||
40 | date < permitted min date | 422 | 422 | passed | |||
41 | Submit condition with 2 codes in different systems |
| 422 | 422 | passed | ||
42 | Observation | observation id that already exists in DB | 409 | 409 | passed | ||
43 | observation id that repeated in the request | 409 | 409 | passed | |||
44 | observation reference encounter that is not in payload | 409 | 409 | passed | |||
45 | Period validation handled | handled | handled | passed | |||
46 | issued > current date_time | 409 | 409 | passed | |||
47 | Performer validation handled | handled | handled | passed | |||
48 | All value_types handled | quantity codeable_concept string boolean range ratio sampled_data time date_time period | passed | ||||
49 | Component types | + | + | ||||
50 | date < permitted min date | 422 | 422 | passed | |||
51 | Immunization | Valid request case immunization is given | passed | ||||
52 | Valid request case immunization is not given | passed | |||||
53 | Historical immunization | passed | |||||
54 | immunization id that already exists in DB | passed | |||||
55 | immunization id that repeated in the request | passed | |||||
56 | immunization reference encounter that is not in payload | passed | |||||
57 | date < permitted min date | 422 | 422 | passed | |||
58 | Allergy Intolerance | Valid request | Package contains 2 AIs | 202 created | 202 created | passed | |
59 | Allergy Intolerance id that already exists in DB | 409 | 409 | passed | |||
60 | Allergy Intolerance id that repeated in the request | 422 | 422 | passed | |||
61 | Allergy Intolerance reference encounter that is not in payload | 422 | 422 | passed | |||
62 | Onset date is longer than the current date time | 422 | 422 | passed | |||
63 | Last occurrence is longer than the current date time | 422 | 422 | passed | |||
64 | Performer validation handled | handled | handled | passed | |||
65 | date < permitted min date | 422 | 422 | passed | |||
66 | Risk Assessment | Valid request | 201 created | 201 created | passed | ||
67 | Risk_assessment structure does not correspond to JSONSchema | 422 | 422 | passed | |||
68 | Risk_assessment id is not unique in the payload | 422 | 422 | passed | |||
69 | risk_assessment id already exists in DB | 422 | 422 | passed | |||
70 | context is not a current encounter | 422 | 422 | passed | |||
71 | asserted_date is in future | 422 | 422 | passed | |||
72 | asserted_date is less than allowed in config | 422 | 422 | passed | |||
73 | check that performer validation is handled | true | true | passed | |||
74 | check that reference validation is handled for reason_reference | true | true | passed | |||
75 | check that reference validation is handled for basis: observation | true | true | passed | |||
76 | check that reference validation is handled for basis: condition | true | true | passed | |||
77 | check that reference validation is handled for basis: diagnostic_report | ||||||
78 | check that period validation for when_period when_period | true | true | passed | |||
79 | Device | Valid request | 201 | 201 | passed | ||
80 | Device structure does not correspond to JSONSchema | 422 | 422 | passed | |||
81 | Device id is not unique in the payload | 422 | 422 | passed | |||
82 | Device id already exists in DB | 422 | 422 | passed | |||
83 | context is not a current encounter | 422 | 422 | passed | |||
84 | asserted_date is in future | 422 | 422 | passed | |||
85 | asserted_date is less than allowed in config | 422 | 422 | passed | |||
86 | check that performer validation is handled | true | true | passed | |||
87 | check that period validation for usage_period handled | true | true | passed | |||
88 | Medication Statement | Valid request | 201 | 201 | passed | ||
89 | MS structure does not correspond to JSONSchema | 422 | passed | ||||
90 | MS id is not unique in the payload | 422 | passed | ||||
91 | MS id already exists in DB | 422 | passed | ||||
92 | context is not a current encounter | 422 | passed | ||||
93 | asserted_date is in future | 422 | passed | ||||
94 | asserted_date is less than allowed in config | 422 | passed | ||||
95 | check that asserter validation is handled | true | passed | ||||
96 | check based_on validates as reference | true | |||||
97 | Diagnostic report | Valid request | 201 | 201 | passed | ||
98 | JSON Schema validation | 422 | 422 | passed | |||
99 | primary key validation: id duplicated in the request | 422 | 422 | passed | |||
100 | primary key validation: id duplicated in the DB | 422 | 422 | passed | |||
101 | Based on validation: Based_on is validated as a reference | true | |||||
102 | effective_period is validated as a Period | true | passed | ||||
103 | issued limits are validated | true | passed | ||||
104 | recorded by is validated as an employee | true | passed | ||||
105 | Only current encounter can be referenced as a encounter | true | passed | ||||
106 | performer is validated as an employee | true | passed | ||||
107 | As a managing organization could be submitted only current LE | true | passed | ||||
108 | Result interpreter is validated as an employee | true | passed | ||||
109 | Only one of the fields could be filled simultaneously results_interpreter.reference Or results_interpreter.text | true | |||||
110 | Only one of the fields could be filled simultaneously performer.reference OR performer.text | true | |||||
111 | primary source == true | primary_source==true, managing_organization is not filled | |||||
112 | primary source == false | primary_source==false performer.reference IS filled results_enterpreter.reference IS filled | |||||
113 | postprocessing is done | true | passed |
...