LT-368: Allowing only baseline and follow-up 1 on study list
This commit is contained in:
parent
666e626f05
commit
16f61629d3
@ -47,7 +47,13 @@ Template.dialogStudyAssociation.onCreated(() => {
|
||||
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
|
||||
const relatedStudies = studies[timepointType];
|
||||
|
||||
|
||||
@ -41,7 +41,9 @@ Template.longitudinalStudyListContextMenu.helpers({
|
||||
let classList = '';
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user