Introducing a new way to review your PRs.

Read the announcement

ohif / viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages

View on GitHub

21 documents · Updated Nov 23, 2026

docs / extension-ecosystem

Extension ecosystem

OHIF extensions are optional packages that add focused domain capability to the viewer. They connect that capability to shared OHIF services through named modules, so a deployment can support the default viewer, special DICOM objects, and domain workflows without changing the primary Cornerstone image path. See Default extension capabilities and Specialized modality extensions for related views of this ecosystem.

Ecosystem role

Capability packages

An extension is a named package of related viewer behavior. It can add data access, display-set creation, viewports, commands, panels, toolbar actions, layout or hanging protocol choices, state context, and customization. A deployment selects the packages it needs through its application and mode configuration. Customization lets an extension also change a shared viewer surface without taking ownership of that surface.

This model keeps domain knowledge close to the feature that owns it. The core platform provides shared managers and services. The extension supplies the domain rules and asks those services to present the result to the user. The Cornerstone package provides the main imaging foundation while its named toolbar and rendering customizations let modes choose the controls and GPU behavior that fit their workflow.

Extension packages declare their integration boundary in package metadata. The package name and source entry point make the capability distributable. Peer dependencies identify the OHIF, UI, imaging, and browser packages that the application must provide. Runtime dependencies identify libraries bundled with the extension. The current package set targets Node 24 or newer and uses this boundary for the default viewer, Cornerstone imaging, derived DICOM workflows, specialized modalities, domain workflows, four-dimensional volume data, and test support.

References: platform/…/ExtensionManager.ts• L8-60 platform/…/MODULE_TYPES.js• L1-14 extensions/…/package.json• L1-19 extensions/…/package.json• L1-18 extensions/…/package.json• L1-19 extensions/…/package.json• L1-18 extensions/…/package.json• L1-18 extensions/…/package.json• L1-19 extensions/…/package.json• L1-19

Shared contracts

Every extension has a unique identifier and may expose only the module types that it needs. The extension manager passes each package the shared service, command, hotkey, provider, and application configuration context. This gives extensions a common integration boundary without requiring the viewer to know their internal design.

Module entries receive qualified identities based on the extension, module type, and module name. Modes use these identities to select panels, viewports, handlers, and other capabilities as part of a viewing workflow. The Cornerstone package also publishes shared type contracts for its services and its presentation state. Its customization contract includes the limit for the undo and redo history used by image editing tools.

Cornerstone also presents one viewport contract across its older and native viewport paths. The contract keeps common actions such as view state, display-set presentation, layer appearance, and capture available to the rest of the viewer while the selected viewport path handles the details. Its contract checks cover both paths so an extension can use the shared behavior without choosing a viewport API itself.

References: platform/…/ExtensionManager.ts• L42-65 platform/…/ExtensionManager.ts• L454-485 platform/…/ExtensionManager.ts• L512-527 extensions/…/AppTypes.ts• L19-68 extensions/…/NextViewportAdapter.ts• L39-70 extensions/…/NextViewportAdapter.ts• L93-186 extensions/…/IViewportAdapter.contract.test.ts• L11-16

Registration and activation

Application registration

The application builds one extension ecosystem at startup. It combines extensions bundled with the application and extensions named in runtime configuration. It creates shared managers first, then registers extensions in sequence so later packages can rely on capabilities that earlier packages made available.

Registration can include package-specific configuration. A package can prepare a service or library before its modules are exposed. The manager then routes each module to the service that owns its behavior, such as commands, data sources, panels, toolbars, or hanging protocols.

Package relationships are explicit in each package manifest. The default package provides the common OHIF boundary and DICOMweb viewer features. Cornerstone depends on that default boundary and on its imaging codecs and tools. Dynamic volume and the parametric map, RT, and segmentation packages depend on both the Cornerstone and default boundaries. The structured-report package depends on the Cornerstone boundary, while measurement tracking adds the structured-report and default boundaries for its workflow. Video and PDF packages use the core extension boundary for their modality-specific display paths. The microscopy package uses the default boundary and brings its own microscopy viewer and image codec support. The ultrasound pleura B-line package directly uses the OHIF, Cornerstone, default, internationalization, and UI capabilities it needs. TMTV and the test extension remain separately packaged OHIF capabilities with their own runtime boundaries.

The test extension uses the same extension packaging boundary for end-to-end support. It is not a clinical modality package, but it can be assembled and activated like another extension when a test workflow needs it.

