Class PatientMRM

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

public class PatientMRM extends MedicalRecordsManager
The PatientMRM class extends MedicalRecordsManager to provide functionalities specific to managing a patient's medical records. It allows patients to view their own medical records.
  • Field Details

    • userId

      protected String userId
  • Constructor Details

    • PatientMRM

      public PatientMRM(MedicalRecordDatabase medicalRecordDatabase, String userId)
      Constructs a PatientMRM with the specified medical record database and user ID.
      Parameters:
      medicalRecordDatabase - the MedicalRecordDatabase used to manage medical records
      userId - the unique identifier of the patient whose records are managed
  • Method Details

    • viewRecord

      public boolean viewRecord()
      Views the medical record of the patient associated with this instance.
      Returns:
      true if the record was successfully viewed; false otherwise