-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Expand file tree
/
Copy pathveterinaryOverlay.js
More file actions
58 lines (58 loc) · 1.6 KB
/
Copy pathveterinaryOverlay.js
File metadata and controls
58 lines (58 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* Example URL-loaded customization module: veterinaryOverlay
*
* Demonstrates a runtime-loaded customization that overrides the default
* viewport overlay with a veterinary-style demographics layout. Loaded via
* `?customization=veterinaryOverlay` (see CustomizationService URL handling).
*
* Uses the same default-export shape as cornerstone overlay samples
* (`global` at top level) and `inheritsFrom: 'ohif.overlayItem'` on each
* row, matching `extensions/cornerstone/.../viewportOverlayCustomization.tsx`.
*/
export default {
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: 'PatientSpecies',
label: 'Species',
title: 'Patient species',
},
{
id: 'PatientBreed',
inheritsFrom: 'ohif.overlayItem',
attribute: 'PatientBreed',
label: 'Breed',
title: 'Patient breed',
},
],
},
},
};