Reports for analytics

I have been using OpenEMR for now close to 5 years, am kinda a dev too. I would like to implement the find of reports in this project…. For example if at all I can generate weekly, monthly reports, semi annual etc i.e for OPD - the different diagnoses with different age groups with gender, ANTENATAL - for mothers that attend ANTENATAL, like 1st , 2nd , 3rd ANC , 1st IPT, etc , IMMUNIZATION, POSTNATAL, HTS , etc ,

I have script aside that function like that, but I would like to have this implemented in OpenEMR not to have different systems that I use.