sim_obt10_bruf: Scrapes SIM's ICD-10 data from regions

Description Usage Arguments Value Author(s) See Also Examples

Description

This function allows the user to retrieve data from SIM's ICD-10 database much in the same way that is done by the online portal. The argument options refer to data focused on the regions and states.

Usage

1
2
3
4
5
6
7
sim_obt10_bruf(linha = "Região", coluna = "Não ativa",
  conteudo = 1, periodo = "last", regiao = "all", unidade_da_federacao = "all",
  capitulo_cid10 = "all", grupo_cid10 = "all", categoria_cid10 = "all",
  causa_br_cid10 = "all", causa_mal_definida = "all", faixa_etaria = "all",
  faixa_etaria_ops = "all", faixa_etaria_det = "all", faixa_etaria_menor1a = "all",
  sexo = "all", cor_raca = "all", escolaridade = "all", estado_civil = "all",
  local_ocorrencia = "all")

Arguments

linha

A character describing which element will be displayed in the rows of the data.frame. Defaults to "Região".

coluna

A character describing which element will be displayed in the columns of the data.frame. Defaults to "Não ativa".

conteudo

A character of length = 1 with the state's acronym of interest.

periodo

A character vector describing the period of data. Defaults to the last available.

regiao

"all" or a numeric vector with the IBGE's region codes to filter the data. Defaults to "all".

unidade_da_federacao

"all" or a numeric vector with the IBGE's state codes to filter the data. Defaults to "all".

capitulo_cid10

"all" or a numeric vector with the ICD-10 chapter to filter the data. Defaults to "all".

grupo_cid10

"all" or a character vector with the ICD-10 group (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

categoria_cid10

"all" or a character vector with the ICD-10 category codes (capital letter and two numbers) to filter the data. Defaults to "all".

causa_br_cid10

"all" or a character vector with the ICD-10 cause codes to filter the data. Defaults to "all".

causa_mal_definida

"all" or a character vector with the ill-defined causes (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

faixa_etaria

"all" or a character vector with the age range (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

faixa_etaria_ops

"all" or a character vector with the age range (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all". "ops" in the argument name stands for Pan American Health Organization.

faixa_etaria_det

"all" or a character vector with the age range (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

faixa_etaria_menor1a

"all" or a character vector with the age range (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

sexo

"all" or a character vector with the gender (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

cor_raca

"all" or a character vector with the color/race (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

escolaridade

"all" or a character vector with the instruction (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

estado_civil

"all" or a character vector with the marital status (written in the same way) or the number corresponding to the order of the option in the online layout to filter the data. Defaults to "all".

local_ocorrencia

"all" or a character vector with the place of ocurrence to filter the data. Defaults to "all".

Value

The function returns a data frame printed by parameters input.

Author(s)

Renato Prado Siqueira <rpradosiqueira@gmail.com>

See Also

sinasc_nv_uf

Examples

1
2
3
4
5
## Not run: 
## Requesting data from Midwest region
sim_obt10_bruf(region = 5)

## End(Not run)

datasus documentation built on June 10, 2019, 1:02 a.m.