Skip to main content

Reports & Analytics

Routes: /reports/engagement, /reports/chat-analytics, /reports/ehr-health, /reports/ehr-ingestion Files: reports/PatientEngagementPage.tsx, reports/AiChatAnalyticsPage.tsx, reports/EhrHealthPage.tsx, reports/EhrIngestionLogPage.tsx

The Reports section gives administrators visibility into how patients are using ChartChat and the health of EHR integrations. All charts are built with Chart.js (bar charts).

For the EHR Ingestion Log, see the dedicated page.


Patient Engagement (/reports/engagement)​

Tracks how patients are interacting with the portal over time.

Metrics shown​

MetricDescription
Total loginsNumber of patient sign-ins in the selected period
Active patientsUnique patients who have logged in
Daily activityBar chart of logins per day over the last 30 days
This monthLogin count for the current calendar month

Data source​

Built from AuditEvent FHIR resources. Each patient login generates an AuditEvent which this page aggregates. Events are bucketed by day for the chart.


AI Chat Analytics (/reports/chat-analytics)​

Tracks usage of the AI Chat Assistant across all patients.

Metrics shown​

MetricDescription
Total messagesTotal number of messages sent across all sessions
Total sessionsTotal number of chat sessions started
Avg messages/sessionAverage conversation length
Safety eventsNumber of AI refusals or safety interventions
Intent breakdownPercentage breakdown of chat topics (labs, medications, conditions, visits, allergies, general)
Daily messagesBar chart of messages per day over the last 30 days

Data source​

  • ChatMessage resources — counted and grouped by intent and date.
  • AuditEvent resources — filtered for safety/refusal events.

Intent breakdown​

Shows what patients are most commonly asking about:

IntentMeaning
labQuestions about lab results
medicationsQuestions about medications
conditionQuestions about conditions
visitsQuestions about visits/encounters
allergiesQuestions about allergies
generalGeneral health questions

EHR Integration Health (/reports/ehr-health)​

Monitors the status and sync health of all EHR connections across all patients.

Metrics shown​

MetricDescription
Total connectionsNumber of active PatientEHRConnection resources
Connections by providerBreakdown of how many patients are connected per EHR (Epic, Healow, MEDITECH, etc.)
Last sync timesHow recently data was synced per provider
Expired tokensNumber of connections with status: token_expired
Bar chartActive vs expired connections per EHR vendor

Sync status indicators​

LabelMeaning
< 1 hour agoRecently synced — healthy
Xh agoSynced within last 24 hours — acceptable
Xd agoStale sync — may need attention
NeverNo sync has occurred

Provider colors​

Each EHR vendor is shown with a consistent color in charts:

VendorColor
EpicBlue
MEDITECHAmber
HealowGreen
CernerPurple
AthenaCyan