hzi-braunschweig / SORMAS-Stats-next-gen

SORMAS-Stats contain functions to analyze and visualize surveillance data collected by SORMAS.
GNU General Public License v3.0
4 stars 6 forks source link

populationExport function for situation report #106

Open DavidSoSiZoch opened 2 years ago

DavidSoSiZoch commented 2 years ago

Adding a function that exports all necessary population data for the creation of the situation report.

The function takes as arguments a connection to a SORMAS Postgres db, a start date and an end date.

In the output table each row is a population group by age and gender in a specific district. The columns are the following variables: district_id, region_id, sex_population, agegroup_population, population, district_name