Updated Lesion Location list (LT-166)
This commit is contained in:
parent
0a46741754
commit
831e546cd5
@ -1,121 +1,62 @@
|
|||||||
LesionLocations = new Meteor.Collection(null);
|
LesionLocations = new Meteor.Collection(null);
|
||||||
|
|
||||||
LesionLocations.insert({
|
var organGroups = [
|
||||||
id: 'liverLeft',
|
'Abdominal/Chest Wall',
|
||||||
group: 'liver',
|
'Adrenal',
|
||||||
location: 'Liver Left',
|
'Bladder',
|
||||||
hasDescription: false,
|
'Bone',
|
||||||
description: '',
|
'Brain',
|
||||||
selected: false,
|
'Breast',
|
||||||
isNodal: false
|
'Colon',
|
||||||
});
|
'Esophagus',
|
||||||
|
'Extremities',
|
||||||
|
'Gallbladder',
|
||||||
|
'Kidney',
|
||||||
|
'Liver',
|
||||||
|
'Lung',
|
||||||
|
'Lymph Node',
|
||||||
|
'Muscle',
|
||||||
|
'Neck',
|
||||||
|
'Other: Soft Tissue',
|
||||||
|
'Ovary',
|
||||||
|
'Pancreas',
|
||||||
|
'Pelvis',
|
||||||
|
'Peritoneum/Omentum',
|
||||||
|
'Prostate',
|
||||||
|
'Retroperitoneum',
|
||||||
|
'Small Bowel',
|
||||||
|
'Spleen',
|
||||||
|
'Stomach',
|
||||||
|
'Subcutaneous'];
|
||||||
|
|
||||||
LesionLocations.insert({
|
function nameToID(name) {
|
||||||
id: 'liverRight',
|
// http://stackoverflow.com/questions/29258016/remove-special-symbols-and-extra-spaces-and-make-it-camel-case-javascript
|
||||||
group: 'liver',
|
return name
|
||||||
location: 'Liver Right',
|
.trim() //might need polyfill if you need to support older browsers
|
||||||
hasDescription: false,
|
.toLowerCase() //lower case everything
|
||||||
description: '',
|
.replace(/([^A-Z0-9]+)(.)/ig, //match multiple non-letter/numbers followed by any character
|
||||||
selected: false,
|
function(match) {
|
||||||
isNodal: false
|
return arguments[2].toUpperCase(); //3rd index is the character we need to transform uppercase
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
LesionLocations.insert({
|
organGroups.forEach(function(organGroup) {
|
||||||
id: 'liverCaudate',
|
var id = nameToID(organGroup);
|
||||||
group: 'liver',
|
|
||||||
location: 'Liver Caudate',
|
|
||||||
hasDescription: false,
|
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
|
||||||
|
|
||||||
LesionLocations.insert({
|
// Check if the name has 'node' in it, if so, it is nodal
|
||||||
id: 'lungLLL',
|
var isNodal = false;
|
||||||
group: 'lung',
|
if (id.toLowerCase().indexOf('node') > -1) {
|
||||||
location: 'Lung LLL',
|
isNodal = true;
|
||||||
hasDescription: false,
|
}
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
|
||||||
|
|
||||||
LesionLocations.insert({
|
LesionLocations.insert({
|
||||||
id: 'lungLUL',
|
id: id,
|
||||||
group: 'lung',
|
group: id, // Not really used for now
|
||||||
location: 'Lung LUL',
|
location: organGroup,
|
||||||
hasDescription: false,
|
hasDescription: false,
|
||||||
description: '',
|
description: '',
|
||||||
selected: false,
|
selected: false,
|
||||||
isNodal: false
|
isNodal: isNodal
|
||||||
});
|
});
|
||||||
|
|
||||||
LesionLocations.insert({
|
|
||||||
id: 'lungRLL',
|
|
||||||
group: 'lung',
|
|
||||||
location: 'Lung RLL',
|
|
||||||
hasDescription: false,
|
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
|
||||||
|
|
||||||
LesionLocations.insert({
|
|
||||||
id: 'lungRML',
|
|
||||||
group: 'lung',
|
|
||||||
location: 'Lung RML',
|
|
||||||
hasDescription: false,
|
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
|
||||||
|
|
||||||
LesionLocations.insert({
|
|
||||||
id: 'lungRUL',
|
|
||||||
group: 'lung',
|
|
||||||
location: 'Lung RUL',
|
|
||||||
hasDescription: false,
|
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
|
||||||
|
|
||||||
LesionLocations.insert({
|
|
||||||
id: 'pleuraLeft',
|
|
||||||
group: 'pleura',
|
|
||||||
location: 'Pleura Left',
|
|
||||||
hasDescription: false,
|
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
|
||||||
|
|
||||||
LesionLocations.insert({
|
|
||||||
id: 'pleuraRight',
|
|
||||||
group: 'pleura',
|
|
||||||
location: 'Pleura Right',
|
|
||||||
hasDescription: false,
|
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
|
||||||
|
|
||||||
LesionLocations.insert({
|
|
||||||
id: 'kidneyLeft',
|
|
||||||
group: 'kidney',
|
|
||||||
location: 'Kidney Left',
|
|
||||||
hasDescription: false,
|
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
|
||||||
|
|
||||||
LesionLocations.insert({
|
|
||||||
id: 'kidneyRight',
|
|
||||||
group: 'kidney',
|
|
||||||
location: 'Kidney Right',
|
|
||||||
hasDescription: false,
|
|
||||||
description: '',
|
|
||||||
selected: false,
|
|
||||||
isNodal: false
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user