2020-05-20 21:07:25 -04:00
|
|
|
function requestDisplaySetCreationForStudy(
|
|
|
|
|
dataSource,
|
|
|
|
|
DisplaySetService,
|
|
|
|
|
StudyInstanceUID
|
|
|
|
|
) {
|
|
|
|
|
// TODO: is this already short-circuited by the map of Retrieve promises?
|
2020-08-06 17:25:42 +02:00
|
|
|
if (
|
|
|
|
|
DisplaySetService.activeDisplaySets.some(
|
|
|
|
|
displaySet => displaySet.StudyInstanceUID === StudyInstanceUID
|
|
|
|
|
)
|
|
|
|
|
) {
|
2020-05-20 21:07:25 -04:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dataSource.retrieveSeriesMetadata({ StudyInstanceUID });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default requestDisplaySetCreationForStudy;
|