======== Datasets ======== Reference for every system PySUS serves: the groups (file families) available on each client, the filename conventions, and where the data lives. .. list-table:: Sources per dataset :header-rows: 1 * - 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_` - ✅ * - SINASC (births) - ✅ per-UF DN - ✅ national `SINASC_` / `DNBR` - ✅ * - 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__` - ✅ * - 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: .. list-table:: :header-rows: 1 * - Dataset - Pattern - Example * - SINAN - ``BR`` - ``DENGBR25.dbc`` → DENG, BR, 2025 * - SIM - ```` - ``DOAC2501.dbc`` → DO, AC, 2025 * - SINASC - ``DN`` - ``DNSP2501.dbc`` → DN, SP, 2025 * - SIA - ```` - ``PAAC2501.dbc`` → PA, AC, 2025-01 * - SIH - ```` - ``RDAC2501.dbc`` → RD, AC, 2025-01 * - CIHA - ``CIHA`` - ``CIHAAC2501.dbc`` → AC, 2025-01 * - CNES - ```` - ``PFMS2501.dbc`` → PF, MS, 2025-01 * - PNI - ```` - ``DPNIBR25.dbc`` → DPNI, BR, 2025 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///////.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 ^^^^^^^^^^^^^^^^^^^^ .. list-table:: :header-rows: 1 * - Group - Disease * - ``DENG`` - Dengue * - ``CHIK`` - Chikungunya * - ``ZIKA`` - Zika * - ``CHAG`` - Doença de Chagas * - ``MALA`` - Malária * - ``TB`` - Tuberculose * - ``HANS`` - Hanseníase * - ``HEPA`` - Hepatites * - ``MENI`` - Meningite * - ``COQ`` - Coqueluche * - ``RAIV`` - Raiva * - ``FAMA`` - Febre Amarela * - ``PEST`` - Peste * - ``LEIT`` - Leishmaniose Tegumentar * - ``LEIV`` - Leishmaniose Visceral * - ``LEPT`` - Leptospirose * - ``ESQU`` - Esquistossomose * - ``HANT`` - Hantavirose * - ``SIFC`` - Sífilis Congênita * - ``SIFG`` - Sífilis Gestacional * - ``TETN`` - Tétano Neonatal * - ``TETA`` - Tétano * - ``FT`` - Febre Tifoide * - ``FM`` - Febre Maculosa * - ``COL`` - Cólera * - ``DIF`` - Difteria * - ``BOT`` - Botulismo * - ``INTOX`` - Intoxicação Exógena * - ``ACID`` - Acidente por Animais SIM Groups ^^^^^^^^^^ - ``DO`` — Declaração de Óbito (death certificate) - ``DOR`` — Declaração de Óbito Relacionado ao Aborto SIA Groups ^^^^^^^^^^ - ``PA`` — Procedimentos Ambulatoriais - ``BI`` — Bolsa Integrada - ``AD`` — Administração - ``AM`` — Atenção Médica - ``AN`` — Análise da Situação de Saúde - ``AQ`` — Atenção à Saúde - ``AR`` — 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ência - ``EE`` — Estabelecimento Ensino - ``EQ`` — Equipamento - ``EP`` — Equipe - ``GM`` — Gestão/Mantenedora - ``HB`` — Habilitação - ``IN`` — Instrumento de Trabalho - ``LT`` — Leito - ``PF`` — Profissional - ``RC`` — Regra de Cobertura - ``SR`` — Serviços Especializados - ``ST`` — Estabelecimento (Cadastro) IBGE Groups ^^^^^^^^^^^ - ``POP`` — População - ``ALF`` — Alfabetização - ``ESCA`` — Escolaridade A - ``ESCB`` — Escolaridade B - ``RENDA`` — Renda - ``IDOSO`` — Idoso - ``PROJ`` — Projeções Populacionais