Class BaseRequest

java.lang.Object
org.projecthusky.communication.requests.BaseRequest
Direct Known Subclasses:
PdqQuery, PixAddPatientRequest, PixMergePatientRequest, PixUpdatePatientRequest

public abstract class BaseRequest extends Object
Baseclass for requests. Is essentially a copy of V3Message and for sake of speed it was not reworked.
Author:
szalai
  • Field Details

    • itsVersion

      protected String itsVersion
    • processingCode

      protected String processingCode
    • processingModeCode

      protected String processingModeCode
    • acceptAckCode

      protected String acceptAckCode
    • sendingApplication

      protected String sendingApplication
    • sendingFacility

      protected String sendingFacility
    • messageId

      protected net.ihe.gazelle.hl7v3.datatypes.II messageId
    • queryControlActProcess

      protected PixPdqQueryControlActProcess queryControlActProcess
  • Constructor Details

    • BaseRequest

      protected BaseRequest()
    • BaseRequest

      protected BaseRequest(String senderApplicationOID)
  • Method Details

    • addReceivingApplication

      public void addReceivingApplication(String applicationOID)
      Adds the receiving application ID provided
      Parameters:
      applicationOID - (Receiving Device ID)
    • addReceivingFacility

      public void addReceivingFacility(String facilityOID)
      Added the receiving facility ID provided
      Parameters:
      facilityOID - (Receiving Organization ID)
    • getReceivingApplication

      public String getReceivingApplication(int i)
      Gets the specified Receiving Application (Receiver Device ID)
      Parameters:
      i - (the index of the receiving application to get)
      Returns:
      String - Receiving Application
    • getReceivingFacility

      public String getReceivingFacility(int i)
      Gets the specified Receiving Facility (Receiver Organization ID)
      Parameters:
      i - (the index of the receiving facility to get)
      Returns:
      String - Receiving Facility
    • getSendingApplication

      public String getSendingApplication()
      Gets the Sending Application (Sender Device ID)
      Returns:
      String - Sending Application
    • getSendingFacility

      public String getSendingFacility()
      Gets the Sending Facility (Sender Organization ID)
      Returns:
      String - Sending Facility
    • getMessageId

      public net.ihe.gazelle.hl7v3.datatypes.II getMessageId()
    • setMessageId

      public void setMessageId(net.ihe.gazelle.hl7v3.datatypes.II messageId)
    • setSender

      public void setSender(String applicationOID, String facilityOID)
      Set the sender for the query
      Parameters:
      applicationOID - (Sender Device ID)
      facilityOID - (Sender Organization ID)
    • setITSVersion

      protected abstract void setITSVersion()
    • setId

      protected abstract void setId()
    • setCreationTime

      protected abstract void setCreationTime()
    • setProcessingCode

      protected abstract void setProcessingCode()
    • setProcessingModeCode

      protected abstract void setProcessingModeCode()
    • setAcceptAckCode

      protected abstract void setAcceptAckCode()
    • addControlActProcess

      protected void addControlActProcess()
    • addPatientAddress

      public void addPatientAddress(net.ihe.gazelle.hl7v3.datatypes.AD patientAddress)
      Add an address for the patient.
      Parameters:
      patientAddress -
    • addPatientEthnicGroupCode

      public void addPatientEthnicGroupCode(String code)
      Add Patient Ethnic Group Code to the patient
      Parameters:
      code -
    • addPatientName

      public void addPatientName(String familyName, String givenName, String other, String prefixName, String suffixName)
      Add a patient name.
      Parameters:
      familyName -
      givenName -
      other -
      prefixName -
      suffixName -
    • addPatientOtherID

      public void addPatientOtherID(String extension, String root)
      Add a Patient Other ID for the patient
      Parameters:
      extension -
      root -
    • addPatientRaceCode

      public void addPatientRaceCode(String code)
      Add Patient Race Code to the patient
      Parameters:
      code -
    • addPatientTelecom

      public void addPatientTelecom(String telecomValue, String useValue)
      Add a telecom value with the provided useValue ("HP" or "WP")
      Parameters:
      telecomValue -
      useValue -
    • setMultipleBirthIndicator

      public void setMultipleBirthIndicator(boolean birthIndicator)
      Set whether there was a multiple birth.
      Parameters:
      birthIndicator -
    • setMultipleBirthOrderNumber

      public void setMultipleBirthOrderNumber(int birthNumber)
      Set the birth order number to the provided value
      Parameters:
      birthNumber -
    • setPatientBirthTime

      public void setPatientBirthTime(String birthTime)
      Set the patient birth time.
      Parameters:
      birthTime -
    • setPatientDeceased

      public void setPatientDeceased(boolean patientDeceased)
      Set whether the patient is deceased
      Parameters:
      patientDeceased -
    • setPatientDeceasedTime

      public void setPatientDeceasedTime(String patientDeceasedTime)
      Set the patient deceased time.
      Parameters:
      patientDeceasedTime -
    • setPatientGender

      public void setPatientGender(String gender)
      Set the patient gender to the provided value ("M", "F", or "U")
      Parameters:
      gender -
    • setPatientMaritalStatus

      public void setPatientMaritalStatus(String maritalStatus)
      Set the marital status for the patient
      Parameters:
      maritalStatus -
    • setPatientMothersMaidenName

      public void setPatientMothersMaidenName(String family, String given, String other, String suffix, String prefix)
      Add a mother's maiden name for the patient.
      Parameters:
      family -
      given -
      other -
      suffix -
      prefix -
    • setPatientReligiousAffiliation

      public void setPatientReligiousAffiliation(String religiousAffiliation)
      Set the religious affiliation for the patient
      Parameters:
      religiousAffiliation -
    • addPatientConfidentialityCode

      public void addPatientConfidentialityCode(String code)
      Add a confidentiality code to the patient
      Parameters:
      code -
    • addPatientID

      public void addPatientID(String extension, String root, String namespace)
      Set the patient id
      Parameters:
      extension -
      root -
      namespace -
    • setPatientVeryImportantPerson

      public void setPatientVeryImportantPerson(String code)
      Set Patient Very Important Person code
      Parameters:
      code -
    • setProviderOrganization

      public void setProviderOrganization(String organizationOID, String organizationName, String telecomValue)
    • setScopingOrganization

      public void setScopingOrganization(String organizationOID, String organizationName, String telecomValue)
      Set the scoping organization for the patient
      Parameters:
      organizationOID -
      organizationName -
      telecomValue -