Core platform services
Core platform services provide the shared contracts that connect extensions, commands, clinical data, and viewer state. They turn extension modules into platform capabilities, keep studies and display sets available to the viewer, and publish state changes so other parts of the application can stay in sync.
Platform coordination
The platform uses shared managers and services as coordination points for one viewer session. The public core package exposes these points, related types, and React hooks so the application and its extensions can work with the same system objects. The package is published as @ohif/core, provides generic business logic for web-based medical imaging applications, and declares Node 24 or later as its supported runtime. It treats Cornerstone and DICOM packages as peer integrations, so the host application supplies the imaging runtime that core coordinates. platform/…/package.json• L1-12, platform/…/package.json• L36-46, platform/…/index.ts• L43-45, platform/…/index.ts• L1-8
The main relationships are:
flowchart LR
Config[Application configuration] --> EM[Extension manager]
EM --> SM[Services manager]
EM --> CM[Commands manager]
EM --> DS[Display set service]
Data[Study and image metadata] --> DMS[Metadata store]
DMS --> DS
DS --> VG[Viewport grid service]
HP[Hanging protocol service] --> VG
CM --> HP
VG --> UI[Viewer and UI]
Shared system access
The system context gives React code access to the service, command, extension, and hotkey managers that coordinate the current application session. This keeps UI components on the shared session state instead of creating separate manager instances. platform/…/SystemProvider.tsx• L6-30
References: platform/…/SystemProvider.tsx• L6-30 platform/…/index.ts• L52-94
Application type contracts
The AppTypes namespace defines the shared type boundary for managers, services, configuration, commands, studies, display sets, hanging protocols, and viewport state. It lets the application and extensions use the same names for the session objects they exchange. Declaration merging lets extensions add precise types for their own customization keys. platform/…/AppTypes.ts• L40-107, platform/…/AppTypes.ts• L109-126, platform/…/AppTypes.ts• L286-395
The configuration contract is the typed entry point for application-wide choices such as extensions, modes, data sources, viewer behavior, and startup customization. Dynamic configuration is guarded by either an allowed origin or an anchored URL pattern when enabled. This keeps remote configuration within an explicit trust boundary before it can affect the session. platform/…/AppTypes.ts• L128-284
References: platform/…/AppTypes.ts• L40-107 platform/…/AppTypes.ts• L109-126 platform/…/AppTypes.ts• L128-284 platform/…/AppTypes.ts• L286-395
Event contracts
Services use named events to announce changes that other parts of the platform must observe. A subscriber receives a small event payload and can remove its subscription when its owner is no longer active. This connects stateful services without requiring them to know which UI or extension consumes the change. platform/…/pubSubServiceInterface.ts• L16-41
References: platform/…/pubSubServiceInterface.ts• L16-41 platform/…/pubSubServiceInterface.ts• L66-95 platform/…/pubSubServiceInterface.ts• L97-147
Shared identity and path safety
Core uses random identifiers for subscriptions and other temporary session objects. Its object-path contract reads and writes nested values only through valid object paths and rejects prototype keys before it changes an object. These small utilities protect the identity and safety assumptions used by managers and services. platform/…/guid.js• L1-27, platform/…/objectPath.js• L1-55, platform/…/pubSubServiceInterface.ts• L23-39
References: platform/…/guid.js• L1-27 platform/…/objectPath.js• L1-55 platform/…/objectPath.test.js• L100-124
Extension registration
An extension is a package that adds a defined part of viewer behavior. The extension manager registers each extension once, gives it access to the shared managers, and makes its named modules available to the services that consume them. platform/…/ExtensionManager.ts• L8-35
Module contracts
Extensions can provide commands, data sources, panels, toolbar items, viewport behavior, image handlers, hanging protocols, layout templates, customization, state sync, or utility modules. The manager gives each registered module a stable identifier based on the extension, module type, and module name. Other services use that identifier when they need to resolve an extension capability. platform/…/MODULE_TYPES.js• L1-14, platform/…/ExtensionManager.ts• L296-347
References: platform/…/MODULE_TYPES.js• L1-14 platform/…/ExtensionManager.ts• L296-347 platform/…/ExtensionManager.ts• L512-527
Registration lifecycle
Registration is sequential because one extension can depend on a module from an earlier extension. The manager runs a pre-registration hook, records mode hooks, initializes each supplied module, and then marks the extension as registered. Mode entry resets shared services before an extension restores its own state. Mode exit gives extensions a chance to save state before services clear their mode state. platform/…/ExtensionManager.ts• L145-207, platform/…/ExtensionManager.ts• L215-351
References: platform/…/ExtensionManager.ts• L145-207 platform/…/ExtensionManager.ts• L215-351
Service registry
A service is a shared coordinator with a named contract and a session-level instance. The services manager creates each service with access to the command, extension, and service managers, then stores it under its public name for use by the rest of the platform. platform/…/ServicesManager.ts• L5-20, platform/…/ServicesManager.ts• L22-64
Service groups
The registry covers the main platform concerns rather than one feature area. Its services handle study metadata, display sets, viewport layout, hanging protocols, measurements, tools, panels, workflow steps, image prefetch, user access, customization, and UI feedback. The typed service map defines the names that other platform code expects. platform/…/index.ts• L1-20, platform/…/Services.ts• L19-39, platform/…/AppTypes.ts• L109-126
References: platform/…/index.ts• L1-20 platform/…/Services.ts• L19-39 platform/…/AppTypes.ts• L109-126
Provider contracts
Some services need a React provider to expose state or behavior to the page. The service provider manager maps a service name to its provider so an extension can add that provider without changing the main application tree. platform/…/ServiceProvidersManager.ts• L3-30
References: platform/…/ServiceProvidersManager.ts• L3-30 platform/…/ExtensionManager.ts• L9-17
Runtime customization
Customization is a shared service for values that can change at runtime across default, global, and mode scopes. The useCustomization hook reads the current resolved value and listens for changes in all scopes, so React consumers update when mode entry or an override changes the active customization. platform/…/useCustomization.ts• L19-59
References: platform/…/useCustomization.ts• L7-17 platform/…/useCustomization.ts• L19-59 platform/…/index.ts• L1-8
Command coordination
A command is a named action that connects a UI choice or workflow rule to behavior. The commands manager groups commands into contexts, then selects the first matching command from the active context order. This lets different viewer engines or extensions use the same action name without sharing the same action implementation. platform/…/CommandsManager.ts• L15-22, platform/…/CommandsManager.ts• L32-54
Command contexts
Each command definition belongs to a context and can include fixed options. A call can add request-specific options, and those options take precedence for that call. A command can run alone or as part of an ordered command set. The manager accepts command names, command objects, functions, and nested command collections, then runs the normalized sequence in order. Context and command names are checked before registration so command lookup cannot use prototype keys as object paths. platform/…/CommandsManager.ts• L88-119, platform/…/CommandsManager.ts• L152-177, platform/…/CommandsManager.ts• L179-217, platform/…/CommandsManager.ts• L241-266
References: platform/…/CommandsManager.ts• L88-119 platform/…/CommandsManager.ts• L152-177 platform/…/CommandsManager.ts• L179-217 platform/…/CommandsManager.ts• L241-266 platform/…/Command.ts• L1-14
Extension command loading
The extension manager turns an extension command module into command definitions and creates the needed context before registration. This gives commands from extensions a common path during application setup and mode setup. platform/…/ExtensionManager.ts• L617-671
References: platform/…/ExtensionManager.ts• L617-671 platform/…/ExtensionManager.ts• L275-285
React command access
React consumers can obtain a command runner from the shared commands manager through useRunCommand. The hook accepts a command name and call-specific options, so UI code uses the active command contract without selecting an implementation. platform/…/useRunCommand.tsx• L7-14
References: platform/…/useRunCommand.tsx• L1-14 platform/…/index.ts• L1-8
Hotkey bindings
Default hotkeys connect common viewer actions to the shared command contract. Each binding names the command to run and can pass fixed options, so keyboard input uses the same action path as toolbar and workflow controls. Editable bindings mark shortcuts that the application can allow users to change. platform/…/hotkeyBindings.ts• L1-18, platform/…/hotkeyBindings.ts• L75-105, platform/…/hotkeyBindings.ts• L131-191
References: platform/…/hotkeyBindings.ts• L1-18 platform/…/hotkeyBindings.ts• L75-105 platform/…/hotkeyBindings.ts• L131-231
Study and display data
The metadata store is the in-session source for study, series, and instance metadata. A study groups series, and a series groups image or object instances under stable DICOM identifiers. The store accepts metadata as it arrives and publishes additions or updates so display creation can follow the data load. platform/…/DicomMetadataStore.ts• L14-48, platform/…/DicomMetadataStore.ts• L198-239
Metadata lifecycle
Metadata can arrive as a full instance, a group of instances, a series summary, or a study summary. The store merges these forms into the same study model and supports lookup by study, series, instance, or image identifier. A series update changes the shared metadata used by later display work. platform/…/DicomMetadataStore.ts• L63-131, platform/…/DicomMetadataStore.ts• L198-239, platform/…/DicomMetadataStore.ts• L240-309
References: platform/…/DicomMetadataStore.ts• L63-131 platform/…/DicomMetadataStore.ts• L198-239 platform/…/DicomMetadataStore.ts• L240-309 platform/…/StudyMetadata.ts• L5-24
Image metadata access
The metadata provider connects an image identifier to the matching instance in the metadata store. It also supplies custom metadata and translates stored DICOM values into the metadata shapes expected by image loading and viewer services. This gives images from different URI forms one metadata access path, including frame-specific data. DICOMweb image IDs provide their own study, series, instance, and frame values. WADO image IDs read those values from query parameters. Other image IDs use registered mappings; when the image URI contains frame information, that value takes priority over the frame stored with the mapping, and the stored frame value is used otherwise. platform/…/MetadataProvider.ts• L14-40, platform/…/MetadataProvider.ts• L42-124, platform/…/MetadataProvider.ts• L456-488
References: platform/…/MetadataProvider.ts• L14-40 platform/…/MetadataProvider.ts• L42-124 platform/…/MetadataProvider.ts• L456-488 platform/…/MetadataProvider.test.ts• L11-81
Display set model
A display set is a group of instances that the viewer treats as one display unit. The display set service creates these units through extension image handlers, keeps a session cache, tracks the active list, and publishes additions, changes, removals, and metadata invalidation. It also supports derived or overlay data that a client creates rather than receives as a primary image series. platform/…/DisplaySetService.ts• L29-59, platform/…/DisplaySetService.ts• L87-107
The display set contract separates data readiness from ordinary viewer placement. A display set can expose a load operation for content that is not available from metadata alone. isLoaded means that this content is available. isHydrated means that the display set should appear in the standard study view. These states are independent, so a loaded derived display set can remain outside the ordinary view until the viewer chooses to show it. platform/…/DisplaySet.ts• L79-119
The service avoids duplicate work when new metadata repeats an existing series. It first gives registered handlers a chance to consume the instances, then uses the unsupported-data handler when no handler can create a display set. platform/…/DisplaySetService.ts• L302-438
References: platform/…/DisplaySetService.ts• L29-59 platform/…/DisplaySetService.ts• L87-107 platform/…/DisplaySetService.ts• L302-438 platform/…/DisplaySet.ts• L13-32 platform/…/DisplaySet.ts• L79-119 platform/…/DisplaySet.ts• L129-132
Image ordering
Image ordering gives display-set grouping one shared default order for its source instances. ImageSet can apply an application customization or fall back to instance number and patient position when the image data supports spatial ordering. The same ordering can also be applied to a supplied list without changing the image set that owns it, which lets split rules use the platform order as a base before applying their own grouping choice. platform/…/ImageSet.ts• L83-131, platform/…/ImageSet.sortInstances.test.ts• L27-49
This contract keeps ordinary display ordering and split-rule ordering aligned. The supplied list is ordered in place and returned, while the owning ImageSet remains unchanged when another list is passed. platform/…/ImageSet.ts• L95-131, platform/…/ImageSet.sortInstances.test.ts• L40-49
References: platform/…/ImageSet.ts• L83-131 platform/…/ImageSet.sortInstances.test.ts• L13-49 platform/…/ImageSet.sortInstances.test.ts• L52-90 platform/…/sortStudy.ts• L145-188
For the detailed study, series, instance, and display-set sequence, see Study and display set lifecycle.
Viewer state
The viewport grid service owns the state that maps display sets to viewer panes. A viewport is one viewing pane with an identifier, layout position, display-set identifiers, and display options. The service exposes layout changes, active-pane changes, readiness, and display-set assignment through one event-aware contract. platform/…/ViewportGridType.ts• L22-49, platform/…/ViewportGridService.ts• L8-24
Viewport assignments
The service applies one or more display-set identifiers to one or more viewports and then publishes the resulting grid state. The display-set service remains the owner of display-set objects, while the grid stores only the references needed to place them in panes. This separation lets the same display set take part in different layouts without copying its data. platform/…/ViewportGridService.ts• L185-222
References: platform/…/ViewportGridType.ts• L22-70 platform/…/ViewportGridService.ts• L185-233
Active viewport display sets
The active viewport hook joins the two services for React consumers. It reads the active viewport, resolves its display-set identifiers through the display set service, and refreshes when the active viewport or grid state changes. platform/…/useActiveViewportDisplaySets.ts• L5-26, platform/…/useActiveViewportDisplaySets.ts• L28-59
References: platform/…/useActiveViewportDisplaySets.ts• L5-26 platform/…/useActiveViewportDisplaySets.ts• L28-59
Toolbar access
The toolbar service is the shared registry for extension-provided buttons and button sections. It evaluates button state against the active viewer context, routes button and option interactions through the command manager, and publishes changes for React consumers. The useToolbar hook reads the selected section and refreshes it when toolbar or viewport state changes. A mounted consumer also re-reads the section when its buttonSection changes, which keeps mode-specific or split-button registrations aligned with the current section. platform/…/ToolbarService.ts• L60-70, platform/…/ToolbarService.ts• L198-217, platform/…/ToolbarService.ts• L226-289, platform/…/useToolbar.tsx• L6-23, platform/…/useToolbar.tsx• L42-74
Toolbar interactions are assembled without changing the button definition. The hook passes button and option commands to the shared command manager, while the service keeps option values live across repeated display refreshes, including nested buttons. This lets toolbar state updates preserve user-selected values and still notify consumers after an option changes. platform/…/useToolbar.tsx• L29-40, platform/…/ToolbarService.ts• L603-641, platform/…/ToolbarService.test.ts• L63-131, platform/…/useToolbar.test.ts• L80-187
References: platform/…/ToolbarService.ts• L60-70 platform/…/ToolbarService.ts• L198-217 platform/…/ToolbarService.ts• L226-289 platform/…/ToolbarService.ts• L603-641 platform/…/useToolbar.tsx• L6-23 platform/…/useToolbar.tsx• L29-74 platform/…/useToolbar.test.ts• L189-243 platform/…/ToolbarService.test.ts• L63-131
Viewing policy
A hanging protocol is a set of rules that chooses how studies and display sets should appear in viewports. The hanging protocol service receives the studies and display sets, selects or applies a protocol, and publishes the result for the viewport system to use. platform/…/HangingProtocolService.ts• L23-38, platform/…/HangingProtocolService.ts• L405-452
References: platform/…/HangingProtocolService.ts• L23-38 platform/…/HangingProtocolService.ts• L405-452
Protocol matching
Protocol matching compares study, series, and instance values against a protocol's matching rules. Each rule can carry a weight and can be required; a failed required rule makes the match unusable, while other passed rules contribute to its score. Rules can read the active study, a prior study, the current metadata object, or a custom attribute. platform/…/HPMatcher.js• L12-25, platform/…/HPMatcher.js• L27-59, platform/…/HPMatcher.js• L89-125, platform/…/HangingProtocol.ts• L86-136
The matching contract supports exact and list checks, text checks, numeric comparisons, ranges, and value-presence checks. A missing value is different from an explicit null, 0, false, or empty string when a rule tests that value. This keeps protocol selection predictable for metadata that uses DICOM-style scalar and array values. platform/…/validator.js• L4-31, platform/…/validator.js• L287-315, platform/…/validator.js• L389-411, platform/…/HPMatcher.js• L128-176
References: platform/…/HangingProtocolService.ts• L23-38 platform/…/HangingProtocolService.ts• L405-452 platform/…/HPMatcher.js• L12-25 platform/…/validator.js• L4-31 platform/…/HangingProtocol.ts• L86-136 platform/…/WorkflowStepsService.ts• L194-224
Workflow steps
Workflow steps provide a higher-level way to change the viewer during a mode. A step can change tools, panels, and the hanging protocol. Its entry actions run before the new protocol is applied so a step can create required display sets first. platform/…/WorkflowStepsService.ts• L10-55, platform/…/WorkflowStepsService.ts• L194-224
References: platform/…/HangingProtocolService.ts• L23-38 platform/…/HangingProtocolService.ts• L405-452 platform/…/WorkflowStepsService.ts• L194-224
For the service-to-service sequence and ownership boundaries, see Core service orchestration. For the application-level assembly of viewer services, see Viewer application composition. For the imaging runtime that supplies the core package's peer integrations, see Cornerstone imaging integration.
Mode state boundaries
Mode changes define the boundary for temporary viewer state. On entry, shared services return to a standard state before extensions restore mode-specific data. On exit, extensions save or release their state first, and services then clear their active data. This order prevents an extension from restoring data into a service that has not yet been reset. platform/…/ExtensionManager.ts• L145-207
State reset scope
Display sets and viewport state are session objects, not permanent study records. Display-set cache and active display sets are cleared on mode exit, while the mode or extension can preserve data when a later entry should restore it. platform/…/DisplaySetService.ts• L280-290, platform/…/ViewportGridService.ts• L287-299
References: platform/…/ExtensionManager.ts• L145-207 platform/…/DisplaySetService.ts• L280-290 platform/…/ViewportGridService.ts• L287-299
Change checklist
When these files or sections are changed, remember to consider these:
- When an extension module name or type changes, update every module reference that resolves its stable identifier.
- When a command context or command name changes, check extension command definitions and workflow or toolbar command callers together.
- When a command input form or option precedence changes, check toolbar-generated commands and ordered command sets together.
- When a command context or command name changes, preserve the rejection of prototype keys at the registration boundary.
- When a default hotkey command or its options change, check the command registration and any user-editable binding surface together.
- When a display-set event payload changes, check viewport, prefetch, study-browser, and mode listeners that use the payload.
- When display-set loading or hydration rules change, check handlers and viewer flows that distinguish data availability from ordinary display.
- When the default image order or instance sorting customization changes, check display-set grouping and split-rule ordering together. Preserve the contract that supplied lists can be ordered without changing the owning image set.
- When viewport display-set identifiers change, keep the display-set cache lookup and grid state contract aligned.
- When mode reset order changes, check extension state restore, display-set retention, and viewport restoration as one lifecycle.
- When a study or series metadata field changes, check hanging-protocol match rules and display-set creation inputs.
- When a hanging-protocol constraint or matching value source changes, check
HPMatcher, the validator contract, and theConstraintandMatchingRuletypes together. Preserve the difference between missing values and explicit falsy values. - When image identifier parsing or metadata mapping changes, check image loader metadata requests and frame-specific lookup paths together. Preserve the precedence between DICOMweb URI values, image URI frame values, and stored frame values.
- When a customization scope or modification event changes, check
useCustomizationconsumers across default, global, and mode registrations. - When toolbar state or button command contracts change, check
useToolbarrefresh triggers, section changes, nested option values, and the command options passed from toolbar interactions. - When a toolbar option wrapper or event identity mechanism changes, preserve live option values and unique subscription identities across repeated refreshes.
- When a public hook is added or renamed, update the hook barrel and the package entry point together.
- When an
AppTypesmanager, service, configuration, or domain type changes, check the application and extension contracts that consume it together. - When dynamic configuration rules change, preserve the origin or anchored-pattern checks that protect remote configuration loading.
- When an
@ohif/corepackage boundary or peer version changes, check the host application's imaging runtime and the package build and test commands together. - When the production build entry changes, keep the package build script, Rspack base configuration, shared plugin externals, and published UMD output aligned.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| An extension has no ID or uses an ID that is already registered | Its modules do not enter the shared registry, or duplicate modules are skipped | Validate extension IDs and keep them unique before registration |
| A command is registered in a missing context | The command cannot be found when a toolbar or workflow calls it | Create the context through the command module path before registering definitions |
| A command name or context contains a prototype key | Registration can target an unsafe object path or fails instead of creating the command | Keep the command manager's key validation at the registration boundary |
| A command name is not available in the active context | The call returns without running the intended action | Use the correct context or register the command in the active context |
| A command collection contains an unsupported or empty form | Part of the requested action sequence does not run | Use the supported command name, object, function, array, or nested collection forms |
| A default hotkey names a command that is not registered or passes stale options | Keyboard input has no effect or runs the wrong viewer action | Keep default bindings aligned with command names and option contracts |
| No SOP class handler can create a display set and the fallback handler is unavailable | Incoming instances do not become a usable viewer display unit | Register handlers and keep the unsupported-data handler available |
| A display set is loaded but not hydrated when a standard viewport expects it | The data is available but does not appear in the ordinary study view | Set hydration state through the viewer flow that owns standard display |
| A split rule orders its group with a different base order from the viewer | Instances can appear in an unexpected order or split results can vary from ordinary display order | Use the shared ImageSet ordering contract and keep supplied-list sorting separate from the owning image set |
| A viewport references a display-set identifier that is not in the display-set cache | The viewport cannot resolve the data needed for display | Create or restore display sets before assigning their identifiers to viewports |
| A protocol rule uses a falsy operand without the matching validator contract | A rule can be skipped or can match the wrong value, which changes protocol selection | Keep OHIF validator operands and built-in validator options distinct, and cover 0, false, empty string, null, and missing values |
| A required protocol rule fails while other rules pass | The protocol receives a positive-looking score but cannot be applied | Treat requiredFailed as a hard match failure and keep required-rule behavior aligned with MatchingRule |
| An image identifier has no matching study, series, or instance mapping, or its frame mapping is not resolved | Image metadata requests return no instance data or the wrong frame | Register the image-to-UID mapping and preserve DICOMweb, WADO query, image URI frame, and stored-frame precedence |
| A mode clears shared state before an extension saves it | Mode-specific viewer state cannot be restored on the next entry | Keep extension exit hooks before service exit hooks |
| A customization consumer listens to only one scope | A later default, global, or mode update leaves the consumer with an old value | Subscribe through useCustomization so all resolved-value scopes can trigger a refresh |
| A toolbar section changes while a mounted hook keeps the old section | The UI shows controls from the prior mode or split-button section | Re-read the section when buttonSection changes and on toolbar modification events |
| A toolbar option wrapper captures an old option object | A user change updates stale state or is lost after a refresh | Resolve the live option by ID when the change runs and preserve its current value |
| Toolbar state changes without a matching viewport refresh | Buttons show state for the wrong active pane or layout | Keep toolbar refreshes connected to active viewport, readiness, and layout events |
A path write reaches __proto__ or constructor | The target or a shared prototype can be changed | Reject prototype keys before creating intermediate objects or writing the final field |
| Dynamic configuration accepts an untrusted or unanchored URL pattern | A remote document outside the intended trust boundary can change application behavior | Require an allowed origin or an anchored pattern when dynamic configuration is enabled |
| The host supplies a peer imaging package version that does not match the core contract | Image loading or viewer coordination can fail at runtime | Keep host-supplied Cornerstone and DICOM peer packages aligned with @ohif/core |
| The package build uses a stale entry or external list after the build migration | The published UMD package can bundle shared plugin dependencies or fail to expose the expected core surface | Build through .rspack/rspack.prod.js and keep its shared externals and package main output aligned |
Key files
| File | Why to read it |
|---|---|
| platform/…/package.json | Defines the core package boundary, supported runtime, build and test entry points, and imaging peer integrations |
| platform/…/rspack.prod.js | Defines the production package bundle, UMD output, and shared plugin external boundary |
| platform/…/index.ts | Public platform surface for managers, services, types, and viewer hooks |
| platform/…/AppTypes.ts | Shared type contracts for platform managers, services, configuration, and domain data |
| platform/…/index.ts | Public React hook surface for toolbar, command, customization, and viewport access |
| platform/…/ExtensionManager.ts | Extension registration, module identity, command loading, and mode boundaries |
| platform/…/ServicesManager.ts | Shared service creation and name-based lookup |
| platform/…/CommandsManager.ts | Context-based command selection, input normalization, and ordered command execution |
| platform/…/useRunCommand.tsx | React access to the shared command runner |
| platform/…/hotkeyBindings.ts | Default keyboard bindings for viewer commands and editable shortcuts |
| platform/…/useCustomization.ts | React access to resolved customization values and runtime updates |
| platform/…/DicomMetadataStore.ts | In-session study, series, and instance data flow |
| platform/…/MetadataProvider.ts | Image identifier resolution and shared access to image metadata |
| platform/…/MetadataProvider.test.ts | Contract checks for frame lookup precedence and DICOM module boundaries |
| platform/…/ImageSet.ts | Shared image-set identity, attributes, and default instance ordering |
| platform/…/ImageSet.sortInstances.test.ts | Checks that supplied-list ordering matches normal ordering and preserves the owning image set |
| platform/…/DisplaySetService.ts | Display-unit creation, cache, active list, and change events |
| platform/…/DisplaySet.ts | Contract for display data, references, loading, and ordinary-view hydration |
| platform/…/ViewportGridService.ts | Viewport layout, active pane, and display-set assignment state |
| platform/…/ToolbarService.ts | Toolbar registration, section state, button evaluation, and interaction routing |
| platform/…/ToolbarService.test.ts | Checks live option state and command behavior for top-level and nested toolbar buttons |
| platform/…/useToolbar.tsx | React toolbar access and synchronization with commands, sections, and viewport state |
| platform/…/useToolbar.test.ts | Checks command aggregation, immutable button definitions, and section changes |
| platform/…/HangingProtocolService.ts | Rules that map studies and display sets to viewing plans |
| platform/…/HPMatcher.js | Scores protocol rules against study and display-set metadata |
| platform/…/validator.js | Defines the value, text, number, range, and presence checks used by protocol rules |
| platform/…/HangingProtocol.ts | Defines protocol, stage, selector, matching-rule, and constraint contracts |
| platform/…/HPMatcher.test.js | Shows the boundary between missing values and explicit falsy matching values |
| platform/…/WorkflowStepsService.ts | Coordinated viewer changes across tools, panels, and viewing policy |
| platform/…/SystemProvider.tsx | React access to the shared platform managers |
| platform/…/guid.js | Generates the short-lived identifiers used by shared service subscriptions |
| platform/…/objectPath.js | Provides guarded nested-object access for shared manager state |