Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimCSAE committed Dec 13, 2024
1 parent e741e47 commit 5431f45
Show file tree
Hide file tree
Showing 2 changed files with 6,033 additions and 8,289 deletions.
10 changes: 0 additions & 10 deletions src/utils/DicomTreeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,6 @@ function reduceMetadata(metadataArray: any[], config: HealthLake) {
const series = seriesBySerieId[key];
seriesBySerieId[key] = seriesBySerieId[key][0];
seriesBySerieId[key].Instances = series.reduce((acc, cur) => {
Object.keys(cur.Instances).forEach((instanceKey) => {
const instance = cur.Instances[instanceKey];
if(instance.DICOM.RescaleSlope !== undefined) {
instance.DICOM.RescaleSlope = Math.floor(instance.DICOM.RescaleSlope)
}

if(instance.DICOM.RescaleIntercept !== undefined) {
instance.DICOM.RescaleIntercept = Math.floor(instance.DICOM.RescaleIntercept)
}
});
return Object.assign(acc, cur.Instances);
}, {});
});
Expand Down
Loading

0 comments on commit 5431f45

Please sign in to comment.