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:
1 parent
5d5df29e09
commit
2b22aecc15
8 files changed
+140
-38
No files matched your search
@@ -12,13 +12,19 @@ export class OHIFStudyMetadata extends Viewerbase.metadata.StudyMetadata {
|
||||
}
|
||||
|
||||
init() {
|
||||
const data = this.getData();
|
||||
const study = this.getData();
|
||||
|
||||
// define "_studyInstanceUID" protected property...
|
||||
Object.defineProperty(this, '_studyInstanceUID', {
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: false,
|
||||
value: study.studyInstanceUid
|
||||
});
|
||||
|
||||
// set protected property...
|
||||
this._studyInstanceUID = data.studyInstanceUid;
|
||||
// populate internal list of series...
|
||||
data.seriesList.forEach(series => {
|
||||
this.addSeries(new OHIFSeriesMetadata(series));
|
||||
study.seriesList.forEach(series => {
|
||||
this.addSeries(new OHIFSeriesMetadata(series, study));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user