DICOM handling

Get started

DICOM Handling

The espadon package allows direct analysis of DICOM files.

The following instructions allow , for example,  to create a table (R dataframe), and thus to have a synthetic view of the DICOM file content.

dcm.filename <- file.choose ()
raw.dcm <- dicom.raw.data.loader (dcm.filename)
df <- dicom.parser (raw.dcm, as.txt = TRUE, try.parse = TRUE) 

If you prefer a nested list, just type this instruction

L <- dicom.parser (raw.dcm, as.txt = FALSE,  nested.list = TRUE) 

A file in .xlsx format can also be created with the xlsx.from.dcm function.

Thanks to the dicom.set.tag.value function, the content of the various tags can be modified or deleted, as far as they are in ascii format.

The dicom.raw.data.anonymizer function provides pseudonymization by shifting dates, changing the patient’s PIN and name, removing all patient data except age, weight, and height, and also removing any other name, phone, operator, service, and undocumented tag content.