Event Monitoring with Subscriptions
Change in monitoring status notifications via API
When ProviderTrust detects a change in monitoring status (due to a board action, exclusion, or other adverse action), we publish a change in the impacted Subject's monitoring status.
Clients can capture these changes in status as an "Event" notification. Clients can set up internal task and Subject review process automations, whenever a PT API Event "pings" your system of record.
Events can be processed in real-time, or rolled-up as part of a daily or other recurring task. This allows Clients to only pull PT API data that needs attention, rather than pulling their entire Population at all times.
Subscription Setup
Client integrations should first create a Subscription for Event monitoring, and then continually add Subjects to this Subscription over time.
ProviderTrust recommends maintaining a single "primary" Subscription for your entire population. Clients are responsible for managing Subscriptions based on business requirements and need. POST Create Subscription can be triggered one-time during go-live and all subsequent additions can be added via PATCH or PUT.
- POST Create Subscription, with at least one Subject ID and eventTypes
subject.updateddefined at minimum.- Subject IDs can only be enrolled in one Subscription at a time. An ID enrolled in one Subscription will force an error response if included in a different Subscription
subjectIdsarray. - Subjects not added to a Subscription
subjectIdsarray will not generate Event data. - eventTypes defines what events are tracked. ProviderTrust recommends Client Subscriptions follow all three options
subject.created,subject.updatedandsubject.deleted
- Subject IDs can only be enrolled in one Subscription at a time. An ID enrolled in one Subscription will force an error response if included in a different Subscription
- Administrators should save the Subscription
idfor future maintenance. Subscriptions can be managed using POST Subscription Search and other Subscription methods detailed in API Reference.
Ongoing Subscription Management
Once a Subscription is established, Clients should use PUT Update Subscription following a POST Create Subject enrollment request. This adds newly enrolled Subjects to the Subscription list. This is an ongoing process triggered after initial PT API enrollment workflows.
- POST Create Subject (as part of Enrollment, described in Enrolling Subjects Guide)
- PATCH Update Subscription
- The path references the Subscription
idcaptured at Subscription creation, and the Subjectidcaptured from the POST Create Subject call. - List new Subject ID(s) to be added to the Subscription, in the PATCH
body.addedSubjectIds[]array. - Can also use PATCH Update Subscription to remove existing IDs from the Subscription array, by listing existing IDs in the request
body.removedSubjectIds[]array.
- The path references the Subscription
- PUT Update Subscription (Alternative to PATCH).
- The request
body.subjectIds[]array must retain all existing Subject IDs. New Subject IDs added in this way must be additive. - Removing an existing Subject ID from the
body.subjectIds[]array removes the Subject from future Event Notifications. - PUT Update Subscription is easier to maintain if the Client maintains an invokable query within their systems, that produces the
body.subjectIds[]array string, from all actively monitored Subjects' ProviderTrust Subject ID (GET Subjectbody.id) values. This gives the Client integration an accurate internal reference to live Subject rosters, rather than trying to maintain the array as text copied across multiple requests.- If this isn't feasible to build or maintain, PATCH Update Subscription is recommended.
- The request
- Continue with other Client processes & workflows.
Best Practices
Clients have multiple ways to retrieve Events generated by Subscriptions over time:
Recurring Event Search
Client integrations can send a POST Event Search request, to retrieve Events created over time. Request body filters can be used to constrain the search by Event type and date range.
Example: Client A wants to check their population for any changes every night. Any new Events detected overnight are turned into actionable tasks the following morning.
- They create a POST Event Search job to inspect all Subscriptions for any
subject.updatedEvents, constrained bybody.daysBack: "1" - This job runs nightly and retrieves all Events generated within the last 24 hour day. Each new Event, if any, is delivered as a Search response object with a unique Event
idper each Event. - If an Event is detected, the integration calls GET Event by ID, fetching event details including a Subject
idassociated with the adverse action. - The integration calls PT API GET Subject by ID to update the internal Subject record with updated ProviderTrust details. This captures the adverse action from ProviderTrust as a
statuschange. - The integration updates the associated Subject record within Client internal systems, generates a new task assigned to the internal credentialing team, and flags the "bad" status needing review. Credentialing staff work the task the following day.
Live Events Webhook
Client integrations can configure PT API to send Event data to their internal Webhook endpoint. Events are published to Client Webhooks as soon as they are published in ProviderTrust. A webhook is associated to a single Subscription and only returns Events for the population registered to the Subscription.
Example: Client B wants to trigger an internal Case, whenever ProviderTrust publishes a change in status Event.
- Client creates a Subscription, and enroll their monitored population to the Subscription by PT API Subject IDs.
- Client registers their own "listener" Webhook endpoint to PT API, associating it to their primary Subscription, using POST Create Webhook.
- Client sets up a listener automation in their system. The Client webhook receives a POST Event payload from PT API containing an Event
idand an Event timestamp. - The Client integration calls GET Event by ID, fetching event details including a Subject
idassociated with the adverse action. - The integration calls GET Subject by ID to fetch the internal Subject record with updated ProviderTrust details. This is ingested back into the Subject record internally, to capture the most recent PT dataset including the
statusexception needing review. - The integration creates a new Case associated to the Subject, flagging the status exception needing review by credentialing staff. Credentialing staff work the case from their queue.
Updated about 8 hours ago