zidatalab / ambulante_notfaelle

Echtzeit Informationen zu ambulanten Notfällen
Apache License 2.0
0 stars 0 forks source link

Calculation of SmED Assessments per 100.000 wrong?!! #35

Closed anjaseidel closed 1 year ago

anjaseidel commented 2 years ago

Example: September 2022, Bayern Return values of API: Assessments = 34044 BEVSTAND = 13140183 Assessments per 100.000 inhabitants = (Assessments/BEVSTAND)100000 = (34044/13140183)100000 = 259,08

Value displayed in the plot: 303,1424

@lekroll : It looks like you are accidentally calculating with the KM6 instead of the BEVSTAND KM6Versicherte = 11230364 (34044/11230364)*100000 = 303,1424 see https://github.com/zidatalab/ambulante_notfaelle/blob/cd55e0e355d15f04873ddadbff3cacd176c2c476/Dashboard/src/app/services/smed-aggregation.service.ts#L31

bzoch-lesniak commented 1 year ago
Inoakabu commented 1 year ago

After talking to @anjaseidel so I understand what is going here. We just need a decision:

  1. do we change the text according to the data
  2. we change the data according to the text

Please decide @lekroll @bzoch-lesniak - and let me know :)

bzoch-lesniak commented 1 year ago

@Inoakabu Please change the data according to the text (pro 100 Tsd. Einwohner). Danke! :)

Inoakabu commented 1 year ago

So @anjaseidel we have to implement your Changes - How are we tackling this?

anjaseidel commented 1 year ago

by merging the pull request? :-)