Skip to content

Conversation

tsondergaard
Copy link

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();

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();
Copy link

netlify bot commented Mar 27, 2025

Deploy Preview for dcmjs2 ready!

Name Link
🔨 Latest commit 6fd2e1d
🔍 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants