Skip to content

Commit

Permalink
[FIXME] First Non-Annotated MRI Frames Functionality Try
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCalisto committed May 13, 2019
1 parent 8e7252b commit bead0c3
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 1 deletion.
Empty file added YYYYMMDDHHmmSS
Empty file.
19 changes: 18 additions & 1 deletion src/client/tools/setupButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,24 @@ const setupButtons = (studyViewer) => {
stack.probe = probeToolData.data;
}


//logic to warn to user if he has any missing annotations
if(studyRoiData.stacks.length > 2){
var filledIndex = [];
for(var i=0; i<studyRoiData.stacks.length; i++){
if(studyRoiData.stacks[i].freehand != undefined || studyRoiData.stacks[i].freehand != null
&& studyRoiData.stacks[i].seriesDescription == 'MRI'){
filledIndex.push(i+1);
}
}
var occupied = filledIndex[filledIndex.length -1] - filledIndex[0] + 1;
var totalLength = filledIndex.length;

if(occupied != totalLength){
stack.freehand = null;
alert('Warning!' + '\n' + 'There are missing annotations in between slices. Please annotate and save it first.');
return;
}
}

console.log(studyRoiData);

Expand Down
74 changes: 74 additions & 0 deletions src/common/studyList.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"studyList": [
{
"patientName": "Anonymized2",
"patientId": "9AF6DD70-51D7-457E-AF53-30CCDC5D7126",
"internalId": "229dc6",
"studyDate": "20131101",
"modality": "Breast",
"studyDescription": "Breast",
"numImages": 2,
"studyId": "9AF6DD70-51D7-457E-AF53-30CCDC5D7126"
},
{
"patientName": "Anonymized3",
"patientId": "1E60E211-42B6-4556-A1F6-223E85AD38A6",
"internalId": "6341a6",
"studyDate": "20161205",
"modality": "Breast",
"studyDescription": "Breast",
"numImages": 1,
"studyId": "1E60E211-42B6-4556-A1F6-223E85AD38A6"
},
{
"patientName": "Anonymized6",
"patientId": "7FD9ADFC-B1AC-44AF-953A-E644003C7475",
"internalId": "840f03",
"studyDate": "20151113",
"modality": "Breast",
"studyDescription": "Breast",
"numImages": 1,
"studyId": "7FD9ADFC-B1AC-44AF-953A-E644003C7475"
},
{
"patientName": "Anonymized1",
"patientId": "5A7A314A-B881-4BEF-91AA-73258CA96675",
"internalId": "870bf8",
"studyDate": "20160216",
"modality": "Breast",
"studyDescription": "Breast",
"numImages": 1,
"studyId": "5A7A314A-B881-4BEF-91AA-73258CA96675"
},
{
"patientName": "Anonymized1",
"patientId": "d645214a-8cf8-4c01-a91e-38110b007e1d",
"internalId": "5949dc",
"studyDate": "",
"modality": "MAMA^ROTINA",
"studyDescription": "MAMA^ROTINA",
"numImages": 144,
"studyId": "d645214a-8cf8-4c01-a91e-38110b007e1d"
},
{
"patientName": "Anonymized2",
"patientId": "b58e21a1-d393-4420-9785-e6509a7ed931",
"internalId": "42b455",
"studyDate": "",
"modality": "breast^library",
"studyDescription": "breast^library",
"numImages": 192,
"studyId": "b58e21a1-d393-4420-9785-e6509a7ed931"
},
{
"patientName": "Anonymized1",
"patientId": "faaf75f0-0489-48bd-a8dc-6544fdc06d72",
"internalId": "15001e",
"studyDate": "",
"modality": "breast^library",
"studyDescription": "breast^library",
"numImages": 90,
"studyId": "faaf75f0-0489-48bd-a8dc-6544fdc06d72"
}
]
}

0 comments on commit bead0c3

Please sign in to comment.