Detected 18 occurrence(s) of ‘\bpatient\b(.|\b|\r){0,45}\b(id|dob|claim|NPI|record)\b': d, int did){ if(indexOfDoctorInList(did)<0)//if doctor is not in list System.out.println("Doctor does not work here");//print out statement else if(indexOfPatientInRegister(pid)<0)//if patient is not in list System.out.println("Invalid patient id");//print out statement else{ for(Doctor d: doctors){//for all doctors if(d.getID()==did){//if doctor id equals id entered if(d.addPatient(pid))//if patient added successfully System.out.println("Patient " + pid + " […]
↧