CRM Virtual 5m6i3i

Conselho Regional de Medicina 493l6b

e agora
Encontre um médico 2q5d6s
(PELO MENOS UM DOS SEGUINTES CAMPOS DEVE SER PREENCHIDO: NOME DO MÉDICO, UF, CRM)
52
'; html += '
'; html += '
'; html += '
'; if(!!item.NM_SOCIAL){ html += '

' + item.NM_SOCIAL + ' (nome social/indígena) 2z6l6q

'; html += '

' + item.NM_MEDICO + ' (nome de registro) 4mg19

'; } else { html += '

' + item.NM_MEDICO + ' 6m73l

'; } html += '
'; html += '
'; html += ' CRM: ' + item.NU_CRM + "-" + item.SG_UF; html += '
'; html += '
'; html += ' Data de Inscrição: ' + (item.DT_INSCRICAO ? item.DT_INSCRICAO : ''); html += '
'; html += '
'; html += ' Primeira inscrição na UF: ' + item.PRIM_INSCRICAO_UF; html += '
'; html += '
'; html += '
'; html += '
'; html += ' Inscrição: ' + item.TIPO_INSCRICAO; html += '
'; html += '
'; html += ' Situação: ' + item.SITUACAO + ''; html += '
'; html += '
'; if (item.IN_TIPO_INSCRICAO !== 'E') { html += ' '; } nameEspec2 = ''; if (!nameEspec) { nameEspec2 = ' Médico sem especialidade registrada.'; } html += '
'; html += '
'; html += ' Especialidades/Áreas de Atuação:'+nameEspec2; html += '
'; html += '
'; if (nameEspec) { html += '
' + nameEspec + '
'; } // } html += ' '; html += ' '; html += ' '; html += ` `; if(item.NM_FACULDADE_ESTRANGEIRA_GRADUACAO != null){ html +=`
Instituição de Graduação: `+item.NM_FACULDADE_ESTRANGEIRA_GRADUACAO+`
Instituição de Revalidação: `+item.NM_INSTITUICAO_GRADUACAO+`
Ano de conclusão: `+item.DT_GRADUACAO+`
`; html +=`
`; } else if(item.NM_INSTITUICAO_GRADUACAO != null) { html += `
Instituição de Graduação: `+item.NM_INSTITUICAO_GRADUACAO+`
Ano de conclusão: `+item.DT_GRADUACAO+`
`; html += `
`; } html += `
`; if (item.IN_TIPO_INSCRICAO === 'E') { html += '
'; html += '
'; html += ' EME - LICENÇA TEMPORÁRIA ESTUDANTE FORMADOS NO EXTERIOR'; html += '

É vedada a realização de atos médicos pelo ESTUDANTE fora da instituição do programa, ou mesmo em atividades médicas de outra natureza e em locais não previstos pelo programa na mesma instituição, sob a pena de incorrer em exercício ilegal da medicina, tendo seu programa imediatamente interrompido, sem prejuízo de outras sanções legais.

'; html += '
'; html += '
'; } html += '
'; html += ' '; html += ' '; html += ' '; html += ' '; $(".busca-resultado").append(html); getMoreInfo(item.NU_CRM_NATURAL, item.SG_UF, item.SECURITYHASH, index); // resultado.push(item.COUNT); if(item.COD_SITUACAO != 'A'){ $.ajax('/wp-content/themes/portalcfm/assets/php/documento_medico.php?crm='+item.NU_CRM_NATURAL+'&uf='+item.SG_UF+'&hash='+item.SECURITYHASH+'&check=true',{ async: 'false', method: 'get', }).done(function(res) { if(res > 0){ if(item.TIPO == 'P'){ docLabel = 'documento de suspensão temporária'; } else { docLabel = 'documento de decisão'; } docLink = ' ('+docLabel+')'; jQuery('#doc'+item.NU_CRM_NATURAL+item.SG_UF).append(docLink); } }); } }); resultado = result.dados[0].COUNT; if (resultado > 0) { var htmlResultados = `
${resultado} registros encontrados
`; $("#resultados").html(htmlResultados); // var qtdPaginas = parseInt(resultado[0]) / parseInt(pageSize); // var qtdPaginasTrat = qtdPaginas.toLocaleString('pt-BR', { // currency: 'BRL' // }); // var qtdRegistros = parseInt(resultado[0]).toLocaleString('pt-BR', { // currency: 'BRL' // }); // let htmlPagination = ` //
// //

