annotate Sphinx/source/dicom-guide.rst @ 537:2c8f4eca3cd2

fix toctree
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 07:36:18 +0100
parents 50bdd7c7e9b9
children 4f3a6145ae34
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 .. _dicom-guide:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 Understanding DICOM with Orthanc
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 ================================
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 .. contents::
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 This section of the Orthanc Book provides a **gentle, informal,
358
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
10 high-level introduction to DICOM**. We will try and map DICOM's own
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
11 concepts to a modern terminology that should hopefully be more easy to
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
12 understand for software engineers diving for the first time into
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
13 DICOM. Once the concepts of this page are understood, interested
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
14 readers are invited to read a more formal textbook about DICOM, such
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
15 as the so-called "`Practical introduction and survival guide
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
16 <https://www.springer.com/us/book/9783642108495>`__", or to read the
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
17 full `DICOM specification
25
669ea65ba7fb fix links
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 21
diff changeset
18 <http://dicom.nema.org/medical/dicom/current/output/html/>`__.
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 All the DICOM concepts that are defined in this introduction are
358
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
21 illustrated with `Orthanc <https://www.orthanc-server.com/>`__, a
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 lightweight, yet powerful standalone DICOM server for healthcare and
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 medical research. As Orthanc is free and open-source software, it is a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 good companion to learn DICOM.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 .. _dicom-format:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 DICOM file format
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 -----------------
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 The DICOM standard can be very roughly divided in 2 parts:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 1. The part specifying the DICOM **file format**.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 2. The part specifying the DICOM **network protocol**.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 The DICOM file format is the topic of the present section. It is
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 inherently similar to well-known formats such as JPEG, PNG or
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 TIFF. However, besides the so-called "**pixel data**" that encodes the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 medical image itself, a DICOM file also embeds medical information.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 .. _dicom-tags:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 DICOM tags
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 ^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 The medical information encoded by a DICOM file is called a **data
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 set** and takes the form of a `key-value associative array
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 <https://en.wikipedia.org/wiki/Associative_array>`__. Each value can
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51 itself be a list of data sets (called a **sequence**), leading to a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 hierarchical data structure that is much like a XML or JSON file.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 In the DICOM terminology, each key is called a **DICOM tag**. The list
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 of the standard DICOM tags are normalized by an official dictionary,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56 each tag being identified by two 16-bit hexadecimal numbers. For
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 instance, the birth date of a patient is associated with the DICOM tag
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58 ``(0x0010, 0x0030)``. Note that it is common to drop the "``0x``"
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 prefix and to simply write ``0010,0030``. For better readability, it
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 is also common to nickname these DICOM tags with a `camel case
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 <https://en.wikipedia.org/wiki/CamelCase>`__ English name (such as
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 "*PatientName*" or "*StudyDescription*"). The standard associates each
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63 DICOM tag with a data type (a string, a date, a floating-point
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 number...), that is known as its **value representation**.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66 Here is how :ref:`Orthanc Explorer <orthanc-explorer>` displays the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 DICOM tags stored in a DICOM file (note that the file contains a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 sequence identified by the tag ``ProcedureCodeSequence (0x0008,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 0x1032)``):
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 .. image:: images/DicomTags.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 :width: 450px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 |
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77 The DICOM file format also specifies the set of DICOM tags that are
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78 mandatory or optional for each kind of imaging modality (CT, MR, NM,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79 CBCT, PET...). Such a specification is called a **storage
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 service-object pair** (storage SOP). Mandatory tags are called "*type
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81 1*", mandatory tags that can have a null value are called "*type 2*",
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82 and optional tags are called "*type 3*".
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
84 The DICOM standard also allows vendors to introduce non-standard,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
85 **proprietary tags** for their own use. Proprietary tags can be
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86 identified by the fact that their first hexadecimal number is odd
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87 (e.g. ``(0x0009, 0x0010)``). Obviously, such proprietary tags should
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
88 be avoided for maximal interoperability.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
90
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
91 .. _dicom-pixel-data:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
92
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93 Pixel data
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
94 ^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
96 The image itself is associated with the DICOM tag ``PixelData (0x7fe0,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
97 0x0010)``. The content of image can be compressed using many image
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 formats, such as JPEG, `Lossless JPEG
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
99 <https://en.wikipedia.org/wiki/Lossless_JPEG>`__ or `JPEG 2000
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100 <https://en.wikipedia.org/wiki/JPEG_2000>`__. Obviously,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 non-destructive (lossless) compression should always be favored to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102 avoid any loss of medical information. Note that a DICOM file can also
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103 act as a wrapper around a video encoded using `MPEG-2
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104 <https://en.wikipedia.org/wiki/MPEG-2>`__ or `H.264
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105 <https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC>`__.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
106
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
107 The image compression algorithm can be identified by inspecting the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
108 **transfer syntax** that is associated with the DICOM file in its
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
109 header.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
110
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
111 In practice, few imaging devices in hospitals (besides the `PACS
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112 <https://en.wikipedia.org/wiki/Picture_archiving_and_communication_system>`__
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 itself) support image compression. As a consequence, to ensure best
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 portability, the pixel data of most DICOM files circulating in
427
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
115 hospitals is generally **uncompressed**. In other words, the image is
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
116 encoded as a raw buffer, with a given width, height, pixel type
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
117 (integer or float), `color depth
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
118 <https://en.wikipedia.org/wiki/Color_depth>`__ (most often 8, 10, 12
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
119 bpp - *bits per pixel*) and photometric interpretation (most often
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
120 grayscale or RGB). The transfer syntax that is associated with such
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
121 uncompressed images can either be `little endian
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
122 <https://fr.wikipedia.org/wiki/Endianness>`__ (the most common case)
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
123 or big endian (retired in recent versions of the DICOM standard).
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
124
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
125 The process of converting one DICOM instance from some transfer syntax
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
126 to another one is referred to as **transcoding**. The topic of
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
127 transcoding is covered in a :ref:`separate FAQ entry <transcoding>`.
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
128
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
129 A DICOM image can be **multi-frame**, meaning that it encodes an array
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130 of different image frames. This is for instance used to encode
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 uncompressed video sequences, that are often referred to as **cine**
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
132 or **2D+t** images (e.g. for `ultrasound imaging
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
133 <https://en.wikipedia.org/wiki/Medical_ultrasound>`__).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
134
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
135 `As written in its DICOM conformance statement
449
2922fb1bd65e fix links
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 441
diff changeset
136 <https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Resources/DicomConformanceStatement.txt>`__,
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
137 the Orthanc software can receive, store and send any kind of DICOM
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
138 images (i.e. all the standard transfer syntaxes are
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
139 supported). Furthermore, Orthanc can :ref:`convert most uncompressed
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
140 images <supported-images>` to PNG images. The `PNG format
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
141 <https://en.wikipedia.org/wiki/Portable_Network_Graphics>`__ was
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
142 chosen by Orthanc as it is lossless, is natively supported by many
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
143 browsers, software or programming frameworks, and is able to encode up
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
144 to 16bpp integer pixels. This on-the-fly conversion to PNG images is
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
145 what happens when previewing a DICOM image within :ref:`Orthanc
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
146 Explorer <orthanc-explorer>`:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
147
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
148 .. image:: images/PreviewInstance.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
149 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
150 :width: 400px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
151
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
152
28
dc235678897c webviewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 25
diff changeset
153 .. _model-world:
dc235678897c webviewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 25
diff changeset
154
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
155 Model of the real world
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
156 ^^^^^^^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
157
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
158 This concludes our overview of the DICOM file format itself. It is now
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
159 important to give an overview of the so-called "**DICOM model of the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
160 real world**" (`source
25
669ea65ba7fb fix links
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 21
diff changeset
161 <http://dicom.nema.org/medical/dicom/current/output/html/part04.html#sect_C.6.1.1>`__):
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
162
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
163 .. image:: images/PS3.4_C.6-1.svg
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
164 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
165 :height: 400px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
166
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
167 This UML diagram shows that a given **patient** benefits during her
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
168 life from a set of medical imaging **studies**. Each study is made of
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
169 a set of **series**. Each series is in turn a set of **instances**,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
170 the latter being a synonym for a single DICOM file. In Orthanc's
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
171 vocabulary, a **DICOM resource** is an umbrella term to talk either
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
172 about a patient, a study, a series or an instance.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
173
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
174 Any imaging study can be associated with multiple series of
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
175 images. This is especially visible with nuclear medicine, as any
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
176 `PET-CT-scan <https://en.wikipedia.org/wiki/PET-CT>`__ study will
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
177 contain at least two separate series: the CT series and the PET
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
178 series. But any kind of imaging study will usually generate a set of
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
179 separate series. In general, a series can be thought of as either a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
180 single 2D image (as in standard `digital radiography
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
181 <https://en.wikipedia.org/wiki/Digital_radiography>`__), a single 3D
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
182 volume (as in a `CT-scan <https://en.wikipedia.org/wiki/CT_scan>`__),
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
183 or a 2D+t cine sequence. But a series might also encode a single PDF
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
184 report, a `structured report
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
185 <http://www.dclunie.com/pixelmed/DICOMSR.book.pdf>`__, a 3D+t image
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
186 (i.e. a temporal sequence of 3D images)...
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
187
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
188 In any case, the actual pixel data of a given series is spread across
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
189 multiple DICOM instances. This allows to split a single huge image
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
190 (medical imaging commonly deals with 4GB images) into hundreds of
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
191 small files of several megabytes, each of which can entirely fit in
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
192 the computer memory, at the price of a severe redundancy of the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
193 medical information that is embedded within these files.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
194
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
195 For each of these 4 kinds of DICOM resources, the DICOM standard
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
196 specifies a **module** as a set of DICOM tags that describe these
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
197 resources. For instance, the DICOM tag *PatientName* is part of the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
198 patient module, whereas *SeriesDescription* is part of the series
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
199 module. Any storage service-object pair (as :ref:`defined above
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
200 <dicom-tags>`) can be decomposed into a set of modules that make sense
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
201 for its associated type of modality, and whose conjunction forms
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
202 encodes all the medical information.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
203
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
204 According to this model of the real world, the default Web interface
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
205 of Orthanc allows to browse from the patient level to the instance
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
206 level. Here is how :ref:`Orthanc Explorer <orthanc-explorer>` displays
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207 a series:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
208
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
209 .. image:: images/RealWorld.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
210 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
211 :width: 450px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
212
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
213 |
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
214
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
215 On the left side of the interface, an overview of the patient module,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
216 the study module and the series module is displayed. On the right side,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
217 the multiple instances of the series are accessible.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
218
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
219
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
220 .. _dicom-identifiers:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
221
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
222 DICOM identifiers
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
223 ^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
224
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
225 Very importantly, the DICOM standard specifies DICOM tags that allow
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
226 to index each single DICOM resource:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
227
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
228 * Patients are indexed with ``PatientID (0x0010, 0x0020)`` (part of the patient module).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
229 * Studies are indexed with ``StudyInstanceUID (0x0020, 0x000d)`` (part of the study module).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
230 * Series are indexed with ``SeriesInstanceUID (0x0020, 0x000e)`` (part of the series module).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
231 * Instances are indexed with ``SOPInstanceUID (0x0008, 0x0018)`` (part of the SOP module).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
232
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
233 The DICOM standard orders *StudyInstanceUID*, *SeriesInstanceUID* and
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
234 *SOPInstanceUID* to be `globally unique
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
235 <https://en.wikipedia.org/wiki/Globally_unique_identifier>`__. In
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
236 other words, it is mandatory for two different imaging devices to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
237 never generate the same identifiers, even if they are manufactured by
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
238 different vendors. Orthanc exploits this rule to derive its :ref:`own
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
239 unique identifiers <orthanc-ids>`.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
240
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
241 Importantly, even if the *PatientID* must be unique inside a given
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
242 hospital, it is not guaranteed to be globally unique. This means that
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
243 different patients imaged in different hospitals might share the same
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
244 *PatientID*. For this reason, you should always browse from the study
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
245 level (and not from the patient level) as soon as you deal with an
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
246 application that handles patients from different hospitals.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
247
166
3b80f348cc6b Orthanc 1.4.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 157
diff changeset
248 *Note:* Note that since Orthanc 1.4.0, the :ref:`Orthanc Explorer
3b80f348cc6b Orthanc 1.4.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 157
diff changeset
249 <orthanc-explorer>` interface provides a new tab entitled "Studies"
3b80f348cc6b Orthanc 1.4.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 157
diff changeset
250 for study-level access.
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
251
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
252 Finally, the patient module is not always fully meaningful. This is
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
253 for instance the case in emergency imaging, where the `radiology
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
254 information system
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
255 <https://en.wikipedia.org/wiki/Radiology_information_system>`__ might
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
256 not have previously encountered the imaged patient. In such a case, an
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
257 unique ``AccessionNumber (0x0008, 0x0050)`` is associated with the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
258 imaging study by the imaging device of the emergency room: The patient
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
259 module will be injected later on in the PACS once the administrative
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
260 information is available, as part of a reconciliation process.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
261
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
262 In any case, the core engine Orthanc keeps an index of all these DICOM
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
263 identifiers (*PatientID*, *AccessionNumber*, *StudyInstanceUID*,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
264 *SeriesInstanceUID* and *SOPInstanceUID*) and is able to quickly maps
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
265 them to its own :ref:`internal identifiers <orthanc-ids>`. This lookup
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
266 is implemented by the ``/tools/lookup`` URI of the :ref:`REST API of
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
267 Orthanc <rest>`.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
268
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
269
238
a363714813b2 securing orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
270 .. _dicom-protocol:
a363714813b2 securing orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 166
diff changeset
271
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
272 DICOM network protocol
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
273 ----------------------
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
274
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
275 This concludes our overview of the DICOM file format. :ref:`As written
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
276 above <dicom-format>`, we now describe the second main part of the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
277 DICOM standard, i.e. the **DICOM network protocol**.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
278
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
279
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
280 .. _dicom-protocol-overview:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
281
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
282 Overview
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
283 ^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
284
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
285 The DICOM protocol is actually one of the earliest example of `Web
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
286 services <https://en.wikipedia.org/wiki/Web_service>`__, long before
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
287 the introduction of `SOAP <https://en.wikipedia.org/wiki/SOAP>`__ or
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
288 `REST
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
289 <https://en.wikipedia.org/wiki/Representational_state_transfer>`__. It
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
290 allows to:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
291
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
292 1. **Test the connection** between two devices (:ref:`C-Echo
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
293 <dicom-echo>`).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
294 2. **Send images** from the local imaging device to a remote device
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
295 (:ref:`C-Store <dicom-store>`).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
296 3. **Search the content** of a remote device (:ref:`C-Find <dicom-find>`).
421
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
297 4. **Retrieve images** from a remote device (:ref:`C-Move
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
298 <dicom-move>` or :ref:`C-Get <dicom-get>`).
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
299
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
300 Here is a picture that summarizes some key concepts:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
301
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
302 .. image:: images/Protocol.svg
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
303 :height: 200px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
304 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
306 In the DICOM terminology, the client of a DICOM service is called a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
307 **service class user** (SCU), and the server that handles the requests
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
308 is called a **service class provider** (SCP). The client sends a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
309 request that is encoded as a DICOM file (the **command**), and the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
310 server answers with a DICOM file.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
311
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
312 The connection of a DICOM client to a DICOM server is called an
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
313 **association**. Such an association starts with a handshake where the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
314 client and the server agree on which commands can be exchanged between
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
315 them, and on which :ref:`transfer syntaxes <dicom-pixel-data>` are
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
316 supported. The result of this negotiation is called the **presentation
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
317 context**. Once the association is negotiated, this communication
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
318 channel can be used to successively send multiple, independent
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
319 commands.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
320
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
321
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
322 Parameters of a DICOM server
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
323 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
324
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
325 Historically, the DICOM protocol was designed to work over
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
326 `point-to-point links
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
327 <https://en.wikipedia.org/wiki/Point-to-point_(telecommunications)>`__.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
328 Nowadays, the DICOM protocol is used over the `TCP/IP stack
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
329 <https://en.wikipedia.org/wiki/Internet_protocol_suite>`__. This
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
330 implies that a DICOM server can be identified by specifying the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
331 parameters of its `network socket
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
332 <https://en.wikipedia.org/wiki/Network_socket>`__:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
333
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
334 1. Its **IP address** (or, equivalently, its symbolic DNS hostname).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
335 2. Its **TCP port** (the standard DICOM port is 104, but Orthanc uses
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
336 the non-priviliged port 4242 by default).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
337
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
338 Furthermore, each imaging device (may it be a client or a server) must
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
339 be associated with a symbolic name that is called the **application
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
340 entity title (AET)**. The AET is assumed to be unique inside the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
341 Intranet of the hospital. For best compatibility between vendors, the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
342 AET should be only made of alphanumeric characters in upper case (plus
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
343 the "``-``" and "``_``" characters), and its length must be below 16
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
344 characters.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
345
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
346 Taken together, the IP address, the TCP port and the AET describe all
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
347 the parameters of a DICOM server. The administrators of a medical
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
348 imaging network should carefully keep track of these parameters for
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
349 each imaging device, and should define an hospital-wide policy to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
350 assign AETs to new devices.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
351
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
352
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
353 Configuring Orthanc
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
354 ^^^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
355
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
356 Orthanc can act both as a DICOM client and as a DICOM server,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
357 depending on the parameters in its :ref:`configuration file
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
358 <configuration>`. To configure the **DICOM server** of Orthanc, the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
359 following options are especially important:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
360
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
361 1. ``DicomServerEnabled`` must be set to ``true``.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
362 2. ``DicomAet`` must be set to the AET that is reserved to Orthanc.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
363 3. ``DicomPort`` specifies the TCP port of the DICOM server.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
364
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
365 To configure Orthanc as a **DICOM client**, you must list the remote DICOM
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
366 servers that are known to Orthanc into the ``DicomModalities`` option.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
367 For each remote server, you must specify in the following order:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
368
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
369 1. An user-friendly, symbolic name for the server that will be
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
370 displayed by :ref:`Orthanc Explorer <orthanc-explorer>` (possibly
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
371 its AET).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
372 2. The AET of the remote server.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
373 3. Its IP address or its hostname.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
374 4. Its DICOM port (most probably 104, or 4242 if the remote server is
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
375 another instance of Orthanc).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
376
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
377 Of course, after any change to the configuration of Orthanc, the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
378 software must be restarted to take the new parameters into account.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
379
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
380
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
381 .. _dicom-echo:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
382
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
383 C-Echo: Testing connectivity
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
384 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
385
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
386 Routers might block the DICOM protocol between separate `subnets
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
387 <https://en.wikipedia.org/wiki/Subnetwork>`__ (often, only the HTTP,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
388 HTTPS and SSH protocols are enabled by default). Furthermore, the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
389 firewalls that are installed on the clients or on the servers might
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
390 also block the DICOM protocol. This is especially true for the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
391 `Microsoft Windows firewall
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
392 <https://en.wikipedia.org/wiki/Windows_Firewall>`__ and for
42
a52f1dc48ebc GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
393 :ref:`RedHat-based GNU/Linux boxes <redhat>`. As a consequence, after
a52f1dc48ebc GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
394 any change in the DICOM topology of an hospital (notably when
a52f1dc48ebc GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
395 connecting two imaging devices), one should always check whether the
a52f1dc48ebc GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
396 DICOM protocol can travel from end to end, i.e. between the DICOM
a52f1dc48ebc GNU/Linux
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
397 client and the DICOM server.
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
398
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
399 This is where the **DICOM Echo service** comes into play. This service
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
400 is triggered when the client sends a so-called ``C-Echo`` command to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
401 the server as its DICOM query. The server answers with an empty DICOM
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
402 answer. In practice, to test the connectivity between two devices, you
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
403 should:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
404
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
405 1. Use the standard command-line tool ``ping`` to test the **TCP-level
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
406 connectivity** between the client and the server, then
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
407 2. Issue the **C-Echo** from the client to the server to test the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
408 DICOM-level connectivity.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
409
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
410 The second step can be done directly from :ref:`Orthanc Explorer
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
411 <orthanc-explorer>`, the embedded administrative interface of Orthanc,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
412 in the "*Query/Retrieve*" panel, as depicted below:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
413
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
414 .. image:: images/Echo.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
415 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
416 :width: 450px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
417
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
418 |
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
419
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
420 In this screenshot, ``sample`` corresponds to the symbolic name of a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
421 DICOM server that is declared in the ``DicomModalities``
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
422 :ref:`configuration option <configuration>`. Once DICOM Echo succeeds,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
423 the client should be able to send images to the server, and to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
424 initiate a query/retrieve. This is the topic of the following
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
425 sections.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
426
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
427
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
428 .. _dicom-store:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
429
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
430 C-Store: Sending images to a server
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
431 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
432
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
433 The **DICOM Store Service** is used to send DICOM instances to a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
434 remote imaging device. This service is triggered when the client sends
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
435 to the server a so-called ``C-Store`` command together with the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
436 content of a DICOM instance. Schematically, C-Store works as follows:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
437
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
438 .. image:: images/CStore.svg
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
439 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
440 :width: 500px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
441
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
442 Orthanc can act both as a C-Store client (SCU) or as a C-Store server
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
443 (SCP). In other words, it can either send or receive DICOM files.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
444
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
445 In the :ref:`Orthanc Explorer <orthanc-explorer>` interface, each
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
446 DICOM resource (patient, study, series or instance) comes with a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
447 button entitled "*Send to remote modality*". Clicking on this button
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
448 allows to send the image to any DICOM server that is declared in the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
449 ``DicomModalities`` :ref:`configuration option <configuration>`. In
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
450 the following screenshot, all the instances of one patient will be
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
451 sent to the device whose symbolic name is ``sample``:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
452
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
453 .. image:: images/CStoreGui.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
454 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
455 :width: 450px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
456
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
457
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
458 .. _dicom-find:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
459
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
460 C-Find: Browsing the content of a server
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
461 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
462
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
463 The **DICOM Find Service** is used to **search** a list of DICOM
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
464 resources that are hosted by some remote DICOM server. The kind of
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
465 resource that is looked for (patients, studies or series) must be
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
466 specified, leading to the **query level** of the query. Besides the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
467 query level, the query contains a set of filters on DICOM tags of
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
468 interest: These filters are essentially `wildcards
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
469 <https://en.wikipedia.org/wiki/Glob_(programming)>`__ describing the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
470 resources that are looked for. This service is triggered when the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
471 client sends to the server a so-called ``C-Find`` command that encodes
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
472 the query level and the filters. Schematically, C-Find works as
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
473 follows:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
474
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
475 .. image:: images/CFind.svg
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
476 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
477 :width: 500px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
478
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
479 Orthanc can act both as a C-Find client (SCU) or as a C-Find server
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
480 (SCP). In other words, it can be used to search the content of a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
481 remote server, and conversely it can inform a remote client about its
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
482 own content.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
483
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
484 In the :ref:`Orthanc Explorer <orthanc-explorer>` interface, it
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
485 is possible to initiate a search at the study level. This feature
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
486 is available in the "*Query/Retrieve*" panel, as depicted below:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
487
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
488 .. image:: images/CFindGui1.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
489 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
490 :width: 500px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
491
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
492 |
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
493
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
494 This screenshot shows that we are looking for a study whose associated
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
495 patient has a name that starts with "*Brain*", and that is of MR
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
496 modality. Orthanc Explorer then lists the matching studies:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
497
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
498 .. image:: images/CFindGui2.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
499 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
500 :width: 500px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
501
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
502 |
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
503
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
504 It is then possible to click on some matching study, to list the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
505 individual series it is made of:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
506
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
507 .. image:: images/CFindGui3.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
508 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
509 :width: 500px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
510
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
511
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
512 .. _dicom-move:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
513
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
514 C-Move: Query/retrieve
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
515 ^^^^^^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
516
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
517 This brings us to the last important component of the DICOM network
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
518 protocol, the **DICOM Move Service**. This service is notably used to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
519 locally retrieve DICOM files from a remote server, given the results
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
520 of a :ref:`C-Find query <dicom-find>`. Taken together, ``C-Find`` and
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
521 ``C-Move`` give rise to the **query/retrieve** mechanism at is at the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
522 core of the exchange of DICOM files within the hospital.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
523
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
524 C-Move is probably the part of the DICOM standard that is the less
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
525 intuitive, which leads to many configuration problems in medical
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
526 imaging networks. This stems from the fact that C-Move is actually not
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
527 limited to query/retrieve. It is a more generic protocol that can
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
528 involve up to **3 distinct imaging devices**, as depicted below:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
529
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
530 .. image:: images/CMove.svg
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
531 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
532 :width: 500px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
533
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
534 Whenever an imaging device (called the *issuer* above) initiates a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
535 C-Move command, it asks a DICOM server (called the *source* above) to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
536 send some of its images to another DICOM server (called the *target*
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
537 above). Accordingly, a C-Move command encodes the :ref:`identifiers
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
538 <dicom-identifiers>` of the DICOM resources to be sent, together with
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
539 the AET of the target server. To put it in other words, a C-Move
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
540 command drives a **C-Store between two remote DICOM servers** (the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
541 *source* and the *target*).
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
542
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
543 The query/retrieve mechanism corresponds to the special case of a
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
544 C-Move command where the target and the issuer are the same imaging
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
545 device. The most common configuration problem for query/retrieve is
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
546 therefore to forget to declare the AET of the "*issuer/target*" device
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
547 into the configuration of the "*source*" device.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
548
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
549 Orthanc can act both as a C-Move client (SCU) or as a C-Move server
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
550 (SCP). This implies that Orthanc can either initiate a query/retrieve,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
551 or be driven as part of a query/retrieve request. You might want to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
552 give a look at the ":ref:`query-retrieve`" section of this book to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
553 learn how to concretely configure Orthanc for query/retrieve.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
554
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
555 A C-Move session can be initiated from the :ref:`Orthanc Explorer
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
556 <orthanc-explorer>` interface, after a :ref:`C-Find query
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
557 <dicom-find>` is complete. It is sufficient to click on the download
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
558 button that is to the right of the study or series of interest:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
559
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
560 .. image:: images/CMoveGui1.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
561 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
562 :width: 500px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
563
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
564 |
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
565
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
566 A dialog box then pops up, asking the AET of the *target* modality.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
567 By default, this field is pre-filled with the AET of Orthanc, which
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
568 corresponds to the initiation of a query/retrieve:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
569
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
570 .. image:: images/CMoveGui2.png
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
571 :align: center
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
572 :width: 500px
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
573
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
574 |
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
575
9
6e99967d3503 C-GET is not deprecated
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
576 *Note 1:* Even if C-Move may seem counter-intuitive, this is the most
6e99967d3503 C-GET is not deprecated
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 0
diff changeset
577 popular and widespread way to initiate a query/retrieve against a PACS
421
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
578 server. The DICOM standard features an alternative mechanism called
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
579 :ref:`DICOM C-Get <dicom-get>` that has been introduced in Orthanc
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
580 1.7.0 (see below).
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
581
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
582 *Note 2:* As :ref:`written above <dicom-pixel-data>`, the Orthanc
427
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
583 engine is quite generic and is compatible with many image compression
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
584 algorithms (aka. transfer syntax). In particular, during the
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
585 :ref:`negotiation of a presentation context
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
586 <dicom-protocol-overview>`, Orthanc reports by default that it is
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
587 compatible with the JPEG 2000 encoding. This leads some PACS engines
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
588 to compress their images before sending them to Orthanc, so as to
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
589 reduce the network bandwidth. Unfortunately, because many medical
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
590 image analysis software are not compatible with such an image
427
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
591 compression, the JPEG 2000 image that is received by Orthanc might not
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
592 be usable by such software. Check out the :ref:`FAQ about DICOM
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
593 transcoding <transcoding>` for more information about converting
71281b540ca1 updating old documentation about transcoding
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 421
diff changeset
594 between transfer syntaxes over the DICOM protocol.
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
595
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
596
412
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
597 .. _dicom-get:
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
598
421
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
599 C-Get: Retrieve with one single SCP
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
600 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
601
430
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
602 Orthanc 1.7.0 introduces support for DICOM C-Get SCP. DICOM C-Get
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
603 provides a simpler alternative to DICOM C-Move, if the *issuer* and
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
604 the *target* (as depicted in the section about :ref:`C-Move
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
605 <dicom-move>`) correspond to the same modality:
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
606
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
607 .. image:: images/CGet.svg
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
608 :align: center
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
609 :width: 500px
421
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
610
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
611 In the case of C-Get, contrarily to C-Move, the *target* modality
430
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
612 doesn't need to act as a C-Store SCP: The requested data is sent
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
613 directly back to the client over the same DICOM association the C-Get
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
614 request is made on. Therefore C-Get request does not depend on
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
615 separate associations being established to move DICOM from a remove
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
616 source to a remove target. Instead C-Get "turns around" the same
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
617 connection on which the request is made, and re-uses the connection to
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
618 receive the inbound C-Store operation.
412
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
619
430
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
620 This has advantage of simplifying the design of the SCU (only one
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
621 DICOM server is needed in the *source* modality), and to ease the
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
622 network configuration (instead of being bidirectional as in
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
623 query/retrieve through C-Move, C-Get is unidirectional from *issuer*
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
624 to *source*, which simplifies firewall rules). Nevertheless, C-Get is
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
625 less generic than C-Move and less often encountered in clinical PACS
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
626 workflow. It is more often used by DICOM viewers. Also note that
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
627 :ref:`DICOMweb WADO-RS <dicomweb>` is designed for the same kind of
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
628 use cases than C-Get.
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
629
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
630 For a complete description of the C-Get DICOM Request and a review of
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
631 the advantages of C-Get over C-Move, have a look at `David Clunie's
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
632 dedicated blog post
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
633 <http://dclunie.blogspot.be/2016/05/to-c-move-is-human-to-c-get-divine.html>`__.
421
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
634
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
635 .. highlight:: json
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
636
430
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
637 In practice, to retrieve DICOM instances using C-Get, you must provide
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
638 one ore more of the unique key attributes (``PatientID``,
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
639 ``StudyInstanceUID``, ``SeriesInstanceUID`` or
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
640 ``SOPInstanceUID``). This information can for instance be retrieved
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
641 through a :ref:`C-Find request <dicom-find>`. As an example, let us
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
642 consider the following minimalist :ref:`Orthanc configuration
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
643 <configuration>`::
412
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
644
421
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
645 {
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
646 "DicomModalities" : {
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
647 "getscu" : [ "GETSCU", "localhost", 2000 ]
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
648 }
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
649 }
412
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
650
421
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
651 .. highlight:: text
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
652
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
653 Given this configuration, here is a sample command-line to call the
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
654 C-Get SCP of Orthanc using the `DCMTK
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
655 <https://support.dcmtk.org/docs/dcmconv.html>`__ toolkit, given some
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
656 known ``StudyInstanceUID``::
412
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
657
421
e0b4b88446a8 expanded notes about c-get
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 413
diff changeset
658 $ getscu -v localhost 4242 -aec ORTHANC -k "0008,0052=STUDY" -k "0020,000d=1.2.840.113543.6.6.4.7.64067529866380271256212683512383713111129"
412
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
659
528
50bdd7c7e9b9 Orthanc 1.8.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 513
diff changeset
660 *Note:* As of Orthanc 1.8.0, Orthanc implements C-Get as a service
430
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
661 class provider (SCP). Using C-Get as a service class user (SCU) is not
c3e73c00ef48 adding explanations about C-Get from Varian
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 427
diff changeset
662 currently supported in Orthanc.
412
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
663
969d50e63b17 first info about c-get
Alain Mazy <alain@mazy.be>
parents: 360
diff changeset
664
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
665
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
666 Using HTTP instead of the DICOM protocol
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
667 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
668
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
669 We conclude this brief overview of DICOM by insisting on the fact that
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
670 the **DICOM protocol inherently targets the Intranet** of a single
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
671 hospital, not the Internet or the cloud. This protocol might be
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
672 blocked by outbound firewalls, and there is no convention ensuring
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
673 that the AETs are globally unique across all the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
674 hospitals. Furthermore, even though the DICOM protocol supports TLS
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
675 encryption, this feature is rarely enabled.
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
676
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
677 Depending on your application, you might therefore want to leverage
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
678 the **HTTP protocol** in the context of DICOM. Such Web-based
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
679 protocols are probably more familiar to physicians/physicists/software
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
680 engineers, are easier to work with, can be transparently encrypted
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
681 (**HTTPS**), and are compatible with multiple-hospital scenarios. To
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
682 this end, you have two possibilities:
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
683
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
684 1. Resort to the :ref:`Orthanc peer <peers>` mechanism. Because each
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
685 Orthanc server comes with its built-in :ref:`REST API <rest>`,
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
686 remote systems can obtain a full programmatic control over the
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
687 content of Orthanc. This access can be secured by HTTP
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
688 authentication and :ref:`SSL encryption <https>`. The :ref:`Orthanc
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
689 Explorer <orthanc-explorer>` interface can transparently use this
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
690 peer mechanism to send DICOM files over HTTP(S).
358
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
691 2. Resort to the `DICOMweb standard
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
692 <https://www.dicomstandard.org/dicomweb/>`__, that is an extension
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
693 to the DICOM standard specifying how to access the content of a
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
694 remote DICOM server through HTTP(S). Because the peer mechanism is
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
695 bound to Orthanc, DICOMweb offers a less expressive, but more
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
696 generic access to remote servers. Importantly, a `DICOMweb plugin
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
697 to Orthanc
011b01ccf52d fixing external hyperlinks
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 238
diff changeset
698 <https://www.orthanc-server.com/static.php?page=dicomweb>`__ is
0
901e8961f46e initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
699 freely available.