Projeto para validar/invalidar algumas hipóteses.
Leitor de dados de óbitos no Brasil.
Arquivo zip foi baixado do site:
http://svs.aids.gov.br/dantps/centrais-de-conteudos/dados-abertos/sim/
Para utilizar descompacte o zip, instale as dependências:
yarn install
E rode o projeto:
yarn dev
A saída deve ser:
{
"2021-01": {
"total": 151052,
"idade": {
"41 a 50": 10255,
"81 a 90": 29546,
"91 ou mais": 12899,
"21 a 30": 4810,
"31 a 40": 6510,
"51 a 60": 17833,
"71 a 80": 32790,
"61 a 70": 28311,
"n/a": 2928,
"11 a 20": 1812,
"00 a 10": 3358
},
"idadeChange": {}
},
"2021-02": {
"total": 136459,
"idade": {
"61 a 70": 25739,
"71 a 80": 29340,
"51 a 60": 16562,
"21 a 30": 4202,
"91 ou mais": 11628,
"81 a 90": 26393,
"41 a 50": 9630,
"n/a": 2585,
"00 a 10": 3039,
"11 a 20": 1533,
"31 a 40": 5808
},
"idadeChange": {
"00 a 10": "-9.50%",
"11 a 20": "-15.40%",
"21 a 30": "-12.64%",
"31 a 40": "-10.78%",
"41 a 50": "-6.09%",
"51 a 60": "-7.13%",
"61 a 70": "-9.08%",
"71 a 80": "-10.52%",
"81 a 90": "-10.67%",
"91 ou mais": "-9.85%",
"n/a": "-11.71%"
}
},
"2021-03": {
"total": 208686,
"idade": {
"61 a 70": 43365,
"51 a 60": 28147,
"71 a 80": 46810,
"81 a 90": 37016,
"41 a 50": 16571,
"91 ou mais": 14034,
"31 a 40": 9302,
"00 a 10": 3459,
"11 a 20": 1739,
"n/a": 3048,
"21 a 30": 5195
},
"idadeChange": {
"00 a 10": "13.82%",
"11 a 20": "13.44%",
"21 a 30": "23.63%",
"31 a 40": "60.16%",
"41 a 50": "72.08%",
"51 a 60": "69.95%",
"61 a 70": "68.48%",
"71 a 80": "59.54%",
"81 a 90": "40.25%",
"91 ou mais": "20.69%",
"n/a": "17.91%"
}
},
"2021-04": {
"total": 195857,
"idade": {
"61 a 70": 43582,
"81 a 90": 29677,
"41 a 50": 16965,
"11 a 20": 1735,
"71 a 80": 42889,
"00 a 10": 3156,
"n/a": 2826,
"31 a 40": 9323,
"51 a 60": 28633,
"21 a 30": 5154,
"91 ou mais": 11917
},
"idadeChange": {
"00 a 10": "-8.76%",
"11 a 20": "-0.23%",
"21 a 30": "-0.79%",
"31 a 40": "0.23%",
"41 a 50": "2.38%",
"51 a 60": "1.73%",
"61 a 70": "0.50%",
"71 a 80": "-8.38%",
"81 a 90": "-19.83%",
"91 ou mais": "-15.08%",
"n/a": "-7.28%"
}
},
"2021-05": {
"total": 181805,
"idade": {
"41 a 50": 16708,
"11 a 20": 1817,
"81 a 90": 30014,
"31 a 40": 9367,
"51 a 60": 28193,
"61 a 70": 37465,
"71 a 80": 34087,
"21 a 30": 5288,
"n/a": 2805,
"00 a 10": 3301,
"91 ou mais": 12760
},
"idadeChange": {
"00 a 10": "4.59%",
"11 a 20": "4.73%",
"21 a 30": "2.60%",
"31 a 40": "0.47%",
"41 a 50": "-1.51%",
"51 a 60": "-1.54%",
"61 a 70": "-14.04%",
"71 a 80": "-20.52%",
"81 a 90": "1.14%",
"91 ou mais": "7.07%",
"n/a": "-0.74%"
}
},
"2021-06": {
"total": 170589,
"idade": {
"31 a 40": 9449,
"71 a 80": 31443,
"41 a 50": 17212,
"91 ou mais": 12470,
"00 a 10": 3199,
"81 a 90": 29261,
"61 a 70": 29847,
"21 a 30": 5109,
"51 a 60": 28297,
"n/a": 2664,
"11 a 20": 1638
},
"idadeChange": {
"00 a 10": "-3.09%",
"11 a 20": "-9.85%",
"21 a 30": "-3.39%",
"31 a 40": "0.88%",
"41 a 50": "3.02%",
"51 a 60": "0.37%",
"61 a 70": "-20.33%",
"71 a 80": "-7.76%",
"81 a 90": "-2.51%",
"91 ou mais": "-2.27%",
"n/a": "-5.03%"
}
},
"2021-07": {
"total": 155858,
"idade": {
"51 a 60": 20971,
"31 a 40": 7720,
"61 a 70": 27179,
"81 a 90": 29337,
"71 a 80": 31504,
"21 a 30": 4862,
"91 ou mais": 13356,
"41 a 50": 13282,
"n/a": 2578,
"00 a 10": 3349,
"11 a 20": 1720
},
"idadeChange": {
"00 a 10": "4.69%",
"11 a 20": "5.01%",
"21 a 30": "-4.83%",
"31 a 40": "-18.30%",
"41 a 50": "-22.83%",
"51 a 60": "-25.89%",
"61 a 70": "-8.94%",
"71 a 80": "0.19%",
"81 a 90": "0.26%",
"91 ou mais": "7.11%",
"n/a": "-3.23%"
}
},
"2021-08": {
"total": 131871,
"idade": {
"41 a 50": 9325,
"51 a 60": 15662,
"71 a 80": 27886,
"31 a 40": 6176,
"91 ou mais": 11648,
"81 a 90": 26077,
"61 a 70": 23457,
"00 a 10": 3068,
"21 a 30": 4383,
"n/a": 2534,
"11 a 20": 1655
},
"idadeChange": {
"00 a 10": "-8.39%",
"11 a 20": "-3.78%",
"21 a 30": "-9.85%",
"31 a 40": "-20.00%",
"41 a 50": "-29.79%",
"51 a 60": "-25.32%",
"61 a 70": "-13.69%",
"71 a 80": "-11.48%",
"81 a 90": "-11.11%",
"91 ou mais": "-12.79%",
"n/a": "-1.71%"
}
},
"2021-09": {
"total": 99706,
"idade": {
"81 a 90": 19618,
"71 a 80": 21475,
"91 ou mais": 8406,
"51 a 60": 11365,
"11 a 20": 1439,
"61 a 70": 17842,
"00 a 10": 2563,
"41 a 50": 6925,
"n/a": 2109,
"31 a 40": 4559,
"21 a 30": 3405
},
"idadeChange": {
"00 a 10": "-16.46%",
"11 a 20": "-13.05%",
"21 a 30": "-22.31%",
"31 a 40": "-26.18%",
"41 a 50": "-25.74%",
"51 a 60": "-27.44%",
"61 a 70": "-23.94%",
"71 a 80": "-22.99%",
"81 a 90": "-24.77%",
"91 ou mais": "-27.83%",
"n/a": "-16.77%"
}
},
"2021-10": {
"total": 31941,
"idade": {
"81 a 90": 6316,
"61 a 70": 5901,
"51 a 60": 3632,
"31 a 40": 1366,
"91 ou mais": 2645,
"71 a 80": 7214,
"41 a 50": 2138,
"00 a 10": 814,
"n/a": 645,
"21 a 30": 911,
"11 a 20": 359
},
"idadeChange": {
"00 a 10": "-68.24%",
"11 a 20": "-75.05%",
"21 a 30": "-73.25%",
"31 a 40": "-70.04%",
"41 a 50": "-69.13%",
"51 a 60": "-68.04%",
"61 a 70": "-66.93%",
"71 a 80": "-66.41%",
"81 a 90": "-67.81%",
"91 ou mais": "-68.53%",
"n/a": "-69.42%"
}
}
}