Page cover

Basic Iframe Integration Guide

This guide provides instructions for embedding RADPAIR within your application using the simplified iframe integration. This integration is designed for new partners who want to get started quickly with minimal complexity.

circle-info

This guide covers basic, single-author workflows only. For multi-author workflows, advanced event handling, or complex organizational structures, please refer to the Advanced Integration Guide.

Overview

The Basic Integration is designed to:

  • Minimize complexity — Reports flow in via HL7 integration, then open them by MRN and accession number

  • Use industry-standard identifiers — MRN and accession number ensure report uniqueness (no internal report IDs needed)

  • Handle user management internally — RADPAIR manages user metadata, roles, and authentication

  • Provide essential status updates — Five core events: opened, closed, saved, discarded, and signed

Integration Workflow (Summary)

1

HL7 Integration (Handled by Interoperability Partner)

Reports are created and pre-cached via HL7/DICOM before users need them.

2

Embed Iframe

Add RADPAIR iframe to your application to render the reader UI.

3

Authenticate

  • Wait for the app_ready event from the iframe.

  • Send the access token.

  • Wait for sign_in_successful.

4

Open Report

Send the MRN and accession number to open the pre-cached report in the iframe.

5

Listen for Events

Handle core reporting events (opened, saved, signed, discarded, closed).


Step 1: HL7 Integration (Handled by Interoperability Partner)

Report data flows into RADPAIR through our HL7/DICOM interoperability partner. This integration handles the creation and pre-caching of reports before users access them, ensuring instant load times and proper metadata association.

circle-info

You do not need to implement this step directly. Your RADPAIR representative will coordinate the HL7 integration setup with your interoperability partner.

Report Delivery

When reports are signed, RADPAIR sends report events to the interoperability partner, who transforms them into HL7 ORU (Observation Result) messages for delivery to your downstream systems (PACS, EMR). This includes support for:

  • Standard reports — Delivered upon signature (or after recall window if enabled)

  • Linked reports — Multiple studies can be linked to a single report; when signed, events are sent for all linked studies

Data Flow Overview

Endpoint:

Headers:

Request Body:

Required Fields:

Field
Type
Description

mrn

string

Medical Record Number — patient identifier

accession_number

string

Accession number — unique study identifier

circle-info

Together, MRN and accession number ensure report uniqueness within your organization. In rare cases where these two identifiers may not guarantee uniqueness (e.g., complex multi-site organizations), you can use the org_path parameter.

Optional Metadata Fields

Field
Type
Description

studyDescription

string

Description of the imaging study

clinical_notes

string

Clinical history or reason for exam

laterality

string

Side of body (e.g., "Left", "Right", "Bilateral")

views

string

Imaging views obtained

comparison

string

Prior studies available for comparison

symptom

string

Patient's presenting symptoms

modality

string

Imaging modality (e.g., "CT", "MR", "XR", "US")

contrast

string

Contrast administration details

patient_age

string

Patient's age

patient_gender

string

Patient's gender

pre_findings

string

DICOM SR data or AI-detected findings

findings

string

Pre-populated findings text

org_path

string

Organization path (e.g., "parent_org/sub_org") — rarely needed for uniqueness assurance


Step 2: Embed the Iframe

Add the RADPAIR iframe to your application:

Iframe Attributes

Attribute
Purpose

allow="microphone; hid"

Required for dictation and hardware devices (e.g., SpeechMike)

credentialless

Isolates session storage to prevent conflicts with multiple instances

?headless=true

Hides RADPAIR navigation UI for embedded use


Step 3: Authentication

Obtaining an API Key

  1. Navigate to your organization's settings page in RADPAIR

  2. Click the options menu (⋮) and select "API Keys"

  3. Click "Create New API Key"

  4. Copy and securely store the generated key — it will only be shown once

Creating an Access Token

Endpoint:

Headers:

Request Body:

Parameter
Type
Required
Description

user_email

string

Email of the user

first_name

string

User's first name

last_name

string

User's last name

Response:

circle-exclamation

Authenticating the Iframe


Step 4: Open Reports

Once authenticated, open a report by sending both the MRN and accession number:

Required Fields:

Field
Type
Description

mrn

string

Medical Record Number — patient identifier

accession_number

string

Accession number — unique study identifier

Optional Fields:

Field
Type
Description

org_path

string

Organization path (e.g., "parent_org/sub_org") — used in rare cases to ensure the report is routed to the correct organization

