|
55 | 55 | "code": "01", |
56 | 56 | "display": "Number present and verified" |
57 | 57 | } |
58 | | - ] |
| 58 | + ], |
| 59 | + "text": "Number present and verified" |
59 | 60 | } |
60 | 61 | } |
61 | 62 | ], |
62 | 63 | "system": "https://fhir.nhs.uk/Id/nhs-number", |
63 | | - "value": "9735406098" |
| 64 | + "value": "{{jsonPath request.body '$.parameter[0].valueIdentifier.value'}}" |
64 | 65 | } |
65 | 66 | ], |
66 | | - "active": true, |
| 67 | + {{^patient}} |
| 68 | + {{#patient}} |
67 | 69 | "name": [ |
68 | 70 | { |
69 | 71 | "use": "official", |
70 | | - "family": "Tyman", |
71 | | - "prefix": [ |
72 | | - "Mr" |
73 | | - ], |
| 72 | + "text": "{{patient.name.0.given.0}} {{patient.name.0.family}}", |
| 73 | + "family": "{{patient.name.0.family}}", |
74 | 74 | "given": [ |
75 | | - "Gerald" |
| 75 | + "{{patient.name.0.given.0}}" |
| 76 | + ], |
| 77 | + "prefix": [ |
| 78 | + "{{patient.name.0.prefix.0}}" |
76 | 79 | ] |
77 | 80 | } |
78 | 81 | ], |
79 | | - "gender": "male", |
80 | | - "birthDate": "1961-10-14", |
| 82 | + "gender": "{{ patient.gender }}", |
| 83 | + "birthDate": "{{ patient.birthDate }}", |
81 | 84 | "address": [ |
82 | 85 | { |
83 | 86 | "use": "home", |
| 87 | + "type": "physical", |
84 | 88 | "line": [ |
85 | | - "5 Beech Close", |
86 | | - "TREFYNWY" |
| 89 | + "{{ patient.address.0.line.0 }}", |
| 90 | + "{{ patient.address.0.line.1 }}" |
87 | 91 | ], |
88 | | - "postalCode": "NP25 5AP", |
89 | | - "country": "GBR" |
| 92 | + "postalCode": "{{ patient.address.0.postalCode }}" |
| 93 | + } |
| 94 | + ], |
| 95 | + {{/patient}} |
| 96 | + "generalPractitioner": [ |
| 97 | + { |
| 98 | + "reference": "Practitioner/2DB481A3-306A-4133-9491-1558161D6A2B" |
90 | 99 | } |
91 | 100 | ], |
92 | 101 | "managingOrganization": { |
93 | 102 | "reference": "Organization/N82090" |
94 | 103 | } |
95 | 104 | } |
96 | 105 | }, |
| 106 | + { |
| 107 | + "resource": { |
| 108 | + "resourceType": "Practitioner", |
| 109 | + "id": "2DB481A3-306A-4133-9491-1558161D6A2B", |
| 110 | + "meta": { |
| 111 | + "versionId": "4333436790463129417", |
| 112 | + "profile": [ |
| 113 | + "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1" |
| 114 | + ] |
| 115 | + }, |
| 116 | + "identifier": [ |
| 117 | + { |
| 118 | + "system": "https://fhir.nhs.uk/Id/sds-user-id", |
| 119 | + "value": "555079033108" |
| 120 | + }, |
| 121 | + { |
| 122 | + "system": "https://fhir.nhs.uk/Id/sds-role-profile-id", |
| 123 | + "value": "555079046103" |
| 124 | + } |
| 125 | + ], |
| 126 | + "name": [ |
| 127 | + { |
| 128 | + "use": "official", |
| 129 | + "family": "TEMPLE SOWERBY", |
| 130 | + "given": [ |
| 131 | + "GPONE" |
| 132 | + ], |
| 133 | + "prefix": [ |
| 134 | + "Mr" |
| 135 | + ] |
| 136 | + } |
| 137 | + ], |
| 138 | + "gender": "male" |
| 139 | + } |
| 140 | + }, |
97 | 141 | { |
98 | 142 | "resource": { |
99 | 143 | "resourceType": "Organization", |
|
0 commit comments