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.

  1. POST Create Subscription, with at least one Subject ID and eventTypes subject.updated defined at minimum.
    1. 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 subjectIds array.
    2. Subjects not added to a Subscription subjectIds array will not generate Event data.
    3. eventTypes defines what events are tracked. ProviderTrust recommends Client Subscriptions follow all three options subject.created, subject.updated and subject.deleted
  2. Administrators should save the Subscription id for 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.

  1. POST Create Subject (as part of Enrollment, described in Enrolling Subjects Guide)
  2. PATCH Update Subscription
    1. The path references the Subscription id captured at Subscription creation, and the Subject id captured from the POST Create Subject call.
    2. List new Subject ID(s) to be added to the Subscription, in the PATCH body.addedSubjectIds[] array.
    3. Can also use PATCH Update Subscription to remove existing IDs from the Subscription array, by listing existing IDs in the request body.removedSubjectIds[] array.
  3. PUT Update Subscription (Alternative to PATCH).
    1. The request body.subjectIds[] array must retain all existing Subject IDs. New Subject IDs added in this way must be additive.
    2. Removing an existing Subject ID from the body.subjectIds[] array removes the Subject from future Event Notifications.
    3. 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 Subject body.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.
      1. If this isn't feasible to build or maintain, PATCH Update Subscription is recommended.
  4. 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.updated Events, constrained by body.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 id per each Event.
  • If an Event is detected, the integration calls GET Event by ID, fetching event details including a Subject id associated 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 status change.
  • 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 id and an Event timestamp.
  • The Client integration calls GET Event by ID, fetching event details including a Subject id associated 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 status exception 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.