feat: Add extensibility for tmtv and segmentation modes (#6128)
* feat: Add extensibility for tmtv and segmentation modes * Fixes for ordering issues on laod * Remove unnecessary reference lookup * Chane side panel timing to fix tests * PR comments - change how mode definitions get created * Improvements to mode customizations * Start organizing customizations * Misc fixes for a customization demo page * Security fixes * PR requested changes to naming
This commit is contained in:
1 parent
f79055f98e
commit
b266c0a86a
49 files changed
+2653
-1215
No files matched your search
@@ -0,0 +1,5 @@
|
||||
// Example chaining module: ensures `veterinary/veterinaryOverlay` is loaded and
|
||||
// applied first when using `?customization=veterinary/veterinary` alone.
|
||||
{
|
||||
"requires": ["veterinary/veterinaryOverlay"]
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
// Example URL-loaded customization: veterinaryOverlay
|
||||
//
|
||||
// Demonstrates a runtime-loaded customization that overrides the default
|
||||
// viewport overlay with a veterinary-style demographics layout. Loaded via
|
||||
// `?customization=veterinary/veterinaryOverlay` (see CustomizationService URL handling).
|
||||
//
|
||||
// Uses the same `global`-at-top-level shape as the cornerstone overlay samples
|
||||
// and `inheritsFrom: 'ohif.overlayItem'` on each row, matching
|
||||
// extensions/cornerstone/.../viewportOverlayCustomization.tsx.
|
||||
{
|
||||
"global": {
|
||||
"viewportOverlay.topLeft": {
|
||||
"$set": [
|
||||
{
|
||||
"id": "PatientName",
|
||||
"inheritsFrom": "ohif.overlayItem",
|
||||
"attribute": "PatientName",
|
||||
"label": "Patient",
|
||||
"title": "Patient name"
|
||||
},
|
||||
{
|
||||
"id": "PatientID",
|
||||
"inheritsFrom": "ohif.overlayItem",
|
||||
"attribute": "PatientID",
|
||||
"label": "ID",
|
||||
"title": "Patient ID"
|
||||
},
|
||||
{
|
||||
"id": "StudyDate",
|
||||
"inheritsFrom": "ohif.overlayItem",
|
||||
"attribute": "StudyDate",
|
||||
"label": "Date",
|
||||
"title": "Study date"
|
||||
}
|
||||
]
|
||||
},
|
||||
"viewportOverlay.topRight": {
|
||||
"$set": [
|
||||
{
|
||||
"id": "PatientSpecies",
|
||||
"inheritsFrom": "ohif.overlayItem",
|
||||
"attribute": "PatientSpeciesDescription",
|
||||
"label": "Species",
|
||||
"title": "Patient species"
|
||||
},
|
||||
{
|
||||
"id": "PatientBreed",
|
||||
"inheritsFrom": "ohif.overlayItem",
|
||||
"attribute": "PatientBreedDescription",
|
||||
"label": "Breed",
|
||||
"title": "Patient breed"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user