Package ehealth.rdg

Class PatientDiagnosis

java.lang.Object
ehealth.rdg.PatientDiagnosis

public class PatientDiagnosis extends Object
Relation: patient_diagnoses. Supported operations: insert, update.
  • Constructor Details

    • PatientDiagnosis

      public PatientDiagnosis()
    • PatientDiagnosis

      public PatientDiagnosis(Integer id, Integer doctorId, Integer diagnosisId, Integer checkUpId, Date diagnosedOn, Date sufferedUntil, Boolean chronic)
  • Method Details

    • getId

      public Integer getId()
    • setId

      public void setId(Integer id)
    • getDoctorId

      public Integer getDoctorId()
    • setDoctorId

      public void setDoctorId(Integer doctorId)
    • getDiagnosisId

      public Integer getDiagnosisId()
    • setDiagnosisId

      public void setDiagnosisId(Integer diagnosisId)
    • getCheckUpId

      public Integer getCheckUpId()
    • setCheckUpId

      public void setCheckUpId(Integer checkUpId)
    • getDiagnosedOn

      public Date getDiagnosedOn()
    • setDiagnosedOn

      public void setDiagnosedOn(Date diagnosedOn)
    • getSufferedUntil

      public Date getSufferedUntil()
    • setSufferedUntil

      public void setSufferedUntil(Date sufferedUntil)
    • getChronic

      public Boolean getChronic()
    • setChronic

      public void setChronic(Boolean chronic)
    • insert

      public void insert() throws SQLException, IllegalStateException
      Inserts this patient diagnosis.
      Throws:
      SQLException - thrown on any database access error
      IllegalStateException - throw if some necessary attributes are null
    • updateDetails

      public void updateDetails() throws SQLException, IllegalStateException, NotFoundException
      Updates the chronic and sufferedUntil attributes of this diagnosis.
      Throws:
      SQLException - thrown on any database access error
      IllegalStateException - throw if some necessary attributes are null
      NotFoundException - thrown if the diagnosis could not be found