Skip to content

Commit 53c9387

Browse files
NPA-5395: Update postman collection and examples with new link property on Consent bundle
1 parent 710792a commit 53c9387

22 files changed

+224
-2
lines changed

postman/Validate Relationship Service Sandbox.postman_collection.json

Lines changed: 147 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,12 @@
20512051
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
20522052
" \"total\": 2,",
20532053
" \"type\": \"searchset\",",
2054+
" \"link\": [",
2055+
" {",
2056+
" \"relation\": \"self\",",
2057+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000017&status=active&_include=Consent:performer&_include=Consent:patient\"",
2058+
" }",
2059+
" ],",
20542060
" \"entry\": [",
20552061
" {",
20562062
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",",
@@ -2472,6 +2478,12 @@
24722478
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
24732479
" \"total\": 2,",
24742480
" \"type\": \"searchset\",",
2481+
" \"link\": [",
2482+
" {",
2483+
" \"relation\": \"self\",",
2484+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000017&status=inactive\"",
2485+
" }",
2486+
" ],",
24752487
" \"entry\": [",
24762488
" {",
24772489
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1\",",
@@ -2697,6 +2709,12 @@
26972709
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
26982710
" \"total\": 4,",
26992711
" \"type\": \"searchset\",",
2712+
" \"link\": [",
2713+
" {",
2714+
" \"relation\": \"self\",",
2715+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000017&status=proposed&status=active&_include=Consent:patient\"",
2716+
" }",
2717+
" ],",
27002718
" \"entry\": [",
27012719
" {",
27022720
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",",
@@ -3080,6 +3098,12 @@
30803098
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
30813099
" \"total\": 3,",
30823100
" \"type\": \"searchset\",",
3101+
" \"link\": [",
3102+
" {",
3103+
" \"relation\": \"self\",",
3104+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022\"",
3105+
" }",
3106+
" ],",
30833107
" \"entry\": [",
30843108
" {",
30853109
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",",
@@ -3371,6 +3395,12 @@
33713395
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
33723396
" \"total\": 3,",
33733397
" \"type\": \"searchset\",",
3398+
" \"link\": [",
3399+
" {",
3400+
" \"relation\": \"self\",",
3401+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:patient\"",
3402+
" }",
3403+
" ],",
33743404
" \"entry\": [",
33753405
" {",
33763406
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2\",",
@@ -3811,6 +3841,12 @@
38113841
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
38123842
" \"total\": 3,",
38133843
" \"type\": \"searchset\",",
3844+
" \"link\": [",
3845+
" {",
3846+
" \"relation\": \"self\",",
3847+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:performer\"",
3848+
" }",
3849+
" ],",
38143850
" \"entry\": [",
38153851
" {",
38163852
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",",
@@ -4225,6 +4261,12 @@
42254261
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
42264262
" \"total\": 3,",
42274263
" \"type\": \"searchset\",",
4264+
" \"link\": [",
4265+
" {",
4266+
" \"relation\": \"self\",",
4267+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:performer&_include=Consent:patient\"",
4268+
" }",
4269+
" ],",
42284270
" \"entry\": [",
42294271
" {",
42304272
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",",
@@ -4788,6 +4830,12 @@
47884830
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
47894831
" \"total\": 3,",
47904832
" \"type\": \"searchset\",",
4833+
" \"link\": [",
4834+
" {",
4835+
" \"relation\": \"self\",",
4836+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100\"",
4837+
" }",
4838+
" ],",
47914839
" \"entry\": [",
47924840
" {",
47934841
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",",
@@ -5079,6 +5127,12 @@
50795127
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
50805128
" \"total\": 3,",
50815129
" \"type\": \"searchset\",",
5130+
" \"link\": [",
5131+
" {",
5132+
" \"relation\": \"self\",",
5133+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100&_include=Consent:performer&_include=Consent:patient\"",
5134+
" }",
5135+
" ],",
50825136
" \"entry\": [",
50835137
" {",
50845138
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2\",",
@@ -5544,6 +5598,12 @@
55445598
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
55455599
" \"total\": 3,",
55465600
" \"type\": \"searchset\",",
5601+
" \"link\": [",
5602+
" {",
5603+
" \"relation\": \"self\",",
5604+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100&_include=Consent:performer\"",
5605+
" }",
5606+
" ],",
55475607
" \"entry\": [",
55485608
" {",
55495609
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",",
@@ -5958,6 +6018,12 @@
59586018
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
59596019
" \"total\": 3,",
59606020
" \"type\": \"searchset\",",
6021+
" \"link\": [",
6022+
" {",
6023+
" \"relation\": \"self\",",
6024+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100&_include=Consent:patient\"",
6025+
" }",
6026+
" ],",
59616027
" \"entry\": [",
59626028
" {",
59636029
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2\",",
@@ -6300,6 +6366,12 @@
63006366
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
63016367
" \"total\": 0,",
63026368
" \"type\": \"searchset\",",
6369+
" \"link\": [",
6370+
" {",
6371+
" \"relation\": \"self\",",
6372+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000025&_include=Consent:performer&_include=Consent:patient\"",
6373+
" }",
6374+
" ],",
63036375
" \"entry\": []",
63046376
"}",
63056377
"",
@@ -6312,7 +6384,8 @@
63126384
" pm.expect(responseJson).to.eql(expectedResponseBody);",
63136385
"});"
63146386
],
6315-
"type": "text/javascript"
6387+
"type": "text/javascript",
6388+
"packages": {}
63166389
}
63176390
}
63186391
],
@@ -6349,6 +6422,12 @@
63496422
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
63506423
" \"total\": 1,",
63516424
" \"type\": \"searchset\",",
6425+
" \"link\": [",
6426+
" {",
6427+
" \"relation\": \"self\",",
6428+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010\"",
6429+
" }",
6430+
" ],",
63526431
" \"entry\": [",
63536432
" {",
63546433
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",",
@@ -6480,6 +6559,12 @@
64806559
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
64816560
" \"total\": 1,",
64826561
" \"type\": \"searchset\",",
6562+
" \"link\": [",
6563+
" {",
6564+
" \"relation\": \"self\",",
6565+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer&_include=Consent:patient\"",
6566+
" }",
6567+
" ],",
64836568
" \"entry\": [",
64846569
" {",
64856570
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",",
@@ -6704,6 +6789,12 @@
67046789
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
67056790
" \"total\": 1,",
67066791
" \"type\": \"searchset\",",
6792+
" \"link\": [",
6793+
" {",
6794+
" \"relation\": \"self\",",
6795+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019\"",
6796+
" }",
6797+
" ],",
67076798
" \"entry\": [",
67086799
" {",
67096800
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",",
@@ -6835,6 +6926,12 @@
68356926
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
68366927
" \"total\": 1,",
68376928
" \"type\": \"searchset\",",
6929+
" \"link\": [",
6930+
" {",
6931+
" \"relation\": \"self\",",
6932+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:performer&_include=Consent:patient\"",
6933+
" }",
6934+
" ],",
68386935
" \"entry\": [",
68396936
" {",
68406937
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",",
@@ -7803,6 +7900,12 @@
78037900
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
78047901
" \"total\": 1,",
78057902
" \"type\": \"searchset\",",
7903+
" \"link\": [",
7904+
" {",
7905+
" \"relation\": \"self\",",
7906+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010\"",
7907+
" }",
7908+
" ],",
78067909
" \"entry\": [",
78077910
" {",
78087911
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/WWCC67T1\",",
@@ -7929,6 +8032,12 @@
79298032
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
79308033
" \"total\": 1,",
79318034
" \"type\": \"searchset\",",
8035+
" \"link\": [",
8036+
" {",
8037+
" \"relation\": \"self\",",
8038+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:patient\"",
8039+
" }",
8040+
" ],",
79328041
" \"entry\": [",
79338042
" {",
79348043
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/DFCC67F5\",",
@@ -8082,6 +8191,12 @@
80828191
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
80838192
" \"total\": 1,",
80848193
" \"type\": \"searchset\",",
8194+
" \"link\": [",
8195+
" {",
8196+
" \"relation\": \"self\",",
8197+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer\"",
8198+
" }",
8199+
" ],",
80858200
" \"entry\": [",
80868201
" {",
80878202
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",",
@@ -8226,6 +8341,12 @@
82268341
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
82278342
" \"total\": 1,",
82288343
" \"type\": \"searchset\",",
8344+
" \"link\": [",
8345+
" {",
8346+
" \"relation\": \"self\",",
8347+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer&_include=Consent:patient\"",
8348+
" }",
8349+
" ],",
82298350
" \"entry\": [",
82308351
" {",
82318352
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720\",",
@@ -8447,6 +8568,12 @@
84478568
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
84488569
" \"total\": 1,",
84498570
" \"type\": \"searchset\",",
8571+
" \"link\": [",
8572+
" {",
8573+
" \"relation\": \"self\",",
8574+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019\"",
8575+
" }",
8576+
" ],",
84508577
" \"entry\": [",
84518578
" {",
84528579
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9\",",
@@ -8573,6 +8700,12 @@
85738700
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
85748701
" \"total\": 1,",
85758702
" \"type\": \"searchset\",",
8703+
" \"link\": [",
8704+
" {",
8705+
" \"relation\": \"self\",",
8706+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:patient\"",
8707+
" }",
8708+
" ],",
85768709
" \"entry\": [",
85778710
" {",
85788711
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2\",",
@@ -8730,6 +8863,12 @@
87308863
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
87318864
" \"total\": 1,",
87328865
" \"type\": \"searchset\",",
8866+
" \"link\": [",
8867+
" {",
8868+
" \"relation\": \"self\",",
8869+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:performer\"",
8870+
" }",
8871+
" ],",
87338872
" \"entry\": [",
87348873
" {",
87358874
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",",
@@ -8873,6 +9012,12 @@
88739012
" \"timestamp\": \"2020-08-26T14:00:00+00:00\",",
88749013
" \"total\": 1,",
88759014
" \"type\": \"searchset\",",
9015+
" \"link\": [",
9016+
" {",
9017+
" \"relation\": \"self\",",
9018+
" \"uri\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:performer&_include=Consent:patient\"",
9019+
" }",
9020+
" ],",
88769021
" \"entry\": [",
88779022
" {",
88789023
" \"fullUrl\": \"https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742\",",
@@ -9956,4 +10101,4 @@
995610101
"type": "string"
995710102
}
995810103
]
9959-
}
10104+
}

specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle:
88
timestamp: "2020-08-26T14:00:00+00:00"
99
total: 2
1010
type: searchset
11+
link:
12+
- relation: self
13+
uri: https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000017&status=active&_include=Consent:performer&_include=Consent:patient
1114
entry:
1215
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742"
1316
resource:

specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ ConsentMultipleRelationshipsStatusInactiveBundle:
66
timestamp: '2020-08-26T14:00:00+00:00'
77
total: 2
88
type: searchset
9+
link:
10+
- relation: self
11+
uri: https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000017&status=inactive
912
entry:
1013
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/AATD11A1
1114
resource:

specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
66
timestamp: '2020-08-26T14:00:00+00:00'
77
total: 4
88
type: searchset
9+
link:
10+
- relation: self
11+
uri: https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000017&status=proposed&status=active&_include=Consent:patient
912
entry:
1013
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/BBCC67E9
1114
resource:

specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ ConsentMultipleRelationshipsIncludePatientBundle:
77
timestamp: '2020-08-26T14:00:00+00:00'
88
total: 3
99
type: searchset
10+
link:
11+
- relation: self
12+
uri: https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:patient
1013
entry:
1114
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2
1215
resource:

specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ ConsentMultipleRelationshipsIncludePerformerPatientBundle:
88
timestamp: '2020-08-26T14:00:00+00:00'
99
total: 3
1010
type: searchset
11+
link:
12+
- relation: self
13+
uri: https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:performer&_include=Consent:patient
1114
entry:
1215
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742
1316
resource:

specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ ConsentMultipleRelationshipsIncludePerformerBundle:
77
timestamp: '2020-08-26T14:00:00+00:00'
88
total: 3
99
type: searchset
10+
link:
11+
- relation: self
12+
uri: https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:performer
1013
entry:
1114
- fullUrl: >-
1215
https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/BE974742

specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ ConsentMultipleRelationshipsSinglePatientIncludePatientBundle:
66
timestamp: '2020-08-26T14:00:00+00:00'
77
total: 3
88
type: searchset
9+
link:
10+
- relation: self
11+
uri: https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100&_include=Consent:patient
912
entry:
1013
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/A3CC67E2
1114
resource:

0 commit comments

Comments
 (0)