Class ChPharmacyDocumentsQuery

java.lang.Object
org.projecthusky.communication.ch.camel.chpharm1.requests.query.ChPharmacyDocumentsQuery
All Implemented Interfaces:
Serializable, org.openehealth.ipf.commons.ihe.xds.core.requests.query.PatientIdBasedStoredQuery
Direct Known Subclasses:
ChFindMedicationCardQuery, ChFindMedicationListQuery, ChPharmacyStableDocumentsQuery

public abstract class ChPharmacyDocumentsQuery extends Object implements org.openehealth.ipf.commons.ihe.xds.core.requests.query.PatientIdBasedStoredQuery, Serializable
Base class for Pharmacy Documents Queries (CH:PHARM-1).
Author:
Quentin Ligier
See Also:
  • Field Details

    • type

      protected ChPharm1QueryType type
    • homeCommunityId

      protected String homeCommunityId
    • extraParameters

      protected final Map<String,org.openehealth.ipf.commons.ihe.xds.core.requests.query.QueryList<String>> extraParameters
    • patientEprSpid

      protected org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable patientEprSpid
    • status

      protected List<org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus> status
    • metadataLevel

      protected Integer metadataLevel
    • formatCodes

      protected List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Code> formatCodes
  • Constructor Details

    • ChPharmacyDocumentsQuery

      public ChPharmacyDocumentsQuery()
      For JAXB serialization only.
    • ChPharmacyDocumentsQuery

      protected ChPharmacyDocumentsQuery(ChPharm1QueryType queryType)
      Constructs the query.
      Parameters:
      queryType - the type of the query.
  • Method Details

    • getType

      public ChPharm1QueryType getType()
    • getHomeCommunityId

      public String getHomeCommunityId()
    • setHomeCommunityId

      public void setHomeCommunityId(String homeCommunityId)
    • getExtraParameters

      public Map<String,org.openehealth.ipf.commons.ihe.xds.core.requests.query.QueryList<String>> getExtraParameters()
    • getPatientId

      public org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable getPatientId()
      Specified by:
      getPatientId in interface org.openehealth.ipf.commons.ihe.xds.core.requests.query.PatientIdBasedStoredQuery
    • setPatientId

      public void setPatientId(org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable patientEprSpid)
      Specified by:
      setPatientId in interface org.openehealth.ipf.commons.ihe.xds.core.requests.query.PatientIdBasedStoredQuery
    • getStatus

      public List<org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus> getStatus()
    • setStatus

      public void setStatus(List<org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus> status)
    • getMetadataLevel

      public Integer getMetadataLevel()
    • setMetadataLevel

      public void setMetadataLevel(Integer metadataLevel)
    • getFormatCodes

      public List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Code> getFormatCodes()
    • setFormatCodes

      public void setFormatCodes(List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Code> formatCodes)
    • accept

      public abstract void accept(ChPharmacyDocumentsQuery.Visitor visitor)
      Accept a visitor to process an instance of this class.
      Parameters:
      visitor - the visitor implementation.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object