This is trendy - an Opal plugin.
This plugin is no longer actively maintiained - as it depends on a version of django that is no longer supported by OPAL
Trendy allows an easy way to ask common questions.
How long on average do patients with coughs stay in our system?
What is the difference in the number of people between Winter and Summer.
For patients who have condition x, what is the average duration of their stay if given the drug y
If patient has condition y what is the pie chart actually showing you it should show the % of episodes that have condition y, vs different conditions.
The api is that you declare either a histogram, gauge, or pie chart, then an a method name on trend that returns a function for these.
These methods are split out between the different mixins.