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
Copy file name to clipboardExpand all lines: tests/e2e_automation/utilities/error_constants.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
},
16
16
"empty_NHSNumber": {
17
17
"code": "INVALID",
18
-
"diagnostics": "Validation errors: contained[?(@.resourceType=='Patient')].identifier[0].value must be a non-empty string",
18
+
"diagnostics": "Validation errors: contained[?(@.resourceType=='Patient')].identifier[?(@.system=='https://fhir.nhs.uk/Id/nhs-number')].value must be a non-empty string",
19
19
},
20
20
"invalid_include": {
21
21
"code": "INVALID",
@@ -99,7 +99,7 @@
99
99
},
100
100
"invalid_nhsnumber_length": {
101
101
"code": "INVARIANT",
102
-
"diagnostics": "Validation errors: contained[?(@.resourceType=='Patient')].identifier[0].value must be 10 characters",
102
+
"diagnostics": "Validation errors: contained[?(@.resourceType=='Patient')].identifier[?(@.system=='https://fhir.nhs.uk/Id/nhs-number')].value must be 10 characters",
103
103
},
104
104
"no_forename": {
105
105
"code": "INVARIANT",
@@ -139,7 +139,7 @@
139
139
},
140
140
"invalid_mod11_nhsnumber": {
141
141
"code": "INVARIANT",
142
-
"diagnostics": "Validation errors: contained[?(@.resourceType=='Patient')].identifier[0].value is not a valid NHS number",
142
+
"diagnostics": "Validation errors: contained[?(@.resourceType=='Patient')].identifier[?(@.system=='https://fhir.nhs.uk/Id/nhs-number')].value is not a valid NHS number",
0 commit comments