esavi: Read anonymous ESAVI notifications

View source: R/contemporary-data.R

esaviR Documentation

Read anonymous ESAVI notifications

Description

Downloads anonymous individual records from the e-SUS Notifica ESAVI module. The source contains notifications since January 2021 and is continuously updated. An event following immunization does not by itself establish a causal association with a vaccine.

Usage

esavi(
  formato = "CSV",
  destino = NULL,
  cache = TRUE,
  atualizar = FALSE,
  n_max = Inf,
  colunas = NULL,
  normalizar = FALSE,
  ...
)

Arguments

formato

File format, '"CSV"' or '"JSON"'.

destino

Optional destination file or existing directory.

cache

Whether to reuse the local OpenDataSUS cache.

atualizar

Whether to force a fresh metadata query and download.

n_max

Maximum number of rows to read.

colunas

Optional character vector selecting columns during CSV parsing.

normalizar

Whether to apply the curated contemporary schema with [datasus_padronizar()].

...

Additional arguments passed to the underlying reader.

Value

The parsed OpenDataSUS resource with provenance metadata.

References

OpenDataSUS. ESAVI - Dados sobre Eventos Supostamente Atribuíveis a Vacinação. https://dadosabertos.saude.gov.br/dataset/esavi

Examples


old_options <- options(
  datasus.timeout = 5,
  datasus.download_timeout = 15,
  datasus.max_tries = 1
)
try({
eventos <- esavi(n_max = 1000)
datasus_proveniencia(eventos)
})
options(old_options)


datasus documentation built on Oct. 7, 2026, 1:07 a.m.