Package ehealth.rdg
Class PatientDiagnosis
java.lang.Object
ehealth.rdg.PatientDiagnosis
Relation: patient_diagnoses.
Supported operations: insert, update.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()voidinsert()Inserts this patient diagnosis.voidsetCheckUpId(Integer checkUpId) voidsetChronic(Boolean chronic) voidsetDiagnosedOn(Date diagnosedOn) voidsetDiagnosisId(Integer diagnosisId) voidsetDoctorId(Integer doctorId) voidvoidsetSufferedUntil(Date sufferedUntil) voidUpdates the chronic and sufferedUntil attributes of this diagnosis.
-
Constructor Details
-
PatientDiagnosis
public PatientDiagnosis() -
PatientDiagnosis
-
-
Method Details
-
getId
-
setId
-
getDoctorId
-
setDoctorId
-
getDiagnosisId
-
setDiagnosisId
-
getCheckUpId
-
setCheckUpId
-
getDiagnosedOn
-
setDiagnosedOn
-
getSufferedUntil
-
setSufferedUntil
-
getChronic
-
setChronic
-
insert
Inserts this patient diagnosis.- Throws:
SQLException- thrown on any database access errorIllegalStateException- throw if some necessary attributes are null
-
updateDetails
Updates the chronic and sufferedUntil attributes of this diagnosis.- Throws:
SQLException- thrown on any database access errorIllegalStateException- throw if some necessary attributes are nullNotFoundException- thrown if the diagnosis could not be found
-