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,34 @@
|
||||
// Example URL-loaded customization: patientBirthDate
|
||||
//
|
||||
// Adds a "Birth Date" column to the WorkList study list, right after the
|
||||
// Patient column. Because a URL customization file is DATA (never executed), it
|
||||
// cannot carry a render function — it inserts a plain, serializable column spec
|
||||
// (`id` + `meta`) and WorkList expands it into a display-only text column that
|
||||
// reads `row.patientBirthDate` (surfaced by the DICOMweb data source from DICOM
|
||||
// tag 00100030).
|
||||
//
|
||||
// This applies in the `global` phase, so it is in place before the WorkList
|
||||
// renders. Load it with `?customization=worklist/patientBirthDate`, or pull it in
|
||||
// from `appConfig.customizationService.requires`.
|
||||
{
|
||||
"global": {
|
||||
"workList.columns": {
|
||||
// Insert at index 1 (immediately after the Patient column). Using a
|
||||
// fixed index keeps the trailing `actions` column last.
|
||||
"$splice": [
|
||||
[
|
||||
1,
|
||||
0,
|
||||
{
|
||||
"id": "patientBirthDate",
|
||||
"meta": {
|
||||
"label": "Birth Date",
|
||||
"minWidth": 130,
|
||||
"priority": 40
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user