<div dir="ltr">Se o formato do SISAB for documentada certamente é factível gerar um código para extrair os dados e colocá-los nas estruturas de dados convenientes para uso no R, provavelmente <font face="monospace">dataframes</font> ou os mais modernos <font face="monospace">tibles</font>.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 9, 2024 at 9:07 PM Hidelbrando Rodrigues por (R-br) <<a href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">Olá a todos.</div><div dir="auto"><br></div>Permitam-me participar da conversa. Nosso laboratório LAMAPP (Laboratório de Monitoramento e Avaliação de Políticas Públicas), aqui da federal do Amazonas, tem parceria com o Centro de Estudos Estratégicos do FIOCRUZ. <div dir="auto"><br></div><div dir="auto">Nós criamos um curso de Ciência de Dados Aplicado à Saúde. Ele será hospedado em uma plataforma que ainda vamos definir. Ele será aberto e gratuito. Utilizamos como base, dados do SISAB, que não são tão amigáveis para baixar.</div><div dir="auto"><br></div><div dir="auto">Diante do exposto, seguem as questões:</div><div dir="auto"><br></div><div dir="auto">* Seria possível criar um código para extrair essa base diretamente do site??</div><div dir="auto"><br></div><div dir="auto">* Existem outros pacotes para baixar dados de saúde, além do mencionado nesta conversa?</div><div dir="auto"><br></div><div dir="auto">Att.</div><div dir="auto"><br></div><div dir="auto">Hidelbrando </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 9 de jul. de 2024 12:59, Elias Carvalho por (R-br) <<a href="mailto:r-br@listas.c3sl.ufpr.br" target="_blank">r-br@listas.c3sl.ufpr.br</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Caro Bernardo, eu agradeço antecipadamente<br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Eu trabalho no TI de uma universidade estadual e temos nosso hospital universitário que atende muita gente, se não me engano além da cidade, atende mais de 100 municípios ao redor.<br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Nosso problema é que o hospital usa o GSUS (prontuário do PR) e este não exporta dados, não tem API (pelo menos para nós).<br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Gostaríamos de ter informações sobre prontuário, atendimento ambulatorial, prescrição de medicamentos, imagens e laudos de forma analítica, pois eu trabalho com BI (Qlik Sense) e gostaria de gerar gráficos e tabelas com esses dados, além de pedir para minha equipe desenvolver softwares de apoio com base nessas informações.<br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Eu creio que todos esses dados são exportados para o SUS e daí uma tentativa seria extraí-los pelo R.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 9 de jul. de 2024 às 12:28, Bernardo Rangel Tura por (R-br) <<a href="mailto:r-br@listas.c3sl.ufpr.br" rel="noreferrer" target="_blank">r-br@listas.c3sl.ufpr.br</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p>Elias o pacote do Rafael é maravilhoso vivo sugerindo para as
      pessoas usarem mas para algumas coisas às vezes não funciona,
      quase sempre porque as bases são muito mal feitas. <br>
      Como trabalho com elas a mais e 20 anos estou acostumando a
      resolver esse tipo de encrenca.<br>
      Que tal você descrever o que precisa e crio um script para você?</p>
    <p>Bernardo Tura<br>
      NBB - INC/MS<br>
    </p>
    <div>On 6/18/24 15:19, Elias Carvalho por
      (R-br) wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Outra
          coisa, consigo extrair dados da BPA-I (<span lang="pt"><span><b>Boletim de Produção Ambulatorial –
                Individualizado</b></span></span>) ?<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Em ter., 18 de jun. de 2024 às
          15:04, Elias Carvalho <<a href="mailto:ecacarva@gmail.com" rel="noreferrer" target="_blank">ecacarva@gmail.com</a>>
          escreveu:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Procurei
              aqui mas não achei, pelo fetch_datasus, dá para extrair
              dados de um CNES específico Rafael ?<br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">Em ter., 18 de jun. de
              2024 às 10:59, Raphael Saldanha <<a href="mailto:rfsaldanha@gmail.com" rel="noreferrer" target="_blank">rfsaldanha@gmail.com</a>>
              escreveu:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div style="padding-bottom:1px">
                <p>Obrigado! Para filtrar por um hospital específico,
                  você precisa saber o código CNES da unidade de saúde.
                  Você pode procurar o código aqui: <a href="http://cnes.datasus.gov.br" rel="noreferrer" target="_blank">cnes.datasus.gov.br</a><br>
                </p>
                <div>On 2024-06-18 15:57, Elias Carvalho wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Excelente
                      Rafael ! Muito bom seu pacote.<br>
                      Vou dar uma olhada, no momento eu preciso extrair
                      informações de um hospital público específico<br>
                    </div>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">Em ter., 18 de
                      jun. de 2024 às 10:40, Raphael Saldanha por (R-br)
                      <<a href="mailto:r-br@listas.c3sl.ufpr.br" rel="noreferrer" target="_blank">r-br@listas.c3sl.ufpr.br</a>>
                      escreveu:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                      <div style="padding-bottom:1px">
                        <p>Olá Elias,</p>
                        <p>Os dados de atendimentos ambulatoriais da
                          dimensão pública do SUS são registrados em um
                          sistema de informações em saúde denominado
                          Sistema de Informações Ambulatoriais.</p>
                        <p>Você consegue acessar esses dados com o R
                          usando o pacote {microdatasus}</p>
                        <p><a href="https://rfsaldanha.github.io/microdatasus/" rel="noreferrer" target="_blank">https://rfsaldanha.github.io/microdatasus/</a></p>
                        <p>Posso te ajudar com mais detalhes se
                          precisar.</p>
                        <p><br>
                        </p>
                        <p>Abraços,</p>
                        <p>Raphael Saldanha<br>
                        </p>
                        <p><br>
                        </p>
                        <div>On 2024-06-18 15:34, Elias Carvalho por
                          (R-br) wrote:<br>
                        </div>
                        <blockquote type="cite">
                          <div dir="ltr">
                            <div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Bom dia
                              pessoal<br>
                            </div>
                            <div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Alguém sabe se
                              há algum pacote do R que extraia dados de
                              atendimentos do SUS ?<br>
                              <br>
                              <br clear="all">
                            </div>
                            <br>
                            <span class="gmail_signature_prefix">-- </span><br>
                            <div dir="ltr" class="gmail_signature">
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div dir="ltr">
                                        <div>
                                          <div dir="ltr">
                                            <div>
                                              <div dir="ltr">
                                                <div>
                                                  <div dir="ltr">
                                                    <div dir="ltr">
                                                      <div><font size="4" face="times new roman, serif"><i><span>In Jesu et Maria</span><br>
                                                          <br>
                                                          </i></font>
                                                        <div>
                                                          <div dir="ltr">
                                                          <div dir="ltr">
                                                          <div dir="ltr">
                                                          <div><font size="4" face="times new roman, serif"><i>Obrigado / Thank you<br>
                                                          </i></font></div>
                                                          <div><font size="4" face="times new roman, serif"><i>Prof. Dr. Elias Carvalho</i></font></div>
                                                          <div><font size="4" face="times new roman, serif"><i><br>
                                                          </i></font></div>
                                                          <div><font size="4" face="times new roman, serif"><i>
                                                          <div>"Felix,
                                                          qui potuit
                                                          rerum
                                                          cognoscere
                                                          causas"
                                                          (Virgil 29 BC)</div>
                                                          <div>"Blessed
                                                          is he who has
                                                          been able to
                                                          understand the
                                                          cause of
                                                          things"</div>
                                                          </i></font></div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                          <br>
                          <fieldset></fieldset>
                          <pre>_______________________________________________
