dcmjs
dcmjs copied to clipboard
fix(datasetToBlob): Allow dataset._meta to be omitted
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();
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.