public boolean afegirMalalties(String dni, List<String> malalties) { Boolean ok = true; for (String m : malalties) { ok = ok && controladorPacients.afegirMalaltia(dni, m); } return ok; }
public static ControladorPresentacioEstudis getInstance(Main main) { if (objecteControladorPresentacioEstudis == null) { objecteControladorPresentacioEstudis = new ControladorPresentacioEstudis(main); controladorAlgorisme = ControladorAlgorisme.getInstance(); controladorPacients = ControladorPacients.getInstance(); controladorSequencies = ControladorSequencies.getInstance(); controladorMalalties = ControladorMalaltiesSimptomes.getInstance(); controladorPresentacioPacients = ControladorPresentacioPacients.getInstance(main); } return objecteControladorPresentacioEstudis; }