Skip to content

Implement Mantine UI and fix claims.filter crash#235

Open
harshiill wants to merge 2 commits into
FusionIIIT:health-center-v2from
harshiill:health-center-v2
Open

Implement Mantine UI and fix claims.filter crash#235
harshiill wants to merge 2 commits into
FusionIIIT:health-center-v2from
harshiill:health-center-v2

Conversation

@harshiill

Copy link
Copy Markdown

This pull request introduces a comprehensive Health Center module, adding both a compounder (staff) dashboard and a patient dashboard, along with supporting components and routing integration. The main focus is on providing a tab-based interface for managing and viewing health center operations, including doctor management, schedules, prescriptions, inventory, and more. Additionally, a new AlertsTab component is introduced for inventory alerts.

The most important changes are:

Health Center Dashboards:

  • Added CompoundDashboard in src/Modules/HealthCenter/CompoundDashboard.jsx, providing a multi-tab interface for compounders to manage doctors, schedules, attendance, medicine stock, inventory requisitions, batch returns, consultations, prescriptions, ambulances, reimbursements, announcements, and reports. Some tabs for complaints and admissions are present but commented out.
  • Added PatientDashboard in src/Modules/HealthCenter/PatientDashboard.jsx, offering patients a tabbed view for announcements, doctor schedules, today's schedule, prescriptions, and (if employee) reimbursement claims. Includes logic to fetch and display today's doctor schedule and conditionally show the reimbursement tab.

Component Additions:

  • Added AlertsTab component in src/Modules/HealthCenter/components/AlertsTab.jsx to display low stock alerts for medicines, with an action to order more stock.

Routing and App Integration:

  • Integrated the Health Center routes into the main app by importing HealthCenterRoutes and adding the /health-center/* route in src/App.jsx. [1] [2]
  • Wrapped the app with ModalsProvider from Mantine to support modal dialogs, which may be used in the new dashboards. [1] [2]

These changes lay the foundation for a robust Health Center feature, providing both staff and patient interfaces with clear separation of concerns and extensible tab-based navigation.

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