Connecting Patients Through Portals and Messaging
Learn how Epic’s MyChart patient portal enables secure communication between patients and providers through messaging and preference management.
The Digital Front Door to Healthcare
Section titled “The Digital Front Door to Healthcare”In our sample EHI database, patient Joshua Mandel has exchanged 63 messages with his care team and maintained an active portal account since 2023. This represents the modern reality of healthcare: patients expect digital access to their providers, and Epic’s Patient Communication & Portal domain makes this possible at scale.
Let’s explore how this critical infrastructure works, starting with the foundation of patient portal access.
Understanding Portal Account Management
Section titled “Understanding Portal Account Management”Every patient’s digital journey begins with portal activation. Epic tracks this through two complementary tables:
This query reveals the dual nature of portal accounts:
- PATIENT_MYC stores activation details at the patient level
- MYC_PATIENT creates the actual portal account with its own ID
The separation allows Epic to manage portal accounts independently from patient records, supporting scenarios like proxy access or account recovery.
Diving into Secure Messaging
Section titled “Diving into Secure Messaging”The heart of patient-provider digital communication lies in the messaging tables. Let’s examine how messages flow through the system:
Notice how Epic uses:
- TOFROM_PAT_C_NAME to indicate message direction
- PARENT_MESSAGE_ID to maintain conversation threading
- Denormalized user names for performance
Reading Message Content
Section titled “Reading Message Content”Messages aren’t stored as simple text fields. Epic uses a line-based storage pattern that preserves formatting:
The MSG_TXT table uses the familiar ID-LINE pattern, storing each line of the message as a separate row. This approach handles long messages efficiently while preserving exact formatting.
Organizing Conversations
Section titled “Organizing Conversations”Individual messages are organized into conversations, providing context and categorization:
Epic categorizes conversations to support different workflows:
- Patient Medical Advice Request: Clinical questions requiring provider review
- Patient Appointment Schedule Request: Scheduling needs
- System Message: Automated notifications
- User Message: General communication
Tracking Message Flow Patterns
Section titled “Tracking Message Flow Patterns”Understanding communication patterns helps optimize patient engagement:
This reveals engagement levels - in our example, nearly half of messages are patient-initiated, indicating active participation in care.
Managing Communication Preferences
Section titled “Managing Communication Preferences”Patients control how they receive communications through granular preferences:
These preferences ensure patients receive communications through their preferred channels while respecting opt-out choices.
Building a Complete Portal Activity View
Section titled “Building a Complete Portal Activity View”Let’s combine everything to create a comprehensive view of patient portal engagement:
This holistic view helps identify engaged patients and those who might benefit from additional portal education.
Best Practices for Portal Data Analysis
Section titled “Best Practices for Portal Data Analysis”1. Always Check Account Status First
-- Verify portal activation before analyzing engagementSELECT PAT_ID, MYCHART_STATUS_C_NAMEFROM PATIENT_MYCWHERE PAT_ID = ? AND MYCHART_STATUS_C_NAME = 'Activated';
2. Use Message Threading for Context
-- Get all messages in a conversation threadSELECT m.*FROM MYC_MESG mWHERE m.MESSAGE_ID = ? OR m.PARENT_MESSAGE_ID = ?ORDER BY m.CREATED_TIME;
3. Respect Communication Preferences
-- Check preferences before sending communicationsSELECT COMMUNICATION_CONCEPT_ID_SETTING_NAMEFROM COMMUNICATION_PREFERENCESWHERE PREFERENCES_ID = ? AND COMMUNICATION_CONCEPT_ID_SETTING_NAME LIKE '%opt out%';
Clinical Workflow Integration
Section titled “Clinical Workflow Integration”The portal domain doesn’t exist in isolation. It connects to:
Each connection point requires careful data coordination to maintain consistency across the Epic ecosystem.
Summary
Section titled “Summary”Epic’s Patient Communication & Portal domain demonstrates sophisticated design patterns:
- Dual-table architecture (PATIENT_MYC + MYC_PATIENT) separates account management from patient identity
- Line-based message storage preserves formatting while enabling efficient queries
- Conversation threading provides context through parent-child relationships
- Flexible preference management respects patient communication choices
Understanding these patterns helps you:
- Measure patient engagement effectively
- Identify portal adoption barriers
- Analyze communication patterns
- Support population health initiatives
- Ensure regulatory compliance
As healthcare continues its digital transformation, mastering portal data analysis becomes increasingly critical for understanding and improving the patient experience.