Mercurial > hg > orthanc
annotate OrthancServer/ServerEnumerations.h @ 386:7dec4f3c922c lua-scripting
lua wrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Apr 2013 17:14:10 +0200 |
parents | 1082e8121d10 |
children | 941ea46e9e26 4d5f0857ec9c |
rev | line source |
---|---|
183 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, | |
4 * Belgium | |
5 * | |
6 * This program is free software: you can redistribute it and/or | |
7 * modify it under the terms of the GNU General Public License as | |
8 * published by the Free Software Foundation, either version 3 of the | |
9 * License, or (at your option) any later version. | |
10 * | |
11 * In addition, as a special exception, the copyright holders of this | |
12 * program give permission to link the code of its release with the | |
13 * OpenSSL project's "OpenSSL" library (or with modified versions of it | |
14 * that use the same license as the "OpenSSL" library), and distribute | |
15 * the linked executables. You must obey the GNU General Public License | |
16 * in all respects for all of the code used other than "OpenSSL". If you | |
17 * modify file(s) with this exception, you may extend this exception to | |
18 * your version of the file(s), but you are not obligated to do so. If | |
19 * you do not wish to do so, delete this exception statement from your | |
20 * version. If you delete this exception statement from all source files | |
21 * in the program, then also delete it here. | |
22 * | |
23 * This program is distributed in the hope that it will be useful, but | |
24 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
26 * General Public License for more details. | |
27 * | |
28 * You should have received a copy of the GNU General Public License | |
29 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
30 **/ | |
31 | |
32 #pragma once | |
33 | |
204 | 34 #include <string> |
35 | |
183 | 36 namespace Orthanc |
37 { | |
38 enum SeriesStatus | |
39 { | |
40 SeriesStatus_Complete, | |
41 SeriesStatus_Missing, | |
42 SeriesStatus_Inconsistent, | |
43 SeriesStatus_Unknown | |
44 }; | |
45 | |
46 enum StoreStatus | |
47 { | |
48 StoreStatus_Success, | |
49 StoreStatus_AlreadyStored, | |
50 StoreStatus_Failure | |
51 }; | |
52 | |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
53 |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
54 /** |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
55 * WARNING: Do not change the explicit values in the enumerations |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
56 * below this point. This would result in incompatible databases |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
57 * between versions of Orthanc! |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
58 **/ |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
59 |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
60 enum GlobalProperty |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
61 { |
252 | 62 GlobalProperty_DatabaseSchemaVersion = 1, |
310 | 63 GlobalProperty_FlushSleep = 2, |
64 GlobalProperty_AnonymizationSequence = 3 | |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
65 }; |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
66 |
183 | 67 enum ResourceType |
68 { | |
69 ResourceType_Patient = 1, | |
70 ResourceType_Study = 2, | |
71 ResourceType_Series = 3, | |
72 ResourceType_Instance = 4 | |
73 }; | |
74 | |
75 enum MetadataType | |
76 { | |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
77 MetadataType_Instance_IndexInSeries = 1, |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
78 MetadataType_Instance_ReceptionDate = 2, |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
79 MetadataType_Instance_RemoteAet = 3, |
306
326d5a4a5af3
modification of instances
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
252
diff
changeset
|
80 MetadataType_Series_ExpectedNumberOfInstances = 4, |
311 | 81 MetadataType_ModifiedFrom = 5, |
82 MetadataType_AnonymizedFrom = 6 | |
183 | 83 }; |
84 | |
85 enum ChangeType | |
86 { | |
87 ChangeType_CompletedSeries = 1, | |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
88 ChangeType_NewInstance = 2, |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
89 ChangeType_NewPatient = 3, |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
90 ChangeType_NewSeries = 4, |
315 | 91 ChangeType_NewStudy = 5, |
92 ChangeType_AnonymizedStudy = 6, | |
93 ChangeType_AnonymizedSeries = 7, | |
94 ChangeType_ModifiedStudy = 8, | |
348
1082e8121d10
refactoring anonymization/modification
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
315
diff
changeset
|
95 ChangeType_ModifiedSeries = 9, |
1082e8121d10
refactoring anonymization/modification
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
315
diff
changeset
|
96 ChangeType_AnonymizedPatient = 10, |
1082e8121d10
refactoring anonymization/modification
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
315
diff
changeset
|
97 ChangeType_ModifiedPatient = 11 |
183 | 98 }; |
197
530a25320461
removal of text as ids in sqlite db
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
183
diff
changeset
|
99 |
232
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
100 std::string GetBasePath(ResourceType type, |
5368bbe813cf
refactoring of attachments
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
221
diff
changeset
|
101 const std::string& publicId); |
199 | 102 |
103 const char* ToString(ResourceType type); | |
104 | |
105 const char* ToString(SeriesStatus status); | |
204 | 106 |
216
e5d5d4a9a326
refactored upload of dicom through http
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
206
diff
changeset
|
107 const char* ToString(StoreStatus status); |
e5d5d4a9a326
refactored upload of dicom through http
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
206
diff
changeset
|
108 |
204 | 109 const char* ToString(ChangeType type); |
250
f23318b11b39
creation of zip files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
232
diff
changeset
|
110 |
f23318b11b39
creation of zip files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
232
diff
changeset
|
111 ResourceType GetParentResourceType(ResourceType type); |
f23318b11b39
creation of zip files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
232
diff
changeset
|
112 |
f23318b11b39
creation of zip files
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
232
diff
changeset
|
113 ResourceType GetChildResourceType(ResourceType type); |
183 | 114 } |