Skip to content

Commit

Permalink
Merge pull request #36 from rfsaldanha/sinan-malaria
Browse files Browse the repository at this point in the history
Sinan malaria
  • Loading branch information
rfsaldanha authored Sep 14, 2021
2 parents bf00c94 + b596dd7 commit af09380
Show file tree
Hide file tree
Showing 9 changed files with 388 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: microdatasus
Title: Download and preprocess DataSUS files
Version: 1.3.1
Version: 1.4.0
Authors@R:
person(given = "Raphael",
family = "Saldanha",
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export(process_sih)
export(process_sim)
export(process_sinan_chikungunya)
export(process_sinan_dengue)
export(process_sinan_malaria)
export(process_sinan_zika)
export(process_sinasc)
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# microdatasus 1.4.0
* Download and preprocess SINAN Malaria files.

# microdatasus 1.3.1
* Update functions documentation.

Expand Down
1 change: 0 additions & 1 deletion R/process_sinan_dengue.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#' @examples \dontrun{
#' df <- fetch_datasus(year_start = 2016, year_end = 2016,
#' uf = "RJ", information_system = "SINAN-DENGUE-FINAL")
#' df <- process_sinan_dengue(year_start = 2016, year_end = 2016, uf = "RJ")
#' df_a <- process_sinan_dengue(df)
#' df_b <- process_sinan_dengue(df, municipality_data = FALSE)
#' }
Expand Down
345 changes: 345 additions & 0 deletions R/process_sinan_malaria.R

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ O manual para a utilização do pacote encontra-se na [Wiki do projeto](https://

### Sistemas de Informação em Saúde suportados

* Download: SIM, SINASC, SIH, CNES, SIA, SINAN-DENGUE, SINAN-CHIKUNGUNYA, SINAN-ZIKA.
* Pré-processamento: SIM, SINASC, SIH-RD, CNES-ST, CNES-PF, SINAN-DENGUE, SINAN-CHIKUNGUNYA, SINAN-ZIKA.
* Download: SIM, SINASC, SIH, CNES, SIA, SINAN-DENGUE, SINAN-CHIKUNGUNYA, SINAN-ZIKA, SINAN-MALARIA.
* Pré-processamento: SIM, SINASC, SIH-RD, CNES-ST, CNES-PF, SINAN-DENGUE, SINAN-CHIKUNGUNYA, SINAN-ZIKA, SINAN-MALARIA.

## Agradecimento

Expand Down
1 change: 0 additions & 1 deletion man/process_sinan_dengue.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions man/process_sinan_malaria.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions tests/testthat/test-sinan-malaria.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
test_that("sinan-malaria-final at 2016", {
sinan_malaria_final <- fetch_datasus(year_start = 2016, year_end = 2016, uf = "AM", information_system = "SINAN-MALARIA-FINAL")
sinan_malaria_final <- process_sinan_malaria(sinan_malaria_final, municipality_data = TRUE)
})

test_that("sinan-malaria-preliminar at 2020", {
sinan_malaria_preliminar <- fetch_datasus(year_start = 2020, year_end = 2020, uf = "AM", information_system = "SINAN-MALARIA-PRELIMINAR")
sinan_malaria_preliminar <- process_sinan_malaria(sinan_malaria_preliminar, municipality_data = TRUE)
})

0 comments on commit af09380

Please sign in to comment.