LT-368: Allowing only baseline and follow-up 1 on study list
This commit is contained in:
1 parent
666e626f05
commit
16f61629d3
2 files changed
+10
-2
No files matched your search
+7
-1
@@ -47,7 +47,13 @@ Template.dialogStudyAssociation.onCreated(() => {
|
|||||||
studies[timepointType].push(data);
|
studies[timepointType].push(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.keys(studies).forEach(function(timepointType) {
|
const studiesKeys = Object.keys(studies);
|
||||||
|
|
||||||
|
// TODO: REMOVE - Temporary for RSNA
|
||||||
|
const patientId = studies[studiesKeys[0]][0].patientId;
|
||||||
|
Timepoints.remove({ patientId });
|
||||||
|
|
||||||
|
studiesKeys.forEach(timepointType => {
|
||||||
// Get the studies associated with this timepoint
|
// Get the studies associated with this timepoint
|
||||||
const relatedStudies = studies[timepointType];
|
const relatedStudies = studies[timepointType];
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -41,7 +41,9 @@ Template.longitudinalStudyListContextMenu.helpers({
|
|||||||
let classList = '';
|
let classList = '';
|
||||||
|
|
||||||
const assessment = getAssociationAssessment();
|
const assessment = getAssociationAssessment();
|
||||||
if (assessment.selected < 1 || assessment.associated > 0) {
|
// if (assessment.selected < 1 || assessment.associated > 0) {
|
||||||
|
// TODO: REMOVE - Temporary for RSNA
|
||||||
|
if (assessment.selected < 2) {
|
||||||
classList += disabledClass;
|
classList += disabledClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user