Anonymizes DICOM images
dcm_anon(
file,
rem_tags = dcmtk::removal_tags$tag,
mod_tags = NULL,
insert_tags = NULL,
new_uids = TRUE,
new_date = NULL,
new_time = NULL,
verbose_flag = FALSE,
...
)DICOM Image
tags to remove
tags to modify. Must be a character vector, with the names of that vector as the tags.
tags to insert. Must be a character vector, with the names of that vector as the tags.
Should new unique identifiers (IDs) be generated
date to be change date fields to.
time to be change time fields to.
print diagnostic messages, using
--verbose
Additional arguments to add to dcmodify
Result of dcmodify command
if (FALSE) { # \dontrun{
file = "~/Desktop/000000.dcm"
anon = dcm_anon(file, new_date = "20060101")
new_hd = read_dicom_header(anon)
} # }