Compare commits

..

No commits in common. "e8a21fa5a343b7ee9732666e69793beb220c5143" and "3b7271d3a8a992e3c613456ae445b6bca8e9b661" have entirely different histories.

2 changed files with 302 additions and 580 deletions

View File

@ -113,14 +113,10 @@ export const parseDicom = (file, name = false) => {
}
})
uintKey.forEach(key => {
if (res.hasOwnProperty(key)) {
res[key] = data.uint16(dicom[key])
}
res[key] = data.uint16(dicom[key])
})
intStringKey.forEach(key => {
if (res.hasOwnProperty(key)) {
res[key] = data.intString(dicom[key])
}
res[key] = data.intString(dicom[key])
})
defaultKey.forEach(key => {
if (!res[key] && res.hasOwnProperty(key)) {