Package UI.MedicalRecordPages
Class PatientViewMedicalRecordPage
java.lang.Object
Common.UserInterface
UI.MedicalRecordPages.PatientViewMedicalRecordPage
The
PatientViewMedicalRecordPage
class provides functionality for
displaying a patient's medical record. It extends UserInterface
and interacts with the PatientMRM
manager to retrieve and display
medical records.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionPatientViewMedicalRecordPage
(PatientMRM patientMRM) Constructs aPatientViewMedicalRecordPage
with the specifiedPatientMRM
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays the current medical record of the patient.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
PatientViewMedicalRecordPage
Constructs aPatientViewMedicalRecordPage
with the specifiedPatientMRM
instance.- Parameters:
patientMRM
- thePatientMRM
manager used to access medical records
-
-
Method Details
-
displayMedicalRecord
public void displayMedicalRecord()Displays the current medical record of the patient. If the record does not exist, an error message is displayed.
-