Example: Anonymize Data Set
The following code reads a data set from a DICOM P10 file, anonymizes it, then prints it to stdout.
gleam
import dcmfx_anonymize
import dcmfx_core/data_set
import dcmfx_p10
import gleam/option.{None}
const input_file = "../../example.dcm"
pub fn main() {
let assert Ok(ds) = dcmfx_p10.read_file(input_file)
ds
|> dcmfx_anonymize.anonymize_data_set
|> data_set.print(None)
}