Skip to content

Commit f74dd4d

Browse files
committed
NPA-4514 Update Postman Collection
1 parent ecf46b0 commit f74dd4d

File tree

2 files changed

+5
-207
lines changed

2 files changed

+5
-207
lines changed

postman/Validate Relationship Service Sandbox.postman_collection.json

Lines changed: 4 additions & 205 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"info": {
3-
"_postman_id": "9dfa49f0-cd05-4c28-ab69-c098e2121954",
3+
"_postman_id": "069081b1-ce6b-422e-b620-90bc47c47c04",
44
"name": "Validate Relationship Service Sandbox 07/03/25",
55
"description": "Example usage of the Validate Relationship Service (VRS) sandbox.\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)",
66
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
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"
7+
"_exporter_id": "34042403",
8+
"_collection_link": "https://www.postman.com/jackplowman2/validate-relationship-service-sandbox-12-03-25/collection/xdqd3jw/validate-relationship-service-sandbox-07-03-25?action=share&source=collection_link&creator=34042403"
99
},
1010
"item": [
1111
{
@@ -4846,207 +4846,6 @@
48464846
" \"resourceType\": \"OperationOutcome\"",
48474847
"}",
48484848
"",
4849-
"pm.test(\"Status code is 400\", function () {",
4850-
" pm.response.to.have.status(400);",
4851-
"});",
4852-
"",
4853-
"pm.test(\"Should have correct response body\", () => {",
4854-
" var responseJson = pm.response.json();",
4855-
" pm.expect(responseJson).to.eql(expectedResponseBody);",
4856-
"});",
4857-
""
4858-
],
4859-
"type": "text/javascript",
4860-
"packages": {}
4861-
}
4862-
}
4863-
],
4864-
"request": {
4865-
"method": "POST",
4866-
"header": [],
4867-
"body": {
4868-
"mode": "raw",
4869-
"raw": "{\n \"resourceType\": \"Consent\",\n \"status\": \"active\",\n \"scope\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",\n \"code\": \"patient-privacy\",\n \"display\": \"Privacy Consent\"\n }\n ],\n \"text\": \"Patient Privacy Consent\"\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"INFA\",\n \"display\": \"Information Access\"\n }\n ],\n \"text\": \"Information Access Consent\"\n }\n ],\n \"patient\": {\n \"type\": \"Patient\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000012\"\n }\n },\n \"dateTime\": \"2025-02-11T14:30:00Z\",\n \"performer\": [\n {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000000\"\n }\n }\n ],\n \"provision\": {\n \"period\": {\n \"start\": \"2025-02-11\"\n },\n \"actor\": [\n {\n \"role\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",\n \"code\": \"GUARD\",\n \"display\": \"Guardian\"\n }\n ]\n },\n \"reference\": {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000000\"\n }\n }\n }\n ]\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consent-reason\",\n \"code\": \"TBC\",\n \"display\": \"TBC\"\n }\n ]\n }\n }\n ]\n}",
4870-
"options": {
4871-
"raw": {
4872-
"language": "json"
4873-
}
4874-
}
4875-
},
4876-
"url": {
4877-
"raw": "{{api_base_url}}/Consent",
4878-
"host": [
4879-
"{{api_base_url}}"
4880-
],
4881-
"path": [
4882-
"Consent"
4883-
]
4884-
}
4885-
},
4886-
"response": []
4887-
},
4888-
{
4889-
"name": "Missing required evidence",
4890-
"event": [
4891-
{
4892-
"listen": "test",
4893-
"script": {
4894-
"exec": [
4895-
"const expectedResponseBody = {",
4896-
" \"issue\": [",
4897-
" {",
4898-
" \"code\": \"invalid\",",
4899-
" \"diagnostics\": \"Missing evidence of responsibility.\",",
4900-
" \"details\": {",
4901-
" \"coding\": [",
4902-
" {",
4903-
" \"code\": \"MISSING_EVIDENCE\",",
4904-
" \"display\": \"Evidence of Responsibility is required.\",",
4905-
" \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",",
4906-
" \"version\": \"1\"",
4907-
" }",
4908-
" ]",
4909-
" },",
4910-
" \"severity\": \"error\"",
4911-
" }",
4912-
" ],",
4913-
" \"resourceType\": \"OperationOutcome\"",
4914-
"}",
4915-
"",
4916-
"pm.test(\"Status code is 422\", function () {",
4917-
" pm.response.to.have.status(422);",
4918-
"});",
4919-
"",
4920-
"pm.test(\"Should have correct response body\", () => {",
4921-
" var responseJson = pm.response.json();",
4922-
" pm.expect(responseJson).to.eql(expectedResponseBody);",
4923-
"});",
4924-
""
4925-
],
4926-
"type": "text/javascript",
4927-
"packages": {}
4928-
}
4929-
}
4930-
],
4931-
"request": {
4932-
"method": "POST",
4933-
"header": [],
4934-
"body": {
4935-
"mode": "raw",
4936-
"raw": "{\n \"resourceType\": \"Consent\",\n \"status\": \"active\",\n \"scope\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",\n \"code\": \"patient-privacy\",\n \"display\": \"Privacy Consent\"\n }\n ],\n \"text\": \"Patient Privacy Consent\"\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"INFA\",\n \"display\": \"Information Access\"\n }\n ],\n \"text\": \"Information Access Consent\"\n }\n ],\n \"patient\": {\n \"type\": \"Patient\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000012\"\n }\n },\n \"dateTime\": \"2025-02-11T14:30:00Z\",\n \"performer\": [\n {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000033\"\n }\n }\n ],\n \"provision\": {\n \"period\": {\n \"start\": \"2025-02-11\",\n \"end\": \"2026-02-11\"\n },\n \"actor\": [\n {\n \"role\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",\n \"code\": \"PRN\",\n \"display\": \"Parent\"\n }\n ]\n },\n \"reference\": {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000033\"\n }\n }\n }\n ]\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consent-reason\",\n \"code\": \"TBC\",\n \"display\": \"TBC\"\n }\n ]\n }\n }\n ]\n}",
4937-
"options": {
4938-
"raw": {
4939-
"language": "json"
4940-
}
4941-
}
4942-
},
4943-
"url": {
4944-
"raw": "{{api_base_url}}/Consent",
4945-
"host": [
4946-
"{{api_base_url}}"
4947-
],
4948-
"path": [
4949-
"Consent"
4950-
]
4951-
}
4952-
},
4953-
"response": []
4954-
},
4955-
{
4956-
"name": "Invalid access level",
4957-
"event": [
4958-
{
4959-
"listen": "test",
4960-
"script": {
4961-
"exec": [
4962-
"const expectedResponseBody = {",
4963-
" \"issue\": [",
4964-
" {",
4965-
" \"code\": \"invalid\",",
4966-
" \"diagnostics\": \"Access Level Code is not a valid.\",",
4967-
" \"details\": {",
4968-
" \"coding\": [",
4969-
" {",
4970-
" \"code\": \"INVALID_ACCESS_LEVEL\",",
4971-
" \"display\": \"Access Level is invalid.\",",
4972-
" \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",",
4973-
" \"version\": \"1\"",
4974-
" }",
4975-
" ]",
4976-
" },",
4977-
" \"severity\": \"error\"",
4978-
" }",
4979-
" ],",
4980-
" \"resourceType\": \"OperationOutcome\"",
4981-
"}",
4982-
"",
4983-
"pm.test(\"Status code is 400\", function () {",
4984-
" pm.response.to.have.status(400);",
4985-
"});",
4986-
"",
4987-
"pm.test(\"Should have correct response body\", () => {",
4988-
" var responseJson = pm.response.json();",
4989-
" pm.expect(responseJson).to.eql(expectedResponseBody);",
4990-
"});",
4991-
""
4992-
],
4993-
"type": "text/javascript",
4994-
"packages": {}
4995-
}
4996-
}
4997-
],
4998-
"request": {
4999-
"method": "POST",
5000-
"header": [],
5001-
"body": {
5002-
"mode": "raw",
5003-
"raw": "{\n \"resourceType\": \"Consent\",\n \"status\": \"active\",\n \"scope\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",\n \"code\": \"patient-privacy\",\n \"display\": \"Privacy Consent\"\n }\n ],\n \"text\": \"Patient Privacy Consent\"\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"INFA\",\n \"display\": \"Information Access\"\n }\n ],\n \"text\": \"Information Access Consent\"\n }\n ],\n \"patient\": {\n \"type\": \"Patient\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000000\"\n }\n },\n \"dateTime\": \"2025-02-11T14:30:00Z\",\n \"performer\": [\n {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000025\"\n }\n }\n ],\n \"provision\": {\n \"period\": {\n \"start\": \"2025-02-11\"\n },\n \"actor\": [\n {\n \"role\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",\n \"code\": \"GUARD\",\n \"display\": \"Guardian\"\n }\n ]\n },\n \"reference\": {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000025\"\n }\n }\n }\n ]\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consent-reason\",\n \"code\": \"TBC\",\n \"display\": \"TBC\"\n }\n ]\n }\n }\n ]\n}",
5004-
"options": {
5005-
"raw": {
5006-
"language": "json"
5007-
}
5008-
}
5009-
},
5010-
"url": {
5011-
"raw": "{{api_base_url}}/Consent",
5012-
"host": [
5013-
"{{api_base_url}}"
5014-
],
5015-
"path": [
5016-
"Consent"
5017-
]
5018-
}
5019-
},
5020-
"response": []
5021-
},
5022-
{
5023-
"name": "Patient age validation failure",
5024-
"event": [
5025-
{
5026-
"listen": "test",
5027-
"script": {
5028-
"exec": [
5029-
"const expectedResponseBody = {",
5030-
" \"issue\": [",
5031-
" {",
5032-
" \"code\": \"invalid\",",
5033-
" \"diagnostics\": \"Patient age failed business validation.\",",
5034-
" \"details\": {",
5035-
" \"coding\": [",
5036-
" {",
5037-
" \"code\": \"INVALID_PATIENT_AGE\",",
5038-
" \"display\": \"Patient age is invalid.\",",
5039-
" \"system\": \"https://fhir.nhs.uk/R4/CodeSystem/ValidatedRelationships-ErrorOrWarningCode\",",
5040-
" \"version\": \"1\"",
5041-
" }",
5042-
" ]",
5043-
" },",
5044-
" \"severity\": \"error\"",
5045-
" }",
5046-
" ],",
5047-
" \"resourceType\": \"OperationOutcome\"",
5048-
"}",
5049-
"",
50504849
"pm.test(\"Status code is 422\", function () {",
50514850
" pm.response.to.have.status(422);",
50524851
"});",
@@ -5067,7 +4866,7 @@
50674866
"header": [],
50684867
"body": {
50694868
"mode": "raw",
5070-
"raw": "{\n \"resourceType\": \"Consent\",\n \"status\": \"active\",\n \"scope\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",\n \"code\": \"patient-privacy\",\n \"display\": \"Privacy Consent\"\n }\n ],\n \"text\": \"Patient Privacy Consent\"\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"INFA\",\n \"display\": \"Information Access\"\n }\n ],\n \"text\": \"Information Access Consent\"\n }\n ],\n \"patient\": {\n \"type\": \"Patient\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000000\"\n }\n },\n \"dateTime\": \"2025-02-11T14:30:00Z\",\n \"performer\": [\n {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000041\"\n }\n }\n ],\n \"provision\": {\n \"period\": {\n \"start\": \"2025-02-11\"\n },\n \"actor\": [\n {\n \"role\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",\n \"code\": \"GUARD\",\n \"display\": \"Guardian\"\n }\n ]\n },\n \"reference\": {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000041\"\n }\n }\n }\n ]\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consent-reason\",\n \"code\": \"TBC\",\n \"display\": \"TBC\"\n }\n ]\n }\n }\n ]\n}",
4869+
"raw": "{\n \"resourceType\": \"Consent\",\n \"status\": \"active\",\n \"scope\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consentscope\",\n \"code\": \"patient-privacy\",\n \"display\": \"Privacy Consent\"\n }\n ],\n \"text\": \"Patient Privacy Consent\"\n },\n \"category\": [\n {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActCode\",\n \"code\": \"INFA\",\n \"display\": \"Information Access\"\n }\n ],\n \"text\": \"Information Access Consent\"\n }\n ],\n \"patient\": {\n \"type\": \"Patient\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000012\"\n }\n },\n \"dateTime\": \"2025-02-11T14:30:00Z\",\n \"performer\": [\n {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000000\"\n }\n }\n ],\n \"provision\": {\n \"period\": {\n \"start\": \"2025-02-11\"\n },\n \"actor\": [\n {\n \"role\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RoleCode\",\n \"code\": \"GUARD\",\n \"display\": \"Guardian\"\n }\n ]\n },\n \"reference\": {\n \"type\": \"RelatedPerson\",\n \"identifier\": {\n \"system\": \"https://fhir.nhs.uk/Id/nhs-number\",\n \"value\": \"9000000000\"\n }\n }\n }\n ]\n },\n \"extension\": [\n {\n \"url\": \"https://fhir.hl7.org.uk/StructureDefinition/Extension-statusReason\",\n \"valueCodeableConcept\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/consent-reason\",\n \"code\": \"TBC\",\n \"display\": \"TBC\"\n }\n ]\n }\n }\n ]\n}",
50714870
"options": {
50724871
"raw": {
50734872
"language": "json"

0 commit comments

Comments
 (0)