2020-05-20 21:07:25 -04:00
|
|
|
function requestDisplaySetCreationForStudy(
|
|
|
|
|
dataSource,
|
|
|
|
|
DisplaySetService,
|
2021-07-19 08:31:40 -04:00
|
|
|
StudyInstanceUID,
|
|
|
|
|
madeInClient,
|
2020-05-20 21:07:25 -04:00
|
|
|
) {
|
|
|
|
|
// 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;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-19 08:31:40 -04:00
|
|
|
dataSource.retrieveSeriesMetadata({ StudyInstanceUID, madeInClient });
|
2020-05-20 21:07:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default requestDisplaySetCreationForStudy;
|