Datasets
Reference for every system PySUS serves: the groups (file families) available on each client, the filename conventions, and where the data lives.
Dataset |
FTP |
DadosGov |
S3 catalog |
|---|---|---|---|
SINAN (disease notifications) |
✅ full history |
✅ national CSVs (arboviroses, MPOX, hanseníase, tuberculose, sífilis) |
✅ |
SIM (mortality) |
✅ per-UF DO/DOR |
✅ national Mortalidade_Geral_<year> |
✅ |
SINASC (births) |
✅ per-UF DN |
✅ national SINASC_<year> / DNBR<year> |
✅ |
SIA (ambulatory) |
✅ per-UF/month PA/BI/AD/AM/AN/AQ/AR |
⚠️ Fortaleza extracts only (excluded from the sync) |
✅ |
SIH (hospitalizations) |
✅ per-UF/month RD/RJ/ER/SP |
❌ |
✅ |
CIHA (hospital admissions) |
✅ per-UF/month |
❌ |
✅ |
CNES (health facilities) |
✅ per-UF/month (DC, EE, EQ, EP, GM, HB, IN, LT, PF, RC, SR, ST) |
✅ current national base |
✅ |
PNI (immunizations) |
✅ CPNI/DPNI per-UF |
✅ national monthly vacinacao_<mes>_<ano> |
✅ |
IBGE (population) |
✅ POP/ALF/ESCA/ESCB/RENDA/IDOSO/PROJ |
❌ |
✅ |
COVID19 |
❌ |
✅ anonymized cases |
⏳ |
Filename conventions (FTP)
Every FTP file encodes its metadata in the name; PySUS parses it with per-dataset formatters:
Dataset |
Pattern |
Example |
|---|---|---|
SINAN |
|
|
SIM |
|
|
SINASC |
|
|
SIA |
|
|
SIH |
|
|
CIHA |
|
|
CNES |
|
|
PNI |
|
|
Part-split files
DATASUS splits large monthly files into parts with _1, _2, _3
suffixes (e.g. BISP2504_2.dbc). PySUS keeps each part as a separate
file with the correct group/year/month metadata.
S3 layout
The catalog stores one Parquet artifact per logical file under a hierarchical key:
public/data/<origin>/<dataset>/<group>/<year>/<month>/<state>/<STEM>.parquet
Missing attributes use _ (national files use BR as the state).
Duplicate logical files are not kept — when the same data arrived from
multiple origins, only the most updated artifact remains.
Group Codes
SINAN Disease Groups
Group |
Disease |
|---|---|
|
Dengue |
|
Chikungunya |
|
Zika |
|
Doença de Chagas |
|
Malária |
|
Tuberculose |
|
Hanseníase |
|
Hepatites |
|
Meningite |
|
Coqueluche |
|
Raiva |
|
Febre Amarela |
|
Peste |
|
Leishmaniose Tegumentar |
|
Leishmaniose Visceral |
|
Leptospirose |
|
Esquistossomose |
|
Hantavirose |
|
Sífilis Congênita |
|
Sífilis Gestacional |
|
Tétano Neonatal |
|
Tétano |
|
Febre Tifoide |
|
Febre Maculosa |
|
Cólera |
|
Difteria |
|
Botulismo |
|
Intoxicação Exógena |
|
Acidente por Animais |
SIM Groups
DO— Declaração de Óbito (death certificate)DOR— Declaração de Óbito Relacionado ao Aborto
SIA Groups
PA— Procedimentos AmbulatoriaisBI— Bolsa IntegradaAD— AdministraçãoAM— Atenção MédicaAN— Análise da Situação de SaúdeAQ— Atenção à SaúdeAR— Assistência Recursal
SIH Groups
RD— AIH RDI (produção hospitalar)RJ— AIH RJ (resumo de internação)ER— AIH ER (estabelecimentos)SP— AIH SP (scheda de parto)
CNES Subgroups
DC— Direção/AssistênciaEE— Estabelecimento EnsinoEQ— EquipamentoEP— EquipeGM— Gestão/MantenedoraHB— HabilitaçãoIN— Instrumento de TrabalhoLT— LeitoPF— ProfissionalRC— Regra de CoberturaSR— Serviços EspecializadosST— Estabelecimento (Cadastro)
IBGE Groups
POP— PopulaçãoALF— AlfabetizaçãoESCA— Escolaridade AESCB— Escolaridade BRENDA— RendaIDOSO— IdosoPROJ— Projeções Populacionais