Use 'imagePlane' metadata type for 'imagePlaneModule' which is used by cornerstone tools

This commit is contained in:
Evren Ozkan 2017-12-20 17:47:13 -05:00
parent 7837aaf2d9
commit 7757da149d

View File

@ -335,6 +335,11 @@ export class MetadataProvider {
* @returns {Object} Relevant metadata of the specified type
*/
provider(type, imageId) {
// TODO: Cornerstone Tools use 'imagePlaneModule', but OHIF use 'imagePlane'. It must be consistent.
if (type === 'imagePlaneModule') {
type = 'imagePlane';
}
const imageMetadata = this.metadataLookup.get(imageId);
if (!imageMetadata) {
return;