Mostrando página ${page} de ${parseFloat(qtdPaginasTrat)}

//

${qtdRegistros} registros encontrados

//
// `; // $(".busca-resultado").append(htmlPagination); // page++; if (rerender) { renderPagination(pageA); } initGet = true; $('.loading').css("display", "none"); } else { if (rerender) { renderPagination(pageA); } initGet = true; $('.loading').css("display", "none"); } } else { if (rerender) { renderPagination(pageA); } initGet = true; var html = '
'; html += '

Nenhum resultado encontrado

'; html += '
'; $(".busca-resultado").html(html); $('.loading').css("display", "none"); } $('.loading').css("display", "none"); // $('html, body').animate({ // scrollTop: $('.btn-buscar').offset().top - 200 // }, 500); } }) .fail(function(jqXHR, textStatus, msg) { alert('Houve um erro ao efetuar sua busca, por favor, tente mais tarde!'); $(".btn-buscar").html("Buscar"); }); return false; }; function getMoreInfo(crm, uf, securityHash, index) { // window.reloadCaptcha(function() { // onGetMoreInfo(crm, uf, index); // }); onGetMoreInfo(crm, uf, securityHash, index); } function onGetMoreInfo(crm, uf, securityHash, index) { const captcha = $('input[name="g-recaptcha-response"]').val(); $.ajax(window._API.endpoint + '/medicos/buscar_foto/',{ method: 'post', dataType: 'json', data: JSON.stringify([{securityHash: securityHash, crm: crm, uf: uf}]), }).done(function(res) {; if (res && res.status && res.dados) { var values = res.dados[0]; if (values.AUTORIZACAO_IMAGEM !== "N"/* && values.IMAGEM*/) { $('.resultMedico_' + index + ' .picture').html(''); //$('.resultMedico_' + index + ' .picture').html(''); } if (values.AUTORIZACAO_ENDERECO == "S") { $('.resultMedico_' + index + ' .card-body .endereco').html("
Endereço: " + values.ENDERECO + '
'); $('.resultMedico_' + index + ' .card-body .endereco').show(); } else { $('.resultMedico_' + index + ' .endereco').html( "
Endereço: Exibição não autorizada pelo médico." + '
'); $('.resultMedico_' + index + ' .endereco').show(); } if (values.TELEFONE && values.AUTORIZACAO_ENDERECO == "S") { $('.resultMedico_' + index + ' .telefone').html("
Telefone: " + values .TELEFONE + '
'); $('.resultMedico_' + index + ' .telefone').show(); } else { $('.resultMedico_' + index + ' .telefone').html( "
Telefone: Exibição não autorizada pelo médico." + '
'); $('.resultMedico_' + index + ' .telefone').show(); } if (values.INSCRICAO) { $('.resultMedico_' + index).find(".item_outro_estado").show(); $('.resultMedico_' + index).find(".item_outro_estado span").html(values.INSCRICAO); } if (values.VP_DESTINO) { $('.resultMedico_' + index).find(".visto_provisorio").show(); if(res.dados.length > 1){ elstring = ''; res.dados.forEach(function(el){ elstring += 'CRM-'+el.VP_DESTINO+' de '+el.VP_INICIO+' à '+el.VP_FIM+'
'; }) $('.resultMedico_' + index).find(".visto_provisorio span").html('
'+elstring+'
'); } else { $('.resultMedico_' + index).find(".visto_provisorio span").html('CRM-'+values.VP_DESTINO+' de '+values.VP_INICIO+' a '+values.VP_FIM); } } } }); } function buscarEspecialidadeMedico(id) { const captcha = $('input[name="g-recaptcha-response"]').val(); $.ajax(window._API.endpoint + '/medicos/buscar_foto/', { method: 'post', dataType: 'json', data: JSON.stringify([{captcha: captcha, crm: crm, uf: uf}]), }).done(function(res) { if (res && res.status && res.dados) { var values = res.dados[0]; if (values.AUTORIZACAO_IMAGEM && values.IMAGEM) { $('.resultMedico_' + index + ' .picture').html(''); } if (values.AUTORIZACAO_ENDERECO && values.ENDERECO) { $('.resultMedico_' + index + ' .endereco').html("Endereço: " + values.ENDERECO); } } }); } function listarUFs() { $.ajax(window._API.endpoint + '/medicos/listar_ufs', { dataType: 'json' }).done(function(res) { if (res && res.status && res.dados) { var ufs = []; res.dados.forEach(function(item) { $("#uf").append(''); }); // setTimeout(function() { // restoreRota(); // $("#uf").trigger("change"); // }, 100); } }); } $("#uf").change(function(e) { var uf = e.target.value; if (uf === 'RJ') { $('.basic-addon').show(); $('.controll-state').addClass('selectRJ'); } else { $('.basic-addon').hide(); $('.controll-state').removeClass('selectRJ'); } $.ajax(window._API.endpoint + '/medicos/listar_municipios/' + uf, { dataType: 'json' }).done(function(res) { if (res && res.status && res.dados) { var municipios = []; $("#municipio").html(''); $("#municipio").append(''); res.dados.forEach(function(item) { $("#municipio").append(''); // municipios.push({ // text: item.DS_MUNICIPIO, // value: item.ID_MUNICIPIO // }); }) // select_municipio.options = municipios; // select_municipio.refreshOptions(); } }); }); function listarEspecialidades() { $.ajax(window._API.endpoint + '/medicos/listar_especialidades', { dataType: 'json' }).done(function(res) { if (res && res.status && res.dados) { var especialidades = []; res.dados.forEach(function(item) { $("#especialidade").append(''); }) } }); } $(".limpaArea").click(function() { $("#especialidade").val(''); valuesEspecilidades('', true); }); $("#especialidade").change(function(e) { valuesEspecilidades(e); }); function valuesEspecilidades(e, limp) { var especialidade = limp ? '' : e.target.value; $.ajax(window._API.endpoint + '/medicos/buscar_areas_atuacao/' + especialidade, { dataType: 'json' }).done(function(res) { $("#areaAtuacao").html(''); if (res && res.status && res.dados) { if (res.dados.length) { var especialidades = []; $("#areaAtuacao").append(''); res.dados.forEach(function(item) { $("#areaAtuacao").append(''); }) } else { $("#areaAtuacao").html(''); } } }); } function setupSituacao() { // var select_tipo_situacao, $select_tipo_situacao; // var select_situacao, $select_situacao; // $select_tipo_situacao = $('select#tipoSituacao').selectize({ // onChange: function(value) { // select_situacao.options = buscarDetalhesSituacao(value); // } // }); // $select_situacao = $('select#situacao').selectize(); // select_tipo_situacao = $select_tipo_situacao[0].selectize; // select_situacao = $select_situacao[0].selectize; } $("#tipoSituacao").change(function(e) { var situacao = e.target.value var detalhes = {}; if (situacao == 'A') { detalhes = { '': 'Todos os ativos', 'E': 'Inoperante', 'N': 'Interdição cautelar - parcial', 'A': 'Regular', 'X': 'Suspenso - parcial', 'J': 'Suspenso por ordem judicial - parcial', 'G': 'Sem o exercício da profissão na UF', } } else if (situacao == 'I') { detalhes = { '': 'Todos os inativos', 'P': 'Aposentado', 'L': 'Cancelado', 'C': 'Cassado', 'F': 'Falecido', 'I': 'Interdição cautelar - total', 'R': 'Suspensão temporária', 'S': 'Suspenso - total', 'O': 'Suspenso por ordem judicial - total', 'T': 'Transferido', } } else { detalhes = { '': 'Selecione uma situação', } } var data = []; $("#situacao").html(''); Object.keys(detalhes).forEach(function(key) { var title = detalhes[key]; if (title) { // data.push({ // text: title, // value: key // }) $("#situacao").append(''); } }) // return data; }); function init() { // $select_municipio = $('select#municipio').selectize(); // select_municipio = $select_municipio[0].selectize; listarUFs(); listarEspecialidades(); valuesEspecilidades('', true); // restoreRota(); // $("#tipoSituacao").trigger("change"); setTimeout(function() { //BRUNO restoreRota(true); }, 1000); } window.addEventListener("load", function() { init(); }) function restoreRota(autoSearch) { var urlParams = new URLSearchParams(window.location.search); var shouldSearch = false; var params = urlParams.values(); function setValue(field) { var value = params[field]; if(!value) return false; $("#" + field).val(value); $("[name=" + field + "]").val(value); return true; } var entries = urlParams.entries(); var params = {}; for (pair of entries) { params[pair[0]] = pair[1]; if(pair[1]){ shouldSearch = true; } } setValue('nome'); setValue('crm'); if(setValue('uf')){ $("#uf").trigger("change"); setTimeout(function(){ setValue('municipio'); },200); } if(setValue('tipoSituacao')){ $("#tipoSituacao").trigger("change"); } setValue('situacao'); setValue('inscricao'); if(setValue('especialidade')){ $("#especialidade").trigger("change"); setTimeout(function(){ setValue('areaAtuacao'); },200); } // for(pair of entries) { // if(pair[1]){ // shouldSearch = true; // } // $("#" + pair[0]).val(pair[1]); // $("[name=" + pair[0] + "]").val(pair[1]); // // if(pair[0] === "tipoSituacao"){ // // console.log(pair[0]); // // $("#tipoSituacao").trigger("change"); // // } // // if(pair[0] === "detalheSituacao"){ // // setTimeout(function(){ // // $("#" + pair[0]).val(pair[1]); // // $("[name=" + pair[0] + "]").val(pair[1]); // // },100); // // } // } console.log(params); if (autoSearch && shouldSearch) { var page = params.pageNumber || 1; getInfo(parseInt(page),true); setTimeout(function(){ // $('#paginacao').pagination('go', params.pageNumber); },1000); } } function newRota(params) { /* nomeMedico=&ufMedico=DF&crmMedico=&municipioMedico=1778&tipoInscricaoMedico=&situacaoMedico=&detalheSituacaoMedico=&especialidadeMedico=&areaAtuacaoMedico=&*/ //${params[0].page} const page = params[0].page; const pageSize = params[0].pageSize; const medico = params[0].medico || {}; /* medico: { nome: formData.nome, ufMedico: formData.uf, crmMedico: formData.crm, municipioMedico: formData.municipio, tipoInscricaoMedico: formData.inscricao, situacaoMedico: formData.tipoSituacao, detalheSituacaoMedico: formData.situacao, especialidadeMedico: formData.especialidade, areaAtuacaoMedico: formData.areaAtuacao },*/ const search = `?nome=${medico.nome}&uf=${medico.ufMedico}&crm=${medico.crmMedico}&municipio=${medico.municipioMedico}&inscricao=${medico.tipoInscricaoMedico}&tipoSituacao=${medico.situacaoMedico}&situacao=${medico.detalheSituacaoMedico}&especialidade=${medico.especialidadeMedico}&areaAtuacao=${medico.areaAtuacaoMedico}&pageNumber=${page}&pageSize=${pageSize}`; window.history.pushState({}, "", `/busca-medicos/${search}`); } function renderPagination(pageNumber) { if(isNaN(pageNumber)){ pageNumber = 1; } if(window.currentPage != ''){ pageNumber = window.currentPage; } const qtdPaginas = []; console.log(resultado); if(resultado > 0){ for (let index = 0; index < resultado; index++) { qtdPaginas.push(index); } $('#paginacao').pagination({ dataSource: qtdPaginas, pageSize: pageSize, pageNumber: pageNumber, showPrevious: false, showNext: false, callback: function(data, pagination) { if (initGet) { initGet = false; window.currentPage = pagination.pageNumber; getInfo(pagination.pageNumber, false); } else { if(recaptchaPublicKeyV2){ grecaptcha.execute(); } } } }); } else { for (let index = 0; index < 1000; index++) { qtdPaginas.push(index); } $('#paginacao').pagination({ dataSource: qtdPaginas, pageSize: pageSize, pageNumber: pageNumber, showPageNumbers: true, showPrevious: true, showNext: true, callback: function(data, pagination) { if (initGet) { initGet = false; console.log(currentResultCache.dados.length); console.log(pagination.pageNumber); //if(currentResultCache.dados.length < 10){ // renderPagination(pagination.pageNumber-1); //} getInfo(pagination.pageNumber, false); } else { if(recaptchaPublicKeyV2){ grecaptcha.execute(); } } pagination.dataSource = resultado; } }); } } })(jQuery);
Aviso de Privacidade 1z496u
Nós usamos cookies para melhorar sua experiência de navegação no portal. Ao utilizar o Portal Médico, você concorda com a política de monitoramento de cookies. Para ter mais informações sobre como isso é feito, e Política de cookies. Se você concorda, clique em ACEITO.