Digital Imaging and Communications in Medicine (DICOM) file format: Lua parsing library

DICOM (Digital Imaging and Communications in Medicine), AKA NEMA PS3, AKA ISO 12052:2006, is a file format and network protocol standard for medical imaging purposes. This parser covers file format, typically written by various medical equipment, such as radiography, computer tomography scans, MRT, ultrasonography, etc.

DICOM defines two transfer syntaxes: implicit and explicit. This top-level parser attempts to autodetect and handle both of them. If any problems arise, one can use file_explicit and file_implicit subtypes to force parsing in particular transfer syntax.

File extension

dcm

KS implementation details

License: MIT

This page hosts a formal specification of Digital Imaging and Communications in Medicine (DICOM) file format using Kaitai Struct. This specification can be automatically translated into a variety of programming languages to get a parsing library.

Lua source code to parse Digital Imaging and Communications in Medicine (DICOM) file format