Skip to main content

Subscriptions

Subscriptions in iEHR are event-driven mechanisms, similar to webhooks, that play a vital role in enabling integrations and automations. By subscribing to changes on FHIR® resources, iEHR facilitates real-time updates, ensuring efficient and seamless workflows. For an in-depth description of FHIR® Subscriptions, refer to the HL7.org documentation.


Key Features of Subscriptions

  1. Event-Driven Notifications

    • Subscriptions are triggered by specific events, providing real-time notifications to subscribers.
    • This feature supports time-sensitive integrations and streamlines automated processes.
  2. Integration with Bots and Questionnaires

    • Subscriptions can trigger Bots to automate tasks or processes, enhancing efficiency.
    • Integration with Questionnaires enables the activation of complex workflows based on user input or system changes.
  3. AuditEvents

    • iEHR tracks the history of subscription triggers through AuditEvents, offering transparency and traceability.
    • These records are invaluable for troubleshooting and performance monitoring.
  4. Subscription Extensions

    • Provides advanced functionality for fine-grained control over subscription behavior.
    • Includes options for enhanced security, such as access control and event filtering.
  5. WebSocket Subscriptions

    • Real-time updates are facilitated via WebSocket technology, ensuring instantaneous data synchronization.
    • Developers can use the React useSubscription hook to efficiently handle WebSocket-based subscriptions.

Benefits of Subscriptions in iEHR

  • Real-Time Data Flow: Keeps stakeholders informed with immediate updates to critical data changes.
  • Improved Automation: Simplifies the automation of repetitive tasks by triggering actions through events.
  • Enhanced Monitoring: AuditEvent tracking provides insights into subscription performance and triggers.
  • Flexibility and Scalability: Subscription Extensions allow for custom configurations tailored to organizational needs.
  • Seamless Integration: Effortlessly integrates with other features of iEHR, such as Bots and Questionnaires, for cohesive workflows.

Example Use Cases

  1. Notifications for Resource Updates:

    • Notify care teams when a patient's lab results are updated or a discharge summary is finalized.
  2. Triggering Automations:

    • Activate a Bot to send appointment reminders based on new scheduling data.
  3. Data Synchronization:

    • Keep multiple applications or systems synchronized in real time with WebSocket subscriptions.
  4. Improving Data Integrity:

    • Use AuditEvents to ensure that all subscription triggers execute as expected without errors.

For additional details or assistance with configuring Subscriptions in iEHR, feel free to contact us.