References: platform/…/index.js• L10-42 platform/…/appInit.js• L34-63 platform/…/appInit.js• L89-129 platform/…/ExtensionManager.ts• L215-351 extensions/…/package.json• L1-5 extensions/…/package.json• L31-53 extensions/…/package.json• L36-70 extensions/…/package.json• L34-48 extensions/…/package.json• L30-45 extensions/…/package.json• L30-42 extensions/…/package.json• L32-47 extensions/…/package.json• L31-44 extensions/…/package.json• L1-18 extensions/…/package.json• L30-52 extensions/…/package.json• L1-5 extensions/…/package.json• L31-42 extensions/…/package.json• L1-5 extensions/…/package.json• L31-41 extensions/…/package.json• L1-18 extensions/…/package.json• L31-45 extensions/…/package.json• L1-19 extensions/…/package.json• L29-46 extensions/…/package.json• L29-45 extensions/…/package.json• L30-43

Mode activation

A mode defines the user-facing workflow and names the extensions that it needs. When a user enters a mode, the application loads and registers missing dependencies before it builds the layout and display-set handlers. This lets one application support several workflows with different domain packages.

The mode lifecycle gives extensions a place to prepare and clear mode-specific state. Services reset shared state before extension entry hooks run. On exit, the mode finishes its work and extension hooks run before shared services complete their cleanup. Cornerstone also clears image request work, presentation state, and segmentation state when the mode ends. This prevents one workflow from leaking imaging state into the next one.

The following flow shows how a selected mode turns extension packages into active viewer behavior.

flowchart LR
  A[Application configuration] --> B[Selected mode]
  B --> C[Mode extension dependencies]
  C --> D[Extension manager]
  D --> E[Shared services and commands]
  D --> F[Display-set handlers]
  D --> G[Panels and viewports]
  E --> H[Active viewer workflow]
  F --> H
  G --> H

References: platform/…/Mode.tsx• L70-115 platform/…/Mode.tsx• L225-325 platform/…/Mode.tsx• L392-417 platform/…/ExtensionManager.ts• L145-207 extensions/…/index.tsx• L118-223

Capability groups

Default application capabilities

The default extension packages the general viewer experience around the platform. It supplies the baseline data source, layout, panels, toolbar, header actions, commands, reports, hanging protocol, display-set handling, viewport, utilities, and customizations that a normal application needs. Its customization layer can extend shared views such as Study Browser thumbnails with named value sources and conditional detail items, while keeping those choices outside the panel's core mapping rules.

It also provides shared flows for choosing a layout and saving derived clinical data. The layout selector separates common grids from named advanced layouts. The header can expose undo and redo controls without taking layout ownership. The save dialog lets a user save a new version to the current series, create a new series, replace another loaded series of the same type, or download the result.

The default package also publishes several ways to arrange image data. Its standard protocol supports the normal one-view workflow, while comparison, mammography, scale, and MxN protocols cover prior studies, breast views, image scale, and grid layouts. Matching rules favor usable image display sets and URL-selected data. They tolerate common missing metadata cases, including empty descriptions, absent orientation, numeric frame counts, and zero-frame display sets.

It is a peer to the other extensions rather than a special case in the extension contract. Other packages can build on its shared viewer behavior while adding a narrower clinical or data capability. See Default extension capabilities for the default feature set.

References: extensions/…/index.ts• L1-13 extensions/…/index.ts• L43-80 extensions/…/package.json• L1-5 extensions/…/package.json• L34-53 extensions/…/ToolbarLayoutSelector.tsx• L19-125 extensions/…/HeaderUndoRedo.tsx• L7-43 extensions/…/useUndoRedoState.ts• L27-73 extensions/…/createReportDialogPrompt.tsx• L27-49 extensions/…/reportDialogCustomization.tsx• L49-84 extensions/…/getHangingProtocolModule.js• L1-155 extensions/…/hpCompare.ts• L109-187 extensions/…/hpMammo.ts• L31-202 extensions/…/hpScale.ts• L16-132 extensions/…/seriesSelectors.ts• L5-23 extensions/…/protocolMatchChanges.test.ts• L10-71

Imaging foundation

The Cornerstone extension supplies the main image-viewing foundation for OHIF. It provides image and volume viewports, measurement and segmentation tools, hanging protocols, synchronization, presentation state, commands, and services that other extensions use to show related data.

Its MPR preset arranges reconstructable volume data in axial, sagittal, and coronal views. The views can use reformat planes and share VOI and same-frame-of-reference segmentation hydration. The extension can also run the same viewer behavior through legacy or native viewport paths, which lets the imaging foundation evolve without changing the contracts used by domain extensions.

