|
11 | 11 | { |
12 | 12 | "resource": { |
13 | 13 | "resourceType": "Patient", |
14 | | - "id": "0198c7a5-79c9-724d-a5a3-9f2f1be9bbd7", |
| 14 | + "id": "9340157B-6973-4209-9B57-BF6C64F29E46", |
15 | 15 | "meta": { |
| 16 | + "versionId": "8840260017698329728", |
16 | 17 | "profile": [ |
17 | 18 | "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1" |
18 | | - ], |
19 | | - "versionId": "242f9bf749401a08c0b2e5afde27df2e" |
| 19 | + ] |
20 | 20 | }, |
21 | 21 | "extension": [ |
22 | 22 | { |
23 | 23 | "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-RegistrationDetails-1", |
24 | 24 | "extension": [ |
25 | 25 | { |
26 | | - "url": "registrationPeriod", |
27 | | - "valuePeriod": { |
28 | | - "start": "2025-08-20" |
29 | | - } |
30 | | - }, |
31 | | - { |
32 | | - "url": "registrationType", |
33 | | - "valueCodeableConcept": { |
34 | | - "coding": [ |
35 | | - { |
36 | | - "system": "https://fhir.nhs.uk/STU3/CodeSystem/CareConnect-RegistrationType-1", |
37 | | - "code": "R", |
38 | | - "display": "Regular" |
39 | | - } |
40 | | - ] |
| 26 | + "url": "preferredBranchSurgery", |
| 27 | + "valueReference": { |
| 28 | + "reference": "Location/EB3994A6-5A87-4B53-A414-913137072F57" |
41 | 29 | } |
42 | 30 | } |
43 | 31 | ] |
|
55 | 43 | "code": "01", |
56 | 44 | "display": "Number present and verified" |
57 | 45 | } |
58 | | - ] |
| 46 | + ], |
| 47 | + "text": "Number present and verified" |
59 | 48 | } |
60 | 49 | } |
61 | 50 | ], |
62 | 51 | "system": "https://fhir.nhs.uk/Id/nhs-number", |
63 | | - "value": "9736169693" |
| 52 | + "value": "{{jsonPath request.body '$.parameter[0].valueIdentifier.value'}}" |
64 | 53 | } |
65 | 54 | ], |
66 | | - "active": true, |
67 | | - "name": [ |
68 | | - { |
69 | | - "use": "official", |
70 | | - "family": "Dean", |
71 | | - "prefix": [ |
72 | | - "Miss" |
73 | | - ], |
74 | | - "given": [ |
75 | | - "Maggie", |
76 | | - "Iris" |
77 | | - ] |
78 | | - } |
| 55 | + {{^patient}} |
| 56 | + "name": [ |
| 57 | + { |
| 58 | + "use": "official", |
| 59 | + "family": "Mache", |
| 60 | + "given": [ |
| 61 | + "Adam", |
| 62 | + "Roy" |
79 | 63 | ], |
80 | | - "gender": "female", |
81 | | - "birthDate": "2014-11-13", |
82 | | - "address": [ |
83 | | - { |
84 | | - "use": "home", |
85 | | - "line": [ |
86 | | - "216 Warley Road", |
87 | | - "HALIFAX" |
88 | | - ], |
89 | | - "postalCode": "HX2 0BQ", |
90 | | - "country": "GBR" |
91 | | - } |
| 64 | + "prefix": [ |
| 65 | + "Mr" |
| 66 | + ] |
| 67 | + } |
| 68 | + ], |
| 69 | + "gender": "male", |
| 70 | + "birthDate": "2022-03-11", |
| 71 | + "address": [ |
| 72 | + { |
| 73 | + "use": "home", |
| 74 | + "type": "physical", |
| 75 | + "line": [ |
| 76 | + "57 Louth Road" |
92 | 77 | ], |
93 | | - "managingOrganization": { |
94 | | - "reference": "Organization/B84012" |
95 | | - } |
| 78 | + "city": "Grimsby", |
| 79 | + "postalCode": "DN33 2HR" |
96 | 80 | } |
97 | | - }, |
| 81 | + ], |
| 82 | + {{/patient}} |
| 83 | + {{#patient}} |
| 84 | + "name": [ |
| 85 | + { |
| 86 | + "use": "official", |
| 87 | + "text": "{{patient.name.0.given.0}} {{patient.name.0.family}}", |
| 88 | + "family": "{{patient.name.0.family}}", |
| 89 | + "given": [ |
| 90 | + "{{patient.name.0.given.0}}" |
| 91 | + ], |
| 92 | + "prefix": [ |
| 93 | + "{{patient.name.0.prefix.0}}" |
| 94 | + ] |
| 95 | + } |
| 96 | + ], |
| 97 | + "gender": "{{ patient.gender }}", |
| 98 | + "birthDate": "{{ patient.birthDate }}", |
| 99 | + "address": [ |
| 100 | + { |
| 101 | + "use": "home", |
| 102 | + "type": "physical", |
| 103 | + "line": [ |
| 104 | + "{{ patient.address.0.line.0 }}", |
| 105 | + "{{ patient.address.0.line.1 }}" |
| 106 | + ], |
| 107 | + "postalCode": "{{ patient.address.0.postalCode }}" |
| 108 | + } |
| 109 | + ], |
| 110 | + {{/patient}} |
| 111 | + "generalPractitioner": [ |
| 112 | + { |
| 113 | + "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" |
| 114 | + } |
| 115 | + ], |
| 116 | + "managingOrganization": { |
| 117 | + "reference": "Organization/5E496953-065B-41F2-9577-BE8F2FBD0757" |
| 118 | + } |
| 119 | + } |
| 120 | + }, |
98 | 121 | { |
99 | 122 | "resource": { |
100 | 123 | "resourceType": "Organization", |
101 | | - "id": "B84012", |
| 124 | + "id": "5E496953-065B-41F2-9577-BE8F2FBD0757", |
102 | 125 | "meta": { |
103 | 126 | "profile": [ |
104 | 127 | "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1" |
|
116 | 139 | "identifier": [ |
117 | 140 | { |
118 | 141 | "system": "https://fhir.nhs.uk/Id/ods-organization-code", |
119 | | - "value": "B84012" |
| 142 | + "value": "5E496953-065B-41F2-9577-BE8F2FBD0757" |
120 | 143 | } |
121 | 144 | ], |
122 | 145 | "active": true, |
|
189 | 212 | "postalCode": "LS19 6BA" |
190 | 213 | }, |
191 | 214 | "managingOrganization": { |
192 | | - "reference": "Organization/B84012", |
193 | | - "display": "Spring Hall Group Practice" |
| 215 | + "reference": "Organization/5E496953-065B-41F2-9577-BE8F2FBD0757", |
| 216 | + "display": "TEMPLE SOWERBY MEDICAL PRACTICE" |
194 | 217 | } |
195 | 218 | } |
196 | 219 | }, |
|
350 | 373 | "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" |
351 | 374 | }, |
352 | 375 | "organization": { |
353 | | - "reference": "Organization/B84012" |
| 376 | + "reference": "Organization/5E496953-065B-41F2-9577-BE8F2FBD0757" |
354 | 377 | } |
355 | 378 | } |
356 | 379 | }, |
|
712 | 735 | "reference": "Practitioner/c012a388-1ef7-11ee-a34c-0a58a9feac02" |
713 | 736 | }, |
714 | 737 | "organization": { |
715 | | - "reference": "Organization/B84012" |
| 738 | + "reference": "Organization/5E496953-065B-41F2-9577-BE8F2FBD0757" |
716 | 739 | } |
717 | 740 | } |
718 | 741 | }, |
|
792 | 815 | "start": "2025-08-20T14:24:00+01:00" |
793 | 816 | }, |
794 | 817 | "serviceProvider": { |
795 | | - "reference": "Organization/B84012" |
| 818 | + "reference": "Organization/5E496953-065B-41F2-9577-BE8F2FBD0757" |
796 | 819 | } |
797 | 820 | } |
798 | 821 | }, |
|
1079 | 1102 | "reference": "Practitioner/01979be5-6c23-726d-9efa-d2998128340d" |
1080 | 1103 | }, |
1081 | 1104 | { |
1082 | | - "reference": "Organization/B84012" |
| 1105 | + "reference": "Organization/5E496953-065B-41F2-9577-BE8F2FBD0757" |
1083 | 1106 | } |
1084 | 1107 | ], |
1085 | 1108 | "valueQuantity": { |
|
1258 | 1281 | "issued": "2025-08-20T14:46:04+01:00", |
1259 | 1282 | "performer": [ |
1260 | 1283 | { |
1261 | | - "reference": "Organization/B84012" |
| 1284 | + "reference": "Organization/5E496953-065B-41F2-9577-BE8F2FBD0757" |
1262 | 1285 | } |
1263 | 1286 | ] |
1264 | 1287 | } |
|
0 commit comments