dcmjs icon indicating copy to clipboard operation
dcmjs copied to clipboard

fix(datasetToBlob): Allow dataset._meta to be omitted

Open tsondergaard opened this issue 9 months ago • 1 comments

Without this it is necessary to add report.dataset._meta = {} before you can write a derived dataset like StructuredReport to part10 format:

const obj = await readFile("obj.dcm");
const dicom_data = dcmjs.data.DicomMessage.readFile(obj.buffer);
const report = new dcmjs.derivations.StructuredReport([dicom_data]);
report.dataset._meta = {}; // <-- Fix the need for this!
const buffer = dcmjs.data.datasetToDict(report.dataset).write();

tsondergaard avatar Mar 27 '25 13:03 tsondergaard

Deploy Preview for dcmjs2 ready!

Name Link
Latest commit 6fd2e1d434985a698c5de87c3797743dc80839d5
Latest deploy log https://app.netlify.com/sites/dcmjs2/deploys/67e559b8c1ea8d00087b5a73
Deploy Preview https://deploy-preview-428--dcmjs2.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Mar 27 '25 13:03 netlify[bot]