The Cornerstone customization set exposes the toolbar capability packs and the GPU settings preset as named extension points. A mode can compose the toolbar sections it needs and can select a rendering preset before its volume viewports open. This keeps presentation choices in the workflow while the imaging extension owns the shared image behavior.

Cornerstone commands also connect shared viewer actions to image tools and derived-data workflows. They support viewport navigation and display changes, measurement actions, segmentation editing, viewport-independent display-set loading, and restoration of related presentation state. A study summary uses the first available instance in the metadata store, so a series with no instances does not prevent the viewer from showing study date and description once another series has metadata.

References: extensions/…/index.tsx• L112-190 extensions/…/index.tsx• L191-243 extensions/…/init.tsx• L78-139 extensions/…/init.tsx• L166-176 extensions/…/mpr.ts• L3-20 extensions/…/mpr.ts• L51-197 extensions/…/NextViewportAdapter.ts• L39-70 extensions/…/IViewportAdapter.contract.test.ts• L83-103 extensions/…/toolbarButtonsCustomization.ts• L714-802 extensions/…/gpuSettingsPresetCustomization.ts• L1-8 extensions/…/initGpuSettingsPreset.ts• L20-51 extensions/…/getCustomizationModule.tsx• L21-50 extensions/…/commandsModule.ts• L141-161 extensions/…/commandsModule.ts• L343-459 extensions/…/StudySummaryFromMetadata.tsx• L7-29 extensions/…/StudySummaryFromMetadata.test.ts• L35-46

Frame viewing

The Cornerstone extension adds a frame-view preset for multi-frame active series. It can place successive frames in synchronized grid layouts, so users can compare frames while keeping zoom, pan, and display settings aligned. The preset is available in several grid sizes and favors series with enough frames for the view.

References: extensions/…/frameView.ts• L3-42 extensions/…/frameView.ts• L43-84 extensions/…/frameView.ts• L1493-1578

Editing history

The Cornerstone extension owns image-edit history, while the default extension presents that shared history through header controls. The history size comes from the Cornerstone customization contract when a mode starts. The header reads the current availability of undo and redo and sends the matching command when the user selects a control.

The controls stay in sync with both explicit history actions and tool actions that create or change annotations and segmentations. This makes editing history a shared capability: Cornerstone records the domain changes, and the default viewer exposes them as an optional application action.

References: extensions/…/index.tsx• L118-179 extensions/…/AppTypes.ts• L46-54 extensions/…/HeaderUndoRedo.tsx• L12-43 extensions/…/useUndoRedoState.ts• L7-70

Application-specific display sets

The default extension also recognizes chart data as a derived display set. This gives application-specific data a normal place in study browsing while the rest of the viewer uses the same display-set contract.

References: extensions/…/chartSOPClassHandler.ts• L7-18 extensions/…/chartSOPClassHandler.ts• L30-52

Specialized modality capabilities

Specialized modality extensions teach the viewer how to recognize and present data that the general image path does not fully describe. Video and encapsulated-document packages provide modality-specific display-set handling. The PDF package accepts a controlled set of document types and presents them in a document viewport. The microscopy package adds a dedicated viewport and service with its own image codec and microscopy viewer support. Its service keeps annotations and ROI visibility aligned across managed microscopy viewers.

Microscopy SR loading turns measurement-report content into labeled ROI graphics for a managed microscopy viewer. It also carries presentation state and measurement data into those graphics, so saved microscopy annotations can return to the domain viewer.

The Cornerstone extension also recognizes whole-slide microscopy and ECG waveform objects when that package is active. ECG data uses an ECG viewport and carries the metadata needed for waveform display and physical-unit measurement. These handlers let a study include waveform and microscopy content without making the default image workflow own those rules.

These packages let the same study flow include non-standard content without making the default extension own every modality. Some use the Cornerstone ecosystem for their viewport while keeping their DICOM rules separate. The package identifies its data and presents it through the shared viewer while the core application remains unaware of the modality details. See Specialized modality extensions for these workflows.

References: extensions/…/getSopClassHandlerModule.js• L33-55 extensions/…/getSopClassHandlerModule.js• L13-31 extensions/…/package.json• L1-5 extensions/…/package.json• L31-42 extensions/…/package.json• L1-18 extensions/…/package.json• L30-52 extensions/…/MicroscopyService.ts• L20-75 extensions/…/MicroscopyService.ts• L297-325 extensions/…/MicroscopyService.ts• L394-411 extensions/…/loadSR.ts• L8-45 extensions/…/package.json• L1-5 extensions/…/package.json• L31-41 extensions/…/getSopClassHandlerModule.js• L152-251

