Skip to content

Commit

Permalink
feat: store VRs as bulk data that start with other
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed May 8, 2024
1 parent 84e977c commit 966ddc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/DICOM/dicom-json-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,13 @@ class DicomJsonBinaryDataModel {
}

getBinaryKeys_() {
const bulkDataVrKeys = ["OW", "OD", "OF", "OL", "OW"];

let binaryKeys = [];
let flatDicomJson = flat(this.dicomJsonModel.dicomJson);
for (let key in flatDicomJson) {
if (key.includes("7FE00010")) continue;
if (flatDicomJson[key] == "OW" || flatDicomJson[key] == "OB") {
if (bulkDataVrKeys.indexOf(flatDicomJson[key]) > -1) {
binaryKeys.push(key.substring(0, key.lastIndexOf(".vr")));
}
}
Expand Down

0 comments on commit 966ddc2

Please sign in to comment.