public boolean deletePatient(Patient2 patient) {
        if (nextPatient.isFirst) {
            return false;
        } else if (nextPatient.name.equals(patient.name)) {
            if (nextPatient.isLast) {
                this.isLast = true;
            }
            nextPatient = nextPatient.nextPatient;
            return true;
        } else {
            return nextPatient.deletePatient(patient);
        }
    }