Derived imaging capabilities

Derived imaging packages connect related DICOM objects to the source images they describe. SEG adds segmentation display and actions. SR adds structured reports and measurement content. RT adds structure-set overlays. Parametric maps add value data that refers to a source volume.

The dynamic volume package extends the Cornerstone path for four-dimensional volume data. Its hanging protocol supports CT, PET, and fusion views across preparation, registration, ROI quantification, and kinetic analysis stages. A chart view can join the analysis stage without requiring image loading. It depends on the shared default and Cornerstone extension boundaries, so time-varying image behavior remains separate from the general viewer while still using shared viewer services.

These packages use display-set handlers to turn their objects into viewer data. They can also add commands, toolbars, hanging protocols, or customizations when the domain needs a user action or a special viewing arrangement. Their relationships with source display sets allow derived content to appear in the same study workflow instead of as isolated files. Save actions can create DICOM SEG or RT Structure Set output, while structured-report actions can store report data through a configured data source.

Structured reports support both measurement reports and text reports. A report with no content is kept as a normal SR display set with a user-facing message instead of entering the measurement path. Radiation dose reports also use the text-report path. Measurement annotations attach only to suitable source image display sets, and they can attach when those sources arrive after the report.

The Cornerstone extension keeps overlay state with the related image presentation. It adapts segmentation representations to the target viewport, so a derived object can be shown in stack, volume, or native viewport workflows without changing the DICOM package that recognized it. Overlapping segmentations need a volume-slice or MPR view to show all layers. Segment statistics can also expose a largest bidirectional measurement, its length and width, visibility control, and a jump-to-measurement action when that statistic exists.

References: extensions/…/getSopClassHandlerModule.ts• L235-350 extensions/…/commandsModule.ts• L36-80 extensions/…/commandsModule.ts• L337-457 extensions/…/getSopClassHandlerModule.ts• L41-174 extensions/…/getSopClassHandlerModule.ts• L183-269 extensions/…/getSopClassHandlerModule.ts• L14-134 extensions/…/getSopClassHandlerModule.ts• L67-123 extensions/…/getHangingProtocolModule.ts• L449-661 extensions/…/package.json• L30-45 extensions/…/package.json• L30-42 extensions/…/package.json• L32-47 extensions/…/package.json• L31-44 extensions/…/package.json• L1-5 extensions/…/package.json• L34-48 extensions/…/SegmentationService.ts• L331-429 extensions/…/SegmentationService.ts• L557-717 extensions/…/SegmentationService.ts• L719-868 extensions/…/CustomSegmentStatisticsHeader.tsx• L13-139

Domain workflow capabilities

Some extensions add a workflow rather than a new DICOM modality. Measurement tracking adds service state, context, panels, viewport behavior, and mode hooks for tracking findings across a study. TMTV adds a PET-oriented workflow that creates segmentations, applies CT and PET thresholds, computes metabolic statistics, and exports reports. The ultrasound pleura B-line package adds focused panels and commands.

These packages show that an extension can shape the user experience through shared services without owning the whole application. The mode chooses when the workflow is active. The extension supplies the domain state and actions that the mode exposes.

References: extensions/…/package.json• L29-45 extensions/…/package.json• L1-18 extensions/…/package.json• L31-45 extensions/…/package.json• L1-19 extensions/…/package.json• L29-46

Data and display integration

Data source selection

Data source modules provide the boundary between a viewer workflow and the system that serves its study data. The extension manager creates named data source instances from configured definitions and tracks the active source. Extensions can use that active source when they create display sets or retrieve content.

The default DICOMweb source turns study and series queries into the metadata used by study browsing. Study metadata requests are shared while they are in progress. After a saved object changes a study, the matching cached requests are removed so the next request can show the new data. This separation lets the same modality package work with different configured data systems.

References: platform/…/ExtensionManager.ts• L373-415 platform/…/ExtensionManager.ts• L535-615 extensions/…/retrieveStudyMetadata.js• L21-78 extensions/…/retrieveStudyMetadata.js• L81-107 extensions/…/commandsModule.ts• L865-899

Display-set recognition

A SOP class handler is a domain rule that recognizes a class of DICOM objects and turns its instances into display sets. The display-set service checks registered handlers for each SOP class. It uses the matching handler to create or update viewer data. It uses the unsupported-data path only when no specialized handler accepts the object. The default extension can use the same contract for application-specific derived data such as chart display sets.

