process_sinasc: Prepare SINASC live-birth microdata

View source: R/process_sinasc.R

process_sinascR Documentation

Prepare SINASC live-birth microdata

Description

Recodes supported SINASC live-birth fields into descriptive values and normalizes escaped Unicode text. Codes without a documented conversion are retained.

Usage

process_sinasc(data, municipality_data = TRUE)

Arguments

data

A data frame returned by fetch_datasus() with information_system = "SINASC", or a compatible layout.

municipality_data

Logical scalar. If TRUE, add municipality names and available territorial attributes for supported municipality-code columns.

Details

Columns not explicitly recoded are retained, but Unicode normalization is applied to every column and consequently the returned tibble contains character columns.

Value

A tibble with character columns. Supported codes are replaced with descriptions, and municipality fields are added when requested and available.

References

Saldanha, R. F. (2026). SINASC – Sistema de Informação sobre Nascidos Vivos.

See Also

fetch_datasus()

Examples

process_sinasc(sinasc_sample)


microdatasus documentation built on July 29, 2026, 5:08 p.m.