Class ConvenienceCommunicationAt
java.lang.Object
org.projecthusky.communication.CamelService
org.projecthusky.communication.ConvenienceCommunication
org.projecthusky.communication.at.ConvenienceCommunicationAt
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
Implementation of ch specific convenience communication
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor to instanciate the objectConvenienceCommunicationAt
(AffinityDomain affinityDomain) Default constructor to instanciate the objectConvenienceCommunicationAt
(AffinityDomain affinityDomain, AtnaConfig.AtnaConfigMode atnaConfigMode, DocumentMetadata.DocumentMetadataExtractionMode documentMetadataExtractionMode, SubmissionSetMetadata.SubmissionSetMetadataExtractionMode submissionSetMetadataExtractionMode) Instantiates a new convenience communication at. -
Method Summary
Modifier and TypeMethodDescriptionaddElgaDocument
(DocumentDescriptor desc, InputStream inputStream, POCDMT000040ClinicalDocument cda, boolean urnOidNeeded) protected DocumentMetadataAt
addXdsDocument
(org.openehealth.ipf.commons.ihe.xds.core.metadata.Document doc, DocumentDescriptor desc, DocumentMetadataAt metadata) Adds an XDSDocument to the Transaction datavoid
generateSubmissionSetMetadata
(Author author, Code contentTypeCode) Generate missing Submission Set attributesorg.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse
queryDocumentReferencesOnly
(Identificator patientId, SecurityHeaderElement assertion, String messageId) Queries the registry of the affinity domain for all documents of one patient.org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse
queryDocuments
(Identificator patientId, SecurityHeaderElement assertion, String messageId) Queries the registry of the affinity domain for all documents of one patient.protected void
setGeneralSubSetDetails
(org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet subSet, org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable patientId, org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable sourcePatientId) org.openehealth.ipf.commons.ihe.xds.core.responses.Response
submit
(Author author, Code codeContentType, SecurityHeaderElement security, String messageId) Submission of the previously prepared document(s) to the repository IHE [ITI-41] Provide and Register Document Set – b in the role of the IHE ITI Document Source actorMethods inherited from class org.projecthusky.communication.ConvenienceCommunication
addDocument, addDocument, addDocument, addDocument, addDocumentToFolder, addFolder, addXdsDocument, addXdsDocument, clearDocuments, convertNonAsciiText2Unicode, convertNonAsciiText2Unicode, createXdmContents, createXdmContents, createXdmContents, createXdmContents, createXdmContents, generateDefaultSubmissionSetAttributes, getAffinityDomain, getAutomaticExtractionEnabled, getSourceId, getTxnData, getXdmContents, getXdmContents, queryDocumentQuery, queryDocumentReferencesOnly, queryDocuments, queryFolders, retrieveDocument, retrieveDocuments, setAffinityDomain, setAtnaConfig, setAutomaticExtractionEnabled, setAutomaticExtractionEnabled, setGeneralSubSetDetails, submit, submit, submitReplacement
Methods inherited from class org.projecthusky.communication.CamelService
addHttpHeader, addWssHeader, getAuditContext, getCamelContext, send, setAuditContext, setCamelContext
-
Constructor Details
-
ConvenienceCommunicationAt
public ConvenienceCommunicationAt()Default constructor to instanciate the object -
ConvenienceCommunicationAt
Default constructor to instanciate the object- Parameters:
affinityDomain
- the affinity Domain
-
ConvenienceCommunicationAt
public ConvenienceCommunicationAt(AffinityDomain affinityDomain, AtnaConfig.AtnaConfigMode atnaConfigMode, DocumentMetadata.DocumentMetadataExtractionMode documentMetadataExtractionMode, SubmissionSetMetadata.SubmissionSetMetadataExtractionMode submissionSetMetadataExtractionMode) Instantiates a new convenience communication at.- Parameters:
affinityDomain
- the affinity domainatnaConfigMode
- the atna config modedocumentMetadataExtractionMode
- the document metadata extraction modesubmissionSetMetadataExtractionMode
- the submission set metadata extraction mode
-
-
Method Details
-
addElgaDocument
public DocumentMetadataAt addElgaDocument(DocumentDescriptor desc, InputStream inputStream, POCDMT000040ClinicalDocument cda, boolean urnOidNeeded) -
addXdsDocument
protected DocumentMetadataAt addXdsDocument(org.openehealth.ipf.commons.ihe.xds.core.metadata.Document doc, DocumentDescriptor desc, DocumentMetadataAt metadata) Adds an XDSDocument to the Transaction data- Parameters:
doc
- the documentdesc
- the Document descriptormetadata
- the metadata- Returns:
- the doc to get the metadata from
-
generateSubmissionSetMetadata
Generate missing Submission Set attributes -
setGeneralSubSetDetails
protected void setGeneralSubSetDetails(org.openehealth.ipf.commons.ihe.xds.core.metadata.SubmissionSet subSet, org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable patientId, org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable sourcePatientId) -
queryDocumentReferencesOnly
public org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse queryDocumentReferencesOnly(Identificator patientId, SecurityHeaderElement assertion, String messageId) throws Exception Queries the registry of the affinity domain for all documents of one patient. This is useful if the number of results is limited in the registry and your query would exceed this limit. In this case, precise your query or do a query for references first, choose the possible matches (e.g. the last 10 results) and then query for metadata.- Parameters:
patientId
- the ID of the patientassertion
- which should be used for request- Returns:
- the IPF QueryResponse containing references instead of the complete document metadata
- Throws:
Exception
-
queryDocuments
public org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse queryDocuments(Identificator patientId, SecurityHeaderElement assertion, String messageId) throws Exception Queries the registry of the affinity domain for all documents of one patient.- Parameters:
patientId
- the ID of the patientassertion
- which should be used for request- Returns:
- the IPF QueryResponse containing full document metadata
- Throws:
Exception
-
submit
public org.openehealth.ipf.commons.ihe.xds.core.responses.Response submit(Author author, Code codeContentType, SecurityHeaderElement security, String messageId) throws Exception Submission of the previously prepared document(s) to the repository IHE [ITI-41] Provide and Register Document Set – b in the role of the IHE ITI Document Source actor- Parameters:
author
- The AuthorRole is one of the minimal required information according to IHE Suisse for classification of documents in Switzerland.security
- assertion which should be used for request- Returns:
- the Response
- Throws:
Exception
- if the transfer is not successful
-