This is the main integration point for modality and derived-object extensions. It keeps DICOM recognition beside the package that understands the object while the display-set service keeps one common lifecycle for the rest of the viewer.

References: platform/…/DisplaySetService.ts• L302-324 platform/…/DisplaySetService.ts• L343-438 extensions/…/getSopClassHandlerModule.js• L33-55 extensions/…/getSopClassHandlerModule.js• L13-31 extensions/…/chartSOPClassHandler.ts• L80-104 extensions/…/getSopClassHandlerModule.js• L152-251 extensions/…/getSopClassHandlerModule.ts• L41-47 extensions/…/getSopClassHandlerModule.test.ts• L169-191

Study Browser customization

The Study Browser turns display sets into study thumbnails and can add a configurable detail line to each thumbnail. The default extension supplies named sources and tests so an application can show values from display-set metadata, instance attributes, or derived-object state without replacing the browser's core display-set mapping.

When a customization names a source or test that is not registered, the browser reports the broken name and keeps the default detail line instead of blanking every thumbnail. This fallback matters because customizations can replace a registry as well as merge into it.

References: extensions/…/PanelStudyBrowser.tsx• L77-109 extensions/…/resolveThumbnailDetails.ts• L35-53 extensions/…/resolveThumbnailDetails.ts• L69-129 extensions/…/thumbnailDetailsCustomization.ts• L15-51 extensions/…/getCustomizationModule.tsx• L65-92

Viewport-independent display data

Some display sets carry their own load step, such as segmentations, reports, parametric maps, videos, and documents. The Cornerstone extension loads that data before it chooses a viewport, so the data can be ready for a later overlay or presentation decision without tying retrieval to one pane.

This split keeps two decisions separate. The load step makes display-set data available and reports a user-facing error when it fails. The viewport step decides where the result belongs and how it is shown.

References: extensions/…/loadDisplaySetData.ts• L1-25 extensions/…/loadDisplaySetData.ts• L26-47 extensions/…/CornerstoneCacheService.ts• L195-237 extensions/…/CornerstoneCacheService.ts• L239-309

Overlay and presentation integration

Derived imaging extensions use the Cornerstone extension to place overlays on the image data they reference. The shared overlay rule checks the relation between the derived display set and a background display set. Presentation state records whether that derived content should return when a viewport changes or is rebuilt.

This lets an overlay follow a related image workflow without forcing every viewport to show it. The same rule supports user-selected overlays and automatic hydration. It also supports co-registered reconstructable data when the relationship is valid.

References: extensions/…/commandsModule.ts• L343-441 extensions/…/isDisplaySetOverlayable.ts• L1-21 extensions/…/isDisplaySetOverlayable.ts• L23-95 extensions/…/hydrationUtils.ts• L84-132 extensions/…/getViewportPresentations.ts• L28-110

Derived-object persistence

Derived-object workflows share one save boundary. A package supplies the domain data and the default extension supplies the choice of destination, the named data source, and the final write. After a successful write, the study metadata cache is cleared so the new or updated display set can join the next study view.

The save flow keeps the source relationship when a user adds a new version to an existing series. It creates a separate series when no predecessor is selected. This lets SEG, RTSTRUCT, and SR workflows use the same user-facing contract while keeping their DICOM encoders in their own extensions.

References: extensions/…/createReportDialogPrompt.tsx• L27-49 extensions/…/reportDialogCustomization.tsx• L152-212 extensions/…/reportDialogCustomization.tsx• L305-340 extensions/…/commandsModule.ts• L837-899 extensions/…/commandsModule.ts• L337-457

Change checklist

