LT-368: Allowing only baseline and follow-up 1 on study list

This commit is contained in:
Bruno Alves de Faria 2016-11-18 09:14:29 -02:00
parent 666e626f05
commit 16f61629d3
2 changed files with 10 additions and 2 deletions

View File

@ -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];

View File

@ -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;
} }