Given a list of waiting patients (including the procedure that they wait for and the wait time system target for that procedure), patient specific parameters such as urgency, age, availability, etc. and an OR slot (date, time and duration), the program will recommend the best match patient to be assigned the slot. The program will offer a fair and transparent method to match need and availability, reduce guesswork and lower the complexity of booking.
I am planning to get the file locations for both patientinfo and datetimeinfo, i assumed that both files are in csv format. Then i will have an ArrayList of ArrayLists for patientinfo in form of [[Name, urgency, age, availabilities],[Name, urgency, age, availabilities],...] (sorted by the urgency, ranked from 1-10), and an ArrayList of datetimeinfo in form of [date, time, duration, date, time, duration.......], and then i created a method call match, which will match the patient to specific time when the patient is available and i ll remove the time chosen from the datetimeinfo ArrayList. I was using quite a few nested loops in between so i am not sure whether this is the way i should do it or there is some more efficient ways to approach this problem.