This PR introduces code base changes related to the general reports and nursing reports groups; it adopts new coding conventions for the sake of the code being easier to mantain, expand or modify. It also adds the medicines prescription report.
Changes made
Refactor of emergency, diabetics, hypertensives and complementary studies (general) reports
Refactor of nursing emergency, nursing outpatient, nursing hospitalization, nursing procedures, and nursing vaccines (nursing) reports
Add new report in the general reports group: medicines prescription report
Adopt new code layout for easier reading, less boilerplate and hopefully more performant
Improve sheet formatting, respecting the new standard introduced by @MaksMaks98
Additional notes
Two reports from the general group have one column not populating (non breaking). Seems to be related to the query. This is going to be fixed in the next PR:
Diabetics reports: glycosilated hemoglobine
Hypertensive reports: blood pressure
There are still legacy code sections that will be gradually remove in the next PR as their usages get replaced:
Everything above // new code with reduced boilerplate comment in ReportExcelUtilsService
Everything above // new universal formatting comment in DateFormat
Modified the endpoint tag of the program reports controller to conform with the new tagging that general and nursing reports adopt
New features
New report added to general reports group: medicines prescription report
/generalreports/{institutionId}/medicines-prescription with route parameter institutionId and request parameters fromDate and toDate (both strings of LocalDate form, yyyy-MM-dd)
Refactor of all general and nursing reports.
Universal date formatting method, new query factory, new common report utilities, custom parameter support for report queries
Description
This PR introduces code base changes related to the general reports and nursing reports groups; it adopts new coding conventions for the sake of the code being easier to mantain, expand or modify. It also adds the medicines prescription report.
Changes made
emergency
,diabetics
,hypertensives
andcomplementary studies
(general) reportsnursing emergency
,nursing outpatient
,nursing hospitalization
,nursing procedures
, andnursing vaccines
(nursing) reportsAdditional notes
// new code with reduced boilerplate
comment in ReportExcelUtilsService// new universal formatting
comment in DateFormatNew features
/generalreports/{institutionId}/medicines-prescription
with route parameterinstitutionId
and request parametersfromDate
andtoDate
(both strings of LocalDate form, yyyy-MM-dd)Documentation