Class DoctorMRM

java.lang.Object
Common.MedicalRecordsManager
Controllers.MRManagers.DoctorMRM

public class DoctorMRM extends MedicalRecordsManager
The DoctorMRM class extends MedicalRecordsManager to provide functionalities specific to managing medical records for patients by doctors. It allows doctors to view, edit, and update patient records.
  • Constructor Details

  • Method Details

    • viewAllRecords

      public boolean viewAllRecords()
      Views all patient medical records managed by the doctor.
      Returns:
      true if records were successfully viewed; false if no records exist
    • setBloodType

      public boolean setBloodType(String id, BloodType bloodType)
      Sets the blood type for a specific patient record.
      Parameters:
      id - the unique identifier of the patient whose blood type is to be set
      bloodType - the new blood type to set for the patient
      Returns:
      true if the blood type was successfully set; false if not found
    • addDiagnoses

      public boolean addDiagnoses(String id, String diagnose)
      Adds a diagnosis to a specific patient record.
      Parameters:
      id - the unique identifier of the patient whose diagnosis is to be added
      diagnose - the diagnosis to add
      Returns:
      true if the diagnosis was successfully added; false if not found or invalid input
    • addTreatments

      public boolean addTreatments(String id, String treatment)
      Adds a treatment to a specific patient record.
      Parameters:
      id - the unique identifier of the patient whose treatment is to be added
      treatment - the treatment to add
      Returns:
      true if the treatment was successfully added; false if not found or invalid input
    • editDiagnoses

      public boolean editDiagnoses(String id, int index, String diagnose)
      Edits an existing diagnosis in a specific patient record.
      Parameters:
      id - the unique identifier of the patient whose diagnosis is to be edited
      index - the index of the diagnosis to edit (1-based index)
      diagnose - the new diagnosis value
      Returns:
      true if the diagnosis was successfully edited; false if not found or invalid input
    • editTreatments

      public boolean editTreatments(String id, int index, String treatment)
      Edits an existing treatment in a specific patient record.
      Parameters:
      id - the unique identifier of the patient whose treatment is to be edited
      index - the index of the treatment to edit (1-based index)
      treatment - the new treatment value
      Returns:
      true if the treatment was successfully edited; false if not found or invalid input