public String loadMedico() {
        Map parametros = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
        String idMed = parametros.get("idMedico").toString();
        Integer id = Integer.parseInt(idMed);

        int i;
        for (i = 0; i < medicosBean.size(); i++) {
            if (medicosBean.get(i).getIdMedico().equals(id)) {
                break;
            }
        }

        this.idMedico = id;
        this.nome = medicosBean.get(i).getNome();
        this.crm = medicosBean.get(i).getCrm();

        return "carrega";
    }