Bug Fix: OHIF Study Metadata API implementation not correctly reading Study and Series level data + Adding ES5.1 properties to Study Metadata API abstract classes to prevent protected attribute override

This commit is contained in:
Emanuel F. Oliveira authored and Eloízio Salgado committed 2017-03-02 10:16:09 -03:00
1 parent 5d5df29e09
commit 2b22aecc15
8 files changed
+140 -38

No files matched your search

@@ -308,10 +308,11 @@ HP.ProtocolEngine = class ProtocolEngine {
* @returns {any|*} The number of available prior studies with the same patientId
*/
getNumberOfAvailablePriors(study) {
var studies = StudyListStudies.find({
patientId: study.patientId,
const instance = study.getFirstInstance();
const studies = StudyListStudies.find({
patientId: instance.getRawValue('x00100020'), // PatientID,
studyDate: {
$lt: study.studyDate
$lt: instance.getRawValue('x00080020') // StudyDate
}
});