Blog

    Alerting for Healthcare Systems: Runbooks for a Stopped FHIR Endpoint or Mirth Channel

    By GauravAugust 12, 20269 mins read
    On this page

    Alerting for healthcare systems only helps when the alert leads to a runbook. When a FHIR endpoint or a Mirth channel stops, someone has to be paged, run named checks and know when to escalate. PagerDuty or any other pager only delivers the call.

    Hospital CTOs and digital health founders who own live feeds get the triggers, the three checks, escalation rules, recovery steps and a way to rehearse each page.

    What is an alerting runbook for FHIR and Mirth feeds?

    An alerting runbook for FHIR and Mirth feeds is the written page a person follows when a feed stops: who is paged, the three checks they run, and when they escalate to a named owner. It is stored with the feed, holds no PHI, and works with any paging tool.

    A FHIR or Mirth feed is down and nobody knows the next step?

    We write who is paged, the three checks, and when to escalate, on the feed itself.

    Agnotic Technologies writes that runbook for each feed before go-live. A dashboard without a named person is not a runbook.

    • Person: primary on-call for this feed, with a backup. A shared inbox is not a person.
    • Check 1: is the process up? Engine or API host.
    • Check 2: is the last message or last HTTP status the one you expect, without opening a payload of PHI.
    • Check 3: is the downstream system reachable, using a non-PHI probe.
    • Escalate: after those three, or after the time the page names, to the named owner of the other system.

    Metrics and traces tell you a feed stopped. The runbook is what a person does next, whether the signal was a trace, a queue depth or an HTTP status.

    What must the page not contain?

    The page must not contain a patient identifier or a message body. Agnotic logs the feed name, the time, and the check results only.

    • Allowed: feed name, channel or endpoint, time, status code, queue depth.
    • Forbidden: MRN, message control id tied to a patient, payload text.

    What should trigger a page for a Mirth channel or a FHIR endpoint?

    A page should fire when a feed stops doing its job, not when a single message has a problem. For a Mirth channel that means stopped, backed up or silent; for a FHIR endpoint it means repeated failed calls or no response at all.

    • Mirth channel stopped: the channel is no longer started, whatever the reason.
    • Mirth queue rising: the destination queue grows across several readings instead of draining.
    • Mirth silent: no inbound message within the window the source normally sends in.
    • FHIR failing: repeated server errors or timeouts on calls that normally succeed.

    An authorization failure from a FHIR server is its own trigger. A 401 or 403 usually means an expired credential, so the page should say so and route it to whoever owns that credential.

    How does the first check differ between Mirth and FHIR?

    The first check asks whether the thing is running at all. For Mirth that is the engine service and the channel state; for a FHIR server it is a call to the metadata endpoint, which returns no patient data.

    In HL7 FHIR R4, the capabilities interaction retrieves information about which portions of the specification a server supports, using an HTTP GET on [base]/metadata.

    NextGen publishes Connect, including a Docker image, as the interface engine formerly known as Mirth Connect.

    • Mirth: is the engine service up, and is this channel deployed and started?
    • FHIR: does [base]/metadata answer with a CapabilityStatement, and how long did it take?
    • Both: record the product and version on the runbook, so the person knows which console and documentation to open.

    Run the metadata call from the same network location as the feed's own client. A call from a laptop on another network can succeed while the integration server is blocked by a firewall change.

    What can the second check read without opening PHI?

    The second check reads delivery facts only: the time of the last good message, the last status, and the error category. Agnotic sets those values up as fields that can be viewed without opening a message body.

    • Last success: the time the last message was sent or the last call returned a success status.
    • Last failure: the error category and the status code or acknowledgement code returned.
    • Volume: messages in and out in the last window, compared with the same window on a normal day.

    If the person must open a payload to diagnose the fault, the runbook hands over to an engineer with access approved for that feed. The on-call person does not browse messages.

    When should the person escalate, and to whom?

    The person escalates when the three checks are done and the feed is still down, or when the time limit on the page runs out. The page names the owner of the other system, not a general support inbox.

    • Engine down: escalate to the platform owner for the Mirth server.
    • Channel up, downstream refusing: escalate to the owner of the receiving system.
    • Credential expired: escalate to whoever issues and rotates that credential.
    • Cause unknown after three checks: escalate to the integration lead for the feed.

    The feed owner sets the time limit and writes it on the page in words a tired person can follow at night. If the page has no limit, the default is to escalate as soon as the three checks are done.

    What are the common mistakes with feed alerting?

    The common mistakes make pages either too noisy to trust or too vague to act on. Each one shows up in the closed-page notes long before it causes a missed outage.

    • Paging on single messages: one rejected message wakes someone, while a silent channel pages nobody.
    • Shared inbox as owner: the page reaches a mailbox that nobody reads at night.
    • PHI in the alert: a message body or patient identifier pasted into the page text.
    • Open-ended mutes: downtime muting with no end time, left in place after the work is done.
    • Purging to go green: clearing a backed-up queue so the alert stops, losing messages in the process.

    Which failures should not page anyone at night?

    Failures that recover without help, test channels and announced downtime should not page anyone at night. They go to a daytime queue, so the person on call trusts every page that does arrive.

    • Self-recovered: a retry that succeeded before the page threshold was reached.
    • Test and staging channels: logged, never paged.
    • Announced downtime: paging is muted for that feed and that window only, with an end time.

    Review the muted list after every downtime. A mute that outlives its window is the most common reason a real outage goes unseen.

    A worked example: an ADT channel stops sending to a FHIR server

    A worked example: an ADT channel that turns HL7 v2 admissions into FHIR Patient and Encounter updates goes quiet. The destination queue rises, and the page reaches the primary for that feed with the feed name and the queue depth.

    Check 1 shows the engine and the channel are up. Check 2 shows the last success was a while ago and every recent attempt returned 401. Check 3, the metadata call, answers, so the FHIR server itself is running.

    The person escalates to the credential owner named on the page. Once the client credential is renewed, the queue drains in order and the person records the cause and the time the feed recovered.

    How is a stopped feed recovered without losing messages?

    A stopped feed is recovered by letting the queued messages drain in order, not by clearing the queue and asking the source to resend. Agnotic writes the recovery steps for each feed before go-live.

    • Queue intact: fix the cause, restart the destination and watch the queue fall.
    • Errored messages: reprocess them as a named batch, with the count recorded.
    • Lost window: if messages never arrived, ask the source owner for a resend by time range.
    • Never: purge a queue to make a page go green.

    Record which messages were reprocessed and in what order. A downstream team that sees an admission arrive after a discharge needs to know it was a replay, not a new event.

    What must be recorded after the page closes?

    After the page closes, record the cause, the checks run, who was called and when the feed recovered. When the cause turns out to be a security incident, the HIPAA Security Rule makes that record a requirement, not a courtesy.

    45 CFR 164.308(a)(6) requires procedures to identify and respond to suspected or known security incidents, mitigate their harmful effects where practicable, and document security incidents and their outcomes.

    • Timeline: page time, first check, escalation, recovery.
    • Cause: one line, such as an expired credential or a full disk.
    • Follow-up: the change to the runbook, the trigger or the feed that prevents a repeat.

    Most pages are plain outages, and the on-call person does not decide alone whether one is more. If the cause involves an unknown login, an unexpected change to a channel or data sent to the wrong place, the page also goes to the security contact named on the runbook.

    How do you rehearse the runbook before a real outage?

    Rehearse it in a test environment by breaking the feed on purpose and letting the named person run the page cold. A runbook that has never been followed by someone else is a draft.

    • Step 1, break: stop a test channel or revoke a test credential.
    • Step 2, page: let the trigger fire and reach the named person.
    • Step 3, run: the person follows the page without help from its author.
    • Step 4, fix the page: rewrite any step that caused a question.

    Rehearse each feed's page before go-live and again after any change to its escalation names. A page that still lists someone who has left fails at the worst moment.

    How do you know the runbook is working?

    The runbook is working when every real page closes with the three checks recorded and an escalation, if any, that reached a named owner. Pages that close with no notes mean the runbook is being skipped.

    • Checks recorded on each closed page.
    • No escalation to an unnamed inbox.
    • Runbook edited after each outage that taught something new.

    Read the closed pages for each feed side by side from time to time. Two outages with the same cause on the same feed mean the follow-up from the first one was never finished.

    How can Agnotic help with alerting for FHIR and Mirth feeds?

    Agnotic writes one runbook per feed for the client, sets the triggers in whatever monitoring and paging tools are already in place, and rehearses each page with the people named on it before go-live.

    Name the person and the three checks

    Primary, backup, three checks, escalate. No PHI on the page.

    Sources

    Frequently Asked Questions

    Any team that runs live FHIR endpoints or Mirth channels that clinicians or partners depend on. It matters most when the person on call is not the engineer who built the feed.

    Talk to an engineer about your project

    Name the feed. We will put a person, three checks, and an escalate rule on it, with no PHI on the page.

    Go deeper

    Services and solutions on this topic