chore: delete unused and duplicate function, it exists under /utils (#4657)
This commit is contained in:
parent
1b56b48d7b
commit
64a72774a8
@ -1,10 +0,0 @@
|
|||||||
const MIN_SR_SERIES_NUMBER = 4700;
|
|
||||||
|
|
||||||
export default function getNextSRSeriesNumber(displaySetService) {
|
|
||||||
const activeDisplaySets = displaySetService.getActiveDisplaySets();
|
|
||||||
const srDisplaySets = activeDisplaySets.filter(ds => ds.Modality === 'SR');
|
|
||||||
const srSeriesNumbers = srDisplaySets.map(ds => ds.SeriesNumber);
|
|
||||||
const maxSeriesNumber = Math.max(...srSeriesNumbers, MIN_SR_SERIES_NUMBER);
|
|
||||||
|
|
||||||
return maxSeriesNumber + 1;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user