Creating ohif-studies package to deal with studies browsing
This commit is contained in:
1 parent
956e6da0b3
commit
0b51a53976
28 files changed
+323
-83
No files matched your search
@@ -17,30 +17,25 @@ export const prepareViewerData = ({ studyInstanceUids, seriesInstanceUids, timep
|
||||
// Retrieve the studies metadata
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
const processData = viewerData => {
|
||||
const studies = [];
|
||||
resolve({
|
||||
studies,
|
||||
viewerData
|
||||
});
|
||||
// OHIF.studylist.retrieveStudiesMetadata(viewerData.studyInstanceUids, viewerData.seriesInstanceUids).then(studies => {
|
||||
// // Add additional metadata to our study from the studylist
|
||||
// studies.forEach(study => {
|
||||
// const studylistStudy = OHIF.studylist.collections.Studies.findOne({
|
||||
// studyInstanceUid: study.studyInstanceUid
|
||||
// });
|
||||
//
|
||||
// if (!studylistStudy) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// Object.assign(study, studylistStudy);
|
||||
// });
|
||||
//
|
||||
// resolve({
|
||||
// studies,
|
||||
// viewerData
|
||||
// });
|
||||
// }).catch(reject);
|
||||
OHIF.studylist.retrieveStudiesMetadata(viewerData.studyInstanceUids, viewerData.seriesInstanceUids).then(studies => {
|
||||
// Add additional metadata to our study from the studylist
|
||||
studies.forEach(study => {
|
||||
const studylistStudy = OHIF.studylist.collections.Studies.findOne({
|
||||
studyInstanceUid: study.studyInstanceUid
|
||||
});
|
||||
|
||||
if (!studylistStudy) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object.assign(study, studylistStudy);
|
||||
});
|
||||
|
||||
resolve({
|
||||
studies,
|
||||
viewerData
|
||||
});
|
||||
}).catch(reject);
|
||||
};
|
||||
|
||||
// Check if the studies are already given and ignore the timepoint ID if so
|
||||
|
||||
Reference in new issue
Block a user