When these files or sections are changed, remember to consider these:

  • Changes to a module name or extension identifier must be checked against mode references to qualified module IDs.
  • Changes to an extension package name, entry point, peer dependency, runtime dependency, package export, or supported Node runtime must be checked against the application's assembled extension set and the package relationships that provide shared capabilities.
  • Changes to a package dependency kind must be checked against whether the application provides the package or the extension bundles it. This is especially important for shared OHIF, Cornerstone, UI, and localization packages.
  • Changes to a SOP class handler must be checked against display-set selection order and any mode that lists the handler.
  • Changes to a mode's extension list must be checked against the data source, viewport, panel, and hanging protocol capabilities that the mode expects.
  • Changes to an extension lifecycle hook must be checked against the service reset order at mode entry and exit.
  • Changes to the native or legacy viewport adapter must be checked against shared view state, per-display-set presentation, layer appearance, capture, and both viewport paths.
  • Changes to the MPR sync groups or reconstructable-data match must be checked against VOI synchronization and same-frame-of-reference overlay hydration.
  • Changes to the Cornerstone toolbar button or section packs must be checked against mode customization composition, command names, and viewport or modality guards.
  • Changes to the GPU preset customization or render-backend setup must be checked against customization timing, volume viewport creation, lossy downsampling, and CPU fallback behavior.
  • Changes to overlay eligibility, segmentation representation choice, or stored presentation state must be checked against both manual overlay selection and automatic hydration across related viewports.
  • Changes to the Cornerstone history size customization must be checked against labelmap memory use and the default header's undo and redo availability.
  • Changes to the undo and redo events or commands must be checked against both tool actions and the delayed state read used by the header controls.
  • Changes to the encapsulated-document type allowlist or payload check must be checked against the document viewport's embed strategy and its failure messages.
  • Changes to Study Browser thumbnail detail names or registries must be checked against customization merge and replace behavior so default details do not disappear silently.
  • Changes to DICOMweb study or series metadata mapping or cache keys must be checked against study search filters and the invalidation path after a derived object is stored.
  • Changes to derived-object save options must be checked against the selected data source, predecessor-series contract, and DICOM output type.
  • Changes to structured-report SOP classes or report-content checks must be checked against both text-report display and measurement attachment to source images.
  • Changes to segmentation representation rules must be checked against stack, volume, MPR, and native viewport behavior, including overlapping segments.
  • Changes to microscopy viewer or ROI events must be checked against annotation state, viewer synchronization, and ROI visibility controls.
  • Changes to microscopy SR loading or ROI mapping must be checked against managed viewer availability, supported graphic types, labels, and restored presentation state.
  • Changes to ECG SOP classes or waveform metadata must be checked against the ECG viewport and physical-unit measurement behavior.
  • Changes to layout presets or one-up layout commands must be checked against the rule that a successful explicit layout change clears stale toggle-back state while a vetoed change does not.
  • Changes to hanging protocol selector rules or missing-value handling must be checked against default, comparison, mammography, scale, and domain-specific protocol matches.
  • Changes to the dynamic-volume protocol must be checked against its CT, PT, fusion, chart, and stage display-set relationships.
  • Changes to the frame-view preset must be checked against its frame-count match rule, grid stages, and frame synchronization behavior.
  • Changes to segment statistic names or commands must be checked against the statistics header's visibility and jump-to-measurement actions.
  • Changes to the study summary's metadata source or empty-series handling must be checked against studies whose series metadata arrives before their instances.
  • Changes to Cornerstone command names or payloads must be checked against toolbar actions, mode customizations, and dependent extensions that invoke those commands.

Important failure modes

