Skip to content

Commit 5874202

Browse files
author
Adrian Clay
authored
Add Immunisations scenario to Wiremock (#1092)
Will help test out behaviour of Imunization mapping within incumbents.
1 parent cef5c10 commit 5874202

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

wiremock/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ To change the patient record returned to be [PWTP3, which has many Prescriptions
8787
curl --request PUT --data '{"state": "Medications"}' http://localhost:8110/__admin/scenarios/migrateStructuredRecord/state
8888
```
8989

90+
To change the patient record returned to be [PWTP6, which has many Immunisations](stubs/__files/EMISPatientStructurede2eResponsePWTP6.json):
91+
92+
```shell
93+
curl --request PUT --data '{"state": "Immunisations"}' http://localhost:8110/__admin/scenarios/migrateStructuredRecord/state
94+
```
95+
9096
To change the patient record returned to be [Large Patient Record](stubs/__files/correctPatientStructuredRecordLargePayload.json):
9197

9298
```shell
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"priority": 2,
3+
"scenarioName": "migrateStructuredRecord",
4+
"requiredScenarioState": "Immunisations",
5+
"request": {
6+
"method": "POST",
7+
"urlPattern": "/.*/STU3/1/gpconnect/fhir/Patient/[$]gpc[.]migratestructuredrecord"
8+
},
9+
"response": {
10+
"status": 200,
11+
"bodyFileName": "EMISPatientStructurede2eResponsePWTP6.json",
12+
"headers": {
13+
"Server": "nginx",
14+
"Date": "{{now format='E, d MMM y HH:mm:ss z'}}",
15+
"Content-Type": "application/fhir+json;charset=UTF-8",
16+
"Transfer-Encoding": "chunked",
17+
"Connection": "keep-alive",
18+
"Cache-Control": "no-store",
19+
"X-Powered-By": "HAPI FHIR 3.0.0 REST Server (FHIR Server; FHIR 3.0.1/DSTU3)",
20+
"Strict-Transport-Security":"max-age=31536000"
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)