Class PdqSearchQuery

java.lang.Object
org.projecthusky.communication.requests.pdq.PdqSearchQuery

public class PdqSearchQuery extends Object
This class is designed to contain all possible search parameters when looking for patients with the webservice. Parameters are optional, only the ones set will be used in the webservice request.
A SearchQuery is a Patient Demographics Query (PDQ), as defined in the E-Health Suisse architecture and in detail in the examples in GitHub EPD-By-Example. The possible parameters are listed once more in the IHE definition (under Major Components...).
Important: all below parameters work in unison as AND logic, meaning only Patients which fulfill all given parameters will be returned by the webservice.
The Destination is a special parameter, it is required to define where the webservice resides and is essential, therefore can not be omitted.
Possible parameters to search Patients by are:
  • Patient name (Name)
  • Patient's mother's maiden name (Name)
  • Both names can be done in a fuzzy search
  • Patient's ID (Identificator)
  • Patient's Address (Address)
  • Patient's birthday (Date)
  • Patient's gender (AdministrativeGender)
  • Patient's telecom contact ( Telecom), mostly just telephone numbers though.
  • String IDs of other domains to search in. (a List)
Build all of these into one query and send it with the HuskyService#send(PdqSearchQuery) method to the webservice.
Author:
szalai
See Also:
  • HuskyService
  • HuskyServiceSearchQueryTest
  • HuskyQueryExperimentsTest
  • Constructor Details

    • PdqSearchQuery

      public PdqSearchQuery()
  • Method Details

    • build

      public PdqQuery build()
      This method will take all parameters, which are set into the SearchQuery and fill a PdqQuery with them. Not set params are ignored.
      Returns:
      a PdqQuery ready to be sent with the HuskyWebServiceClient to the webservice.