Consider records for patients at a medical facility. Each record contains an integer identification for a patient and strings for the date, the reason for the visit, and the treatment prescribed. Design and implement the class PatientRecord so that it overrides the method hashCode. Write a program that tests your new class. Design a class PatientDataBase that stores instances of PatientRecord, as described above. The class should provide at least three query operations, as follows. Given a patient identification and date, the first operation should return the reason for the visit, and the second operation should return the treatment. The third query operation should return a list of dates, given a patient identification. Implement the class PatientDataBase. Using a hash table to store the patient records. Write a program that demonstrates and tests this class. JAVA PROGRA
Consider records for patients at a medical facility. Each record contains an integer identification for a patient and strings for the date, the reason for the visit, and the treatment prescribed. Design and implement the class PatientRecord so that it overrides the method hashCode. Write a
Design a class PatientDataBase that stores instances of PatientRecord, as described above. The class should provide at least three query operations, as follows. Given a patient identification and date, the first operation should return the reason for the visit, and the second operation should return the treatment. The third query operation should return a list of dates, given a patient identification.
Implement the class PatientDataBase. Using a hash table to store the patient records. Write a program that demonstrates and tests this class.
JAVA PROGRAM
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images