LT-275: Adding fixed common labels to open source version
This commit is contained in:
1 parent
82b23f4368
commit
d5ecfbdd39
4 files changed
+64
-39
No files matched your search
@@ -56,30 +56,24 @@ Template.measureFlow.onCreated(() => {
|
||||
|
||||
const items = [
|
||||
'Adrenal',
|
||||
'Bladder',
|
||||
'Bone',
|
||||
'Brain',
|
||||
'Breast',
|
||||
'Colon',
|
||||
'Esophagus',
|
||||
'Extremities',
|
||||
'Gallbladder',
|
||||
'Kidney',
|
||||
'Liver',
|
||||
'Lung',
|
||||
'Lymph Node',
|
||||
'Muscle',
|
||||
'Bladder',
|
||||
'Neck',
|
||||
'Other: Soft Tissue',
|
||||
'Bone',
|
||||
'Other Soft Tissue',
|
||||
'Brain',
|
||||
'Ovary',
|
||||
'Breast',
|
||||
'Pancreas',
|
||||
'Pelvis',
|
||||
'Peritoneum/Omentum',
|
||||
'Colon',
|
||||
'Prostate',
|
||||
'Retroperitoneum',
|
||||
'Esophagus',
|
||||
'Small Bowel',
|
||||
'Extremities',
|
||||
'Spleen',
|
||||
'Gallbladder',
|
||||
'Stomach',
|
||||
'Kidney',
|
||||
'Subcutaneous'
|
||||
];
|
||||
|
||||
@@ -90,6 +84,25 @@ Template.measureFlow.onCreated(() => {
|
||||
value: item
|
||||
});
|
||||
});
|
||||
|
||||
const commonItems = [
|
||||
'Abdomen/Chest Wall',
|
||||
'Lung',
|
||||
'Lymph Node',
|
||||
'Liver',
|
||||
'Mediastinum/Hilum',
|
||||
'Pelvis',
|
||||
'Peritoneum/Omentum',
|
||||
'Retroperitoneum'
|
||||
];
|
||||
|
||||
instance.commonItems = [];
|
||||
_.each(commonItems, item => {
|
||||
instance.commonItems.push({
|
||||
label: item,
|
||||
value: item
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Template.measureFlow.onRendered(() => {
|
||||
@@ -116,6 +129,7 @@ Template.measureFlow.events({
|
||||
const data = {
|
||||
key: 'label',
|
||||
items: instance.items,
|
||||
commonItems: instance.commonItems,
|
||||
label: 'Assign label',
|
||||
searchPlaceholder: 'Search labels',
|
||||
storageKey: 'measureLabelCommon',
|
||||
|
||||
Reference in new issue
Block a user