Class PdqV3Query

All Implemented Interfaces:
org.apache.camel.CamelContextAware

@Component public class PdqV3Query extends PixPdqV3QueryBase
PdqV3Query PdqV3Query implements the ITI-47 PDQ Consumer
  • Constructor Details

    • PdqV3Query

      public PdqV3Query()
    • PdqV3Query

      public PdqV3Query(AffinityDomain affinityDomain, String homeCommunityOid, org.apache.camel.CamelContext context, org.openehealth.ipf.commons.audit.AuditContext auditContext)
    • PdqV3Query

      public PdqV3Query(AffinityDomain affinityDomain, String homeCommunityOid, String homeCommunityNameSpace, org.apache.camel.CamelContext context, org.openehealth.ipf.commons.audit.AuditContext auditContext)
  • Method Details

    • queryPatients

      public V3PdqQueryResponse queryPatients(V3PdqQuery mpiQuery, SecurityHeaderElement assertion, String messageId)
      Performs a PDQ Query (ITI-47)
      Parameters:
      mpiQuery - the mpi query object
      assertion - a security header element for example an assertion
      Returns:
      the v3 pdq query response
    • getPatientsFromPdqQuery

      public List<FhirPatient> getPatientsFromPdqQuery(V3PdqConsumerResponse response)
      Gets the patients from pdq query.
      Parameters:
      response - the response
      Returns:
      the patients from pdq query
    • getPatientByIndex

      protected net.ihe.gazelle.hl7v3.prpamt201310UV02.PRPAMT201310UV02Patient getPatientByIndex(V3PdqConsumerResponse v3PdqConsumerResponse, int patientIndex)
      Get the specified patient object.
      Parameters:
      v3PdqConsumerResponse - the consumer response
      patientIndex - the patient index
      Returns:
      PRPAMT201310UV02Patient - the patient object at the specified index.