suyashkumar / dicom

⚡High Performance DICOM Medical Image Parser in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I edit value of a tag?

iamatsundere opened this issue · comments

As the question, how can I edit the data in the tag value?

I am also interested by this answer 😊

EDIT:

Actually you can perform that with the following snippet (no errecheck here)

tag, _ := dataset.FindElementByTag(tag.Tag{Group: 0x8, Element: 0x70})
tag.Value, _ = dicom.NewValue([]string{"MY NEW VALUE"})