Basic and longitudinal viewing
Basic viewing provides the standard diagnostic review experience. Longitudinal viewing uses that foundation to compare studies and carry measurement findings through follow-up review. Together, these modes support general image reading and comparison-focused review within the mode-driven workflow family, alongside segmentation and microscopy modes and quantitative and annotation modes.
Mode roles
The selected mode sets the purpose and layout of review after the application opens study content. Basic mode supports broad diagnostic reading and acts as a base for related workflows. Longitudinal mode adds state for findings that span comparison studies.
| Mode | Review purpose | Main emphasis |
|---|---|---|
| Basic | General diagnostic review | Study navigation, image tools, and common DICOM content |
| Longitudinal | Comparison-oriented review | Tracked studies and series, tracked measurements, and report continuity |
Basic and longitudinal are separate user-facing workflows. The basic package provides the shared diagnostic foundation, while its development variant adapts that foundation to its host context. The test variant builds on basic mode and connects it to test and measurement-tracking extensions. The longitudinal package builds on basic mode and adds measurement tracking. Their package contracts require the shared viewer and the relevant DICOM content support; test and longitudinal review also require their workflow-specific extension connections. (modes/…/package.json• L32-38, modes/…/package.json• L32-45, modes/…/package.json• L28-36, modes/…/package.json• L32-42)
References: modes/…/package.json• L32-38 modes/…/package.json• L32-45 modes/…/package.json• L28-36 modes/…/package.json• L32-42
Basic viewing
Basic mode is the baseline diagnostic workflow. It combines study navigation with image review and makes common reading tools available for the active study. Its display plan supports image stacks and related DICOM content through the standard viewer flow. (modes/…/index.tsx• L256-300)
Diagnostic study review
The baseline workflow supports several diagnostic content types. Each supported type is presented through the viewer capability that fits it, so one study can support different forms of review.
- Image series and video
- Whole-slide images and ECG
- PDF and DICOM Structured Reports (SR)
- Segmentations and parametric maps
- Radiotherapy objects
The tool set supports standard reading actions such as changing image display, moving through a stack, zooming, and adding measurements or annotations. Multi-planar and 3D views use related interaction tools when those views are available. (modes/…/index.tsx• L23-79, modes/…/index.tsx• L93-104, modes/…/initToolGroups.ts• L13-97, modes/…/initToolGroups.ts• L168-315)
References: modes/…/index.tsx• L23-79 modes/…/index.tsx• L93-104 modes/…/index.tsx• L256-300 modes/…/initToolGroups.ts• L13-97 modes/…/initToolGroups.ts• L168-315 modes/…/package.json• L28-36
Longitudinal viewing
Longitudinal mode arranges the basic viewer around measurement tracking. It keeps the familiar study and image review flow, then adds a tracking-aware study browser, measurement panel, and viewport for findings that span comparison studies. (modes/…/index.ts• L9-20, modes/…/index.ts• L28-45, modes/…/package.json• L32-42)
Tracking context
The tracking context defines the current review as one tracked study with a set of tracked series. Series can enter or leave that set. When the user changes study, the workflow can ask what to do with current measurements before it replaces the comparison context. (extensions/…/measurementTrackingMachine.js• L13-27, extensions/…/measurementTrackingMachine.js• L105-239)
The tracking service publishes changes to tracked series. The study browser uses those changes to show tracked state and support untracking. This keeps the visible study selection aligned with the measurement state used by the rest of the workflow. (extensions/…/TrackedMeasurementsService.ts• L3-9, extensions/…/TrackedMeasurementsService.ts• L31-64, extensions/…/PanelStudyBrowserTracking.tsx• L71-110)
References: extensions/…/measurementTrackingMachine.js• L13-27 extensions/…/measurementTrackingMachine.js• L105-239 extensions/…/TrackedMeasurementsService.ts• L31-64 extensions/…/PanelStudyBrowserTracking.tsx• L71-110
Measurement review
The tracked measurement panel presents findings for the tracked study and series. It also supports report save and removal of the tracked study with its measurements. This makes the panel the main review point for findings carried through longitudinal review. (extensions/…/PanelMeasurementTableTracking.tsx• L18-45, extensions/…/PanelMeasurementTableTracking.tsx• L58-107)
The tracking-aware viewport keeps measurement context available while the user changes displayed series. When the workflow restores a finding, it can return the active viewport to the referenced image and position. (extensions/…/getViewportModule.tsx• L16-34, extensions/…/TrackedMeasurementsContext.tsx• L54-101, extensions/…/TrackedMeasurementsContext.tsx• L104-137)
References: extensions/…/PanelMeasurementTableTracking.tsx• L18-45 extensions/…/PanelMeasurementTableTracking.tsx• L58-107 extensions/…/getViewportModule.tsx• L16-34 extensions/…/TrackedMeasurementsContext.tsx• L54-137
Report continuity
Longitudinal review can save tracked measurements as a DICOM Structured Report (SR) and restore them when an SR is opened later. Restoration rebuilds the tracked study and series context, then returns the active viewport to the related image when the needed display data is available. (modes/…/README.md• L5-10, extensions/…/hydrateStructuredReport.tsx• L3-27, extensions/…/measurementTrackingMachine.js• L281-321)
The workflow marks a report as changed when new measurements or tracking changes could be lost. It can ask the user to save before the tracked study or series changes. This protects report continuity when review moves between comparison targets. (extensions/…/measurementTrackingMachine.js• L241-279, extensions/…/measurementTrackingMachine.js• L466-489)
References: modes/…/README.md• L5-10 extensions/…/hydrateStructuredReport.tsx• L3-27 extensions/…/measurementTrackingMachine.js• L241-321 extensions/…/measurementTrackingMachine.js• L466-489
Review flow
Both modes use the platform's normal study and display-set flow. The selected mode changes the review arrangement after study data is ready. Longitudinal mode adds comparison state across the study browser, measurement panel, viewport, and DICOM SR report.
This diagram shows the shared entry path and the point where longitudinal review adds comparison state.
flowchart TD
A[Open study] --> B[Select viewer mode]
B --> C[Load study display sets]
C --> D{Viewing purpose}
D -->|General diagnosis| E[Basic panels and viewports]
D -->|Longitudinal review| F[Tracking-aware panels and viewport]
F --> G[Select tracked study and series]
G --> H[Review measurements]
H --> I[Save or restore DICOM SR]
The application loads the study and display sets first. The mode then selects the panels and viewports. Measurement tracking coordinates the tracking state and mode-specific events, so longitudinal review adds comparison behavior without creating a separate study-loading path. (platform/…/defaultRouteInit.ts• L26-55, modes/…/index.tsx• L307-372, extensions/…/index.tsx• L15-54)
References: platform/…/defaultRouteInit.ts• L26-55 modes/…/index.tsx• L307-372 modes/…/index.ts• L49-74 extensions/…/index.tsx• L15-54
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to the basic display plan must preserve the display-set identifiers reused by longitudinal mode.
- Changes to longitudinal panel or viewport names must stay aligned with its layout and the measurement-tracking extension modules.
- Changes to tracked study or series state must keep study-browser marks, measurement filters, tracking events, and viewport restoration in sync.
- Changes to report save or SR hydration must preserve the link between the SR series, tracked series, measurement state, and active viewport.
- Changes to mode visibility or names must stay aligned with the mode identifiers registered by the application.
- Changes to peer dependencies in basic, basic-dev, basic-test, or longitudinal packages must preserve the viewer capabilities and workflow links expected by each package. Basic packages must continue to provide the shared viewer foundation. Longitudinal packages must continue to connect that foundation to measurement tracking.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Longitudinal mode uses a tracking panel or viewport that the measurement-tracking extension does not provide | The comparison layout cannot render its intended study or measurement view | Keep mode dependencies and extension module names aligned |
| A tracked series is removed without its related measurements | The panel can show findings for a series that is no longer tracked | Use the untrack flow that clears both series state and measurements |
| A new study replaces the tracked study while measurements are dirty | Unsaved findings can be lost | Keep the save or discard prompt in the study-change path |
| An SR is opened before its display set is loaded | The workflow cannot decide if it can restore measurements | Load the SR display set before hydration starts |
| Basic display-set identifiers change without updating longitudinal reuse | Longitudinal viewports lose content that basic mode can display | Treat the basic and longitudinal layouts as one display-plan contract |
| A mode drops a required peer connection | The package can load without a viewer capability or tracking workflow that its route expects | Keep peer dependencies aligned with registered panels, viewports, content types, and tracking links |
Key files
| File | Why to read it |
|---|---|
| modes/…/index.tsx | Defines the baseline diagnostic mode, display plan, route, and supported content. |
| modes/…/initToolGroups.ts | Shows the interaction groups used by baseline image, multi-planar, and 3D views. |
| modes/…/package.json | Shows the viewer capabilities expected by basic mode. |
| modes/…/package.json | Shows the peer contract for the development form of basic viewing. |
| modes/…/package.json | Shows the basic viewing contract used with test and measurement-tracking extensions. |
| modes/…/index.ts | Shows how longitudinal viewing reuses basic mode and replaces the panels and primary viewport. |
| modes/…/package.json | Shows the package connection between longitudinal viewing, basic mode, and measurement tracking. |
| extensions/…/index.tsx | Shows the extension boundary for tracking panels, viewport behavior, and mode-entry hooks. |
| extensions/…/measurementTrackingMachine.js | Shows the high-level tracking, dirty-report, save, and hydration transitions. |
| extensions/…/PanelStudyBrowserTracking.tsx | Shows how tracked state appears in the study browser and how untracking removes measurements. |
| extensions/…/PanelMeasurementTableTracking.tsx | Shows tracked measurement review and report actions. |
| extensions/…/hydrateStructuredReport.tsx | Shows how a DICOM SR becomes tracked study and series state. |
| platform/…/pluginConfig.json | Shows that basic and longitudinal modes are registered as separate workflows. |
| platform/…/kheops.js | Shows deployment-level mode visibility and display-name customization. |