Replies: 1 comment
-
The metadata is just another dataset that can be accessed via If you need it anyway, you could just create a dataset that also contains the metadata, and serialize this: ds = dcmread(...)
ds_all = copy.deepcopy(ds)
ds_all.update(ds.file_meta)
json_rep = ds_all.to_json()) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to save all the tags of a DICOM file into a json string. However, I noticed that the metadata field is omitted when I use to_json. Is there a way to get the all tags including the metadata fields into a json string? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions