Fix a bug by comparing study date and time instead of only study date to add prior indicator

This commit is contained in:
Evren Ozkan 2016-11-14 20:24:04 -05:00
parent f9f4a14bae
commit b0f9426015

View File

@ -326,7 +326,8 @@ Template.viewportOverlay.helpers({
return;
}
if (study.studyDate === viewportStudies.fetch()[0].studyDate) {
var oldestStudy = viewportStudies.fetch()[0];
if ((study.studyDate + " " + study.studyTime) <= (oldestStudy.studyDate + " " + oldestStudy.studyTime)) {
return 'Prior';
}
}