Connects a digital pathology whole-slide imaging platform to Epic Beaker so pathologists open gigapixel slide images beside the anatomic pathology case, with viewer deep-links and signed-out results flowing back to Hyperdrive and MyChart.
Digital Pathology
Objective: Pathologists sign out cases in Epic Beaker but the digitized whole-slide images live in a separate scanner and image-management system, forcing a manual hunt to correlate a slide with its accession. The goal is a durable link between each Beaker surgical pathology case and its DICOM whole-slide image objects, so a pathologist launches the viewer in context and the signed-out report posts back to the chart. Done looks like every scanned slide reconciled to the correct accession and specimen, viewer deep-links resolving without a second login, and results reaching Hyperdrive and MyChart with image provenance intact. This accelerator packages the Digital Pathology Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- WSI Ingest & Case Feed (System API) — Pulls whole-slide image metadata from the IMS over DICOMweb and consumes the Beaker OMG case feed ·
QIDO-RS GET /studies, WADO-RS GET /studies/{uid}, CONSUME OMG case feed
- Case Match (Process API) — Matches slide barcodes and StudyInstanceUID to the Beaker accession, specimen, and part ·
POST /match, ROUTE unmatched to DLQ
- case-match-dlq (Dead-letter queue) — Holds unmatched barcodes, orphaned StudyInstanceUIDs, and closed-case arrivals for reconciliation and idempotent replay on correlation ID ·
PUBLISH /dlq, REPLAY /{correlationId}
- Chart Results (Experience API) — Delivers image-enabled pathology results and SMART viewer deep-links back to the chart, gated on Beaker sign-out ·
POST DiagnosticReport, POST DocumentReference, GET /viewer-launch
- Epic Bridges (target) — Receives HL7v2 result and image-document-link messages referencing the accession ·
ORU^R01, MDM^T02
- Epic FHIR R4 (target) — Stores the report, imaging study, and specimen links with image provenance ·
POST /DiagnosticReport, POST /ImagingStudy, POST /DocumentReference
Prerequisites
- Epic Bridges configured for ORU R01 results and MDM T02 document links plus outbound OMG case feed from Beaker
- Beaker AP module live with accession and specimen numbering and part structure
- Digital pathology IMS exposing DICOMweb WADO-RS and QIDO-RS for whole-slide image objects
- Epic FHIR R4 endpoint with DiagnosticReport DocumentReference ImagingStudy and Specimen scopes
- SMART on FHIR launch so the viewer link opens with correct patient context and no re-login
- Anypoint Platform runtime that can reach the IMS and DICOM archive on the clinical network
1. Epic interfaces and standards
This accelerator implements the Digital Pathology Epic Data Sharing Playbook. Register the connecting app on Epic on FHIR and confirm the customer has the relevant Epic modules licensed before building.
- Beaker AP anatomic pathology cases
- Bridges HL7v2 ORU R01 results and MDM T02 document links
- FHIR R4 DiagnosticReport DocumentReference ImagingStudy Specimen
- SMART on FHIR EHR launch for the WSI viewer
- Hyperdrive result review and MyChart patient results
Architecture
2. Business requirements
- Bind every whole-slide image to a single Beaker accession specimen and part so a case with many blocks does not scatter across unrelated slides.
- Give pathologists a one-click viewer launch from the case in Hyperdrive that opens the exact slide set not a generic worklist.
- Return the signed-out report to the chart with a viewer deep-link and where used AI-assisted quantification such as Ki-67 or HER2 scoring.
- Preserve image provenance including scanner stain magnification and which analysis algorithm and version produced any computed value.
- Do not release images or reports to MyChart until the pathologist has signed out the case in Beaker.
3. Image ingestion and case correlation
- Pull WSI object metadata from the IMS over DICOMweb QIDO-RS and treat StudyInstanceUID and AccessionNumber as the join keys never the filename.
- Map slide-label barcodes to Beaker accession specimen and part in DataWeave and route a barcode that resolves to no open case to the dead-letter queue.
- Represent each slide set as a FHIR ImagingStudy with a DocumentReference pointing at the WADO-RS retrieval URL.
- Carry the scanner instrument objective magnification and stain protocol into the ImagingStudy metadata so review is not blind to acquisition conditions.
- Stamp a correlation ID on every slide event and propagate it through matching delivery and any AI callback for end-to-end tracing.
4. Results delivery to the chart
- Post the narrative surgical pathology report as a DiagnosticReport with LOINC-coded observations and the viewer link in presentedForm or media.
- For HL7v2 sites send ORU R01 for the result and MDM T02 for the image-document link referencing the same accession the OMG feed used.
- Embed the SMART on FHIR launch URL not a raw WADO URL so clicking the link in Hyperdrive re-establishes patient context without a second login.
- Gate release on Beaker sign-out status so preliminary and addended reports carry the correct HL7v2 result status or FHIR DiagnosticReport status.
- Suppress MyChart release for cases flagged sensitive by the lab until manual review clears them.
5. AI-assisted quantification handling
- When an image-analysis algorithm returns a computed value attach it as an Observation with device name and algorithm version distinct from the human diagnosis.
- Label AI-derived observations clearly so a Ki-67 index computed by software is never mistaken for a pathologist-verified result.
- Hold computed values as preliminary until the pathologist accepts them in Beaker rather than auto-filing unverified scores into the signed report.
- Reconcile algorithm output to the specimen it was run on not just the accession since one case may have several stained parts.
- Log the input slide algorithm and version for every computed result so a later recall of the algorithm is auditable.
6. Error handling and operations
- Alert on the absence of an expected slide for a scanned accession within its SLA window which is the failure mode dashboards miss most often.
- Route unmatched barcodes orphaned StudyInstanceUIDs and closed-case arrivals to the dead-letter queue with the raw payload for lab reconciliation.
- Retry WADO-RS retrievals with backoff for large gigapixel objects so a single tile timeout does not fail the case link.
- Dashboard match rate time from scan to case-link and time from sign-out to chart delivery split by lab and scanner.
- Make dead-letter replay idempotent on correlation ID so a reprocessed slide does not double-link.
7. Security and compliance
- Encrypt PHI in transit and at rest.
- Audit-log every access to and modification of patient data, and carry a correlation ID end to end.
- Enforce minimum-necessary access for integration operators and support users.
- Slide label images often carry patient identifiers burned into the pixels so restrict label access and never log label pixel data
- Enforce SMART launch context so a viewer link cannot be replayed to open images for a different patient
- Segment the DICOM archive and IMS behind the Anypoint VPC and do not expose WADO-RS to the public internet
Sample payload — FHIR DiagnosticReport with WSI viewer link and Ki-67 observation reference
{
"resourceType": "DiagnosticReport",
"status": "final",
"category": [{"coding": [{"system": "http://terminology.hl7.org/CodeSystem/v2-0074", "code": "SP", "display": "Surgical Pathology"}]}],
"code": {"coding": [{"system": "http://loinc.org", "code": "60568-3", "display": "Pathology Synoptic report"}]},
"subject": {"reference": "Patient/eR7Kd9"},
"specimen": [{"reference": "Specimen/SP24-01187-A"}],
"imagingStudy": [{"reference": "ImagingStudy/wsi-1.2.840.113619.2.55.3"}],
"result": [{"reference": "Observation/ki67-index-A1", "display": "Ki-67 proliferation index AI-assisted"}],
"presentedForm": [{
"contentType": "text/html",
"title": "Open whole-slide images in viewer",
"url": "https://fhir.hospital.org/smart/launch?iss=https://epic.hospital.org/fhir&launch=wsi-SP24-01187"
}],
"identifier": [{"system": "urn:beaker:accession", "value": "SP24-01187"}]
}
Testing and validation
- Feed slide barcodes for a multi-block case and confirm each ImagingStudy links to the correct specimen and part
- Send a barcode for a closed or nonexistent accession and confirm it lands in the dead-letter queue with no chart write
- Register a Beaker case via the OMG feed ingest slides deliver the report and verify the viewer link opens the correct slides under SMART launch
- Verify preliminary final and addended reports map to correct HL7v2 result status and FHIR DiagnosticReport status
- Confirm a computed Ki-67 observation carries the algorithm name and version labeled distinct from the pathologist diagnosis
Phased rollout
Phase 1 — Connect
- Stand up the System API against the IMS DICOMweb endpoints and the Beaker OMG case feed in a non-production Epic environment
- Validate DICOMweb connectivity and StudyInstanceUID and AccessionNumber population from the scanner
Phase 2 — Map and test
- Build DataWeave barcode-to-accession mapping and exercise the match and dead-letter paths against real case shapes
- Deliver DiagnosticReport and ORU and MDM into a test Epic and confirm viewer deep-links resolve under SMART launch in Hyperdrive
Phase 3 — Production
- Enable one pathology subspecialty such as breast with match-rate and latency dashboards and DLQ monitoring
- Expand to remaining subspecialties and turn on MyChart release only after sensitive-case suppression is verified
Success metrics
- Slide-to-case match rate above 99 percent
- Median time from slide scan to Beaker case-link under 5 minutes
- Median time from sign-out to chart and MyChart delivery under 10 minutes
- Viewer deep-link launch success above 99.5 percent with no re-login
Troubleshooting
- Slides ingest but never link to a Beaker case and pile up in the dead-letter queue. — Likely cause: The scanner is not populating the DICOM AccessionNumber or the slide barcode format does not match the Beaker accession pattern. Fix: Align the scanner and IMS accession mapping to Beaker numbering and add a barcode-normalization step in DataWeave before the match then reconcile the DLQ backlog.
- Viewer link in Hyperdrive opens to a login prompt or the wrong patient slides. — Likely cause: The report carries a raw WADO-RS URL instead of a SMART on FHIR launch URL with case context. Fix: Replace the embedded link with the SMART launch URL that passes iss and launch parameters and verify the launch context binds to the specific accession.
- An AI-computed Ki-67 value appears in the chart as if pathologist-verified before sign-out. — Likely cause: The computed Observation was filed as final and not gated on Beaker sign-out status. Fix: Hold AI-derived observations as preliminary gate release on sign-out and label them with device and algorithm version distinct from the human diagnosis.
Deliverable: A deployable Anypoint blueprint that ingests whole-slide image case events from a digital pathology system, registers DICOM WSI object links against the Beaker surgical pathology case, and returns image-enabled pathology results to the Epic chart.