Class ConvenienceCommunicationAt

All Implemented Interfaces:
org.apache.camel.CamelContextAware

public class ConvenienceCommunicationAt extends ConvenienceCommunication
Implementation of ch specific convenience communication
  • Constructor Details

    • ConvenienceCommunicationAt

      public ConvenienceCommunicationAt()
      Default constructor to instanciate the object
    • ConvenienceCommunicationAt

      public ConvenienceCommunicationAt(AffinityDomain affinityDomain)
      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 domain
      atnaConfigMode - the atna config mode
      documentMetadataExtractionMode - the document metadata extraction mode
      submissionSetMetadataExtractionMode - 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 document
      desc - the Document descriptor
      metadata - the metadata
      Returns:
      the doc to get the metadata from
    • generateSubmissionSetMetadata

      public void generateSubmissionSetMetadata(Author author, Code contentTypeCode)
      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 patient
      assertion - 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 patient
      assertion - 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