Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Commit

Permalink
fix(StudyMetadata): Gets the modality information from first series i…
Browse files Browse the repository at this point in the history
…tem (#55)

* fix(StudyMetadata): Gets the modality information from first display set item
* fix(StudyMetadata): Includes condition to not change modality when received from other plugins
  • Loading branch information
joao-f-medeiros authored and swederik committed Jul 21, 2019
1 parent 33fba8e commit d51ce4f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/classes/metadata/StudyMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,17 @@ function _getDisplaySetFromSopClassModule(
headers,
});

return plugin.getDisplaySetFromSeries(series, study, dicomWebClient, headers);
let displaySet = plugin.getDisplaySetFromSeries(
series,
study,
dicomWebClient,
headers
);
if (displaySet && !displaySet.modality) {
const instance = series.getFirstInstance();
displaySet.modality = instance.getRawValue('x00080060');
}
return displaySet;
}

/**
Expand Down

0 comments on commit d51ce4f

Please sign in to comment.