Package Controllers.MRManagers
Class PatientMRM
java.lang.Object
Common.MedicalRecordsManager
Controllers.MRManagers.PatientMRM
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 Summary
FieldsFields inherited from class Common.MedicalRecordsManager
medicalRecordDatabase
-
Constructor Summary
ConstructorsConstructorDescriptionPatientMRM
(MedicalRecordDatabase medicalRecordDatabase, String userId) Constructs aPatientMRM
with the specified medical record database and user ID. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Views the medical record of the patient associated with this instance.Methods inherited from class Common.MedicalRecordsManager
getRecord, viewDiagnoses, viewRecord, viewTreatments
-
Field Details
-
userId
-
-
Constructor Details
-
PatientMRM
Constructs aPatientMRM
with the specified medical record database and user ID.- Parameters:
medicalRecordDatabase
- theMedicalRecordDatabase
used to manage medical recordsuserId
- 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
-