Business Context > Business Rules
Business Rules
The Ontario Health Subscription Service follows a set of business rules to ensure reliable, consistent, and standardized behavior across all subscriber interactions. These rules define the expected behavior for notification delivery, acknowledgment handling, and message processing, ensuring seamless integration with diverse healthcare systems. By adhering to these rules, subscribers and publishers can maintain data integrity, interoperability, and compliance with Ontario Health’s standards for event-driven information exchange.
The following sections outline the key business rules governing the subscription lifecycle, notification delivery, and acknowledgment requirements.
Once Only Delivery
Once-only delivery ensures that a message or event is processed exactly once by the target system, preventing duplicates while guaranteeing reliable data transfer.
Subsriber is responsible to configure subscription so it avoid creating two or more subscriptions with the same delivery channel and filters.
Garanteed Notification Delivery
The Subscription Service is responsible for successful receipt and processing of Notification by the Subscriber, ensuring guaranteed delivery of notifications to Subscribers, rather than operating on a best-effort basis. Any intermediary service (for example SOFA service) shall only guarantee notification delivery to the point of sending the notification to the Subscriber end point.
For REST-hook notifications:
Subscribers must not return a 2xx HTTP status code until the notification is fully processed.
For WebSocket notifications:
Subscribers must not send an acknowledgment (ACK) until they have successfully processed the notification.
Synchronous and Asynchronous Modes of Delivery
Subscription service will have to support sync and async notification delivery mechanisms.