From 966ddc2967dd48d890f3063b2271cd7f304fd3c4 Mon Sep 17 00:00:00 2001 From: "CHIN\\a5566" Date: Wed, 8 May 2024 11:51:28 +0800 Subject: [PATCH] feat: store VRs as bulk data that start with other --- models/DICOM/dicom-json-model.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/DICOM/dicom-json-model.js b/models/DICOM/dicom-json-model.js index 3ebbbe25..6b0af882 100644 --- a/models/DICOM/dicom-json-model.js +++ b/models/DICOM/dicom-json-model.js @@ -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"))); } }