TriggerConsequenceGuard
Two packages use the same extension identifierThe second package is skipped and its capabilities are not availableKeep each extension identifier unique across the application
A mode names a module that is not registeredThe layout or workflow cannot resolve the requested capabilityRegister the dependency and use its qualified module identity
A package peer or runtime dependency is absent, incompatible, or outside the supported runtime baselineThe package cannot provide its capability reliably at build or load timeAssemble each mode with the package versions, runtime, and shared boundaries it declares
A specialized handler does not match the object's SOP classThe object falls back to unsupported-data handling or does not get the intended presentationKeep the handler's supported SOP classes aligned with the data it recognizes
A derived object has no usable reference to its source display setThe overlay, map, or report cannot attach to the expected image workflowPreserve the source-reference contract and allow for the source display set to arrive later
An extension expects a service before its setup step completesIts module or mode hook cannot use the required domain stateRegister required services during extension setup before the dependent behavior runs
The Cornerstone history limit is too large for labelmap editsThe browser can run out of memory while retaining undo and redo statesSet cornerstone.maxUndoRedoCacheSize for the expected editing workload
A history-changing tool event is not observed by the default headerUndo or redo appears disabled or enabled at the wrong timeKeep the event set and deferred state read aligned with the tools that add history entries
An invalid GPU preset or render backend is selectedThe requested volume rendering choice is not applied and the session may use a different rendering pathUse a registered preset and keep rendering choices within the supported app configuration
A shared viewport action is supported by one viewport path but not the otherNative and legacy workflows show different presentation, layer, or capture behaviorKeep the adapter contract aligned and cover both paths in its contract checks
An MPR view receives data that is not reconstructableThe three-plane workflow cannot create the expected volume viewsMatch the MPR preset only to reconstructable display sets
An encapsulated document has an unsupported declared type or a mismatched payloadThe document is rejected instead of being placed in a browser viewerKeep the allowed types, content check, and embed strategy aligned
A thumbnail detail names a missing source or testThe custom line resolves to no details and the thumbnail uses its default detail lineRegister the name or merge the default registry instead of replacing it
A derived DICOM object points to a series that is not available yetThe object waits without a usable overlay or load targetResolve references when display sets arrive and keep the reference identifiers intact
A structured report has no report content but enters the measurement pathThe report loader or measurement view can fail instead of showing the report as textKeep empty reports on the text-report path and surface the missing-content message
A structured-report measurement is matched to a derived display setThe annotation can be placed on labelmap data instead of its source image or can fail on unknown image IDsExclude derived display sets and skip image IDs without known source metadata
A save succeeds but its study metadata promise remains cachedThe current study view does not show the new or replaced derived objectInvalidate every data-source-qualified cache key for the affected study
An overlapping segmentation is shown in a viewport that cannot render all layersOnly the primary layer is visible and the user may miss segmentsUse a volume or MPR layout for overlapping segmentations
A native viewport is treated as a legacy viewport during segmentation displayThe viewer can promote or alter the viewport instead of rendering the segmentation in placeKeep segmentation behavior aligned with the viewport family
A microscopy ROI event is not synchronized across managed viewersThe same annotation has different state or visibility in different microscopy panesKeep viewer subscriptions and shared annotation state aligned
A microscopy SR has no managed viewer for its referenced studyIts saved ROIs are not loaded into the microscopy viewRun SR loading after the managed viewer is available
A microscopy SR contains an unsupported graphic typeSR loading fails instead of displaying the supported annotationsKeep saved graphic types within the microscopy viewer's supported ROI set
An ECG handler omits waveform metadata or calibrationThe ECG viewport cannot show the expected signal units or measurementsKeep ECG display-set recognition and metadata registration aligned
An explicit layout change is vetoed but clears one-up stateA later one-up toggle cannot restore the prior layoutClear toggle-back state only after the layout change proceeds
A hanging protocol rejects missing text or numeric frame metadataA suitable mammography, scale, or general image view is not selectedKeep optional-value rules tolerant and preserve coverage for empty, absent, numeric, and zero-frame values
A dynamic-volume stage loses a CT, PT, fusion, or chart selectorA four-dimensional workflow opens with an empty or incomplete stageKeep stage selectors and display-set IDs aligned with the protocol's data preparation and analysis views
A frame view is applied to a series with too few framesThe multi-frame grid cannot provide the intended comparisonKeep the frame threshold and frame-index mapping aligned with the preset stages
Segment statistics do not expose the named bidirectional value expected by the headerThe measurement controls are absent even when the segmentation has useful statisticsKeep statistic names and command payloads aligned with the header contract
A study has only empty series when the summary rendersThe study summary is blank until an instance becomes availableRead the first series that has an instance and render nothing when no instance exists
A dependent extension calls a renamed or removed Cornerstone commandToolbar or domain actions fail without changing the related viewer stateKeep command names and payload contracts stable across extension boundaries

Key files