circle-info

Ensuring Report Uniqueness: MRN and accession number together uniquely identify the report within your organization. In unlikely cases where these two identifiers may not guarantee uniqueness (e.g., complex multi-site organizations with overlapping identifiers), you can provide the org_path parameter to explicitly specify the organization/sub-organization path.

Example with Optional org_path:

Closing Reports

To close the currently open report:


Step 4a: Linking Multiple Reports

RADPAIR supports linking multiple studies from the same patient into a single combined report. This is useful when a radiologist needs to read and report on multiple related studies together (e.g., multiple body parts from the same examination, or comparison studies).

How Report Linking Works

To link multiple reports, send the same MRN with multiple accession numbers. RADPAIR will automatically link these studies together in the system, allowing the radiologist to view and report on them as a unified report.

Opening and Linking Multiple Reports

Required Fields for Linked Reports:

Field
Type
Description

mrn

string

Medical Record Number — must be the same for all linked reports

accession_numbers

string[]

Array of accession numbers to link together

Optional Fields:

Field
Type
Description

org_path

string

Organization path (e.g., "parent_org/sub_org") — used in rare cases to ensure the report is routed to the correct organization

circle-info

Important: All reports being linked must belong to the same patient (same MRN) and must have been pre-cached via HL7 integration. The studies will be linked together in RADPAIR's system, and when the radiologist signs the combined report, events will be sent for all linked accession numbers.

Example: Linking Three Studies

Example with Optional org_path:

Events for Linked Reports

When a linked report is signed, RADPAIR will send separate report.signed events for each linked accession number. Your application should handle these events individually:


Step 5: Listen for Events

RADPAIR sends events to notify your application of report state changes. For basic integrations, you only need to handle five core events.

Core Events

Event
Description
When It Fires

report.opened

Report was opened

User opens a report

report.closed

Report was closed

User closes or navigates away from report

report.saved

Report saved as draft

User saves work in progress

report.discarded_completely

Report was discarded

User discards the report (unassigns it, making it available for others)

report.signed

Report was signed

User signs the report (triggers downstream delivery)

circle-info

Note on report.published: A report.published event also exists, but you can ignore it — report delivery to downstream systems (PACS, EMR) is handled automatically by our HL7 interoperability partner.

circle-info

Note on Report Recall: If Report Recall is enabled, you will receive a report.signed event at the beginning of the recall period, and then again when the recall window has elapsed (or if the user clicks "Sign Now"). If a user recalls a report during that time, you will receive a report.opened event with a report status of draft.

Event Listener Example

Event Payload Structure

All events include both MRN and accession number for identification:

Key Payload Fields:

Field
Description

mrn

The Medical Record Number

accession_number

The accession number

report_status

Signature type: preliminary, signed, or addendum

user_info

Information about the user who signed

timestamp

Unix timestamp of the event

circle-info

Events return the same mrn and accession_number from the HL7 integration. You do not need to track internal report IDs.


Complete Integration Example


Report Status Values

Events include a report_status field indicating the current state:

Status
Description

draft

Report is being worked on, not yet signed

preliminary

Preliminary read (resident/trainee signature)

signed

Final signature by attending radiologist

addendum

Addendum added to a signed report


Troubleshooting

circle-info

Use the expandable items below to view common troubleshooting scenarios.

chevron-right"App not ready" errorshashtag

Wait for the app_ready event before sending authentication.

chevron-right"Not authenticated" errorshashtag
  • Verify the access token is valid (tokens expire after 24 hours)

  • Ensure you received sign_in_successful before opening reports

chevron-rightReport not openinghashtag
  • Verify the report exists (was received via HL7 integration)

  • Check that both MRN and accession number match exactly

  • Ensure the user belongs to the organization where the report was created

  • In rare cases with complex multi-site organizations, verify the org_path is correct

  • For linked reports, ensure all accession numbers have been pre-cached and belong to the same MRN

chevron-rightEvents not receivedhashtag
  • Confirm event listener is checking the correct origin

  • Ensure iframe is loaded before adding the listener

chevron-rightLinked reports not workinghashtag
  • Verify all accession numbers belong to the same patient (same MRN)

  • Ensure all studies have been pre-cached via HL7 integration

  • Check that you're using the accession_numbers array (plural) for linked reports


Support

For integration support, contact your RADPAIR representative or email [email protected].