Services
Overview​
Services are "concern-specific" code modules that can be consumed across layers.
Services provide a set of operations, often tied to some shared state, and are
made available to through out the app via the ServicesManager
. Services are
particularly well suited to address cross-cutting
concerns.
Each service should be:
- self-contained
- able to fail and/or be removed without breaking the application
- completely interchangeable with another module implementing the same interface
In
OHIF-v3
we have added multiple non-UI services and have introduced pub/sub pattern to reduce coupling between layers.
Services​
The following services is available in the OHIF-v3
.
Service | Type | Description |
---|---|---|
DicomMetadataStore (NEW) | Data Service | DicomMetadataStore |
DisplaySetService (NEW) | Data Service | DisplaySetService |
segmentationService (NEW) | Segmentation Service | segmentationService |
HangingProtocolService (NEW) | Data Service | HangingProtocolService |
MeasurementService (MODIFIED) | Data Service | MeasurementService |
ToolBarService (NEW) | Data Service | ToolBarService |
ViewportGridService (NEW) | UI Service | ViewportGridService |
Cine Service (NEW) | UI Service | cine |
CustomizationService | UI Service | customizationService (NEW) |
UIDialogService | UI Service | UIDialogService |
UIModalService | UI Service | UIModalService |
UINotificationService | UI Service | UINotificationService |
UIViewportDialogService (NEW) | UI Service | UIViewportDialogService |