Specialized modality extensions
Specialized modality extensions add viewer workflows for data that does not fit the main image review path. They connect each data type to the viewer through display-set recognition, a suitable viewport or panel, and commands for review or export. Each capability is delivered as a separate contributed extension package, so a deployment can enable the workflows that match its studies. This page complements Extension ecosystem, sits beside Default extension capabilities, and relates to Cornerstone imaging integration.
Capability groups
These extensions support two broad needs. Some provide a viewer for a distinct object type. Others add clinical workflows that turn image data into measurements, annotations, or derived results.
| Capability | Viewer goal | Main result |
|---|---|---|
| Dynamic volumes | Review time-varying volume data as a 4D workflow | Time-point controls, playback, derived volumes, segmentation, and time reports |
| Parametric maps | View a measurement map with its source image volume | Color-mapped map overlay aligned to the referenced volume |
| PDF objects | Read an encapsulated document in the study | In-viewer PDF or supported document display |
| Video objects | Play video stored in supported DICOM objects | Video playback in a dedicated viewport |
| Microscopy | Review whole-slide images and related findings | Whole-slide navigation, overlays, measurements, and saved reports |
| TMTV | Quantify metabolically active tumor volume from PET/CT | Threshold-based segmentation and clinical reports |
| Ultrasound annotation | Mark pleura and B-lines in ultrasound frames | Frame-linked annotations and JSON export |
Dynamic volume workflow
4D volume review
The dynamic volume extension supports review of a volume across time points. It identifies temporal image data and gives the viewer a 4D workflow in which the user can inspect time points with playback, select a time range, create a label map, switch between dynamic and computed views, and export values over time. The workflow relies on the core viewer to place the data in viewports while the extension supplies the time-aware controls and actions.
For CT and PT studies, the extension also provides a staged review layout. The layout moves from data preparation through registration and ROI quantification to kinetic analysis. It pairs orthogonal CT, PT, and fusion views with a time-series chart so the reviewer can connect spatial alignment, region measurements, and changes over time.
When the workflow processes a selected region, it can return either one row per voxel or summary values for each time point. It can also create a derived image from a selected range. This makes the same review path useful for visual inspection and downstream time-series analysis.
This diagram shows how temporal data moves from time selection to spatial review and time-based results.
flowchart LR
A[Temporal image series] --> B[4D volume review]
B --> C[Select time point or range]
C --> D[Inspect with playback]
C --> E[Create derived volume]
D --> F[Time report]
B --> G[CT and PT review stages]
G --> H[Registration and ROI quantification]
H --> I[Kinetic analysis]
References: extensions/…/package.json• L1-9 extensions/…/index.ts• L10-55 extensions/…/getPanelModule.tsx• L7-57 extensions/…/PanelGenerateImage.tsx• L26-46 extensions/…/PanelGenerateImage.tsx• L132-197 extensions/…/PanelGenerateImage.tsx• L199-244 extensions/…/commandsModule.ts• L15-42 extensions/…/commandsModule.ts• L304-360 extensions/…/getHangingProtocolModule.ts• L449-681
Parametric map workflow
Parametric map viewing
The parametric map extension displays a DICOM parametric map as a derived view over the volume that it references. A parametric map is an image in which each value represents a measured or computed property rather than a direct scan intensity. The viewer keeps the map tied to its source series so that the map and source image share spatial context.
The workflow presents the map with a color scale, an opacity ramp, and a display range suited to map values. It also derives display information from the source volume. A map cannot be shown as an independent stack when its referenced volume is not available, so the source study data is part of the viewing contract.
flowchart LR
A[Parametric map object] --> B[Find referenced series]
B --> C[Load source volume]
C --> D[Create aligned map view]
D --> E[Color-mapped review]
References: extensions/…/package.json• L1-9 extensions/…/getSopClassHandlerModule.ts• L7-15 extensions/…/getSopClassHandlerModule.ts• L41-59 extensions/…/getSopClassHandlerModule.ts• L74-124 extensions/…/getSopClassHandlerModule.ts• L210-250 extensions/…/OHIFCornerstonePMAPViewport.tsx• L5-24 extensions/…/OHIFCornerstonePMAPViewport.tsx• L42-84
Document and video objects
Encapsulated document viewing
The DICOM PDF extension lets a study contain an encapsulated document that users can open in a viewer area. It treats the document as a study display object rather than as a set of medical image slices. The current display contract covers PDF and selected text or markup document types. The extension checks the declared type and the document content before it creates a browser display resource.
Document revisions can be grouped into one display set. The active revision is used for the viewer, or the latest revision is used when no active revision is named. This keeps document history together while giving the viewer one document to open.
The viewport uses the browser PDF viewer for PDF content and a restricted embedded frame for supported text or markup content. It uses one display set at a time and gives a clear state for loading, unsupported content, content mismatch, and retrieval errors. It also releases temporary document resources when the view changes. This keeps document review separate from image controls while preserving the document in the study workflow.
References: extensions/…/package.json• L1-9 extensions/…/getSopClassHandlerModule.js• L7-11 extensions/…/getSopClassHandlerModule.js• L17-34 extensions/…/getSopClassHandlerModule.js• L62-87 extensions/…/getSopClassHandlerModule.test.js• L12-26 extensions/…/displayableDocumentTypes.ts• L24-40 extensions/…/displayableDocumentTypes.ts• L60-105 extensions/…/loadDisplayableDocument.ts• L52-105 extensions/…/OHIFCornerstonePdfViewport.tsx• L8-14 extensions/…/OHIFCornerstonePdfViewport.tsx• L56-100 extensions/…/OHIFCornerstonePdfViewport.tsx• L125-155
Video object viewing
The DICOM video extension turns supported video objects into playable study content. It recognizes video-oriented storage classes and selected secondary-capture objects. It also checks the available transfer syntax and frame count before it treats secondary capture as video. The data source must expose a playable video URL for the current workflow.
The extension gives the video a dedicated viewport type and keeps the video URL with the display set. This separates playback from slice navigation while still allowing the object to participate in the study and thumbnail flow.
References: extensions/…/package.json• L1-9 extensions/…/getSopClassHandlerModule.js• L6-31 extensions/…/getSopClassHandlerModule.js• L33-51 extensions/…/getSopClassHandlerModule.js• L58-102 extensions/…/getSopClassHandlerModule.js• L105-143 extensions/…/index.tsx• L7-14
Microscopy workflow
Whole-slide microscopy review
The microscopy extension brings whole-slide microscopy into the viewer through a dedicated whole-slide renderer. Whole-slide imaging means that one specimen is represented as a large, multi-resolution slide rather than a normal stack of slices. The workflow supports slide navigation and an overview map while keeping the microscopy view active inside the viewer grid.
The extension also handles derived microscopy information. It can load supported structured reports and annotation objects as overlays, and its measurement panel supports selecting, editing, deleting, and reviewing slide measurements. When a supported microscopy report is opened, the workflow restores its regions, labels, measurements, and presentation state on the active slide. Users can save those measurements as a derived DICOM Comprehensive 3D Structured Report or download them for later use. Other structured report types are passed to the default unsupported-display path rather than being treated as microscopy findings. These functions give image review and finding review one shared workflow without forcing the slide into a conventional radiology viewport.
The microscopy service keeps ROI annotations and their visibility state across the managed microscopy viewers. A visibility toggle therefore hides the ROIs for the active microscopy views and can restore them on the next toggle without losing the annotation set.
flowchart LR
A[Whole-slide image] --> B[Microscopy viewer]
B --> C[Overview and position navigation]
B --> D[Measurements]
E[Microscopy report or annotation] --> F[Overlay]
F --> B
D --> G[Derived report or download]
References: extensions/…/package.json• L1-9 extensions/…/README.md• L1-8 extensions/…/index.tsx• L30-49 extensions/…/index.tsx• L103-169 extensions/…/DicomMicroscopyViewport.tsx• L31-57 extensions/…/DicomMicroscopyViewport.tsx• L138-193 extensions/…/DicomMicroscopyANNSopClassHandler.js• L14-30 extensions/…/DicomMicroscopyANNSopClassHandler.js• L59-105 extensions/…/DicomMicroscopySRSopClassHandler.js• L19-32 extensions/…/DicomMicroscopySRSopClassHandler.js• L64-134 extensions/…/loadSR.ts• L9-45 extensions/…/loadSR.ts• L47-169 extensions/…/DicomMicroscopySRSopClassHandler.test.js• L5-25 extensions/…/MicroscopyPanel.tsx• L112-168 extensions/…/MicroscopyPanel.tsx• L176-240 extensions/…/MicroscopyPanel.tsx• L284-375 extensions/…/index.tsx• L31-121 extensions/…/getPanelModule.tsx• L11-41 extensions/…/getCommandsModule.ts• L17-25 extensions/…/getCommandsModule.ts• L46-135 extensions/…/MicroscopyService.ts• L297-325 extensions/…/MicroscopyService.ts• L393-410 extensions/…/constructSR.ts• L13-21 extensions/…/constructSR.ts• L59-167 extensions/…/constructSR.test.ts• L10-28 extensions/…/MicroscopyService.test.ts• L3-33
TMTV workflow
PET/CT tumor volume analysis
The TMTV extension supports total metabolic tumor volume analysis for PET/CT studies. It matches CT and PET data into coordinated layouts, provides fusion views, and uses a segmentation as the working result. TMTV means the measured volume of tissue that meets the selected metabolic and anatomic threshold rules.
The user can define a threshold from a percentage of maximum SUV or from CT and PET value ranges. The extension applies the threshold to a selected region, updates the segmentation, calculates metabolic statistics, and exposes report actions. Reports can include TMTV, lesion glycolysis, threshold settings, patient data, and segmentation statistics. The workflow can also export selected annotations as a DICOM RT structure-set report.
PET SUV values depend on patient and radiopharmaceutical data. The SUV panel lets the user correct displayed PET metadata such as patient sex, weight, dose, half-life, and injection time when the source values are missing or wrong. Reloading the data applies those values to the active PET display set before further review.
flowchart LR
A[PET and CT study] --> B[Coordinated PET/CT layout]
B --> C[Review or correct PET metadata]
C --> D[Select ROI and threshold]
D --> E[Create or update segmentation]
E --> F[Calculate TMTV statistics]
F --> G[CSV or RT report]
References: extensions/…/package.json• L1-9 extensions/…/getHangingProtocolModule.ts• L15-21 extensions/…/getHangingProtocolModule.ts• L238-340 extensions/…/getPanelModule.tsx• L7-70 extensions/…/PanelPetSUV.tsx• L60-119 extensions/…/PanelPetSUV.tsx• L141-160 extensions/…/PanelPetSUV.tsx• L162-259 extensions/…/ROIThresholdConfiguration.tsx• L14-23 extensions/…/ROIThresholdConfiguration.tsx• L86-165 extensions/…/commandsModule.ts• L158-235 extensions/…/commandsModule.ts• L237-260 extensions/…/createAndDownloadTMTVReport.js• L5-53
Ultrasound annotation workflow
Pleura and B-line annotation
The ultrasound annotation extension supports a focused lung ultrasound workflow. It lets a user mark pleura lines and B-lines on ultrasound frames, inspect which frames contain annotations, and show or hide the related fan and percentage overlays. A B-line is a vertical lung ultrasound finding. The extension keeps the annotation type and frame association as part of the review state.
The panel provides controls for annotation selection, deletion, depth guidance, overlay visibility, and frame navigation. The annotated-frame list stays in step with annotation edits and measurement removal or clear events. The export action writes the annotation labels and monitored image IDs as JSON. The geometry provider is also the boundary where a deployment can supply probe-specific fan shape data.
flowchart LR
A[Ultrasound frames] --> B[Choose pleura or B-line]
B --> C[Draw and review annotations]
C --> D[Track annotated frames]
C --> E[JSON annotation export]
References: extensions/…/package.json• L1-9 extensions/…/getPanelModule.tsx• L10-27 extensions/…/USAnnotationPanel.tsx• L26-30 extensions/…/USAnnotationPanel.tsx• L56-124 extensions/…/USAnnotationPanel.tsx• L210-273 extensions/…/USAnnotationPanel.tsx• L275-340 extensions/…/USAnnotationPanel.tsx• L342-404 extensions/…/getCommandsModule.ts• L22-70 extensions/…/getCommandsModule.ts• L129-177 extensions/…/getCommandsModule.ts• L180-281 extensions/…/init.ts• L1-8 extensions/…/FanShapeGeometryProvider.ts• L3-24
Extension boundaries
Specialized extensions share the platform’s display-set and viewer contracts, but each one owns the user actions that give its data meaning. A PDF or video object mainly needs recognition and a suitable viewport. A microscopy, TMTV, or ultrasound workflow also needs panels, commands, and state that connect user actions to derived findings.
This split lets a mode choose only the capabilities that fit its study. It also means that the availability of a workflow depends on both extension registration and the data contract of the source system. For example, a parametric map needs a referenced volume, video needs a supported transport form, document viewing needs an allowed and retrievable payload, and TMTV needs matching PET and CT data with usable SUV metadata.
Change checklist
When these files or sections are changed, remember to consider these:
- Keep each SOP class handler, display-set type, and viewport name aligned. A mismatch can make valid data appear unsupported or select the wrong viewer.
- Preserve reference links between a parametric map, its source series, and its source volume. The map cannot work as a stand-alone stack.
- Keep parametric map value scaling, color-map settings, and loading feedback aligned. A change in one can make the map look valid while showing misleading values or state.
- Keep video transfer syntax, frame-count recognition, and data-source URL rules aligned. Recognition without a playable URL creates an empty video view.
- Keep the document MIME allowlist, revision selection, type validation, browser embed strategy, and viewport error messages aligned. A type that is accepted for recognition but not for safe loading can fail after the study opens.
- Keep document bulk-data retrieval and object-URL cleanup aligned with viewport changes. A load that outlives its viewport can show stale content or retain a temporary resource.
- Keep microscopy overlay handlers, supported SR class checks, microscopy service state, ROI visibility controls, measurement actions, and report saving aligned. A change in one can leave findings visible without tools or save a report that does not match the displayed measurements.
- Keep the microscopy report writer identity and structured-report evidence aligned with the source slide. A valid-looking report can still lose its link to the specimen if those fields diverge.
- Keep restored microscopy report regions, labels, measurements, and presentation state aligned with the active slide and its managed viewer. A report can load without showing the intended findings if that relationship breaks.
- Keep TMTV threshold inputs, PET metadata corrections, segmentation statistics, and report rows aligned. A new metric or input must reach both the displayed result and the exported report.
- Keep ultrasound annotation types, frame counts, fan geometry fields, and JSON export names aligned. These values form the contract with downstream annotation users.
- Keep the dynamic-volume hanging protocol stages, CT/PT display-set selectors, synchronized views, and time-series chart aligned. A change in one can place the right data in the wrong review stage or break the link between spatial and kinetic analysis.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A parametric map has no usable referenced volume | The map cannot load into the aligned volume view | Load and validate the referenced display set before map review |
| A PDF display contains more than one display set | The PDF viewport rejects the display | Route one PDF object to the PDF viewport at a time |
| A document declares an unsupported type or its payload does not match the allowed type | The document is not embedded in the viewer | Keep the source declaration on the allowlist and validate the payload before display |
| Encapsulated document bytes are missing or bulk-data retrieval fails | The viewport shows a document retrieval error | Provide inline content or a working bulk-data retrieval path |
| A document revision chain has no active revision and the latest instance is not usable | The viewer opens the wrong revision or fails to display the intended document | Keep revision ordering and active-revision selection aligned with the source data |
| A video object uses an unsupported transfer syntax, does not meet secondary-capture frame rules, or lacks a playable URL | The display set may be recognized but playback cannot start | Check the storage class, transfer syntax or frame count, and returned video URL |
| A microscopy report or annotation points to a missing source slide | The overlay cannot be placed in the microscopy view | Keep the source slide and derived display set available together |
| A microscopy SR is not Comprehensive 3D SR | The object follows the unsupported-display path instead of becoming a microscopy overlay | Use the supported SR class for microscopy measurements |
| A saved microscopy report is loaded without an active managed microscopy viewer | Its regions and measurements are not restored to a visible slide | Open the report with its source slide in an active microscopy viewer |
| Microscopy ROI visibility state is not applied to all managed viewers | Some views can stay hidden after the reviewer asks to show the ROIs | Route visibility changes through the microscopy service for every managed viewer |
| PET or CT data is missing from the matched TMTV layout | Threshold segmentation and TMTV statistics cannot run | Match both source modalities before enabling the workflow |
| PET SUV metadata is missing or wrong and the reviewer does not correct it | SUV-based thresholds and TMTV results can be unreliable | Review the PET metadata panel and reload the data before analysis |
| No ultrasound fan geometry is returned | Fan-specific overlay and exported geometry are incomplete | Supply geometry for the image or handle the missing geometry state |
| A dynamic-volume study does not match the required CT and PT display sets | Registration, ROI quantification, or kinetic analysis cannot use the staged layout | Match reconstructable CT and PT data before enabling the 4D protocol |
Key files
| File | Why to read it |
|---|---|
| extensions/…/index.ts | Shows the extension boundary for the 4D workflow. |
| extensions/…/getPanelModule.tsx | Shows the user-facing dynamic data and segmentation panels. |
| extensions/…/PanelGenerateImage.tsx | Shows time-point playback and creation of a derived volume from dynamic data. |
| extensions/…/commandsModule.ts | Shows the relationship between dynamic data, segmentations, computed volumes, and time reports. |
| extensions/…/getHangingProtocolModule.ts | Shows the staged CT/PT layouts for preparation, registration, ROI quantification, and kinetic analysis. |
| extensions/…/getSopClassHandlerModule.ts | Shows how a parametric map is linked to its referenced volume. |
| extensions/…/OHIFCornerstonePMAPViewport.tsx | Shows the map and source volume as one viewing experience. |
| extensions/…/getSopClassHandlerModule.js | Shows how encapsulated document objects and revision chains become study display sets. |
| extensions/…/displayableDocumentTypes.ts | Shows the supported document types and their display boundaries. |
| extensions/…/loadDisplayableDocument.ts | Shows how document bytes become validated display content. |
| extensions/…/OHIFCornerstonePdfViewport.tsx | Shows the dedicated document viewport, single-object boundary, and failure states. |
| extensions/…/getSopClassHandlerModule.js | Shows recognition and retrieval rules for DICOM video objects. |
| extensions/…/index.tsx | Shows the microscopy extension’s viewport, service, overlay, and panel capabilities. |
| extensions/…/DicomMicroscopyViewport.tsx | Shows the whole-slide viewer and derived overlay relationship. |
| extensions/…/DicomMicroscopyANNSopClassHandler.js | Shows how microscopy annotation objects become overlays tied to a source slide. |
| extensions/…/DicomMicroscopySRSopClassHandler.js | Shows the supported microscopy SR boundary and source-slide link. |
| extensions/…/loadSR.ts | Shows how saved microscopy findings return to the active slide as labeled regions and measurements. |
| extensions/…/MicroscopyPanel.tsx | Shows measurement review and saving of microscopy reports. |
| extensions/…/index.tsx | Shows configurable microscopy viewport metadata overlays. |
| extensions/…/MicroscopyService.ts | Shows shared microscopy annotation state and ROI visibility control. |
| extensions/…/constructSR.ts | Shows how slide annotations become a Comprehensive 3D Structured Report. |
| extensions/…/getHangingProtocolModule.ts | Shows the PET/CT layouts that frame TMTV review. |
| extensions/…/PanelPetSUV.tsx | Shows correction and reload of PET metadata used by SUV review. |
| extensions/…/commandsModule.ts | Shows thresholding, statistics, and report actions for TMTV. |
| extensions/…/USAnnotationPanel.tsx | Shows the ultrasound review controls, annotated-frame view, and JSON export. |
| extensions/…/getCommandsModule.ts | Shows annotation switching, overlay control, and JSON export. |