Skip to content

Integrating other products

RadSuite, RadBrief, RingPilot and ShiftPilot are products in the same family as Epic.direct. Each connects to Epic.direct the way any outside system does: with its own scoped key, the read-only REST API and signed webhooks. Two of them also have a connector or a viewer plugin. This page says which, and in what state.

Three routes in and out#

RouteDirectionUse it for
REST APIThe product reads from Epic.directRequisitions and their status, decisions, hospitals, protocol lists, connection health, jobs.
WebhooksEpic.direct tells the productReacting when something changes, without polling.
Connector or viewer pluginEpic.direct calls or opens the productBringing the product's requests into the worklist, or opening a study in the product's viewer.

What exists today#

ProductIn Epic.directState
RingPilotThe RingPilot text requisitions connectorPreview
RadSuiteOpening studies in an OHIF deployment through the OHIF Viewer pluginAvailable
RadSuiteOpening studies through a PACS launch URLAvailable
RadSuiteThe Velox reading list connectorPreview
RadBriefNothing specific. It uses the REST API and webhooks like any other consumer.API only
ShiftPilotNothing specific beyond hosting the endpoint the RingPilot connector calls. It uses the REST API and webhooks like any other consumer.API only

Nothing beyond this table is built in. In particular there is no shared sign-in between the products, and no product is given access by default: each needs a key that an Owner, Administrator or Developer creates for it.

The pattern for any product#

  1. One key per product, per environment. Name it for what uses it, so it can be revoked on its own. Development and production never share a key.
  2. The fewest scopes that do the job. Start without phi:read. Add it only when the product must identify the patient, and have an Owner or Administrator create that key.
  3. Webhooks to learn that something changed, the API to learn what. Payloads carry ids and states; the detail comes from the API under the product’s own scopes.
  4. Handle each event once. A delivery can be retried, and deliveries can arrive out of order. Use the event id to ignore repeats and the API for current state.
  5. Catch up after downtime from GET /v1/events, newest first.
Node, with Express
// A webhook receiver: verify, answer, then fetch the detail.
app.post("/hooks/epicdirect", express.raw({ type: "application/json" }), async (req, res) => {
  if (!verify(req.body.toString(), req.get("epic-direct-signature") ?? "", process.env.EPICDIRECT_WEBHOOK_SECRET)) {
    return res.sendStatus(400);
  }
  res.sendStatus(204);                       // answer within 10 seconds

  const event = JSON.parse(req.body);
  if (await alreadyHandled(event.id)) return; // the same id is sent again on a retry

  if (event.type === "submission.confirmed") {
    const r = await fetch(`https://api.epic.direct/v1/requisitions/${event.subject.id}`, {
      headers: { authorization: `Bearer ${process.env.EPICDIRECT_API_KEY}` },
    });
    // … update your own record from (await r.json()).data
  }
});

verify is the function on the Webhooks page.

RingPilot#

Requisitions that technologists text (or photograph) to a RingPilot line, with the protocol draft RingPilot already generates. Epic.direct shows them in the same worklist and sends the approved answer back through RingPilot. Preview

This is the one integration where Epic.direct calls the other product. RingPilot keeps its text line, its number and its own drafting; Epic.direct shows the requests and returns the radiologist’s answer.

Set-up

  1. In the workspace, add a connection of type ringpilot-lines to the hospital whose lines it serves.
  2. Enter the ShiftPilot workspace address, and optionally the ShiftPilot site codes whose lines feed this hospital.
  3. Enter the service access token ShiftPilot issued for this workspace. It is sealed before it is stored.
  4. Test the connection, then activate it. Hospital authorisation is not required for this type, because it does not reach a hospital system.

It needs, on the ShiftPilot side:

  • The protocol-requests endpoint deployed in ShiftPilot (docs: Interoperability → RingPilot)
  • A ShiftPilot service token created for this workspace

What is exchanged

StepRequest Epic.direct makes to ShiftPilotEffect
ReadGET /api/lines/protocol-requests?since=…&sites=…Each request becomes a requisition with source text. RingPilot’s draft, when there is one, is recorded as the suggestion with engine external.
AnswerPOST /api/lines/protocol-requestsAfter a radiologist decides, the answer is sent with the thread and message ids, the radiologist's email address, and whether the draft was accepted as given.
  • These requisitions carry no patient fields: the connector records none for them. The text of the message is stored as it was sent, so it holds whatever the sender typed.
  • Epic.direct does not prepare a second suggestion for a text requisition. The draft it shows is RingPilot’s.
  • A test against a ShiftPilot workspace that does not have the endpoint reports exactly that, rather than a generic failure.
  • The connector is in preview: it is implemented, and awaiting validation against a live site.

RadSuite#

Opening studies in RadSuite’s viewer

The worklist can hand a study to a viewer outside Epic.direct. Choose the plugin under Integrations in the workspace.

PluginWhat it doesState
OHIF ViewerOpens the study in your own OHIF deployment — the same arrangement RadSuite uses in front of Orthanc. The deployment needs to reach the archive itself.Available
PACS launch URLOpens any PACS or viewer that accepts a launch link — Synapse, Sectra, Visage, a RadSuite gateway. You supply the link with placeholders for the study.Available

Both open an https address you supply, with the study identifier filled in. The viewer must be able to reach the archive itself: Epic.direct passes it an identifier, not images. See Viewer plugins.

Velox

Signs in to Velox as a radiologist, with the code Velox texts, and lists the exams still waiting for that reading physician to report. Read-only: nothing is imported, signed or changed in Velox. Tested against a simulator of Velox's sign-in and worklist pages, not yet against Velox itself. Preview

This connector type is declared so that a workspace can be modelled with it. It has no driver and cannot be activated.

Reading from the API

ToScopesEvents
Show where a requisition standsrequisitions:readrequisition.received, requisition.updated
Record what was approved and whether it was savedrequisitions:read decisions:readdecision.recorded, submission.confirmed, submission.failed
Offer each hospital's protocol listhospitals:read protocols:readNone. Read on a schedule.

RadBrief#

RadBrief has no connector and no plugin in Epic.direct. It reads through the API with its own key.

ToScopesEvents
Know which requisitions are open, by hospital and modalityrequisitions:read hospitals:readrequisition.received, requisition.updated
Match a requisition to a patient it already knowsrequisitions:read phi:readThe same
See the suggestion and its rationalerequisitions:read decisions:readsuggestion.created

ShiftPilot#

ShiftPilot appears in two places:

  • It hosts the endpoint the RingPilot connector calls, and issues the service token for it.
  • As a reader of the API, with its own key, like any other product.
ToScopesEvents
Know whether a hospital's connection is workinghospitals:read connections:readconnection.status_changed
Know how much is waiting at each hospitalrequisitions:readrequisition.received, requisition.updated
Be told when background work failsjobs:readjob.failed

Epic.direct holds no scheduling data and exposes none. Which radiologist is on shift is ShiftPilot’s to know.

What this page does not claim#

  • The scope and event tables are suggestions for a product’s own integration work. They do not describe code that exists in RadSuite, RadBrief or ShiftPilot.
  • Any integration with a live hospital system still needs that hospital’s authorisation, whichever product asks for the data.