11{
22 "info" : {
3- "_postman_id" : " d04a9e84-1e0e-4bc0-a172-9f860e79cc30 " ,
4- "name" : " Validate Relationship Service Sandbox 06 /03/25" ,
3+ "_postman_id" : " 9dfa49f0-cd05-4c28-ab69-c098e2121954 " ,
4+ "name" : " Validate Relationship Service Sandbox 07 /03/25" ,
55 "description" : " Example usage of the Validate Relationship Service (VRS) sandbox.\n\n Full specification is available at [https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service](https://digital.nhs.uk/developer/api-catalogue/validated-relationship-service)" ,
66 "schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json" ,
7- "_exporter_id" : " 34042403 " ,
8- "_collection_link" : " https://www.postman.com/jackplowman2/validated- relationship-service-06-03-2025 /collection/fwk4h2j/validate-relationship-service-sandbox-06-03-25 ?action=share&source=collection_link&creator=34042403 "
7+ "_exporter_id" : " 21394218 " ,
8+ "_collection_link" : " https://www.postman.com/kamran-bjss/workspace/nhs-validate- relationship-service/collection/21394218-9dfa49f0-cd05-4c28-ab69-c098e2121954 ?action=share&source=collection_link&creator=21394218 "
99 },
1010 "item" : [
1111 {
306306 " {" ,
307307 " \" code\" : \" MTH\" ," ,
308308 " \" display\" : \" mother\" ," ,
309- " \" system\" : \" http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype \" " ,
309+ " \" system\" : \" http://terminology. hl7.org/CodeSystem/v3-RoleCode \" " ,
310310 " }" ,
311311 " ]" ,
312312 " }" ,
340340 " {" ,
341341 " \" code\" : \" MTH\" ," ,
342342 " \" display\" : \" mother\" ," ,
343- " \" system\" : \" http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype \" " ,
343+ " \" system\" : \" http://terminology. hl7.org/CodeSystem/v3-RoleCode \" " ,
344344 " }" ,
345345 " ]" ,
346346 " }" ,
373373 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
374374 " });"
375375 ],
376- "type" : " text/javascript"
376+ "type" : " text/javascript" ,
377+ "packages" : {}
377378 }
378379 }
379380 ],
475476 " {" ,
476477 " \" code\" : \" MTH\" ," ,
477478 " \" display\" : \" mother\" ," ,
478- " \" system\" : \" http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype \" " ,
479+ " \" system\" : \" http://terminology. hl7.org/CodeSystem/v3-RoleCode \" " ,
479480 " }" ,
480481 " ]" ,
481482 " }" ,
542543 " {" ,
543544 " \" code\" : \" MTH\" ," ,
544545 " \" display\" : \" mother\" ," ,
545- " \" system\" : \" http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype \" " ,
546+ " \" system\" : \" http://terminology. hl7.org/CodeSystem/v3-RoleCode \" " ,
546547 " }" ,
547548 " ]" ,
548549 " }" ,
575576 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
576577 " });"
577578 ],
578- "type" : " text/javascript"
579+ "type" : " text/javascript" ,
580+ "packages" : {}
579581 }
580582 }
581583 ],
714716 " {" ,
715717 " \" code\" : \" MTH\" ," ,
716718 " \" display\" : \" mother\" ," ,
717- " \" system\" : \" http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype \" " ,
719+ " \" system\" : \" http://terminology. hl7.org/CodeSystem/v3-RoleCode \" " ,
718720 " }" ,
719721 " ]" ,
720722 " }" ,
747749 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
748750 " });"
749751 ],
750- "type" : " text/javascript"
752+ "type" : " text/javascript" ,
753+ "packages" : {}
751754 }
752755 }
753756 ],
853856 " {" ,
854857 " \" code\" : \" MTH\" ," ,
855858 " \" display\" : \" mother\" ," ,
856- " \" system\" : \" http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype \" " ,
859+ " \" system\" : \" http://terminology. hl7.org/CodeSystem/v3-RoleCode \" " ,
857860 " }" ,
858861 " ]" ,
859862 " }" ,
886889 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
887890 " });"
888891 ],
889- "type" : " text/javascript"
892+ "type" : " text/javascript" ,
893+ "packages" : {}
890894 }
891895 }
892896 ],
10271031 " ]" ,
10281032 " }," ,
10291033 " \" diagnostics\" : \" Not a valid NHS Number provided for the 'identifier' parameter\" ," ,
1034+ " \" expression\" : \" RelatedPerson.identifier\" ," ,
10301035 " \" severity\" : \" error\" " ,
10311036 " }" ,
10321037 " ]," ,
10471052 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
10481053 " });"
10491054 ],
1050- "type" : " text/javascript"
1055+ "type" : " text/javascript" ,
1056+ "packages" : {}
10511057 }
10521058 }
10531059 ],
27652771 " {" ,
27662772 " \" system\" : \" http://terminology.hl7.org/CodeSystem/v3-RoleCode\" ," ,
27672773 " \" code\" : \" PRN\" ," ,
2768- " \" display\" : \" Parent \" " ,
2774+ " \" display\" : \" parent \" " ,
27692775 " }," ,
27702776 " {" ,
27712777 " \" system\" : \" http://terminology.hl7.org/CodeSystem/v3-RoleCode\" ," ,
30363042 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
30373043 " });"
30383044 ],
3039- "type" : " text/javascript"
3045+ "type" : " text/javascript" ,
3046+ "packages" : {}
30403047 }
30413048 }
30423049 ],
31063113 " {" ,
31073114 " \" system\" : \" http://terminology.hl7.org/CodeSystem/v3-RoleCode\" ," ,
31083115 " \" code\" : \" PRN\" ," ,
3109- " \" display\" : \" Parent \" " ,
3116+ " \" display\" : \" parent \" " ,
31103117 " }," ,
31113118 " {" ,
31123119 " \" system\" : \" http://terminology.hl7.org/CodeSystem/v3-RoleCode\" ," ,
35223529 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
35233530 " });"
35243531 ],
3525- "type" : " text/javascript"
3532+ "type" : " text/javascript" ,
3533+ "packages" : {}
35263534 }
35273535 }
35283536 ],
40564064 " {" ,
40574065 " \" system\" : \" http://terminology.hl7.org/CodeSystem/v3-RoleCode\" ," ,
40584066 " \" code\" : \" PRN\" ," ,
4059- " \" display\" : \" Parent \" " ,
4067+ " \" display\" : \" parent \" " ,
40604068 " }," ,
40614069 " {" ,
40624070 " \" system\" : \" http://terminology.hl7.org/CodeSystem/v3-RoleCode\" ," ,
41824190 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
41834191 " });"
41844192 ],
4185- "type" : " text/javascript"
4193+ "type" : " text/javascript" ,
4194+ "packages" : {}
41864195 }
41874196 }
41884197 ],
42344243 " {" ,
42354244 " \" system\" : \" https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\" ," ,
42364245 " \" version\" : \" 1\" ," ,
4237- " \" code\" : \" INVALID_VALUE \" ," ,
4246+ " \" code\" : \" INVALID_PARAMETER \" ," ,
42384247 " \" display\" : \" Required parameter(s) are invalid.\" " ,
42394248 " }" ,
42404249 " ]" ,
42454254 " " ,
42464255 " const responseJson = pm.response.json();" ,
42474256 " " ,
4248- " pm.test(\" Status code is 400\" , function () {" ,
4249- " pm.response.to.have.status(400);" ,
4250- " });" ,
4251- " " ,
4252- " pm.test(\" Should have correct error response\" , () => {" ,
4253- " pm.expect(responseJson.issue[0].details.coding[0].code).to.eql(\" INVALID_VALUE\" );" ,
4257+ " pm.test(\" Status code is 422\" , function () {" ,
4258+ " pm.response.to.have.status(422);" ,
42544259 " });" ,
42554260 " " ,
42564261 " pm.test(\" Should have correct response body\" , () => {" ,
42574262 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
42584263 " });"
42594264 ],
4260- "type" : " text/javascript"
4265+ "type" : " text/javascript" ,
4266+ "packages" : {}
42614267 }
42624268 }
42634269 ],
43164322 " " ,
43174323 " const responseJson = pm.response.json();" ,
43184324 " " ,
4319- " pm.test(\" Status code is 400 \" , function () {" ,
4320- " pm.response.to.have.status(400 );" ,
4325+ " pm.test(\" Status code is 422 \" , function () {" ,
4326+ " pm.response.to.have.status(422 );" ,
43214327 " });" ,
43224328 " " ,
43234329 " pm.test(\" Should have correct error response\" , () => {" ,
43284334 " pm.expect(responseJson).to.eql(expectedResponseBody);" ,
43294335 " });"
43304336 ],
4331- "type" : " text/javascript"
4337+ "type" : " text/javascript" ,
4338+ "packages" : {}
43324339 }
43334340 }
43344341 ],
51815188 "type" : " string"
51825189 }
51835190 ]
5184- }
5191+ }
0 commit comments