Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating new dicom elements using DicomWriter #607

Open
srandoll opened this issue Nov 16, 2018 · 1 comment
Open

Creating new dicom elements using DicomWriter #607

srandoll opened this issue Nov 16, 2018 · 1 comment
Labels
question Further information is requested
Milestone

Comments

@srandoll
Copy link

I'm using the DicomWriter functionality to replace or remove dicom elements from an dicom object, which is working very good.

But now I like to add a new dicom element with a specific value. How can I do that? Using the 'replace' functionality does not work. As far as I can see, the algorithm just iterates over the existing dicom elements and therefore is not able to create new tags. I also tried to create a new dicomElement and pass it to the getBuffer method, but it always fails with an error message like "RangeError: Offset is outside the bounds of the DataView". Maybe due to the wrong offsets.

So is there a way to add new dicom elements during the getBuffer() operation?

@ivmartel ivmartel added the question Further information is requested label Nov 16, 2018
@ivmartel ivmartel added this to the 0.26.0 milestone Nov 16, 2018
@ivmartel
Copy link
Owner

ivmartel commented Mar 5, 2019

Hi, sorry for the late reply. No, there is no way to add new elements but it seems doable. Any help appreciated!

@ivmartel ivmartel modified the milestones: 0.26.0, 0.27.0 Apr 5, 2019
@ivmartel ivmartel modified the milestones: 0.27.0, Future Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants