Fix a bug by comparing study date and time instead of only study date to add prior indicator
This commit is contained in:
parent
f9f4a14bae
commit
b0f9426015
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user