Example: Read DICOM File
The following code reads a DICOM P10 file and prints its contents to stdout.
gleam
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)
data_set.print(ds, None)
}