Skip to content

Commit 1a9f336

Browse files
Fix: [AEA-5152] - Swap to new prescription search interaction (#376)
## Summary - Routine Change - ❗ Breaking Change - ⚠️ Potential issues that might be caused by this change ### Details - Swaps prescription search to use the PrescriptionSearchSyncAsync_1_0 interaction from PRESCRIPTIONSEARCH_SM01 --------- Co-authored-by: jonathanwelch1-nhs <[email protected]>
1 parent 790f749 commit 1a9f336

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/live-spine-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export class LiveSpineClient implements SpineClient {
263263
"nhsd-request-id": inboundHeaders["nhsd-request-id"],
264264
"x-request-id": inboundHeaders["x-request-id"],
265265
"x-correlation-id": inboundHeaders["x-correlation-id"],
266-
"SOAPAction": "urn:nhs:names:services:mmquery/PRESCRIPTIONSEARCH_SM01"
266+
"SOAPAction": "urn:nhs:names:services:mmquery/PrescriptionSearchSyncAsync_1_0"
267267
}
268268

269269
const partials: PrescriptionSearchPartials = {

src/resources/prescription_search.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default `<?xml version="1.0" encoding="utf-8"?>
33
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:hl7="urn:hl7-org:v3">
44
<SOAP-ENV:Header>
55
<wsa:MessageID>uuid:{{messageGUID}}</wsa:MessageID>
6-
<wsa:Action>urn:nhs:names:services:mmquery/PRESCRIPTIONSEARCH_SM01</wsa:Action>
6+
<wsa:Action>urn:nhs:names:services:mmquery/PrescriptionSearchSyncAsync_1_0</wsa:Action>
77
<wsa:To>https://pds-sync.national.ncrs.nhs.uk/syncservice-pds/pds</wsa:To>
88
<wsa:From>
99
<wsa:Address/>
@@ -23,11 +23,11 @@ export default `<?xml version="1.0" encoding="utf-8"?>
2323
</wsa:ReplyTo>
2424
</SOAP-ENV:Header>
2525
<SOAP-ENV:Body>
26-
<PRESCRIPTIONSEARCH_SM01 xmlns="urn:hl7-org:v3">
26+
<PrescriptionSearchSyncAsync_1_0 xmlns="urn:hl7-org:v3">
2727
<id root="{{messageGUID}}"/>
2828
<creationTime value="{{creationTime}}"/>
2929
<versionCode code="V3NPfIT4.2.00"/>
30-
<interactionId root="2.16.840.1.113883.2.1.3.2.4.12" extension="PRESCRIPTIONSEARCH_SM01"/>
30+
<interactionId root="2.16.840.1.113883.2.1.3.2.4.12" extension="PrescriptionSearchSyncAsync_1_0"/>
3131
<processingCode code="P"/>
3232
<processingModeCode code="T"/>
3333
<acceptAckCode code="NE"/>
@@ -109,6 +109,6 @@ export default `<?xml version="1.0" encoding="utf-8"?>
109109
{{/mySiteOrganisation}}
110110
</query>
111111
</ControlActEvent>
112-
</PRESCRIPTIONSEARCH_SM01>
112+
</PrescriptionSearchSyncAsync_1_0>
113113
</SOAP-ENV:Body>
114114
</SOAP-ENV:Envelope>`

src/resources/prescription_search_sandbox.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export default `<SOAP:Envelope xmlns:crs="http://national.carerecords.nhs.uk/schema/crs/" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns="urn:hl7-org:v3" xmlns:hl7="urn:hl7-org:v3">
33
<SOAP:Header>
44
<wsa:MessageID>uuid:1234567890123456</wsa:MessageID>
5-
<wsa:Action>urn:nhs:names:services:mmquery/PRESCRIPTIONSEARCHRESPONSE_SM01</wsa:Action>
5+
<wsa:Action>urn:nhs:names:services:mmquery/PrescriptionSearchSyncAsync_1_0</wsa:Action>
66
<wsa:To/>
77
<wsa:From>
88
<wsa:Address>https://mmquery.national.ncrs.nhs.uk/syncservice</wsa:Address>
@@ -21,11 +21,11 @@ export default `<SOAP:Envelope xmlns:crs="http://national.carerecords.nhs.uk/sch
2121
</SOAP:Header>
2222
<SOAP:Body>
2323
<prescriptionSearchResponse>
24-
<PRESCRIPTIONSEARCHRESPONSE_SM01>
24+
<PrescriptionSearchSyncAsync_1_0>
2525
<id root="1234567890123456"/>
2626
<creationTime value="20130614090835"/>
2727
<versionCode code="V3NPfIT3.0"/>
28-
<interactionId root="2.16.840.1.113883.2.1.3.2.4.12" extension="PRESCRIPTIONSEARCHRESPONSE_SM01"/>
28+
<interactionId root="2.16.840.1.113883.2.1.3.2.4.12" extension="PrescriptionSearchSyncAsync_1_0"/>
2929
<processingCode code="P"/>
3030
<processingModeCode code="T"/>
3131
<acceptAckCode code="NE"/>
@@ -127,7 +127,7 @@ export default `<SOAP:Envelope xmlns:crs="http://national.carerecords.nhs.uk/sch
127127
<queryResponseCode code="OK"/>
128128
</queryAck>
129129
</ControlActEvent>
130-
</PRESCRIPTIONSEARCHRESPONSE_SM01>
130+
</PrescriptionSearchSyncAsync_1_0>
131131
</prescriptionSearchResponse>
132132
</SOAP:Body>
133133
</SOAP:Envelope>`

0 commit comments

Comments
 (0)