Skip to content

Commit 5ea2589

Browse files
committed
update test scenario
1 parent f4ffc4d commit 5ea2589

File tree

1 file changed

+58
-14
lines changed

1 file changed

+58
-14
lines changed

wiremock/stubs/__files/EMISPatientStructurede2eResponsePWTP23.json

Lines changed: 58 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,45 +55,89 @@
5555
"code": "01",
5656
"display": "Number present and verified"
5757
}
58-
]
58+
],
59+
"text": "Number present and verified"
5960
}
6061
}
6162
],
6263
"system": "https://fhir.nhs.uk/Id/nhs-number",
63-
"value": "9735406098"
64+
"value": "{{jsonPath request.body '$.parameter[0].valueIdentifier.value'}}"
6465
}
6566
],
66-
"active": true,
67+
{{^patient}}
68+
{{#patient}}
6769
"name": [
6870
{
6971
"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}}",
7474
"given": [
75-
"Gerald"
75+
"{{patient.name.0.given.0}}"
76+
],
77+
"prefix": [
78+
"{{patient.name.0.prefix.0}}"
7679
]
7780
}
7881
],
79-
"gender": "male",
80-
"birthDate": "1961-10-14",
82+
"gender": "{{ patient.gender }}",
83+
"birthDate": "{{ patient.birthDate }}",
8184
"address": [
8285
{
8386
"use": "home",
87+
"type": "physical",
8488
"line": [
85-
"5 Beech Close",
86-
"TREFYNWY"
89+
"{{ patient.address.0.line.0 }}",
90+
"{{ patient.address.0.line.1 }}"
8791
],
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"
9099
}
91100
],
92101
"managingOrganization": {
93102
"reference": "Organization/N82090"
94103
}
95104
}
96105
},
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+
},
97141
{
98142
"resource": {
99143
"resourceType": "Organization",

0 commit comments

Comments
 (0)