R-br mailing list
<a href="mailto:R-br@listas.c3sl.ufpr.br" rel="noreferrer" target="_blank">R-br@listas.c3sl.ufpr.br</a>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.
</pre>
                        </blockquote>
                      </div>
                      _______________________________________________<br>
                      R-br mailing list<br>
                      <a href="mailto:R-br@listas.c3sl.ufpr.br" rel="noreferrer" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
                      <a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
                      Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>)
                      e forneça código mínimo reproduzível.<br>
                    </blockquote>
                  </div>
                  <br clear="all">
                  <br>
                  <span class="gmail_signature_prefix">-- </span><br>
                  <div dir="ltr" class="gmail_signature">
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div dir="ltr">
                                          <div dir="ltr">
                                            <div><font size="4" face="times new roman, serif"><i><span>In Jesu et Maria</span><br>
                                                  <br>
                                                </i></font>
                                              <div>
                                                <div dir="ltr">
                                                  <div dir="ltr">
                                                    <div dir="ltr">
                                                      <div><font size="4" face="times new roman, serif"><i>Obrigado / Thank you<br>
                                                          </i></font></div>
                                                      <div><font size="4" face="times new roman, serif"><i>Prof. Dr. Elias Carvalho</i></font></div>
                                                      <div><font size="4" face="times new roman, serif"><i><br>
                                                          </i></font></div>
                                                      <div><font size="4" face="times new roman, serif"><i>
                                                          <div>"Felix,
                                                          qui potuit
                                                          rerum
                                                          cognoscere
                                                          causas"
                                                          (Virgil 29 BC)</div>
                                                          <div>"Blessed
                                                          is he who has
                                                          been able to
                                                          understand the
                                                          cause of
                                                          things"</div>
                                                          </i></font></div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
            </blockquote>
          </div>
          <br clear="all">
          <br>
          <span class="gmail_signature_prefix">-- </span><br>
          <div dir="ltr" class="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div><font size="4" face="times new roman, serif"><i><span>In
                                            Jesu et Maria</span><br>
                                          <br>
                                        </i></font>
                                      <div>
                                        <div dir="ltr">
                                          <div dir="ltr">
                                            <div dir="ltr">
                                              <div><font size="4" face="times new roman, serif"><i>Obrigado / Thank you<br>
                                                  </i></font></div>
                                              <div><font size="4" face="times new roman, serif"><i>Prof. Dr. Elias Carvalho</i></font></div>
                                              <div><font size="4" face="times new roman, serif"><i><br>
                                                  </i></font></div>
                                              <div><font size="4" face="times new roman, serif"><i>
                                                    <div>"Felix, qui
                                                      potuit rerum
                                                      cognoscere causas"
                                                      (Virgil 29 BC)</div>
                                                    <div>"Blessed is he
                                                      who has been able
                                                      to understand the
                                                      cause of things"</div>
                                                  </i></font></div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <br>
      <span class="gmail_signature_prefix">-- </span><br>
      <div dir="ltr" class="gmail_signature">
        <div dir="ltr">
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div dir="ltr">
                                <div><font size="4" face="times new roman, serif"><i><span>In
                                        Jesu et Maria</span><br>
                                      <br>
                                    </i></font>
                                  <div>
                                    <div dir="ltr">
                                      <div dir="ltr">
                                        <div dir="ltr">
                                          <div><font size="4" face="times new roman, serif"><i>Obrigado / Thank you<br>
                                              </i></font></div>
                                          <div><font size="4" face="times new roman, serif"><i>Prof. Dr. Elias Carvalho</i></font></div>
                                          <div><font size="4" face="times new roman, serif"><i><br>
                                              </i></font></div>
                                          <div><font size="4" face="times new roman, serif"><i>
                                                <div>"Felix, qui potuit
                                                  rerum cognoscere
                                                  causas" (Virgil 29 BC)</div>
                                                <div>"Blessed is he who
                                                  has been able to
                                                  understand the cause
                                                  of things"</div>
                                              </i></font></div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
R-br mailing list
<a href="mailto:R-br@listas.c3sl.ufpr.br" rel="noreferrer" target="_blank">R-br@listas.c3sl.ufpr.br</a>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" rel="noreferrer" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font size="4" face="times new roman, serif"><i><span>In Jesu et Maria</span><br><br></i></font><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font size="4" face="times new roman, serif"><i>Obrigado / Thank you<br></i></font></div><div><font size="4" face="times new roman, serif"><i>Prof. Dr. Elias Carvalho</i></font></div><div><font size="4" face="times new roman, serif"><i><br></i></font></div><div><font size="4" face="times new roman, serif"><i><div>"Felix, qui potuit rerum cognoscere causas" (Virgil 29 BC)</div><div>"Blessed is he who has been able to understand the cause of things"</div></i></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" rel="noreferrer" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br>
</blockquote></div>
_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br>
</blockquote></div>