Mercurial > hg > orthanc
annotate OrthancFramework/Sources/DicomFormat/DicomTag.h @ 4936:8422e4f99a18 more-tags
Handling RequestedTags in ExpandResource -> read parent main dicom tags if required. Not yet getting missing tags from file. Integration tests ok
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 11 Mar 2022 17:38:16 +0100 |
parents | b7ce2bb6b881 |
children | f377d5643538 |
rev | line source |
---|---|
0 | 1 /** |
59 | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
1900 | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
1288
6e7e5ed91c2d
upgrade to year 2015
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1279
diff
changeset
|
4 * Department, University Hospital of Liege, Belgium |
4870
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium |
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
0 | 7 * |
8 * This program is free software: you can redistribute it and/or | |
4119
bf7b9edf6b81
re-licensing the OrthancFramework to LGPL, in order to license Stone of Orthanc under LGPL
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
9 * modify it under the terms of the GNU Lesser General Public License |
bf7b9edf6b81
re-licensing the OrthancFramework to LGPL, in order to license Stone of Orthanc under LGPL
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
10 * as published by the Free Software Foundation, either version 3 of |
bf7b9edf6b81
re-licensing the OrthancFramework to LGPL, in order to license Stone of Orthanc under LGPL
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
11 * the License, or (at your option) any later version. |
136 | 12 * |
0 | 13 * This program is distributed in the hope that it will be useful, but |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
4119
bf7b9edf6b81
re-licensing the OrthancFramework to LGPL, in order to license Stone of Orthanc under LGPL
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
16 * Lesser General Public License for more details. |
0 | 17 * |
4119
bf7b9edf6b81
re-licensing the OrthancFramework to LGPL, in order to license Stone of Orthanc under LGPL
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
18 * You should have received a copy of the GNU Lesser General Public |
bf7b9edf6b81
re-licensing the OrthancFramework to LGPL, in order to license Stone of Orthanc under LGPL
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
19 * License along with this program. If not, see |
bf7b9edf6b81
re-licensing the OrthancFramework to LGPL, in order to license Stone of Orthanc under LGPL
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
20 * <http://www.gnu.org/licenses/>. |
0 | 21 **/ |
22 | |
23 | |
24 #pragma once | |
25 | |
26 #include <string> | |
961 | 27 #include <set> |
0 | 28 #include <stdint.h> |
29 | |
4349
85237ae3a076
relax CheckOrthancFrameworkSymbols.py about one friend stream function
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4348
diff
changeset
|
30 #include "../Compatibility.h" |
961 | 31 #include "../Enumerations.h" |
0 | 32 |
59 | 33 namespace Orthanc |
0 | 34 { |
4041 | 35 class ORTHANC_PUBLIC DicomTag |
0 | 36 { |
37 // This must stay a POD (plain old data structure) | |
38 | |
39 private: | |
40 uint16_t group_; | |
41 uint16_t element_; | |
42 | |
43 public: | |
44 DicomTag(uint16_t group, | |
4297 | 45 uint16_t element); |
46 | |
47 uint16_t GetGroup() const; | |
0 | 48 |
4297 | 49 uint16_t GetElement() const; |
0 | 50 |
4297 | 51 bool IsPrivate() const; |
1818
1065401501fb
ParsedDicomFile::CreateFromJson
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1755
diff
changeset
|
52 |
0 | 53 bool operator< (const DicomTag& other) const; |
54 | |
4218
8e069a7e1c11
validation against orthanc-tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4143
diff
changeset
|
55 bool operator<= (const DicomTag& other) const; |
8e069a7e1c11
validation against orthanc-tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4143
diff
changeset
|
56 |
4297 | 57 bool operator> (const DicomTag& other) const; |
4218
8e069a7e1c11
validation against orthanc-tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4143
diff
changeset
|
58 |
4297 | 59 bool operator>= (const DicomTag& other) const; |
4218
8e069a7e1c11
validation against orthanc-tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4143
diff
changeset
|
60 |
4297 | 61 bool operator== (const DicomTag& other) const; |
106 | 62 |
4297 | 63 bool operator!= (const DicomTag& other) const; |
106 | 64 |
35
f6d12037f886
full json vs. simplified json
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
0
diff
changeset
|
65 std::string Format() const; |
f6d12037f886
full json vs. simplified json
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
0
diff
changeset
|
66 |
4313
91554aecff9a
removed a friend method for better abi
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4297
diff
changeset
|
67 std::ostream& FormatStream(std::ostream& o) const; |
91554aecff9a
removed a friend method for better abi
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4297
diff
changeset
|
68 |
2662
47d812308d63
serialization of DicomModification
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2521
diff
changeset
|
69 static bool ParseHexadecimal(DicomTag& tag, |
47d812308d63
serialization of DicomModification
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2521
diff
changeset
|
70 const char* value); |
47d812308d63
serialization of DicomModification
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2521
diff
changeset
|
71 |
1368 | 72 static void AddTagsForModule(std::set<DicomTag>& target, |
1276
6164f7200c43
refactoring modules
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1162
diff
changeset
|
73 DicomModule module); |
4348
93c281752e7a
reintroduced backward ABI compatibility in Orthanc Framework .so for unit tests of Orthanc 1.7.2 to 1.8.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4319
diff
changeset
|
74 |
93c281752e7a
reintroduced backward ABI compatibility in Orthanc Framework .so for unit tests of Orthanc 1.7.2 to 1.8.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4319
diff
changeset
|
75 #if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1 |
4350
e457c30970cf
fix ORTHANC_DEPRECATED macro for C++14
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4349
diff
changeset
|
76 ORTHANC_PUBLIC ORTHANC_DEPRECATED(friend std::ostream& operator<<(std::ostream& o, const DicomTag& tag)); |
4348
93c281752e7a
reintroduced backward ABI compatibility in Orthanc Framework .so for unit tests of Orthanc 1.7.2 to 1.8.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4319
diff
changeset
|
77 #endif |
80 | 78 }; |
77 | 79 |
80 | 80 // Aliases for the most useful tags |
81 static const DicomTag DICOM_TAG_ACCESSION_NUMBER(0x0008, 0x0050); | |
82 static const DicomTag DICOM_TAG_SOP_INSTANCE_UID(0x0008, 0x0018); | |
83 static const DicomTag DICOM_TAG_PATIENT_ID(0x0010, 0x0020); | |
84 static const DicomTag DICOM_TAG_SERIES_INSTANCE_UID(0x0020, 0x000e); | |
85 static const DicomTag DICOM_TAG_STUDY_INSTANCE_UID(0x0020, 0x000d); | |
86 static const DicomTag DICOM_TAG_PIXEL_DATA(0x7fe0, 0x0010); | |
2189
c4b3259c8bce
New metadata automatically computed at the instance level: "TransferSyntax"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1900
diff
changeset
|
87 static const DicomTag DICOM_TAG_TRANSFER_SYNTAX_UID(0x0002, 0x0010); |
77 | 88 |
80 | 89 static const DicomTag DICOM_TAG_IMAGE_INDEX(0x0054, 0x1330); |
90 static const DicomTag DICOM_TAG_INSTANCE_NUMBER(0x0020, 0x0013); | |
91 | |
92 static const DicomTag DICOM_TAG_NUMBER_OF_SLICES(0x0054, 0x0081); | |
433 | 93 static const DicomTag DICOM_TAG_NUMBER_OF_TIME_SLICES(0x0054, 0x0101); |
80 | 94 static const DicomTag DICOM_TAG_NUMBER_OF_FRAMES(0x0028, 0x0008); |
95 static const DicomTag DICOM_TAG_CARDIAC_NUMBER_OF_IMAGES(0x0018, 0x1090); | |
96 static const DicomTag DICOM_TAG_IMAGES_IN_ACQUISITION(0x0020, 0x1002); | |
106 | 97 static const DicomTag DICOM_TAG_PATIENT_NAME(0x0010, 0x0010); |
1556
b8dc2f855a83
Preview of PDF files encapsulated in DICOM from Orthanc Explorer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
98 static const DicomTag DICOM_TAG_ENCAPSULATED_DOCUMENT(0x0042, 0x0011); |
303
c76a35a85c69
ready for anonymization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
291
diff
changeset
|
99 |
1716
2ca7888f8600
refactoring DicomIdentifiers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1702
diff
changeset
|
100 static const DicomTag DICOM_TAG_STUDY_DESCRIPTION(0x0008, 0x1030); |
2ca7888f8600
refactoring DicomIdentifiers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1702
diff
changeset
|
101 static const DicomTag DICOM_TAG_SERIES_DESCRIPTION(0x0008, 0x103e); |
1755
39c37a994b2f
handling of DICOM_TAG_MODALITIES_IN_STUDY
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1725
diff
changeset
|
102 static const DicomTag DICOM_TAG_MODALITY(0x0008, 0x0060); |
1716
2ca7888f8600
refactoring DicomIdentifiers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1702
diff
changeset
|
103 |
1279
7f3a65e84d4b
More flexible /modify and /anonymize for single instance
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1276
diff
changeset
|
104 // The following is used for "modify/anonymize" operations |
303
c76a35a85c69
ready for anonymization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
291
diff
changeset
|
105 static const DicomTag DICOM_TAG_SOP_CLASS_UID(0x0008, 0x0016); |
c76a35a85c69
ready for anonymization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
291
diff
changeset
|
106 static const DicomTag DICOM_TAG_MEDIA_STORAGE_SOP_CLASS_UID(0x0002, 0x0002); |
c76a35a85c69
ready for anonymization
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
291
diff
changeset
|
107 static const DicomTag DICOM_TAG_MEDIA_STORAGE_SOP_INSTANCE_UID(0x0002, 0x0003); |
1279
7f3a65e84d4b
More flexible /modify and /anonymize for single instance
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1276
diff
changeset
|
108 static const DicomTag DICOM_TAG_DEIDENTIFICATION_METHOD(0x0012, 0x0063); |
433 | 109 |
441 | 110 // DICOM tags used for fMRI (thanks to Will Ryder) |
433 | 111 static const DicomTag DICOM_TAG_NUMBER_OF_TEMPORAL_POSITIONS(0x0020, 0x0105); |
112 static const DicomTag DICOM_TAG_TEMPORAL_POSITION_IDENTIFIER(0x0020, 0x0100); | |
559 | 113 |
114 // Tags for C-FIND and C-MOVE | |
2222
21713ce8717b
Fix handling of Move Originator AET and ID in C-MOVE SCP
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2189
diff
changeset
|
115 static const DicomTag DICOM_TAG_MESSAGE_ID(0x0000, 0x0110); |
559 | 116 static const DicomTag DICOM_TAG_SPECIFIC_CHARACTER_SET(0x0008, 0x0005); |
117 static const DicomTag DICOM_TAG_QUERY_RETRIEVE_LEVEL(0x0008, 0x0052); | |
611
9924aec1d694
filtering on modalities
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
559
diff
changeset
|
118 static const DicomTag DICOM_TAG_MODALITIES_IN_STUDY(0x0008, 0x0061); |
4143
1ec3e1e18f50
Add missing tag "Retrieve AE Title (0008,0054)" in C-FIND SCP responses
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4119
diff
changeset
|
119 static const DicomTag DICOM_TAG_RETRIEVE_AE_TITLE(0x0008, 0x0054); |
800
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
120 |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
121 // Tags for images |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
122 static const DicomTag DICOM_TAG_COLUMNS(0x0028, 0x0011); |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
123 static const DicomTag DICOM_TAG_ROWS(0x0028, 0x0010); |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
124 static const DicomTag DICOM_TAG_SAMPLES_PER_PIXEL(0x0028, 0x0002); |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
125 static const DicomTag DICOM_TAG_BITS_ALLOCATED(0x0028, 0x0100); |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
126 static const DicomTag DICOM_TAG_BITS_STORED(0x0028, 0x0101); |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
127 static const DicomTag DICOM_TAG_HIGH_BIT(0x0028, 0x0102); |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
128 static const DicomTag DICOM_TAG_PIXEL_REPRESENTATION(0x0028, 0x0103); |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
129 static const DicomTag DICOM_TAG_PLANAR_CONFIGURATION(0x0028, 0x0006); |
ecedd89055db
generation of DICOM images from PNG files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
130 static const DicomTag DICOM_TAG_PHOTOMETRIC_INTERPRETATION(0x0028, 0x0004); |
1702
9980875edc7c
started work on SliceOrdering
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1556
diff
changeset
|
131 static const DicomTag DICOM_TAG_IMAGE_ORIENTATION_PATIENT(0x0020, 0x0037); |
9980875edc7c
started work on SliceOrdering
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1556
diff
changeset
|
132 static const DicomTag DICOM_TAG_IMAGE_POSITION_PATIENT(0x0020, 0x0032); |
3573
8ec7d82ed666
DICOM_TAG_LARGEST_IMAGE_PIXEL_VALUE and DICOM_TAG_SMALLEST_IMAGE_PIXEL_VALUE
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3556
diff
changeset
|
133 static const DicomTag DICOM_TAG_LARGEST_IMAGE_PIXEL_VALUE(0x0028, 0x0107); |
8ec7d82ed666
DICOM_TAG_LARGEST_IMAGE_PIXEL_VALUE and DICOM_TAG_SMALLEST_IMAGE_PIXEL_VALUE
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3556
diff
changeset
|
134 static const DicomTag DICOM_TAG_SMALLEST_IMAGE_PIXEL_VALUE(0x0028, 0x0106); |
1555
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
135 |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
136 // Tags related to date and time |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
137 static const DicomTag DICOM_TAG_ACQUISITION_DATE(0x0008, 0x0022); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
138 static const DicomTag DICOM_TAG_ACQUISITION_TIME(0x0008, 0x0032); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
139 static const DicomTag DICOM_TAG_CONTENT_DATE(0x0008, 0x0023); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
140 static const DicomTag DICOM_TAG_CONTENT_TIME(0x0008, 0x0033); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
141 static const DicomTag DICOM_TAG_INSTANCE_CREATION_DATE(0x0008, 0x0012); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
142 static const DicomTag DICOM_TAG_INSTANCE_CREATION_TIME(0x0008, 0x0013); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
143 static const DicomTag DICOM_TAG_PATIENT_BIRTH_DATE(0x0010, 0x0030); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
144 static const DicomTag DICOM_TAG_PATIENT_BIRTH_TIME(0x0010, 0x0032); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
145 static const DicomTag DICOM_TAG_SERIES_DATE(0x0008, 0x0021); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
146 static const DicomTag DICOM_TAG_SERIES_TIME(0x0008, 0x0031); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
147 static const DicomTag DICOM_TAG_STUDY_DATE(0x0008, 0x0020); |
d6a93e12b1c1
Creation of DICOM files with encapsulated PDF
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1429
diff
changeset
|
148 static const DicomTag DICOM_TAG_STUDY_TIME(0x0008, 0x0030); |
1841
5d8134e54c03
DICOM_TAG_SERIES_TYPE
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1818
diff
changeset
|
149 |
5d8134e54c03
DICOM_TAG_SERIES_TYPE
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1818
diff
changeset
|
150 // Various tags |
5d8134e54c03
DICOM_TAG_SERIES_TYPE
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1818
diff
changeset
|
151 static const DicomTag DICOM_TAG_SERIES_TYPE(0x0054, 0x1000); |
1848
e39716f71d67
new main dicom tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1841
diff
changeset
|
152 static const DicomTag DICOM_TAG_REQUESTED_PROCEDURE_DESCRIPTION(0x0032, 0x1060); |
e39716f71d67
new main dicom tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1841
diff
changeset
|
153 static const DicomTag DICOM_TAG_INSTITUTION_NAME(0x0008, 0x0080); |
e39716f71d67
new main dicom tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1841
diff
changeset
|
154 static const DicomTag DICOM_TAG_REQUESTING_PHYSICIAN(0x0032, 0x1032); |
e39716f71d67
new main dicom tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1841
diff
changeset
|
155 static const DicomTag DICOM_TAG_REFERRING_PHYSICIAN_NAME(0x0008, 0x0090); |
e39716f71d67
new main dicom tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1841
diff
changeset
|
156 static const DicomTag DICOM_TAG_OPERATOR_NAME(0x0008, 0x1070); |
e39716f71d67
new main dicom tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1841
diff
changeset
|
157 static const DicomTag DICOM_TAG_PERFORMED_PROCEDURE_STEP_DESCRIPTION(0x0040, 0x0254); |
e39716f71d67
new main dicom tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1841
diff
changeset
|
158 static const DicomTag DICOM_TAG_IMAGE_COMMENTS(0x0020, 0x4000); |
1850
68854412c7bc
new main dicomtags: AcquisitionDeviceProcessingDescription and ContrastBolusAgent
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1848
diff
changeset
|
159 static const DicomTag DICOM_TAG_ACQUISITION_DEVICE_PROCESSING_DESCRIPTION(0x0018, 0x1400); |
3207 | 160 static const DicomTag DICOM_TAG_ACQUISITION_DEVICE_PROCESSING_CODE(0x0018, 0x1401); |
161 static const DicomTag DICOM_TAG_CASSETTE_ORIENTATION(0x0018, 0x1402); | |
162 static const DicomTag DICOM_TAG_CASSETTE_SIZE(0x0018, 0x1403); | |
1850
68854412c7bc
new main dicomtags: AcquisitionDeviceProcessingDescription and ContrastBolusAgent
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1848
diff
changeset
|
163 static const DicomTag DICOM_TAG_CONTRAST_BOLUS_AGENT(0x0018, 0x0010); |
2910
83133583183d
minor fixes if embedding images within DICOM
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2662
diff
changeset
|
164 static const DicomTag DICOM_TAG_STUDY_ID(0x0020, 0x0010); |
83133583183d
minor fixes if embedding images within DICOM
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2662
diff
changeset
|
165 static const DicomTag DICOM_TAG_SERIES_NUMBER(0x0020, 0x0011); |
83133583183d
minor fixes if embedding images within DICOM
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2662
diff
changeset
|
166 static const DicomTag DICOM_TAG_PATIENT_SEX(0x0010, 0x0040); |
83133583183d
minor fixes if embedding images within DICOM
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2662
diff
changeset
|
167 static const DicomTag DICOM_TAG_LATERALITY(0x0020, 0x0060); |
83133583183d
minor fixes if embedding images within DICOM
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2662
diff
changeset
|
168 static const DicomTag DICOM_TAG_BODY_PART_EXAMINED(0x0018, 0x0015); |
4932
b7ce2bb6b881
refactored the list of MainDicomTags to be able to change it dynamicaly. Unit tests and Integration tests ok
Alain Mazy <am@osimis.io>
parents:
4870
diff
changeset
|
169 static const DicomTag DICOM_TAG_SEQUENCE_NAME(0x0018, 0x0024); |
b7ce2bb6b881
refactored the list of MainDicomTags to be able to change it dynamicaly. Unit tests and Integration tests ok
Alain Mazy <am@osimis.io>
parents:
4870
diff
changeset
|
170 static const DicomTag DICOM_TAG_PROTOCOL_NAME(0x0018, 0x1030); |
2910
83133583183d
minor fixes if embedding images within DICOM
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2662
diff
changeset
|
171 static const DicomTag DICOM_TAG_VIEW_POSITION(0x0018, 0x5101); |
83133583183d
minor fixes if embedding images within DICOM
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2662
diff
changeset
|
172 static const DicomTag DICOM_TAG_MANUFACTURER(0x0008, 0x0070); |
4932
b7ce2bb6b881
refactored the list of MainDicomTags to be able to change it dynamicaly. Unit tests and Integration tests ok
Alain Mazy <am@osimis.io>
parents:
4870
diff
changeset
|
173 static const DicomTag DICOM_TAG_STATION_NAME(0x0008, 0x1010); |
2910
83133583183d
minor fixes if embedding images within DICOM
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2662
diff
changeset
|
174 static const DicomTag DICOM_TAG_PATIENT_ORIENTATION(0x0020, 0x0020); |
2937 | 175 static const DicomTag DICOM_TAG_PATIENT_COMMENTS(0x0010, 0x4000); |
176 static const DicomTag DICOM_TAG_PATIENT_SPECIES_DESCRIPTION(0x0010, 0x2201); | |
177 static const DicomTag DICOM_TAG_STUDY_COMMENTS(0x0032, 0x4000); | |
3651
46cb00e4adbb
DicomMap::DumpMainDicomTags() and DicomMap::ParseMainDicomTags()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
178 static const DicomTag DICOM_TAG_OTHER_PATIENT_IDS(0x0010, 0x1000); |
4771
9f207131c7f4
added ParsedDicomFile::LookupSubSequence()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4696
diff
changeset
|
179 static const DicomTag DICOM_TAG_PER_FRAME_FUNCTIONAL_GROUP_SEQUENCE(0x5200, 0x9230); |
9f207131c7f4
added ParsedDicomFile::LookupSubSequence()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4696
diff
changeset
|
180 static const DicomTag DICOM_TAG_PIXEL_VALUE_TRANSFORMATION_SEQUENCE(0x0028, 0x9145); |
9f207131c7f4
added ParsedDicomFile::LookupSubSequence()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4696
diff
changeset
|
181 static const DicomTag DICOM_TAG_FRAME_VOI_LUT_SEQUENCE(0x0028, 0x9132); |
4932
b7ce2bb6b881
refactored the list of MainDicomTags to be able to change it dynamicaly. Unit tests and Integration tests ok
Alain Mazy <am@osimis.io>
parents:
4870
diff
changeset
|
182 static const DicomTag DICOM_TAG_ACQUISITION_NUMBER(0x0020, 0x0012); |
2414 | 183 |
184 // Tags used within the Stone of Orthanc | |
2413
a315c5a0403a
handy shortcuts in DicomMap
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2244
diff
changeset
|
185 static const DicomTag DICOM_TAG_FRAME_INCREMENT_POINTER(0x0028, 0x0009); |
2414 | 186 static const DicomTag DICOM_TAG_GRID_FRAME_OFFSET_VECTOR(0x3004, 0x000c); |
2413
a315c5a0403a
handy shortcuts in DicomMap
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2244
diff
changeset
|
187 static const DicomTag DICOM_TAG_PIXEL_SPACING(0x0028, 0x0030); |
2414 | 188 static const DicomTag DICOM_TAG_RESCALE_INTERCEPT(0x0028, 0x1052); |
189 static const DicomTag DICOM_TAG_RESCALE_SLOPE(0x0028, 0x1053); | |
190 static const DicomTag DICOM_TAG_SLICE_THICKNESS(0x0018, 0x0050); | |
191 static const DicomTag DICOM_TAG_WINDOW_CENTER(0x0028, 0x1050); | |
192 static const DicomTag DICOM_TAG_WINDOW_WIDTH(0x0028, 0x1051); | |
193 static const DicomTag DICOM_TAG_DOSE_GRID_SCALING(0x3004, 0x000e); | |
3523 | 194 static const DicomTag DICOM_TAG_RED_PALETTE_COLOR_LOOKUP_TABLE_DATA(0x0028, 0x1201); |
195 static const DicomTag DICOM_TAG_GREEN_PALETTE_COLOR_LOOKUP_TABLE_DATA(0x0028, 0x1202); | |
196 static const DicomTag DICOM_TAG_BLUE_PALETTE_COLOR_LOOKUP_TABLE_DATA(0x0028, 0x1203); | |
197 static const DicomTag DICOM_TAG_RED_PALETTE_COLOR_LOOKUP_TABLE_DESCRIPTOR(0x0028, 0x1101); | |
198 static const DicomTag DICOM_TAG_GREEN_PALETTE_COLOR_LOOKUP_TABLE_DESCRIPTOR(0x0028, 0x1102); | |
199 static const DicomTag DICOM_TAG_BLUE_PALETTE_COLOR_LOOKUP_TABLE_DESCRIPTOR(0x0028, 0x1103); | |
3574
1fc578f9f01b
DICOM_TAG_CONTOUR_DATA
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3573
diff
changeset
|
200 static const DicomTag DICOM_TAG_CONTOUR_DATA(0x3006, 0x0050); |
4319
3b8a868616a8
added DICOM_TAG_CINE_RATE
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4313
diff
changeset
|
201 static const DicomTag DICOM_TAG_CINE_RATE(0x0018, 0x0040); |
3523 | 202 |
1898
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
203 // Counting patients, studies and series |
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
204 // https://www.medicalconnections.co.uk/kb/Counting_Studies_Series_and_Instances |
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
205 static const DicomTag DICOM_TAG_NUMBER_OF_PATIENT_RELATED_STUDIES(0x0020, 0x1200); |
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
206 static const DicomTag DICOM_TAG_NUMBER_OF_PATIENT_RELATED_SERIES(0x0020, 0x1202); |
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
207 static const DicomTag DICOM_TAG_NUMBER_OF_PATIENT_RELATED_INSTANCES(0x0020, 0x1204); |
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
208 static const DicomTag DICOM_TAG_NUMBER_OF_STUDY_RELATED_SERIES(0x0020, 0x1206); |
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
209 static const DicomTag DICOM_TAG_NUMBER_OF_STUDY_RELATED_INSTANCES(0x0020, 0x1208); |
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
210 static const DicomTag DICOM_TAG_NUMBER_OF_SERIES_RELATED_INSTANCES(0x0020, 0x1209); |
e018037d4d0e
Support of optional tags for counting resources in C-Find
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1850
diff
changeset
|
211 static const DicomTag DICOM_TAG_SOP_CLASSES_IN_STUDY(0x0008, 0x0062); |
2506
51b91ead6c38
Preservation of UID relationships while anonymizing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2499
diff
changeset
|
212 |
51b91ead6c38
Preservation of UID relationships while anonymizing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2499
diff
changeset
|
213 // Tags to preserve relationships during anonymization |
51b91ead6c38
Preservation of UID relationships while anonymizing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2499
diff
changeset
|
214 static const DicomTag DICOM_TAG_REFERENCED_IMAGE_SEQUENCE(0x0008, 0x1140); |
51b91ead6c38
Preservation of UID relationships while anonymizing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2499
diff
changeset
|
215 static const DicomTag DICOM_TAG_REFERENCED_SOP_INSTANCE_UID(0x0008, 0x1155); |
51b91ead6c38
Preservation of UID relationships while anonymizing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2499
diff
changeset
|
216 static const DicomTag DICOM_TAG_SOURCE_IMAGE_SEQUENCE(0x0008, 0x2112); |
51b91ead6c38
Preservation of UID relationships while anonymizing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2499
diff
changeset
|
217 static const DicomTag DICOM_TAG_FRAME_OF_REFERENCE_UID(0x0020, 0x0052); |
51b91ead6c38
Preservation of UID relationships while anonymizing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2499
diff
changeset
|
218 static const DicomTag DICOM_TAG_REFERENCED_FRAME_OF_REFERENCE_UID(0x3006, 0x0024); |
51b91ead6c38
Preservation of UID relationships while anonymizing
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2499
diff
changeset
|
219 static const DicomTag DICOM_TAG_RELATED_FRAME_OF_REFERENCE_UID(0x3006, 0x00c2); |
2521
6db878376018
support anonymization of CurrentRequestedProcedureEvidenceSequence
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2506
diff
changeset
|
220 static const DicomTag DICOM_TAG_CURRENT_REQUESTED_PROCEDURE_EVIDENCE_SEQUENCE(0x0040, 0xa375); |
6db878376018
support anonymization of CurrentRequestedProcedureEvidenceSequence
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2506
diff
changeset
|
221 static const DicomTag DICOM_TAG_REFERENCED_SERIES_SEQUENCE(0x0008, 0x1115); |
3513
7db879b014ff
Fix lost relationships between CT and RT-STRUCT during anonymization
amazy
parents:
3207
diff
changeset
|
222 static const DicomTag DICOM_TAG_REFERENCED_FRAME_OF_REFERENCE_SEQUENCE(0x3006, 0x0010); |
7db879b014ff
Fix lost relationships between CT and RT-STRUCT during anonymization
amazy
parents:
3207
diff
changeset
|
223 static const DicomTag DICOM_TAG_RT_REFERENCED_STUDY_SEQUENCE(0x3006, 0x0012); |
7db879b014ff
Fix lost relationships between CT and RT-STRUCT during anonymization
amazy
parents:
3207
diff
changeset
|
224 static const DicomTag DICOM_TAG_RT_REFERENCED_SERIES_SEQUENCE(0x3006, 0x0014); |
3552 | 225 |
226 // Tags for DICOMDIR | |
227 static const DicomTag DICOM_TAG_DIRECTORY_RECORD_TYPE(0x0004, 0x1430); | |
228 static const DicomTag DICOM_TAG_OFFSET_OF_THE_NEXT_DIRECTORY_RECORD(0x0004, 0x1400); | |
229 static const DicomTag DICOM_TAG_OFFSET_OF_REFERENCED_LOWER_LEVEL_DIRECTORY_ENTITY(0x0004, 0x1420); | |
3553 | 230 static const DicomTag DICOM_TAG_REFERENCED_SOP_INSTANCE_UID_IN_FILE(0x0004, 0x1511); |
3556
87940f7156e0
DICOM_TAG_REFERENCED_FILE_ID
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3553
diff
changeset
|
231 static const DicomTag DICOM_TAG_REFERENCED_FILE_ID(0x0004, 0x1500); |
0 | 232 } |