Description: 

The PDF Report Generator generates a report in the form of a PDF file related to data collected from baby diapers. The report contains multiple pie and bar charts along with descriptions. The content of the report is individualized for each user (a user is probably a parent or caregiver who logs in with an email address) or for all users if no user is specified. 

Report Generation:

For each user/all users, a custom report is generated. This report includes:

  1. A pie chart illustrating the distribution of stool color
  2. A bar chart comparing the color of the stool on days when the baby was recorded to be sick versus healthy
  3. A pie chart showing the distribution of stool consistency
  4. A bar chart comparing the stool consistency on days when the baby was in distress (sick) or not in distress (healthy)
  5. A pie chart indicating the range of poopy diaper estimations
  6. A pie chart showing the distribution of feeding methods

Each chart is followed by a brief paragraph description.

Output: 

The final output of the code is a PDF file named 'Baby_Diaper_Report_' followed by the user's name or identifier. If no user is specified, it defaults to "all".

Note:

In the gen_csv.py file, regarding the color_code dictionary, the colors currently listed are not exhaustive. It is necessary to manually add new RGB values for any new colors that may appear.


Github Code: https://github.com/DIAPER-Project/pdf-report-generator

Sample Data: dashboard.diaper-project.com

Box spring 22 report: More descriptions on PDF Report Generator


  • No labels