Mercurial > hg > orthanc
annotate OrthancServer/Sources/ServerEnumerations.h @ 4834:bec432ee1094
download of numpy arrays from the REST API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Nov 2021 19:03:32 +0100 |
parents | 7053502fbf97 |
children | 2e71a08eea15 02d77189d8ba |
rev | line source |
---|---|
183 | 1 /** |
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:
1189
diff
changeset
|
4 * Department, University Hospital of Liege, Belgium |
4437
d9473bd5ed43
upgrade to year 2021
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4273
diff
changeset
|
5 * Copyright (C) 2017-2021 Osimis S.A., Belgium |
4831
7053502fbf97
added copyright UCLouvain
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4580
diff
changeset
|
6 * Copyright (C) 2021-2021 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
183 | 7 * |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU General Public License as | |
10 * published by the Free Software Foundation, either version 3 of the | |
11 * License, or (at your option) any later version. | |
12 * | |
13 * In addition, as a special exception, the copyright holders of this | |
14 * program give permission to link the code of its release with the | |
15 * OpenSSL project's "OpenSSL" library (or with modified versions of it | |
16 * that use the same license as the "OpenSSL" library), and distribute | |
17 * the linked executables. You must obey the GNU General Public License | |
18 * in all respects for all of the code used other than "OpenSSL". If you | |
19 * modify file(s) with this exception, you may extend this exception to | |
20 * your version of the file(s), but you are not obligated to do so. If | |
21 * you do not wish to do so, delete this exception statement from your | |
22 * version. If you delete this exception statement from all source files | |
23 * in the program, then also delete it here. | |
24 * | |
25 * This program is distributed in the hope that it will be useful, but | |
26 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
28 * General Public License for more details. | |
29 * | |
30 * You should have received a copy of the GNU General Public License | |
31 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
32 **/ | |
33 | |
34 #pragma once | |
35 | |
204 | 36 #include <string> |
1006
649d47854314
proper handling of metadata in Store
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
789
diff
changeset
|
37 #include <map> |
204 | 38 |
4045 | 39 #include "../../OrthancFramework/Sources/Enumerations.h" |
40 #include "../../OrthancFramework/Sources/DicomFormat/DicomTag.h" | |
562
f64e3838d6e1
refactoring enumerations
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
559
diff
changeset
|
41 |
183 | 42 namespace Orthanc |
43 { | |
4273
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
44 enum Verbosity |
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
45 { |
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
46 Verbosity_Default, |
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
47 Verbosity_Verbose, |
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
48 Verbosity_Trace |
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
49 }; |
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
50 |
183 | 51 enum SeriesStatus |
52 { | |
53 SeriesStatus_Complete, | |
54 SeriesStatus_Missing, | |
55 SeriesStatus_Inconsistent, | |
56 SeriesStatus_Unknown | |
57 }; | |
58 | |
59 enum StoreStatus | |
60 { | |
61 StoreStatus_Success, | |
62 StoreStatus_AlreadyStored, | |
397
941ea46e9e26
lua filter of new instances
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
348
diff
changeset
|
63 StoreStatus_Failure, |
941ea46e9e26
lua filter of new instances
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
348
diff
changeset
|
64 StoreStatus_FilteredOut // Removed by NewInstanceFilter |
183 | 65 }; |
66 | |
2892
ce310baccda6
DicomTagConstraint and DatabaseLookup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2774
diff
changeset
|
67 enum DicomTagType |
ce310baccda6
DicomTagConstraint and DatabaseLookup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2774
diff
changeset
|
68 { |
ce310baccda6
DicomTagConstraint and DatabaseLookup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2774
diff
changeset
|
69 DicomTagType_Identifier, // Tag that whose value is stored and indexed in the DB |
ce310baccda6
DicomTagConstraint and DatabaseLookup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2774
diff
changeset
|
70 DicomTagType_Main, // Tag that is stored in the DB (but not indexed) |
ce310baccda6
DicomTagConstraint and DatabaseLookup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2774
diff
changeset
|
71 DicomTagType_Generic // Tag that is only stored in the JSON files |
ce310baccda6
DicomTagConstraint and DatabaseLookup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2774
diff
changeset
|
72 }; |
ce310baccda6
DicomTagConstraint and DatabaseLookup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2774
diff
changeset
|
73 |
3077
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
74 namespace Compatibility |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
75 { |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
76 enum IdentifierConstraintType |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
77 { |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
78 IdentifierConstraintType_Equal, |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
79 IdentifierConstraintType_SmallerOrEqual, |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
80 IdentifierConstraintType_GreaterOrEqual, |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
81 IdentifierConstraintType_Wildcard /* Case sensitive, "*" or "?" are the only allowed wildcards */ |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
82 }; |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
83 } |
aae1d6d31fef
compatibility with orthanc-databases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3061
diff
changeset
|
84 |
3677
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
85 enum FindStorageAccessMode |
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
86 { |
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
87 FindStorageAccessMode_DatabaseOnly, |
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
88 FindStorageAccessMode_DiskOnAnswer, |
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
89 FindStorageAccessMode_DiskOnLookupAndAnswer |
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
90 }; |
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
91 |
3814
023b2a9f3aa1
new enum: StoreInstanceMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3677
diff
changeset
|
92 enum StoreInstanceMode |
023b2a9f3aa1
new enum: StoreInstanceMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3677
diff
changeset
|
93 { |
023b2a9f3aa1
new enum: StoreInstanceMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3677
diff
changeset
|
94 StoreInstanceMode_Default, |
023b2a9f3aa1
new enum: StoreInstanceMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3677
diff
changeset
|
95 StoreInstanceMode_OverwriteDuplicate, |
023b2a9f3aa1
new enum: StoreInstanceMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3677
diff
changeset
|
96 StoreInstanceMode_IgnoreDuplicate |
023b2a9f3aa1
new enum: StoreInstanceMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3677
diff
changeset
|
97 }; |
023b2a9f3aa1
new enum: StoreInstanceMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3677
diff
changeset
|
98 |
4469
5ffa4e14e4bd
move old enum TransferSyntax from OrthancFramework to OrthancServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4460
diff
changeset
|
99 // This enum was previously part of Orthanc framework (until 1.8.2) |
4472
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
100 enum TransferSyntaxGroup |
4469
5ffa4e14e4bd
move old enum TransferSyntax from OrthancFramework to OrthancServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4460
diff
changeset
|
101 { |
4472
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
102 TransferSyntaxGroup_Deflated, |
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
103 TransferSyntaxGroup_Jpeg, |
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
104 TransferSyntaxGroup_Jpeg2000, |
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
105 TransferSyntaxGroup_JpegLossless, |
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
106 TransferSyntaxGroup_Jpip, |
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
107 TransferSyntaxGroup_Mpeg2, |
4474
f8c1d94363b6
new configuration options: "AcceptedTransferSyntaxes" and "H265TransferSyntaxAccepted"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4473
diff
changeset
|
108 TransferSyntaxGroup_Rle, |
4472
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
109 TransferSyntaxGroup_Mpeg4, // New in Orthanc 1.6.0 |
4474
f8c1d94363b6
new configuration options: "AcceptedTransferSyntaxes" and "H265TransferSyntaxAccepted"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4473
diff
changeset
|
110 TransferSyntaxGroup_H265 // New in Orthanc 1.9.0 |
4469
5ffa4e14e4bd
move old enum TransferSyntax from OrthancFramework to OrthancServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4460
diff
changeset
|
111 }; |
5ffa4e14e4bd
move old enum TransferSyntax from OrthancFramework to OrthancServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4460
diff
changeset
|
112 |
4570
648defffc8cc
new enum: TransactionType
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4494
diff
changeset
|
113 enum TransactionType |
648defffc8cc
new enum: TransactionType
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4494
diff
changeset
|
114 { |
648defffc8cc
new enum: TransactionType
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4494
diff
changeset
|
115 TransactionType_ReadOnly, |
648defffc8cc
new enum: TransactionType
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4494
diff
changeset
|
116 TransactionType_ReadWrite |
648defffc8cc
new enum: TransactionType
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4494
diff
changeset
|
117 }; |
648defffc8cc
new enum: TransactionType
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4494
diff
changeset
|
118 |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
119 |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
120 /** |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
121 * WARNING: Do not change the explicit values in the enumerations |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
122 * below this point. This would result in incompatible databases |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
123 * between versions of Orthanc! |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
124 **/ |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
125 |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
126 enum GlobalProperty |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
127 { |
1668
de1413733c97
reconstructing main dicom tags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1555
diff
changeset
|
128 GlobalProperty_DatabaseSchemaVersion = 1, // Unused in the Orthanc core as of Orthanc 0.9.5 |
4580
49f6b9a2b9f5
remove the only use of GlobalProperty_FlushSleep
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4570
diff
changeset
|
129 GlobalProperty_FlushSleep = 2, // Unused in the Orthanc core if Orthanc > 1.9.1 |
2300
cc92410cbed2
GlobalProperty_DatabasePatchLevel
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2244
diff
changeset
|
130 GlobalProperty_AnonymizationSequence = 3, |
2695
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
131 GlobalProperty_JobsRegistry = 5, |
3019
8336204d95dc
refactoring computation of disk size for recycling
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3018
diff
changeset
|
132 GlobalProperty_GetTotalSizeIsFast = 6, // New in Orthanc 1.5.2 |
2988
9cc3d40e389b
Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2946
diff
changeset
|
133 GlobalProperty_Modalities = 20, // New in Orthanc 1.5.0 |
9cc3d40e389b
Orthanc 1.4.3 is now known as 1.5.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2946
diff
changeset
|
134 GlobalProperty_Peers = 21, // New in Orthanc 1.5.0 |
2695
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
135 |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
136 // Reserved values for internal use by the database plugins |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
137 GlobalProperty_DatabasePatchLevel = 4, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
138 GlobalProperty_DatabaseInternal0 = 10, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
139 GlobalProperty_DatabaseInternal1 = 11, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
140 GlobalProperty_DatabaseInternal2 = 12, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
141 GlobalProperty_DatabaseInternal3 = 13, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
142 GlobalProperty_DatabaseInternal4 = 14, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
143 GlobalProperty_DatabaseInternal5 = 15, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
144 GlobalProperty_DatabaseInternal6 = 16, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
145 GlobalProperty_DatabaseInternal7 = 17, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
146 GlobalProperty_DatabaseInternal8 = 18, |
c4ee0bedb51b
some reserved global properties for plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2668
diff
changeset
|
147 GlobalProperty_DatabaseInternal9 = 19 |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
148 }; |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
149 |
183 | 150 enum MetadataType |
151 { | |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
152 MetadataType_Instance_IndexInSeries = 1, |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
153 MetadataType_Instance_ReceptionDate = 2, |
4460
6831de40acd9
New metadata automatically computed at the series level: "RemoteAET"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
154 MetadataType_RemoteAet = 3, // Renamed from "MetadataType_Series_RemoteAet" in Orthanc 1.9.0 |
306
326d5a4a5af3
modification of instances
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
252
diff
changeset
|
155 MetadataType_Series_ExpectedNumberOfInstances = 4, |
311 | 156 MetadataType_ModifiedFrom = 5, |
432 | 157 MetadataType_AnonymizedFrom = 6, |
435
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
158 MetadataType_LastUpdate = 7, |
4494
39192eb9b43d
New metadata automatically computed at the instance level: "PixelDataOffset"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4474
diff
changeset
|
159 MetadataType_Instance_Origin = 8, // New in Orthanc 0.9.5 |
39192eb9b43d
New metadata automatically computed at the instance level: "PixelDataOffset"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4474
diff
changeset
|
160 MetadataType_Instance_TransferSyntax = 9, // New in Orthanc 1.2.0 |
39192eb9b43d
New metadata automatically computed at the instance level: "PixelDataOffset"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4474
diff
changeset
|
161 MetadataType_Instance_SopClassUid = 10, // New in Orthanc 1.2.0 |
39192eb9b43d
New metadata automatically computed at the instance level: "PixelDataOffset"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4474
diff
changeset
|
162 MetadataType_Instance_RemoteIp = 11, // New in Orthanc 1.4.0 |
39192eb9b43d
New metadata automatically computed at the instance level: "PixelDataOffset"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4474
diff
changeset
|
163 MetadataType_Instance_CalledAet = 12, // New in Orthanc 1.4.0 |
39192eb9b43d
New metadata automatically computed at the instance level: "PixelDataOffset"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4474
diff
changeset
|
164 MetadataType_Instance_HttpUsername = 13, // New in Orthanc 1.4.0 |
39192eb9b43d
New metadata automatically computed at the instance level: "PixelDataOffset"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4474
diff
changeset
|
165 MetadataType_Instance_PixelDataOffset = 14, // New in Orthanc 1.9.0 |
435
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
166 |
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
167 // Make sure that the value "65535" can be stored into this enumeration |
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
168 MetadataType_StartUser = 1024, |
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
169 MetadataType_EndUser = 65535 |
183 | 170 }; |
171 | |
172 enum ChangeType | |
173 { | |
174 ChangeType_CompletedSeries = 1, | |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
175 ChangeType_NewInstance = 2, |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
176 ChangeType_NewPatient = 3, |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
177 ChangeType_NewSeries = 4, |
315 | 178 ChangeType_NewStudy = 5, |
179 ChangeType_AnonymizedStudy = 6, | |
180 ChangeType_AnonymizedSeries = 7, | |
181 ChangeType_ModifiedStudy = 8, | |
348
1082e8121d10
refactoring anonymization/modification
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
315
diff
changeset
|
182 ChangeType_ModifiedSeries = 9, |
1082e8121d10
refactoring anonymization/modification
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
315
diff
changeset
|
183 ChangeType_AnonymizedPatient = 10, |
511
3b735fdf320b
monitoring of stable patients/studies/series
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
437
diff
changeset
|
184 ChangeType_ModifiedPatient = 11, |
3b735fdf320b
monitoring of stable patients/studies/series
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
437
diff
changeset
|
185 ChangeType_StablePatient = 12, |
3b735fdf320b
monitoring of stable patients/studies/series
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
437
diff
changeset
|
186 ChangeType_StableStudy = 13, |
1177
5b2d8c280ac2
Plugins can monitor changes through callbacks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1163
diff
changeset
|
187 ChangeType_StableSeries = 14, |
1773
613df4362575
New UpdatedAttachment and UpdatedMetadata events in plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1772
diff
changeset
|
188 ChangeType_UpdatedAttachment = 15, |
613df4362575
New UpdatedAttachment and UpdatedMetadata events in plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1772
diff
changeset
|
189 ChangeType_UpdatedMetadata = 16, |
1189
6b9b02a16e99
NewChildInstance change type
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1177
diff
changeset
|
190 |
6b9b02a16e99
NewChildInstance change type
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1177
diff
changeset
|
191 ChangeType_INTERNAL_LastLogged = 4095, |
6b9b02a16e99
NewChildInstance change type
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1177
diff
changeset
|
192 |
6b9b02a16e99
NewChildInstance change type
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1177
diff
changeset
|
193 // The changes below this point are not logged into the database |
6b9b02a16e99
NewChildInstance change type
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1177
diff
changeset
|
194 ChangeType_Deleted = 4096, |
6b9b02a16e99
NewChildInstance change type
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1177
diff
changeset
|
195 ChangeType_NewChildInstance = 4097 |
183 | 196 }; |
197
530a25320461
removal of text as ids in sqlite db
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
183
diff
changeset
|
197 |
3931
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
198 enum BuiltinDecoderTranscoderOrder |
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
199 { |
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
200 BuiltinDecoderTranscoderOrder_Before, |
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
201 BuiltinDecoderTranscoderOrder_After, |
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
202 BuiltinDecoderTranscoderOrder_Disabled |
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
203 }; |
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
204 |
1006
649d47854314
proper handling of metadata in Store
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
789
diff
changeset
|
205 |
649d47854314
proper handling of metadata in Store
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
789
diff
changeset
|
206 |
435
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
207 void InitializeServerEnumerations(); |
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
208 |
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
209 void RegisterUserMetadata(int metadata, |
656 | 210 const std::string& name); |
435
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
211 |
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
212 MetadataType StringToMetadata(const std::string& str); |
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
213 |
437 | 214 std::string EnumerationToString(MetadataType type); |
435
28ba73274919
registration of user-defined metadata
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
434
diff
changeset
|
215 |
696
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
216 void RegisterUserContentType(int contentType, |
1772
53e045b5a8ec
MIME content type can be associated to custom attachments (cf. "UserContentType")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1746
diff
changeset
|
217 const std::string& name, |
53e045b5a8ec
MIME content type can be associated to custom attachments (cf. "UserContentType")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1746
diff
changeset
|
218 const std::string& mime); |
696
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
219 |
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
220 FileContentType StringToContentType(const std::string& str); |
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
221 |
3677
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
222 FindStorageAccessMode StringToFindStorageAccessMode(const std::string& str); |
4182cde57afb
refactoring FindStorageAccessMode
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
223 |
3931
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
224 BuiltinDecoderTranscoderOrder StringToBuiltinDecoderTranscoderOrder(const std::string& str); |
e6606d3ec892
new configuration option: BuiltinDecoderTranscoderOrder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3814
diff
changeset
|
225 |
4273
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
226 Verbosity StringToVerbosity(const std::string& str); |
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
227 |
696
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
228 std::string EnumerationToString(FileContentType type); |
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
229 |
1772
53e045b5a8ec
MIME content type can be associated to custom attachments (cf. "UserContentType")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1746
diff
changeset
|
230 std::string GetFileContentMime(FileContentType type); |
53e045b5a8ec
MIME content type can be associated to custom attachments (cf. "UserContentType")
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1746
diff
changeset
|
231 |
696
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
232 std::string GetBasePath(ResourceType type, |
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
233 const std::string& publicId); |
4c1860179cc5
dictionary of user-defined content types
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
689
diff
changeset
|
234 |
434
ccf3a0a43dac
EnumerationDictionary
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
432
diff
changeset
|
235 const char* EnumerationToString(SeriesStatus status); |
204 | 236 |
434
ccf3a0a43dac
EnumerationDictionary
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
432
diff
changeset
|
237 const char* EnumerationToString(StoreStatus status); |
216
e5d5d4a9a326
refactored upload of dicom through http
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
206
diff
changeset
|
238 |
434
ccf3a0a43dac
EnumerationDictionary
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
432
diff
changeset
|
239 const char* EnumerationToString(ChangeType type); |
250
f23318b11b39
creation of zip files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
232
diff
changeset
|
240 |
4273
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
241 const char* EnumerationToString(Verbosity verbosity); |
0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4096
diff
changeset
|
242 |
1773
613df4362575
New UpdatedAttachment and UpdatedMetadata events in plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1772
diff
changeset
|
243 bool IsUserMetadata(MetadataType type); |
4469
5ffa4e14e4bd
move old enum TransferSyntax from OrthancFramework to OrthancServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4460
diff
changeset
|
244 |
4472
28a4baadde17
rename TransferSyntax enum as TransferSyntaxGroup
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4469
diff
changeset
|
245 void GetTransferSyntaxGroup(std::set<DicomTransferSyntax>& target, |
4473
68f52897c119
new URIs: /tools/accepted-transfer-syntaxes and /tools/unknown-sop-class-accepted to replace Lua callbacks for transfer syntaxes
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4472
diff
changeset
|
246 TransferSyntaxGroup source); |
183 | 247 } |