Medical imaging plays a crucial role in modern healthcare, providing essential information for accurate diagnosis and treatment planning. The Digital Imaging and Communications in Medicine (DICOM) standard has revolutionized the storage, transmission, and sharing of medical images and related data. This research presents an implementation of DICOM communication and the development of a practical demonstration for simulation purposes. The simulation can be used for conducting cybersecurity tests in the context of DICOM communication.
1. Introduction
Digital Imaging and Communications in Medicine (DICOM) defines a set of entities representing different aspects of medical imaging and patient information
[1]:
-
Patients (P) encapsulates individual patient data, including attributes such as name, ID, and birthdate. A patient p can be associated with one or more studies (𝑃→[𝑆1,𝑆2…]).
-
Study and Study Series (S and 𝑆𝑒) includes related medical images and metadata, while Series groups images within a study based on common characteristics. A study s can include one or more series (𝑆𝑒=[𝑆1,𝑆2,…]).
-
Image (I) refers to a set of DICOM images I; Series 𝑆𝑒 groups related images (𝑆𝑒→[𝐼1,𝐼2,…]).
-
Physician (𝑃ℎ) represents healthcare professionals; images I are interpreted by a physician 𝑃ℎ (𝑃ℎ→[𝐼1,𝐼2,…]).
-
Modalities (M) refers to imaging-related equipment or healthcare modalities, including imaging devices, specifying manufacturer details and software version. Images I are generated by a specific modality M (𝑀→[𝐼1,𝐼2,…]).
DICOM is designed for the management of medical images and associated data within a healthcare environment.
2. Picture Archiving and Communication System (PACS)
PACS is a crucial system utilized in the medical field for the storage, management, and distribution of medical images and associated patient information. It replaces traditional film-based systems by enabling healthcare providers to capture, store, retrieve, and view medical images electronically. With PACS, the cumbersome task of managing physical film records is replaced by a digital infrastructure that facilitates easy image access and promotes efficient collaboration among healthcare professionals. Orthanc
[2][3], on the other hand, is an open-source implementation of a PACS server. It provides a lightweight, vendor-neutral, and standards-compliant solution for managing medical images and associated data. Orthanc serves as a software platform that can be utilized to establish a PACS server infrastructure. Its open-source nature offers flexibility and customization options, making it an appealing choice for institutions and developers seeking to create their own PACS environment.
3. Encoding and Compression Techniques in DICOM
The Transfer Syntax
[4] in DICOM refers to the encoding and compression techniques used to represent and transmit DICOM data. It determines how DICOM objects, including images, are serialized into a byte stream that can be transmitted or stored. DICOM supports multiple Transfer Syntaxes to provide flexibility, interoperability, and efficient handling of various data formats. Commonly used Transfer Syntaxes in DICOM include the following
[4]:
-
Implicit VR Little Endian: a Transfer Syntax that uses a combination of implicit value representation encoding and little-endian byte ordering. It is widely used for uncompressed DICOM images, and supports a variety of data types. This is the default Transfer Syntax for most DICOM files.
-
Explicit VR Little Endian: a Transfer Syntax that uses explicit VR encoding and little-endian byte ordering. Commonly used for uncompressed DICOM images, it provides explicit VR tags, which make it easier to parse and understand the data.
-
JPEG Lossless: a Transfer Syntax that employs the Joint Photographic Experts Group (JPEG) Baseline algorithm for lossless compression of DICOM images, JPEG Lossless
[4][5] is utilized when a balance between compression and preservation of image quality is required. It achieves significant compression ratios while maintaining the integrity of the image data. JPEG Lossless is particularly useful for storing or transmitting DICOM images where lossy compression is not acceptable.
-
JPEG Baseline: a specific Transfer Syntax that utilizes the JPEG Baseline algorithm for compressing DICOM images, JPEG Baseline
[4][6] is a lossy compression technique that achieves significant compression ratios while maintaining acceptable image quality for many medical imaging applications. JPEG Baseline is often used for transmitting DICOM images over networks with limited bandwidth or storage capacity, as it helps reduce the size of image data.
By supporting various Transfer Syntaxes, DICOM enables interoperability between different systems, ensuring that medical imaging data can be exchanged and interpreted correctly across diverse platforms and applications.
4. Service–Object Pair (SOP) Class and Transfer Syntax
SOP Classes
[4] are service objects that encapsulate DICOM image files. An SOP Class defines a specific type of medical imaging or non-imaging service that can be performed on a DICOM object. It represents a combination of a service and an object on which the service can be performed. Popular SOP Classes include, among others
[4]:
-
CT Image Storage (1.2.840.10008.5.1.4.1.1.2): stores Computed Tomography (CT) images, which are used for diagnostic purposes and provide detailed cross-sectional views of the body.
-
MR Image Storage (1.2.840.10008.5.1.4.1.1.4): stores Magnetic Resonance Imaging (MRI) images, which are used to visualize internal structures of the body using magnetic fields and radio waves, providing detailed anatomical information.
-
Ultrasound Image Storage (1.2.840.10008.5.1.4.1.1.6.1): stores ultrasound images; ultrasound imaging uses high-frequency sound waves to generate images of organs and tissues in real-time, and is often used in obstetrics, cardiology, and other medical applications.
-
X-ray Radiography Image Storage (1.2.840.10008.5.1.4.1.1.1): stores X-ray images; widely used for various medical purposes, X-rays provide two-dimensional images that can help diagnose bone fractures, detect abnormalities, and visualize internal structures.
The above SOP Classes define the necessary metadata, attributes, and operations required to handle and interpret images of their respective modalities.
5. Presentation Contexts
Presentation Contexts in DICOM define the combination of a specific SOP Class and one or more supported Transfer Syntaxes that an application entity (AE) can handle for communication purposes. When two DICOM devices establish a connection or association, they negotiate the set of services and data formats that they can support. This negotiation is accomplished using Presentation Contexts. A Presentation Context consists of the following components
[4]:
-
Abstract Syntax: this identifies the class or type of DICOM object being transmitted or requested, and represents a specific SOP Class, such as CT Image Storage or MR Image Storage.
-
Transfer Syntaxes: these define the encoding and compression techniques used to represent and transmit the DICOM data, and specify how the DICOM object is serialized into a byte stream. Multiple Transfer Syntaxes can be associated with a single Abstract Syntax, allowing for flexibility in data formats and compression options.
The process of association negotiation in the context of medical imaging involves the exchange of information between two devices. During this negotiation, both devices share a list of supported Presentation Contexts. Each Presentation Context is composed of an Abstract Syntax along with one or more Transfer Syntaxes that the device is capable of supporting for that specific Abstract Syntax.
The two devices then compare the lists of Presentation Contexts they have shared and work towards finding a mutually supported Presentation Context. When this mutual agreement is reached, it signifies that the devices can effectively communicate and conduct operations involving DICOM objects. This is done using the designated Abstract Syntax, while the agreed-upon Transfer Syntax is employed for the communication.
For instance, consider a scenario in which two devices establish a Presentation Context with an Abstract Syntax. This agreement indicates that the devices are now equipped to exchange and manipulate magnetic resonance image data using the JPEG Baseline compression algorithm. This enables seamless and efficient communication between the devices while ensuring compatibility in handling medical image information.
6. Application Entities (AEs)
The AE concept
[4] is fundamental to Digital Imaging and DICOM standards. It represents a node or device in a network that communicates using DICOM protocols. An AE can be a piece of medical imaging equipment, such as a CT scanner, MRI machine, or PACS server. In the context of DICOM, an AE is identified by a unique AE title, which serves as its network address. The AE title is used to establish connections and enable communication between different entities in a DICOM network. Each AE is responsible for sending and receiving DICOM objects, including medical images, patient information, and related metadata.
AEs provide services such as querying/retrieval, storage, and printing of DICOM objects. They can act as a Service Class Provider (SCP), which receives requests for services, or a Service Class User (SCU)
[4], which initiates requests and interacts with other endpoints. The roles of SCPs and SCUs can be performed by the same AE or by different endpoints depending on the system architecture and requirements. An Application Entity represents a DICOM node or device in the network. In the DICOM simulator, an AE is created using the AE class from
Pynetdicom. The AE title is set to
“MODALITY”, which identifies the simulated modality in the network.