Fixing metadata issues with Orthanc studies
This commit is contained in:
1 parent
ef4a8d8684
commit
da0595213d
7 files changed
+38
-24
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
const getStudyMetadata = study => {
|
||||
let studyMetadata = study;
|
||||
if (study && !(studyMetadata instanceof OHIF.viewerbase.metadata.StudyMetadata)) {
|
||||
studyMetadata = new OHIF.metadata.StudyMetadata(study, study.studyInstanceUid);
|
||||
}
|
||||
|
||||
return studyMetadata;
|
||||
};
|
||||
|
||||
export { getStudyMetadata };
|
||||
Reference in new issue
Block a user