FileWhy to read it
platform/…/ExtensionManager.tsDefines the extension contract, registration boundary, module lookup, data source registry, and mode lifecycle
platform/…/MODULE_TYPES.jsDefines the capability categories that extensions can expose
platform/…/appInit.jsShows how the application creates shared managers and registers configured extensions
platform/…/Mode.tsxShows how mode dependencies become active and how extension lifecycle hooks surround a viewer route
platform/…/DisplaySetService.tsShows how registered domain handlers turn DICOM instances into viewer display sets
extensions/…/package.jsonShows the default package boundary and its shared viewer peers
extensions/…/index.tsShows the baseline application capability package
extensions/…/getHangingProtocolModule.jsShows the default, comparison, mammography, scale, and grid viewing choices
extensions/…/seriesSelectors.tsShows the shared rules for selecting image-capable display sets
extensions/…/protocolMatchChanges.test.tsShows the expected handling of missing metadata, numeric frame counts, and zero-frame display sets
extensions/…/PanelStudyBrowser.tsxShows how the default extension turns display sets into study thumbnails and applies customization data
extensions/…/thumbnailDetailsCustomization.tsShows the shared extension point for thumbnail detail values and conditions
extensions/…/reportDialogCustomization.tsxShows the common save destinations for derived clinical data
extensions/…/ToolbarLayoutSelector.tsxShows how common grids and advanced layouts become commands
extensions/…/HeaderUndoRedo.tsxShows how the default viewer exposes Cornerstone editing history as header actions
extensions/…/useUndoRedoState.tsShows how the header tracks history changes from image editing tools
extensions/…/retrieveStudyMetadata.jsShows shared study metadata retrieval and data-source-aware cache invalidation
extensions/…/chartSOPClassHandler.tsShows how application-specific chart data enters the common display-set flow
extensions/…/package.jsonShows the primary imaging package boundary and its relationship to the default extension
extensions/…/index.tsxShows Cornerstone service setup, mode cleanup, viewport exposure, and history configuration
extensions/…/init.tsxShows imaging initialization, render-backend selection, metadata providers, and load services
extensions/…/getCustomizationModule.tsxShows the named customization values exposed by the imaging extension
extensions/…/toolbarButtonsCustomization.tsShows the toolbar capability packs and their mode composition boundary
extensions/…/initGpuSettingsPreset.tsShows how global and mode GPU customizations affect volume rendering
extensions/…/mpr.tsShows the MPR layouts and their synchronization relationships
extensions/…/NextViewportAdapter.tsShows the native viewport side of the shared viewport contract
extensions/…/IViewportAdapter.contract.test.tsShows the behavior expected across native and legacy viewport paths
extensions/…/getSopClassHandlerModule.jsShows Cornerstone recognition for microscopy and ECG display sets
extensions/…/AppTypes.tsShows the Cornerstone service and customization contracts shared with the application
extensions/…/frameView.tsShows the multi-frame grid presets and their synchronized frame presentation
extensions/…/CustomSegmentStatisticsHeader.tsxShows the user actions for computed bidirectional segment statistics
extensions/…/commandsModule.tsShows how Cornerstone commands connect viewer actions to tools, viewports, display sets, and derived-data state
extensions/…/StudySummaryFromMetadata.tsxShows how the study summary handles metadata that arrives before instances
extensions/…/StudySummaryFromMetadata.test.tsShows the expected summary behavior for empty and populated series
extensions/…/OHIFCornerstoneViewport.tsxShows how the primary image viewport loads display data and applies saved presentations
extensions/…/SegmentationService.tsShows how derived segmentation data becomes a representation in stack, volume, and native viewport types
extensions/…/isDisplaySetOverlayable.tsDefines when derived or secondary data may be shown over a background display set
extensions/…/loadDisplaySetData.tsShows the separation between loading display-set data and choosing its viewport
extensions/…/package.jsonIdentifies the four-dimensional volume package and its Cornerstone and default extension boundaries
extensions/…/getHangingProtocolModule.tsShows the stages and synchronized CT, PT, fusion, and chart views for four-dimensional analysis
extensions/…/package.jsonIdentifies the parametric-map package boundary and its Cornerstone imaging dependencies
extensions/…/package.jsonIdentifies the RT structure-set package boundary
extensions/…/package.jsonIdentifies the segmentation package boundary and its imaging dependencies
extensions/…/package.jsonIdentifies the structured-report package boundary and its Cornerstone dependencies
extensions/…/package.jsonIdentifies a specialized modality package and its viewer dependencies
extensions/…/MicroscopyService.tsShows how a microscopy viewer service manages ROI state, synchronization, and visibility
extensions/…/loadSR.tsShows how microscopy SR measurements become labeled ROI graphics in managed viewers
extensions/…/getSopClassHandlerModule.jsShows how video data becomes a specialized display set
extensions/…/getSopClassHandlerModule.jsShows how an encapsulated document becomes a checked displayable result
extensions/…/getSopClassHandlerModule.tsShows how a derived segmentation finds and loads its source image data
extensions/…/commandsModule.tsShows how segmentation data is displayed and saved as DICOM output
extensions/…/getSopClassHandlerModule.tsShows how structured reports become text reports or measurements linked to source images
extensions/…/package.jsonIdentifies a workflow package that builds on structured reports and shared viewer services
extensions/…/package.jsonIdentifies the PET-oriented total metabolic tumor volume package and its viewer contract
extensions/…/package.jsonIdentifies the ultrasound pleura B-line package and its OHIF, Cornerstone, default, internationalization, and UI boundaries
extensions/…/package.jsonIdentifies the extension package used to support end-to-end testing
extensions/…/hpTestSwitch.tsShows how a test extension can exercise changing viewport layouts and matched display-set positions