The API should be designed in a way so that other modules could use it, and not the other way round (the statistics module should not depend on other modules like medication, etc.