Firstly, greetings to everyone. Secondly, I'm currently developing a software that aids the nursing team in referring pregnant women to maternity services. This software will be utilized by the smartH hospital coalition to oversee the allocation of childbirth assistance to specialist doctors, along with their respective hospitals and teams.
The software receives a roster of doctors, detailing each one's relevant attributes for handling childbirth assistance requests at any given moment. It also takes in a schedule of already arranged assistance sessions and a list of pending assistance requests that haven't been assigned to doctors since the last scheduling. Following analysis, the software updates the assistance calendar and the list of doctors, potentially distributing the assistance requests based on their availability and the specific requirements outlined by the nurses.
As for the challenge I'm facing, I've completed the project, but it lacks an object-oriented structure. When seeking guidance from my instructor on how to handle reading the three files and extracting information from them, he proposed incorporating the file reader within designated classes, like placing the doctor file reader within the Doctor class. However, I'm struggling to envision how this can be accomplished without initially defining the class. Any assistance or insights would be immensely appreciated. I'll provide both the code snippet that needs to be integrated into the Doctor class and the structure of the Doctor class itself. Additionally, suggestions regarding the class structure would be beneficial.