Skip to content

Hmis105cReport#280

Open
Vinald wants to merge 25 commits intovrvufrom
hmis105report
Open

Hmis105cReport#280
Vinald wants to merge 25 commits intovrvufrom
hmis105report

Conversation

@Vinald
Copy link
Copy Markdown
Collaborator

@Vinald Vinald commented Apr 17, 2026

Pull request overview

Adds a new HMIS 105 report flow to the Reports Overview area, including UI layouts for multiple screen sizes, a ViewModel to assemble report rows from visits, and Excel export support via the existing FileUtil export mechanism.

Changes:

  • Introduce HMIS105 report Activity + Fragment, layouts (phone/tablet/land), adapter, and DTO/ViewModel to generate the report dataset.
  • Add a new entry button on the reports overview screen to launch the HMIS105 report flow.
  • Update resources (strings/dimens) and DI wiring (ViewModelModule/AndroidModule) + manifest registration for the new Activity.

Vinald and others added 24 commits March 16, 2026 06:44
- Create new HMIS 105 report module with data aggregation by age groups and delivery modes
- Implement date range filtering with start/end date pickers
- Add Excel export functionality for report data
- Create ViewModel with LiveData for reactive state management
- Add Repository layer for data fetching and aggregation
- Implement RecyclerView adapter for tabular display
- Create HorizontalScrollView layout for wide table
- Add HMIS 105 button to Reports Overview
- Register HmisMalaria105FlowActivity in AndroidManifest
- Add string resources for UI text
- Fix all resource linking errors (dimensions and colors)
Age groups: 0-11mo, 12-59mo, 5-14yr
Delivery modes: Static, Outreach, School
Follows MVVM architecture and integrates seamlessly with existing Reports.
Comment thread app/src/main/res/values/strings.xml Outdated
Comment thread app/src/main/res/values/strings.xml Outdated
Comment thread app/src/main/res/values/dimens.xml Outdated
Comment thread app/src/main/res/values/dimens.xml
- Fix resource leak: Wrap HSSFWorkbook with .use{} for proper cleanup
- Replace raw exception messages with user-friendly string resources
- Add header row handling in adapter (hide numeric columns for headers)
- Update Excel export to skip numeric cells for section headers
- Remove unused string resources (start_date, end_date, select_date, etc.)
- Rename string resources for consistency: _1_4_yrs_* → age_1_4_yrs_*, _5_14_yrs_* → age_5_14_yrs_*
- Fix text dimension mismatches in dimens.xml (text_9, text_10, text_15)
- Remove unused Hmis105ObservationDTO.kt file
- Optimize performance: reduce participant fetching from O(2n) to O(n)
- Update all layout files to use renamed string resources
- Add missing import for Hmis105ReportDTO in Fragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants