|
5 | 5 | "description": "This Postman collection includes example scenarios for each of the Validated Relationship Service (VRS) API endpoints, covering both valid and invalid request scenarios.\n\nThe collection is pointed towards the VRS sandbox environment, which will return a specific example response based on the request sent. All data shown in the requests or responses is test data.\n\nOur sandbox environment only covers the scenarios listed in the Postman collection and is open access. It does not allow you to test authorisation or any scenarios beyond the ones documented.\n\nFull specification is available at [https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service](https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service)", |
6 | 6 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", |
7 | 7 | "_exporter_id": "34042403", |
8 | | - "_collection_link": "https://www.postman.com/jackplowman2/validate-relationship-service-sandbox-03-09-25/collection/34042403-298358e5-ad8f-4875-a8e3-acb4600712f0?action=share&source=collection_link&creator=34042403" |
| 8 | + "_collection_link": "https://www.postman.com/jackplowman2/workspace/validate-relationship-service-sandbox-03-09-25/collection/34042403-298358e5-ad8f-4875-a8e3-acb4600712f0?action=share&source=collection_link&creator=34042403" |
9 | 9 | }, |
10 | 10 | "item": [ |
11 | 11 | { |
|
231 | 231 | } |
232 | 232 | ], |
233 | 233 | "url": { |
234 | | - "raw": "{{api_base_url}}/QuestionnaireResponse?referenceCode=19318ZGLAB", |
| 234 | + "raw": "{{api_base_url}}/QuestionnaireResponse?ID=156e1560-e532-4e2a-85ad-5aeff03dc43e", |
235 | 235 | "host": [ |
236 | 236 | "{{api_base_url}}" |
237 | 237 | ], |
|
240 | 240 | ], |
241 | 241 | "query": [ |
242 | 242 | { |
243 | | - "key": "referenceCode", |
244 | | - "value": "19318ZGLAB" |
| 243 | + "key": "ID", |
| 244 | + "value": "156e1560-e532-4e2a-85ad-5aeff03dc43e" |
245 | 245 | } |
246 | 246 | ] |
247 | 247 | }, |
|
257 | 257 | "script": { |
258 | 258 | "exec": [ |
259 | 259 | "const expectedResponseBody = {", |
260 | | - " \"resourceType\": \"OperationOutcome\",", |
261 | | - " \"issue\": [", |
262 | | - " {", |
263 | | - " \"severity\": \"error\",", |
264 | | - " \"code\": \"required\",", |
265 | | - " \"details\": {", |
266 | | - " \"coding\": [", |
267 | | - " {", |
268 | | - " \"system\": \"https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode\",", |
269 | | - " \"code\": \"MISSING_REFERENCE_CODE\",", |
270 | | - " \"display\": \"Missing reference code\"", |
271 | | - " }", |
272 | | - " ]", |
273 | | - " },", |
274 | | - " \"diagnostics\": \"The reference code parameter is required but was not provided.\"", |
275 | | - " }", |
276 | | - " ]", |
| 260 | + " \"resourceType\": \"OperationOutcome\",", |
| 261 | + " \"issue\": [", |
| 262 | + " {", |
| 263 | + " \"severity\": \"error\",", |
| 264 | + " \"code\": \"required\",", |
| 265 | + " \"details\": {", |
| 266 | + " \"coding\": [", |
| 267 | + " {", |
| 268 | + " \"system\": \"https://fhir.nhs.uk/STU3/CodeSystem/Spine-ErrorOrWarningCode-1\",", |
| 269 | + " \"code\": \"BAD_REQUEST\",", |
| 270 | + " \"display\": \"Bad request\"", |
| 271 | + " }", |
| 272 | + " ]", |
| 273 | + " },", |
| 274 | + " \"diagnostics\": \"The access request ID parameter is required but was not provided.\"", |
| 275 | + " }", |
| 276 | + " ]", |
277 | 277 | "};", |
278 | 278 | "", |
279 | 279 | "pm.test(\"Status code is 400\", function () {", |
|
325 | 325 | "script": { |
326 | 326 | "exec": [ |
327 | 327 | "const expectedResponseBody = {", |
328 | | - " \"resourceType\": \"OperationOutcome\",", |
329 | | - " \"issue\": [", |
330 | | - " {", |
331 | | - " \"severity\": \"error\",", |
332 | | - " \"code\": \"invalid\",", |
333 | | - " \"details\": {", |
334 | | - " \"coding\": [", |
335 | | - " {", |
336 | | - " \"system\": \"https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode\",", |
337 | | - " \"code\": \"INVALID_REFERENCE_CODE\",", |
338 | | - " \"display\": \"Invalid reference code\"", |
339 | | - " }", |
340 | | - " ]", |
341 | | - " },", |
342 | | - " \"diagnostics\": \"The specified reference code format is invalid. Reference codes must be alphanumeric.\"", |
343 | | - " }", |
344 | | - " ]", |
| 328 | + " \"resourceType\": \"OperationOutcome\",", |
| 329 | + " \"issue\": [", |
| 330 | + " {", |
| 331 | + " \"severity\": \"error\",", |
| 332 | + " \"code\": \"required\",", |
| 333 | + " \"details\": {", |
| 334 | + " \"coding\": [", |
| 335 | + " {", |
| 336 | + " \"system\": \"https://fhir.nhs.uk/STU3/CodeSystem/Spine-ErrorOrWarningCode-1\",", |
| 337 | + " \"code\": \"BAD_REQUEST\",", |
| 338 | + " \"display\": \"Bad request\"", |
| 339 | + " }", |
| 340 | + " ]", |
| 341 | + " },", |
| 342 | + " \"diagnostics\": \"The access request ID parameter is required but was not provided.\"", |
| 343 | + " }", |
| 344 | + " ]", |
345 | 345 | "};", |
346 | 346 | "", |
347 | 347 | "pm.test(\"Status code is 400\", function () {", |
|
399 | 399 | "script": { |
400 | 400 | "exec": [ |
401 | 401 | "const expectedResponseBody = {", |
402 | | - " \"resourceType\": \"OperationOutcome\",", |
403 | | - " \"issue\": [", |
404 | | - " {", |
405 | | - " \"severity\": \"error\",", |
406 | | - " \"code\": \"not-found\",", |
407 | | - " \"details\": {", |
408 | | - " \"coding\": [", |
409 | | - " {", |
410 | | - " \"system\": \"https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode\",", |
411 | | - " \"code\": \"QUESTIONNAIRE_RESPONSE_NOT_FOUND\",", |
412 | | - " \"display\": \"Questionnaire response not found\"", |
413 | | - " }", |
414 | | - " ]", |
415 | | - " },", |
416 | | - " \"diagnostics\": \"The Questionnaire response could not be found using the provided reference code.\"", |
417 | | - " }", |
418 | | - " ]", |
| 402 | + " \"resourceType\": \"OperationOutcome\",", |
| 403 | + " \"issue\": [", |
| 404 | + " {", |
| 405 | + " \"severity\": \"error\",", |
| 406 | + " \"code\": \"not-found\",", |
| 407 | + " \"details\": {", |
| 408 | + " \"coding\": [", |
| 409 | + " {", |
| 410 | + " \"system\": \"https://fhir.nhs.uk/STU3/CodeSystem/Spine-ErrorOrWarningCode-1\",", |
| 411 | + " \"code\": \"QUESTIONNAIRE_RESPONSE_NOT_FOUND\",", |
| 412 | + " \"display\": \"Questionnaire response not found\"", |
| 413 | + " }", |
| 414 | + " ]", |
| 415 | + " },", |
| 416 | + " \"diagnostics\": \"The Questionnaire response could not be found using the provided access request ID.\"", |
| 417 | + " }", |
| 418 | + " ]", |
419 | 419 | "};", |
420 | 420 | "", |
421 | 421 | "pm.test(\"Status code is 404\", function () {", |
|
447 | 447 | } |
448 | 448 | ], |
449 | 449 | "url": { |
450 | | - "raw": "{{api_base_url}}/QuestionnaireResponse?referenceCode=ABC123XY", |
| 450 | + "raw": "{{api_base_url}}/QuestionnaireResponse?ID=60d09b82-f4bb-41f9-b41e-767999b4ac9b", |
451 | 451 | "host": [ |
452 | 452 | "{{api_base_url}}" |
453 | 453 | ], |
|
456 | 456 | ], |
457 | 457 | "query": [ |
458 | 458 | { |
459 | | - "key": "referenceCode", |
460 | | - "value": "ABC123XY" |
| 459 | + "key": "ID", |
| 460 | + "value": "60d09b82-f4bb-41f9-b41e-767999b4ac9b" |
461 | 461 | } |
462 | 462 | ] |
463 | 463 | }, |
|
487 | 487 | " \"details\": {", |
488 | 488 | " \"coding\": [", |
489 | 489 | " {", |
490 | | - " \"code\": \"19318ZGLAB\",", |
491 | | - " \"display\": \"19318ZGLAB\"", |
| 490 | + " \"code\": \"156e1560-e532-4e2a-85ad-5aeff03dc43e\",", |
| 491 | + " \"display\": \"156e1560-e532-4e2a-85ad-5aeff03dc43e\"", |
492 | 492 | " }", |
493 | 493 | " ]", |
494 | 494 | " }", |
|
567 | 567 | " \"details\": {", |
568 | 568 | " \"coding\": [", |
569 | 569 | " {", |
570 | | - " \"code\": \"19318ZGLAB\",", |
571 | | - " \"display\": \"19318ZGLAB\"", |
| 570 | + " \"code\": \"156e1560-e532-4e2a-85ad-5aeff03dc43e\",", |
| 571 | + " \"display\": \"156e1560-e532-4e2a-85ad-5aeff03dc43e\"", |
572 | 572 | " }", |
573 | 573 | " ]", |
574 | 574 | " }", |
|
713 | 713 | " \"details\": {", |
714 | 714 | " \"coding\": [", |
715 | 715 | " {", |
716 | | - " \"code\": \"19318ZGLAB\",", |
717 | | - " \"display\": \"19318ZGLAB\"", |
| 716 | + " \"code\": \"156e1560-e532-4e2a-85ad-5aeff03dc43e\",", |
| 717 | + " \"display\": \"156e1560-e532-4e2a-85ad-5aeff03dc43e\"", |
718 | 718 | " }", |
719 | 719 | " ]", |
720 | 720 | " }", |
|
792 | 792 | " \"details\": {", |
793 | 793 | " \"coding\": [", |
794 | 794 | " {", |
795 | | - " \"code\": \"19318ZGLAB\",", |
796 | | - " \"display\": \"19318ZGLAB\"", |
| 795 | + " \"code\": \"156e1560-e532-4e2a-85ad-5aeff03dc43e\",", |
| 796 | + " \"display\": \"156e1560-e532-4e2a-85ad-5aeff03dc43e\"", |
797 | 797 | " }", |
798 | 798 | " ]", |
799 | 799 | " }", |
|
0 commit comments