You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"diagnostics": "Validation errors: contained[?(@.resourceType=='Patient')].identifier[?(@.system=='https://fhir.nhs.uk/Id/nhs-number')].value does not exists."
107
+
}
108
+
self.assertEqual(result, expected)
109
+
110
+
deftest_create_diagnostics_error_system(self):
111
+
"""Test create_diagnostics_error for system mismatch"""
112
+
result=create_diagnostics_error("system")
113
+
expected= {"diagnostics": "Validation errors: identifier[0].system doesn't match with the stored content"}
114
+
self.assertEqual(result, expected)
115
+
116
+
deftest_create_diagnostics_error_value(self):
117
+
"""Test create_diagnostics_error for value mismatch"""
118
+
result=create_diagnostics_error("value")
119
+
expected= {"diagnostics": "Validation errors: identifier[0].value doesn't match with the stored content"}
120
+
self.assertEqual(result, expected)
121
+
122
+
deftest_create_diagnostics_error_both(self):
123
+
"""Test create_diagnostics_error for both system and value mismatch"""
124
+
result=create_diagnostics_error("Both")
125
+
expected= {
126
+
"diagnostics": "Validation errors: identifier[0].system and identifier[0].value doesn't match with the stored content"
127
+
}
128
+
self.assertEqual(result, expected)
129
+
130
+
deftest_check_keys_in_sources_query_params(self):
131
+
"""Test check_keys_in_sources with queryStringParameters"""
0 commit comments