Using the new time point browser on the sidebar
This commit is contained in:
1 parent
fd9cfed8e9
commit
d721c0dbde
13 files changed
+164
-72
No files matched your search
-10
@@ -195,22 +195,12 @@ Template.studyTimepointBrowser.helpers({
|
||||
|
||||
const studies = instance.getStudies(timepoint);
|
||||
|
||||
const includedUids = new Set();
|
||||
const modalities = {};
|
||||
studies.forEach(study => {
|
||||
const modality = study.modalities || 'UN';
|
||||
modalities[modality] = modalities[modality] + 1 || 1;
|
||||
includedUids.add(study.studyInstanceUid);
|
||||
});
|
||||
|
||||
if (_.isArray(timepoint.studiesData)) {
|
||||
timepoint.studiesData.forEach(({ modality, studyInstanceUid }) => {
|
||||
if (includedUids.has(studyInstanceUid)) return;
|
||||
modalities[modality] = modalities[modality] + 1 || 1;
|
||||
includedUids.add(studyInstanceUid);
|
||||
});
|
||||
}
|
||||
|
||||
const result = [];
|
||||
_.each(modalities, (count, modality) => {
|
||||
result.push(`${count} ${modality}`);
|
||||
|
||||
-48
@@ -28,54 +28,6 @@ $timepointButtonHeight = 55px
|
||||
.studyTimepointScrollArea
|
||||
padding-top: $timepointButtonHeight
|
||||
|
||||
.timepointEntry
|
||||
&.active
|
||||
.timepointModalities
|
||||
height: 0
|
||||
.timepointDate
|
||||
display: none
|
||||
.expandIcon i
|
||||
transform: rotateX(180deg)
|
||||
.timepointFollowupTitle
|
||||
font-size: 14px
|
||||
theme('color', '$textSecondaryColor')
|
||||
text-transform: uppercase
|
||||
|
||||
.timepointHeader
|
||||
cursor: pointer
|
||||
font-size: 13px
|
||||
|
||||
&
|
||||
.expandIcon i
|
||||
.timepointFollowupTitle
|
||||
.timepointDate
|
||||
.timepointModalities
|
||||
theme('color', '$textSecondaryColor')
|
||||
transition($sidebarTransition)
|
||||
|
||||
&:hover
|
||||
&
|
||||
.timepointFollowupTitle
|
||||
.expandIcon i
|
||||
.timepointDate
|
||||
.timepointModalities
|
||||
theme('color', '$textPrimaryColor') !important
|
||||
|
||||
.timepointDetails
|
||||
.timepointModalities
|
||||
line-height: 25px
|
||||
|
||||
.timepointModalities
|
||||
height: 25px
|
||||
overflow: hidden
|
||||
|
||||
.expandIcon i
|
||||
theme('color', '$defaultColor')
|
||||
|
||||
.timepointFollowupTitle
|
||||
theme('color', '$textPrimaryColor')
|
||||
padding-top: 2px
|
||||
|
||||
.studyTimepointScrollArea
|
||||
height: 100%
|
||||
overflow-x: hidden
|
||||
|
||||
Reference in new issue
Block a user