|
1012 | 1012 | "script": { |
1013 | 1013 | "exec": [ |
1014 | 1014 | "var expectedResponseBody = {", |
1015 | | - " \"resourceType\": \"OperationOutcome\",", |
1016 | | - " \"issue\": [", |
1017 | | - " {", |
1018 | | - " \"severity\": \"error\",", |
1019 | | - " \"code\": \"invalid\",", |
1020 | | - " \"diagnostics\": \"Not a valid NHS Number provided for the 'identifier' parameter\",", |
1021 | | - " \"expression\": \"RelatedPerson.identifier\",", |
1022 | | - " \"details\": {", |
1023 | | - " \"coding\": [", |
1024 | | - " {", |
1025 | | - " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
1026 | | - " \"version\": \"1\",", |
1027 | | - " \"code\": \"INVALID_IDENTIFIER_VALUE\",", |
1028 | | - " \"display\": \"Provided value is invalid\"", |
1029 | | - " }", |
1030 | | - " ]", |
1031 | | - " }", |
1032 | | - " }", |
1033 | | - " ]", |
| 1015 | + " \"issue\": [", |
| 1016 | + " {", |
| 1017 | + " \"code\": \"invalid\",", |
| 1018 | + " \"details\": {", |
| 1019 | + " \"coding\": [", |
| 1020 | + " {", |
| 1021 | + " \"code\": \"INVALID_IDENTIFIER_VALUE\",", |
| 1022 | + " \"display\": \"Provided value is invalid\",", |
| 1023 | + " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
| 1024 | + " \"version\": \"1\"", |
| 1025 | + " }", |
| 1026 | + " ]", |
| 1027 | + " },", |
| 1028 | + " \"diagnostics\": \"Not a valid NHS Number provided for the 'identifier' parameter\",", |
| 1029 | + " \"severity\": \"error\"", |
| 1030 | + " }", |
| 1031 | + " ],", |
| 1032 | + " \"resourceType\": \"OperationOutcome\"", |
1034 | 1033 | "}", |
1035 | 1034 | "", |
1036 | 1035 | "const responseJson = pm.response.json();", |
|
4230 | 4229 | "script": { |
4231 | 4230 | "exec": [ |
4232 | 4231 | "const expectedResponseBody = {", |
4233 | | - " \"resourceType\": \"OperationOutcome\",", |
4234 | | - " \"issue\": [", |
4235 | | - " {", |
4236 | | - " \"severity\": \"error\",", |
4237 | | - " \"code\": \"invalid\",", |
4238 | | - " \"diagnostics\": \"Invalid request with error - _include parameter is invalid.\",", |
4239 | | - " \"details\": {", |
4240 | | - " \"coding\": [", |
4241 | | - " {", |
4242 | | - " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
4243 | | - " \"version\": \"1\",", |
4244 | | - " \"code\": \"INVALID_VALUE\",", |
4245 | | - " \"display\": \"Required parameter(s) are invalid.\"", |
4246 | | - " }", |
4247 | | - " ]", |
4248 | | - " }", |
4249 | | - " }", |
4250 | | - " ]", |
| 4232 | + " \"resourceType\": \"OperationOutcome\",", |
| 4233 | + " \"issue\": [", |
| 4234 | + " {", |
| 4235 | + " \"code\": \"invalid\",", |
| 4236 | + " \"details\": {", |
| 4237 | + " \"coding\": [", |
| 4238 | + " {", |
| 4239 | + " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
| 4240 | + " \"version\": \"1\",", |
| 4241 | + " \"code\": \"INVALID_VALUE\",", |
| 4242 | + " \"display\": \"Required parameter(s) are invalid.\"", |
| 4243 | + " }", |
| 4244 | + " ]", |
| 4245 | + " },", |
| 4246 | + " \"severity\": \"error\"", |
| 4247 | + " }", |
| 4248 | + " ],", |
| 4249 | + " \"diagnostics\": \"Invalid request with error - _include parameter is invalid.\"", |
4251 | 4250 | "}", |
4252 | 4251 | "", |
4253 | 4252 | "const responseJson = pm.response.json();", |
|
4367 | 4366 | "script": { |
4368 | 4367 | "exec": [ |
4369 | 4368 | "const expectedResponseBody = {", |
4370 | | - " \"resourceType\": \"OperationOutcome\",", |
4371 | 4369 | " \"issue\": [", |
4372 | 4370 | " {", |
4373 | | - " \"severity\": \"error\",", |
4374 | 4371 | " \"code\": \"invalid\",", |
4375 | | - " \"diagnostics\": \"Not a valid NHS Number provided for the 'identifier' parameter\",", |
4376 | | - " \"expression\": \"RelatedPerson.identifier\",", |
| 4372 | + " \"diagnostics\": \"Invalid request with error - performer:identifier parameter is invalid.\",", |
4377 | 4373 | " \"details\": {", |
4378 | 4374 | " \"coding\": [", |
4379 | 4375 | " {", |
4380 | | - " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
4381 | | - " \"version\": \"1\",", |
4382 | 4376 | " \"code\": \"INVALID_IDENTIFIER_VALUE\",", |
4383 | | - " \"display\": \"Provided value is invalid\"", |
| 4377 | + " \"display\": \"Required parameter(s) are invalid.\",", |
| 4378 | + " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
| 4379 | + " \"version\": \"1\"", |
4384 | 4380 | " }", |
4385 | 4381 | " ]", |
4386 | | - " }", |
| 4382 | + " },", |
| 4383 | + " \"severity\": \"error\"", |
4387 | 4384 | " }", |
4388 | | - " ]", |
| 4385 | + " ],", |
| 4386 | + " \"resourceType\": \"OperationOutcome\"", |
4389 | 4387 | "}", |
4390 | 4388 | "", |
4391 | 4389 | "const responseJson = pm.response.json();", |
|
4438 | 4436 | " \"issue\": [", |
4439 | 4437 | " {", |
4440 | 4438 | " \"code\": \"invalid\",", |
| 4439 | + " \"diagnostics\": \"Invalid request with error - performer:identifier system parameter is invalid.\",", |
4441 | 4440 | " \"details\": {", |
4442 | 4441 | " \"coding\": [", |
4443 | 4442 | " {", |
4444 | 4443 | " \"code\": \"INVALID_IDENTIFIER_SYSTEM\",", |
4445 | | - " \"display\": \"Invalid identifier system.\",", |
| 4444 | + " \"display\": \"Required parameter(s) are invalid.\",", |
4446 | 4445 | " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
4447 | 4446 | " \"version\": \"1\"", |
4448 | 4447 | " }", |
4449 | 4448 | " ]", |
4450 | 4449 | " },", |
4451 | | - " \"diagnostics\": \"The identifier system is not valid.\",", |
4452 | 4450 | " \"severity\": \"error\"", |
4453 | 4451 | " }", |
4454 | 4452 | " ],", |
|
4502 | 4500 | "script": { |
4503 | 4501 | "exec": [ |
4504 | 4502 | "const expectedResponseBody = {", |
4505 | | - " \"resourceType\": \"OperationOutcome\",", |
4506 | | - " \"issue\": [", |
4507 | | - " {", |
4508 | | - " \"severity\": \"error\",", |
4509 | | - " \"code\": \"invalid\",", |
4510 | | - " \"diagnostics\": \"The 'identifier' parameter is required\",", |
4511 | | - " \"details\": {", |
4512 | | - " \"coding\": [", |
4513 | | - " {", |
4514 | | - " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
4515 | | - " \"version\": \"1\",", |
4516 | | - " \"code\": \"MISSING_IDENTIFIER_VALUE\",", |
4517 | | - " \"display\": \"Missing RelatedPerson NHS number.\"", |
4518 | | - " }", |
4519 | | - " ]", |
4520 | | - " }", |
4521 | | - " }", |
4522 | | - " ]", |
| 4503 | + " \"issue\": [", |
| 4504 | + " {", |
| 4505 | + " \"code\": \"invalid\",", |
| 4506 | + " \"diagnostics\": \"Invalid request with error - performer:identifier parameter not found.\",", |
| 4507 | + " \"details\": {", |
| 4508 | + " \"coding\": [", |
| 4509 | + " {", |
| 4510 | + " \"code\": \"MISSING_IDENTIFIER_VALUE\",", |
| 4511 | + " \"display\": \"Required parameter(s) are missing.\",", |
| 4512 | + " \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",", |
| 4513 | + " \"version\": \"1\"", |
| 4514 | + " }", |
| 4515 | + " ]", |
| 4516 | + " },", |
| 4517 | + " \"severity\": \"error\"", |
| 4518 | + " }", |
| 4519 | + " ],", |
| 4520 | + " \"resourceType\": \"OperationOutcome\"", |
4523 | 4521 | "}", |
4524 | 4522 | "", |
4525 | 4523 | "const responseJson = pm.response.json();", |
|
0 commit comments