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#
| Route | Direction | Use it for |
|---|---|---|
| REST API | The product reads from Epic.direct | Requisitions and their status, decisions, hospitals, protocol lists, connection health, jobs. |
| Webhooks | Epic.direct tells the product | Reacting when something changes, without polling. |
| Connector or viewer plugin | Epic.direct calls or opens the product | Bringing the product's requests into the worklist, or opening a study in the product's viewer. |
What exists today#
| Product | In Epic.direct | State |
|---|---|---|
| RingPilot | The RingPilot text requisitions connector | Preview |
| RadSuite | Opening studies in an OHIF deployment through the OHIF Viewer plugin | Available |
| RadSuite | Opening studies through a PACS launch URL | Available |
| RadSuite | The Velox reading list connector | Preview |
| RadBrief | Nothing specific. It uses the REST API and webhooks like any other consumer. | API only |
| ShiftPilot | Nothing 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#
- 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.
- 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. - 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.
- 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.
- Catch up after downtime from
GET /v1/events, newest first.
// 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
- In the workspace, add a connection of type
ringpilot-linesto the hospital whose lines it serves. - Enter the ShiftPilot workspace address, and optionally the ShiftPilot site codes whose lines feed this hospital.
- Enter the service access token ShiftPilot issued for this workspace. It is sealed before it is stored.
- 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
| Step | Request Epic.direct makes to ShiftPilot | Effect |
|---|---|---|
| Read | GET /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. |
| Answer | POST /api/lines/protocol-requests | After 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.
| Plugin | What it does | State |
|---|---|---|
| OHIF Viewer | Opens 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 URL | Opens 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
| To | Scopes | Events |
|---|---|---|
| Show where a requisition stands | requisitions:read | requisition.received, requisition.updated |
| Record what was approved and whether it was saved | requisitions:read decisions:read | decision.recorded, submission.confirmed, submission.failed |
| Offer each hospital's protocol list | hospitals:read protocols:read | None. Read on a schedule. |
RadBrief#
RadBrief has no connector and no plugin in Epic.direct. It reads through the API with its own key.
| To | Scopes | Events |
|---|---|---|
| Know which requisitions are open, by hospital and modality | requisitions:read hospitals:read | requisition.received, requisition.updated |
| Match a requisition to a patient it already knows | requisitions:read phi:read | The same |
| See the suggestion and its rationale | requisitions:read decisions:read | suggestion.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.
| To | Scopes | Events |
|---|---|---|
| Know whether a hospital's connection is working | hospitals:read connections:read | connection.status_changed |
| Know how much is waiting at each hospital | requisitions:read | requisition.received, requisition.updated |
| Be told when background work fails | jobs:read | job.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.