Skip to content

Commit

Permalink
chore: Set SpecificCharacterSet to "ISO_IR 192" in Cornerstone and Co…
Browse files Browse the repository at this point in the history
…rnerstone3D adapters
  • Loading branch information
sedghi committed May 17, 2024
1 parent 092b216 commit 362f2ba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export default class MeasurementReport {
// Merge the derived dataset with the content from the Measurement Report
report.dataset = Object.assign(report.dataset, contentItem);
report.dataset._meta = _meta;
report.dataset.SpecificCharacterSet = "ISO_IR 192";

return report;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ function fillSegmentation(segmentation, inputLabelmaps3D, userOptions = {}) {
Value: ["1.2.840.10008.1.2.5"],
vr: "UI"
};
segmentation.dataset.SpecificCharacterSet = "ISO_IR 192";
segmentation.dataset._vrMap.PixelData = "OB";
segmentation.dataset.PixelData = rleEncodedFrames;
} else {
Expand Down Expand Up @@ -228,7 +229,7 @@ function _createSegFromImages(images, isMultiframe, options) {
const dataset = DicomMetaDictionary.naturalizeDataset(dicomData.dict);

dataset._meta = DicomMetaDictionary.namifyDataset(dicomData.meta);

dataset.SpecificCharacterSet = "ISO_IR 192";
datasets.push(dataset);
} else {
for (let i = 0; i < images.length; i++) {
Expand All @@ -240,6 +241,7 @@ function _createSegFromImages(images, isMultiframe, options) {
);

dataset._meta = DicomMetaDictionary.namifyDataset(dicomData.meta);
dataset.SpecificCharacterSet = "ISO_IR 192";
datasets.push(dataset);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ export default class MeasurementReport {
// Merge the derived dataset with the content from the Measurement Report
report.dataset = Object.assign(report.dataset, contentItem);
report.dataset._meta = _meta;
report.SpecificCharacterSet = "ISO_IR 192";

return report;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/adapters/src/adapters/Cornerstone3D/RTStruct/RTSS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ function generateRTSSFromSegmentations(
};

dataset._meta = _meta;
dataset.SpecificCharacterSet = "ISO_IR 192";

return dataset;
}
Expand Down Expand Up @@ -268,6 +269,7 @@ function generateRTSSFromAnnotations(
};

dataset._meta = _meta;
dataset.SpecificCharacterSet = "ISO_IR 192";

return dataset;
}
Expand Down

0 comments on commit 362f2ba

Please sign in to comment.