dcm_anon: DICOM Anonymization

Description Usage Arguments Value Examples

View source: R/dcm_anon.R

Description

Anonymizes DICOM images

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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,
  ...
)

Arguments

file

DICOM Image

rem_tags

tags to remove

mod_tags

tags to modify. Must be a character vector, with the names of that vector as the tags.

insert_tags

tags to insert. Must be a character vector, with the names of that vector as the tags.

new_uids

Should new unique identifiers (IDs) be generated

new_date

date to be change date fields to.

new_time

time to be change time fields to.

verbose_flag

print diagnostic messages, using --verbose

...

Additional arguments to add to dcmodify

Value

Result of dcmodify command

Examples

1
2
3
4
5
6
## Not run: 
file = "~/Desktop/000000.dcm"
anon = dcm_anon(file, new_date = "20060101")
new_hd = read_dicom_header(anon)

## End(Not run)

muschellij2/dcmtk documentation built on March 17, 2021, 9:11 p.m.