1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! FHIR topic-based Subscriptions engine for HFS.
//!
//! This crate implements the [FHIR Subscriptions Framework](https://build.fhir.org/subscriptions.html)
//! for the Helios FHIR Server. It supports topic-based subscriptions across all
//! FHIR versions (R4, R4B, R5, R6), with R4 using the
//! [Subscriptions R5 Backport IG](https://build.fhir.org/ig/HL7/fhir-subscription-backport-ig/)
//! and R4B/R5/R6 using native subscription resources.
//!
//! # Architecture
//!
//! The subscription system decomposes into five primary concerns:
//!
//! - **Topic Registry** — stores `SubscriptionTopic` definitions and evaluates triggers
//! - **Subscription Manager** — CRUD lifecycle and status tracking for `Subscription` resources
//! - **Event Evaluator** — matches resource write events against active subscriptions
//! - **Notification Builder** — constructs version-specific notification bundles
//! - **Channel Dispatcher** — delivers notifications via rest-hook, WebSocket, etc.
//!
//! The [`SubscriptionEngine`] orchestrates all five concerns and is the main
//! entry point, invoked asynchronously after each resource write.
// Re-export key types for convenience.
pub use MessagingChannel;
pub use WebSocketManager;
pub use WsBindingTokenManager;
pub use ;
pub use SubscriptionEngine;
pub use SubscriptionError;
pub use ;