fix: Make StudyInstanceUID optional to retrieve a Series from DicomMetadataStore (#4644)
This commit is contained in:
parent
2dd9b893ad
commit
aef68d18b8
@ -58,6 +58,11 @@ function _getStudy(StudyInstanceUID) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _getSeries(StudyInstanceUID, SeriesInstanceUID) {
|
function _getSeries(StudyInstanceUID, SeriesInstanceUID) {
|
||||||
|
if(!StudyInstanceUID) {
|
||||||
|
const series = _model.studies.map(study => study.series).flat();
|
||||||
|
return series.find(aSeries => aSeries.SeriesInstanceUID === SeriesInstanceUID);
|
||||||
|
}
|
||||||
|
|
||||||
const study = _getStudy(StudyInstanceUID);
|
const study = _getStudy(StudyInstanceUID);
|
||||||
|
|
||||||
if (!study) {
|
if (!study) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user