Class HuskyWebServiceClient
java.lang.Object
org.projecthusky.communication.services.HuskyWebServiceClient
This class is implemented for the mid/low-level access of the EPD Services.
For the actual transfer of messages Apache Camel is used, which needs to be provided by the application binding this service. In case of a Spring (Boot) application this is covered by the default application context.
For the actual transfer of messages Apache Camel is used, which needs to be provided by the application binding this service. In case of a Spring (Boot) application this is covered by the default application context.
- Author:
- szalai
-
Constructor Summary
ConstructorsConstructorDescriptionHuskyWebServiceClient(org.apache.camel.CamelContext camelContext, org.openehealth.ipf.commons.audit.AuditContext auditContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddHttpHeader(org.apache.camel.Exchange exchange, Map<String, String> outgoingHttpHeaders) protected voidaddWssHeader(SecurityHeaderElement securityHeaderElement, org.apache.camel.Exchange exchange) downloadValueSet(SvsValueSetRequest valueSetRequest, boolean isUseRaw) It implements the following IHE transaction: [ITI-48] Retrieve value set and value set raworg.apache.camel.Exchangesend(String endpoint, Object body, SecurityHeaderElement securityHeaderElement, String messageId, Map<String, String> outgoingHttpHeaders) org.openehealth.ipf.commons.ihe.xds.core.responses.RetrievedDocumentSetsend(XdsDocumentSetRequest request, URI destination, String messageId) send(XuaRequest xuaRequest) It implements the following IHE transaction: [ITI-40] Provide Identity AssertionssendHpdBatchRequest(HpdBatchRequest hpdBatchRequest) It implements the following IHE transactions: [ITI-58] Provider Information Query - Search Request [ITI-59] Provider Information Feed - Add Request [ITI-59] Provider Information Feed - Delete RequestsendHpdRequest(HpdRequest hpdRequest) Method that can be used for sending an individual request e.g.net.ihe.gazelle.hl7v3.mcciin000002UV01.MCCIIN000002UV01TypesendITI44Query(net.ihe.gazelle.hl7v3.prpain201304UV02.PRPAIN201304UV02Type request, SecurityHeaderElement assertion, URI pdqDest, String action, String messageId) net.ihe.gazelle.hl7v3.prpain201306UV02.PRPAIN201306UV02TypesendPdqSearchQueryRequest(PdqQuery request, SecurityHeaderElement security, URI pdqDest, String messageId) net.ihe.gazelle.hl7v3.mcciin000002UV01.MCCIIN000002UV01TypesendPixAddPatientRequest(net.ihe.gazelle.hl7v3.prpain201301UV02.PRPAIN201301UV02Type request, SecurityHeaderElement assertion, URI pdqDest, String action, String messageId) net.ihe.gazelle.hl7v3.mcciin000002UV01.MCCIIN000002UV01TypesendPixUpdatePatientRequest(net.ihe.gazelle.hl7v3.prpain201302UV02.PRPAIN201302UV02Type request, SecurityHeaderElement assertion, URI pdqDest, String action, String messageId) org.openehealth.ipf.commons.ihe.xds.core.responses.Responseorg.openehealth.ipf.commons.ihe.xds.core.responses.ResponsesendProvideAndRegisterDocumentSetRequest(XdsProvideAndRetrieveDocumentSetQuery documentSet, SubmissionSetMetadata.SubmissionSetMetadataExtractionMode extractionMode, DocumentMetadata.DocumentMetadataExtractionMode documentMetadataExtractionMode) It implements the following IHE transaction: [ITI-41] Provide and Register Document Set – borg.openehealth.ipf.commons.ihe.hl7v3.core.responses.PixV3QueryResponsesendQuery(org.openehealth.ipf.commons.ihe.hl7v3.core.requests.PixV3QueryRequest request, SecurityHeaderElement assertion, URI pdqDest, String messageId) org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponsesendQueryFoldersRequest(XdsFindFoldersStoredQuery findFoldersStoredQuery) It implements the following IHE transaction: [ITI-18] Find foldersorg.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponsesendRegistryStoredFindDocumentsQuery(XdsRegistryStoredFindDocumentsQuery query, URI destination, org.openehealth.ipf.commons.ihe.xds.core.requests.query.QueryReturnType returnType, String messageId)
-
Constructor Details
-
HuskyWebServiceClient
public HuskyWebServiceClient(org.apache.camel.CamelContext camelContext, org.openehealth.ipf.commons.audit.AuditContext auditContext)
-
-
Method Details
-
downloadValueSet
public SvsValueSetResponse downloadValueSet(SvsValueSetRequest valueSetRequest, boolean isUseRaw) throws IOException, ParserConfigurationException, InitializationException, SAXException It implements the following IHE transaction: [ITI-48] Retrieve value set and value set raw -
send
public org.apache.camel.Exchange send(String endpoint, Object body, SecurityHeaderElement securityHeaderElement, String messageId, Map<String, String> outgoingHttpHeaders) throws SerializeException, ParserConfigurationException, IOException -
send
public org.openehealth.ipf.commons.ihe.xds.core.responses.RetrievedDocumentSet send(XdsDocumentSetRequest request, URI destination, String messageId) throws SerializeException, ParserConfigurationException, IOException -
send
It implements the following IHE transaction: [ITI-40] Provide Identity Assertions- Throws:
ClientSendException
-
sendHpdBatchRequest
public HpdResponse sendHpdBatchRequest(HpdBatchRequest hpdBatchRequest) throws SerializeException, ParserConfigurationException, IOException It implements the following IHE transactions: [ITI-58] Provider Information Query - Search Request [ITI-59] Provider Information Feed - Add Request [ITI-59] Provider Information Feed - Delete Request -
sendHpdRequest
public HpdResponse sendHpdRequest(HpdRequest hpdRequest) throws SerializeException, ParserConfigurationException, IOException Method that can be used for sending an individual request e.g.HpdAddFeed -
sendITI44Query
public net.ihe.gazelle.hl7v3.mcciin000002UV01.MCCIIN000002UV01Type sendITI44Query(net.ihe.gazelle.hl7v3.prpain201304UV02.PRPAIN201304UV02Type request, SecurityHeaderElement assertion, URI pdqDest, String action, String messageId) throws javax.xml.bind.JAXBException, SerializeException, ParserConfigurationException, IOException - Throws:
javax.xml.bind.JAXBExceptionSerializeExceptionParserConfigurationExceptionIOException
-
sendPdqSearchQueryRequest
public net.ihe.gazelle.hl7v3.prpain201306UV02.PRPAIN201306UV02Type sendPdqSearchQueryRequest(PdqQuery request, SecurityHeaderElement security, URI pdqDest, String messageId) throws javax.xml.bind.JAXBException, javax.xml.bind.DataBindingException, ParserConfigurationException, SerializeException, IOException - Throws:
javax.xml.bind.JAXBExceptionjavax.xml.bind.DataBindingExceptionParserConfigurationExceptionSerializeExceptionIOException
-
sendPixAddPatientRequest
public net.ihe.gazelle.hl7v3.mcciin000002UV01.MCCIIN000002UV01Type sendPixAddPatientRequest(net.ihe.gazelle.hl7v3.prpain201301UV02.PRPAIN201301UV02Type request, SecurityHeaderElement assertion, URI pdqDest, String action, String messageId) throws javax.xml.bind.JAXBException, SerializeException, ParserConfigurationException, IOException - Throws:
javax.xml.bind.JAXBExceptionSerializeExceptionParserConfigurationExceptionIOException
-
sendPixUpdatePatientRequest
public net.ihe.gazelle.hl7v3.mcciin000002UV01.MCCIIN000002UV01Type sendPixUpdatePatientRequest(net.ihe.gazelle.hl7v3.prpain201302UV02.PRPAIN201302UV02Type request, SecurityHeaderElement assertion, URI pdqDest, String action, String messageId) throws javax.xml.bind.JAXBException, SerializeException, ParserConfigurationException, IOException - Throws:
javax.xml.bind.JAXBExceptionSerializeExceptionParserConfigurationExceptionIOException
-
sendProvideAndRegisterDocumentSetRequest
public org.openehealth.ipf.commons.ihe.xds.core.responses.Response sendProvideAndRegisterDocumentSetRequest(XdsProvideAndRetrieveDocumentSetQuery documentSet) throws SerializeException, ParserConfigurationException, IOException -
sendProvideAndRegisterDocumentSetRequest
public org.openehealth.ipf.commons.ihe.xds.core.responses.Response sendProvideAndRegisterDocumentSetRequest(XdsProvideAndRetrieveDocumentSetQuery documentSet, SubmissionSetMetadata.SubmissionSetMetadataExtractionMode extractionMode, DocumentMetadata.DocumentMetadataExtractionMode documentMetadataExtractionMode) throws SerializeException, ParserConfigurationException, IOException It implements the following IHE transaction: [ITI-41] Provide and Register Document Set – bUsing this method, both extraction modes can be set explicitly, e.g. if the default option is not suitable for all kinds of request.
-
sendQuery
public org.openehealth.ipf.commons.ihe.hl7v3.core.responses.PixV3QueryResponse sendQuery(org.openehealth.ipf.commons.ihe.hl7v3.core.requests.PixV3QueryRequest request, SecurityHeaderElement assertion, URI pdqDest, String messageId) throws Exception - Throws:
Exception
-
sendQueryFoldersRequest
public org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse sendQueryFoldersRequest(XdsFindFoldersStoredQuery findFoldersStoredQuery) throws SerializeException, ParserConfigurationException, IOException It implements the following IHE transaction: [ITI-18] Find folders -
sendRegistryStoredFindDocumentsQuery
public org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse sendRegistryStoredFindDocumentsQuery(XdsRegistryStoredFindDocumentsQuery query, URI destination, org.openehealth.ipf.commons.ihe.xds.core.requests.query.QueryReturnType returnType, String messageId) throws SerializeException, ParserConfigurationException, IOException -
addHttpHeader
-
addWssHeader
protected void addWssHeader(SecurityHeaderElement securityHeaderElement, org.apache.camel.Exchange exchange) throws SerializeException, ParserConfigurationException
-