How ewceniza9009/emr works
Halkyone Clinical OS is a multi-surface palliative-care EMR: clinicians use the web portal to manage patients, visits, triage, outreach and billing, while patients and caregivers have a mobile app. The backend exposes GraphQL and HTTP capabilities over a shared clinical data model. The graph highlights the patient-to-care workflow and major documented capabilities; some frontend-to-backend wiring and unsampled subsystems are represented only as unverified links because their implementation was not excerpted.
Main entry points: IApplicationDbContext.cs Data Context · App.tsx Mobile App Router · dashboard/page.tsx Web Portal · [id]/page.tsx Patient Chart
Components 26
Clinical Web Portal
- Web Portal
emr-client/src/app/dashboard/page.tsx - Patient Registry
emr-client/src/app/dashboard/patients/page.tsx - Patient Chart
emr-client/src/app/dashboard/patients/[id]/page.tsx - Guided Visit
emr-client/src/app/dashboard/patients/[id]/visit/page.tsx - Clinical Notes
emr-client/src/app/dashboard/notes/page.tsx - Triage Worklist
emr-client/src/app/dashboard/triage/page.tsx - Scheduling
emr-client/src/components/SchedulingCalendar/hooks/useSchedulingState.ts - Appointment Booking
emr-client/src/components/BookingDrawer/hooks/useBookingState.ts - Outreach Enrollment
emr-client/src/components/EnrollmentDrawer/hooks/useEnrollmentState.ts - Billing
emr-client/src/app/dashboard/billing/page.tsx - Admin Portal
emr-client/src/app/admin/dashboard/page.tsx
Patient Mobile App
- Mobile App Router
emr-mobile-app/src/App.tsx - Mobile Authentication
emr-mobile-app/src/contexts/AuthContext.tsx - Comfort Dashboard
emr-mobile-app/src/pages/ComfortDashboard.tsx - Care Hub
emr-mobile-app/src/pages/CareHub.tsx - Pharmacy
emr-mobile-app/src/pages/Pharmacy.tsx
API and Application
- GraphQL API
emr-server/src/Api/GraphQL/Queries/PatientQuery.cs - Authentication API
emr-server/src/Api/Controllers/AuthController.cs - Patient Queries
emr-server/src/Application/Patients/Queries/GetPatientsQueryHandler.cs - Triage Queries
emr-server/src/Application/Clinical/Queries/GetTriageWorklistQueryHandler.cs - Outreach Queries
emr-server/src/Application/Outreach/Queries/GetOutreachesQueryHandler.cs - Appointment Queries
emr-server/src/Application/Appointments/Queries/GetAppointmentsByPatientQueryHandler.cs
Clinical Data
- Data Context
emr-server/src/Application/Common/Interfaces/IApplicationDbContext.cs - Patient Record
emr-server/src/Domain/Entities/Patient.cs - Clinical Database
emr-server/src/Infrastructure/Data/ApplicationDbContext.cs
Other components
- Clinical Staff
Connections 25
- Clinical Staff → Web Portal: uses
README.md - Web Portal → Patient Registry: opens
- Patient Registry → Patient Chart: views
- Patient Chart → Guided Visit: starts
- Patient Chart → Clinical Notes: documents
- Clinical Staff → Triage Worklist: reviews
README.md - Clinical Staff → Scheduling: schedules
README.md - Scheduling → Appointment Booking: books
- Clinical Staff → Outreach Enrollment: enrolls
README.md - Clinical Staff → Billing: manages
- Clinical Staff → Admin Portal: administers
- Mobile App Router → Mobile Authentication: provides
emr-mobile-app/src/App.tsx - Mobile App Router → Comfort Dashboard: routes to
emr-mobile-app/src/App.tsx - Mobile App Router → Care Hub: routes to
emr-mobile-app/src/App.tsx - Mobile App Router → Pharmacy: routes to
emr-mobile-app/src/App.tsx - GraphQL API → Patient Queries: dispatches
- Patient Queries → Data Context: queries
emr-server/src/Application/Patients/Queries/GetPatientsQueryHandler.cs - Triage Queries → Data Context: queries
emr-server/src/Application/Clinical/Queries/GetTriageWorklistQueryHandler.cs - Outreach Queries → Data Context: queries
emr-server/src/Application/Outreach/Queries/GetOutreachesQueryHandler.cs - Appointment Queries → Data Context: queries
emr-server/src/Application/Appointments/Queries/GetAppointmentsByPatientQueryHandler.cs - Authentication API → Data Context: reads and saves
emr-server/src/Api/Controllers/AuthController.cs - Data Context → Patient Record: models
emr-server/src/Application/Common/Interfaces/IApplicationDbContext.cs - Data Context → Clinical Database: implemented by
- Web Portal → GraphQL API: requests data
- Mobile App Router → GraphQL API: requests data