generated from NHSDigital/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: [AEA-3751] - Modify the Spine Client to expose an interface to c…
…all the 'Search' Spine interaction (#199) ## Summary 🎫 [AEA-3751](https://nhsd-jira.digital.nhs.uk/browse/AEA-3751) Modify the Spine Client to expose an interface to call the 'Search' Spine interaction - ✨ New Feature -⚠️ Potential issues that might be caused by this change ### Details Development implementation detail - Implement this in the Spine Client package - Copy the ebxml stuff from FHIR Facade - Call clinical content view on spine (PRESCRIPTIONSEARCH_SM01) and return the result - Use the same certificate (from the current Spine client) and the ASID which PfP uses (back end calls) - We want to use the same re-try as the current getPrescriptions interface --------- Co-authored-by: jonathanwelch1-nhs <[email protected]>
- Loading branch information
1 parent
10f1652
commit 8436248
Showing
7 changed files
with
536 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"jest.jestCommandLine": "/workspaces/nhs-eps-spine-client/node_modules/.bin/jest --no-cache", | ||
"jest.nodeEnv": { | ||
"POWERTOOLS_DEV": true, | ||
"NODE_OPTIONS": "--experimental-vm-modules" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
/* eslint-disable max-len */ | ||
export default `<?xml version="1.0" encoding="utf-8"?> | ||
<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"> | ||
<SOAP-ENV:Header> | ||
<wsa:MessageID>uuid:{{messageGUID}}</wsa:MessageID> | ||
<wsa:Action>urn:nhs:names:services:mmquery/PRESCRIPTIONSEARCH_SM01</wsa:Action> | ||
<wsa:To>https://pds-sync.national.ncrs.nhs.uk/syncservice-pds/pds</wsa:To> | ||
<wsa:From> | ||
<wsa:Address/> | ||
</wsa:From> | ||
<hl7:communicationFunctionRcv> | ||
<hl7:device> | ||
<hl7:id root="1.2.826.0.1285.0.2.0.107" extension="{{toASID}}"/> | ||
</hl7:device> | ||
</hl7:communicationFunctionRcv> | ||
<hl7:communicationFunctionSnd> | ||
<hl7:device> | ||
<hl7:id root="1.2.826.0.1285.0.2.0.107" extension="{{fromASID}}"/> | ||
</hl7:device> | ||
</hl7:communicationFunctionSnd> | ||
<wsa:ReplyTo> | ||
<wsa:Address/> | ||
</wsa:ReplyTo> | ||
</SOAP-ENV:Header> | ||
<SOAP-ENV:Body> | ||
<PRESCRIPTIONSEARCH_SM01 xmlns="urn:hl7-org:v3"> | ||
<id root="{{messageGUID}}"/> | ||
<creationTime value="{{creationTime}}"/> | ||
<versionCode code="V3NPfIT4.2.00"/> | ||
<interactionId root="2.16.840.1.113883.2.1.3.2.4.12" extension="PRESCRIPTIONSEARCH_SM01"/> | ||
<processingCode code="P"/> | ||
<processingModeCode code="T"/> | ||
<acceptAckCode code="NE"/> | ||
<communicationFunctionRcv> | ||
<device classCode="DEV" determinerCode="INSTANCE"> | ||
<id root="1.2.826.0.1285.0.2.0.107" extension="{{toASID}}"/> | ||
</device> | ||
</communicationFunctionRcv> | ||
<communicationFunctionSnd> | ||
<device classCode="DEV" determinerCode="INSTANCE"> | ||
<id root="1.2.826.0.1285.0.2.0.107" extension="{{fromASID}}"/> | ||
</device> | ||
</communicationFunctionSnd> | ||
<ControlActEvent classCode="CACT" moodCode="EVN"> | ||
<author typeCode="AUT"> | ||
<AgentPersonSDS classCode="AGNT"> | ||
<id root="1.2.826.0.1285.0.2.0.67" extension="{{agentPersonSDSRoleProfileId}}"/> | ||
<agentPersonSDS classCode="PSN" determinerCode="INSTANCE"> | ||
<id root="1.2.826.0.1285.0.2.0.65" extension="{{sdsRoleProfileId}}"/> | ||
</agentPersonSDS> | ||
<part typeCode="PART"> | ||
<partSDSRole classCode="ROL"> | ||
<id root="1.2.826.0.1285.0.2.1.104" extension="{{agentPersonJobRoleCode}}"/> | ||
</partSDSRole> | ||
</part> | ||
</AgentPersonSDS> | ||
</author> | ||
<author1 typeCode="AUT"> | ||
<AgentSystemSDS classCode="AGNT"> | ||
<agentSystemSDS classCode="DEV" determinerCode="INSTANCE"> | ||
<id root="1.2.826.0.1285.0.2.0.107" extension="{{fromASID}}"/> | ||
</agentSystemSDS> | ||
</AgentSystemSDS> | ||
</author1> | ||
<query> | ||
{{#prescriptionId}} | ||
<prescriptionId value="{{{prescriptionId}}}" /> | ||
{{/prescriptionId}} | ||
{{#nhsNumber}} | ||
<patientId value="{{{nhsNumber}}}" /> | ||
{{/nhsNumber}} | ||
{{#dispenserOrg}} | ||
<dispenserOrganisation value="{{{dispenserOrg}}}" /> | ||
{{/dispenserOrg}} | ||
{{#prescriberOrg}} | ||
<prescriberOrganisation value="{{{prescriberOrg}}}"/> | ||
{{/prescriberOrg}} | ||
{{#releaseVersion}} | ||
<releaseVersion value="{{{releaseVersion}}}" /> | ||
{{/releaseVersion}} | ||
{{#prescriptionStatus}} | ||
<prescriptionStatus value="{{{prescriptionStatus}}}" /> | ||
{{/prescriptionStatus}} | ||
{{#prescriptionStatus1}} | ||
<prescriptionStatus value="{{{prescriptionStatus1}}}" /> | ||
{{/prescriptionStatus1}} | ||
{{#prescriptionStatus2}} | ||
<prescriptionStatus value="{{{prescriptionStatus2}}}" /> | ||
{{/prescriptionStatus2}} | ||
{{#prescriptionStatus3}} | ||
<prescriptionStatus value="{{{prescriptionStatus3}}}" /> | ||
{{/prescriptionStatus3}} | ||
{{#creationDateRange}} | ||
<creationDateRange> | ||
<value> | ||
<window> | ||
{{#lowDate}} | ||
<low value = "{{{lowDate}}}" /> | ||
{{/lowDate}} | ||
{{#highDate}} | ||
<high value = "{{{highDate}}}" /> | ||
{{/highDate}} | ||
</window> | ||
</value> | ||
</creationDateRange> | ||
{{/creationDateRange}} | ||
{{#mySiteOrganisation}} | ||
<mySiteOrganisation value="{{{mySiteOrganisation}}}"/> | ||
{{/mySiteOrganisation}} | ||
</query> | ||
</ControlActEvent> | ||
</PRESCRIPTIONSEARCH_SM01> | ||
</SOAP-ENV:Body> | ||
</SOAP-ENV:Envelope>` |
Oops, something went wrong.