annotate Resources/Orthanc/Sdk-1.12.0/orthanc/OrthancDatabasePlugin.proto @ 456:0ac99983abfa pg-transactions

missing drop function
author Alain Mazy <am@osimis.io>
date Tue, 23 Jan 2024 16:50:55 +0100
parents 1938ba8fba35
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
405
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Orthanc - A Lightweight, RESTful DICOM Store
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 * Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 *
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 * This program is free software: you can redistribute it and/or
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 * modify it under the terms of the GNU General Public License as
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 * published by the Free Software Foundation, either version 3 of the
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 * License, or (at your option) any later version.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 *
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful, but
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 * General Public License for more details.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 *
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 /**
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 * This Protocol Buffers prototype describes the exchanges between the
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 * Orthanc core and its database plugins. The various calls correspond
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 * to the "IDatabaseWrapper" interface in the source code of Orthanc.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 *
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 * WARNING: *NEVER* modify or remove existing entries. It is only
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 * allowed to *add* new stuff.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 syntax = "proto3";
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 /**
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 * Turn off protobuf reflection to avoid clashes between the Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 * core and the database plugin, otherwise both will try to register
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 * the same messages in the process-wide descriptor pool, which would
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 * result in protobuf error "File already exists in database".
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 option optimize_for = LITE_RUNTIME;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 package Orthanc.DatabasePluginMessages;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 /**
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 * Data structures that are common with the Orthanc core.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 message FileInfo {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 string uuid = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51 int32 content_type = 2; // opaque "FileContentType" in Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 uint64 uncompressed_size = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 string uncompressed_hash = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 int32 compression_type = 5; // opaque "CompressionType" in Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 uint64 compressed_size = 6;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56 string compressed_hash = 7;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 enum ResourceType {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 RESOURCE_PATIENT = 0;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 RESOURCE_STUDY = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 RESOURCE_SERIES = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63 RESOURCE_INSTANCE = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66 enum ConstraintType {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 CONSTRAINT_EQUAL = 0;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 CONSTRAINT_SMALLER_OR_EQUAL = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 CONSTRAINT_GREATER_OR_EQUAL = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70 CONSTRAINT_WILDCARD = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 CONSTRAINT_LIST = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74 enum LabelsConstraintType {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 LABELS_CONSTRAINT_ALL = 0;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 LABELS_CONSTRAINT_ANY = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77 LABELS_CONSTRAINT_NONE = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 message ServerIndexChange {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81 int64 seq = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82 int32 change_type = 2; // opaque "ChangeType" in Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83 ResourceType resource_type = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
84 string public_id = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
85 string date = 5;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
88 message ExportedResource {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89 int64 seq = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
90 ResourceType resource_type = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
91 string public_id = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
92 string modality = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93 string date = 5;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
94 string patient_id = 6;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95 string study_instance_uid = 7;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
96 string series_instance_uid = 8;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
97 string sop_instance_uid = 9;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
99
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100 message DatabaseConstraint {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 ResourceType level = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102 uint32 tag_group = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103 uint32 tag_element = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104 bool is_identifier_tag = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105 bool is_case_sensitive = 5;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
106 bool is_mandatory = 6;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
107 ConstraintType type = 7;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
108 repeated string values = 8;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
109 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
110
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
111
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112 /**
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 * Database-level operations.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
116 enum DatabaseOperation {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
117 OPERATION_GET_SYSTEM_INFORMATION = 0;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
118 OPERATION_OPEN = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
119 OPERATION_CLOSE = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
120 OPERATION_FLUSH_TO_DISK = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
121 OPERATION_START_TRANSACTION = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
122 OPERATION_UPGRADE = 5;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
123 OPERATION_FINALIZE_TRANSACTION = 6;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
124 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
125
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126 enum TransactionType {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127 TRANSACTION_READ_ONLY = 0;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
128 TRANSACTION_READ_WRITE = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
129 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 message GetSystemInformation {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
132 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
133 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
134 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
135 uint32 database_version = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
136 bool supports_flush_to_disk = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
137 bool supports_revisions = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
138 bool supports_labels = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
139 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
140 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
141
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
142 message Open {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
143 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
144 message IdentifierTag {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
145 ResourceType level = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
146 uint32 group = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
147 uint32 element = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
148 string name = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
149 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
150 repeated IdentifierTag identifier_tags = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
151 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
152 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
153 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
154 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
155
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
156 message Close {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
157 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
158 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
159 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
160 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
161 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
162
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
163 message FlushToDisk {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
164 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
165 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
166 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
167 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
168 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
169
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
170 message StartTransaction {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
171 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
172 TransactionType type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
173 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
174 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
175 sfixed64 transaction = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
176 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
177 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
178
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
179 message Upgrade {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
180 /**
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
181 * It is guaranteed that a read-write transaction is created by the
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
182 * Orthanc core before executing this operation.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
183 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
184 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
185 uint32 target_version = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
186 sfixed64 storage_area = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
187 sfixed64 transaction = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
188 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
189 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
190 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
191 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
192
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
193 message FinalizeTransaction {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
194 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
195 sfixed64 transaction = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
196 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
197 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
198 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
199 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
200
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
201 message DatabaseRequest {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
202 sfixed64 database = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
203 DatabaseOperation operation = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
204
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
205 GetSystemInformation.Request get_system_information = 100;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
206 Open.Request open = 101;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207 Close.Request close = 102;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
208 FlushToDisk.Request flush_to_disk = 103;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
209 StartTransaction.Request start_transaction = 104;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
210 Upgrade.Request upgrade = 105;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
211 FinalizeTransaction.Request finalize_transaction = 106;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
212 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
213
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
214 message DatabaseResponse {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
215 GetSystemInformation.Response get_system_information = 100;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
216 Open.Response open = 101;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
217 Close.Response close = 102;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
218 FlushToDisk.Response flush_to_disk = 103;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
219 StartTransaction.Response start_transaction = 104;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
220 Upgrade.Response upgrade = 105;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
221 FinalizeTransaction.Response finalize_transaction = 106;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
222 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
223
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
224
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
225 /**
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
226 * Transaction-level operations.
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
227 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
228
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
229 enum TransactionOperation {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
230 OPERATION_ROLLBACK = 0;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
231 OPERATION_COMMIT = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
232 OPERATION_ADD_ATTACHMENT = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
233 OPERATION_CLEAR_CHANGES = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
234 OPERATION_CLEAR_EXPORTED_RESOURCES = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
235 OPERATION_DELETE_ATTACHMENT = 5;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
236 OPERATION_DELETE_METADATA = 6;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
237 OPERATION_DELETE_RESOURCE = 7;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
238 OPERATION_GET_ALL_METADATA = 8;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
239 OPERATION_GET_ALL_PUBLIC_IDS = 9;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
240 OPERATION_GET_ALL_PUBLIC_IDS_WITH_LIMITS = 10;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
241 OPERATION_GET_CHANGES = 11;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
242 OPERATION_GET_CHILDREN_INTERNAL_ID = 12;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
243 OPERATION_GET_CHILDREN_PUBLIC_ID = 13;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
244 OPERATION_GET_EXPORTED_RESOURCES = 14;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
245 OPERATION_GET_LAST_CHANGE = 15;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
246 OPERATION_GET_LAST_EXPORTED_RESOURCE = 16;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
247 OPERATION_GET_MAIN_DICOM_TAGS = 17;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
248 OPERATION_GET_PUBLIC_ID = 18;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
249 OPERATION_GET_RESOURCES_COUNT = 19;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
250 OPERATION_GET_RESOURCE_TYPE = 20;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
251 OPERATION_GET_TOTAL_COMPRESSED_SIZE = 21;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
252 OPERATION_GET_TOTAL_UNCOMPRESSED_SIZE = 22;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
253 OPERATION_IS_PROTECTED_PATIENT = 23;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
254 OPERATION_LIST_AVAILABLE_ATTACHMENTS = 24;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
255 OPERATION_LOG_CHANGE = 25;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
256 OPERATION_LOG_EXPORTED_RESOURCE = 26;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
257 OPERATION_LOOKUP_ATTACHMENT = 27;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
258 OPERATION_LOOKUP_GLOBAL_PROPERTY = 28;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
259 OPERATION_LOOKUP_METADATA = 29;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
260 OPERATION_LOOKUP_PARENT = 30;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
261 OPERATION_LOOKUP_RESOURCE = 31;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
262 OPERATION_SELECT_PATIENT_TO_RECYCLE = 32;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
263 OPERATION_SELECT_PATIENT_TO_RECYCLE_WITH_AVOID = 33;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
264 OPERATION_SET_GLOBAL_PROPERTY = 34;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
265 OPERATION_CLEAR_MAIN_DICOM_TAGS = 35;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
266 OPERATION_SET_METADATA = 36;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
267 OPERATION_SET_PROTECTED_PATIENT = 37;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
268 OPERATION_IS_DISK_SIZE_ABOVE = 38;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
269 OPERATION_LOOKUP_RESOURCES = 39;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
270 OPERATION_CREATE_INSTANCE = 40;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
271 OPERATION_SET_RESOURCES_CONTENT = 41;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
272 OPERATION_GET_CHILDREN_METADATA = 42;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
273 OPERATION_GET_LAST_CHANGE_INDEX = 43;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
274 OPERATION_LOOKUP_RESOURCE_AND_PARENT = 44;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
275 OPERATION_ADD_LABEL = 45; // New in Orthanc 1.12.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
276 OPERATION_REMOVE_LABEL = 46; // New in Orthanc 1.12.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
277 OPERATION_LIST_LABELS = 47; // New in Orthanc 1.12.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
278 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
279
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
280 message Rollback {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
281 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
282 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
283 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
284 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
285 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
286
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
287 message Commit {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
288 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
289 int64 file_size_delta = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
290 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
291 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
292 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
293 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
294
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
295 message AddAttachment {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
296 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
297 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
298 FileInfo attachment = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
299 int64 revision = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
300 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
301 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
302 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
303 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
304
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305 message ClearChanges {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
306 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
307 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
308 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
309 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
310 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
311
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
312 message ClearExportedResources {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
313 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
314 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
315 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
316 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
317 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
318
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
319 message DeleteAttachment {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
320 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
321 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
322 int32 type = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
323 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
324 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
325 FileInfo deleted_attachment = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
326 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
327 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
328
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
329 message DeleteMetadata {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
330 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
331 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
332 int32 type = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
333 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
334 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
335 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
336 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
337
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
338 message DeleteResource {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
339 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
340 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
341 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
342 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
343 message Resource {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
344 ResourceType level = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
345 string public_id = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
346 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
347 repeated FileInfo deleted_attachments = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
348 repeated Resource deleted_resources = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
349 bool is_remaining_ancestor = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
350 Resource remaining_ancestor = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
351 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
352 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
353
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
354 message GetAllMetadata {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
355 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
356 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
357 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
358 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
359 message Metadata {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
360 int32 type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
361 string value = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
362 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
363 repeated Metadata metadata = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
364 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
365 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
366
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
367 message GetAllPublicIds {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
368 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
369 ResourceType resource_type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
370 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
371 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
372 repeated string ids = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
373 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
374 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
375
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
376 message GetAllPublicIdsWithLimits {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
377 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
378 ResourceType resource_type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
379 int64 since = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
380 uint32 limit = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
381 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
382 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
383 repeated string ids = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
384 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
385 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
386
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
387 message GetChanges {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
388 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
389 int64 since = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
390 uint32 limit = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
391 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
392 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
393 repeated ServerIndexChange changes = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
394 bool done = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
395 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
396 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
397
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
398 message GetChildrenInternalId {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
399 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
400 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
401 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
402 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
403 repeated int64 ids = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
404 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
405 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
406
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
407 message GetChildrenPublicId {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
408 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
409 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
410 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
411 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
412 repeated string ids = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
413 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
414 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
415
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
416 message GetExportedResources {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
417 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
418 int64 since = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
419 uint32 limit = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
420 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
421 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
422 repeated ExportedResource resources = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
423 bool done = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
424 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
425 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
426
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
427 message GetLastChange {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
428 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
429 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
430 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
431 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
432 ServerIndexChange change = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
433 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
434 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
435
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
436 message GetLastExportedResource {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
437 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
438 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
439 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
440 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
441 ExportedResource resource = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
442 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
443 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
444
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
445 message GetMainDicomTags {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
446 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
447 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
448 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
449 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
450 message Tag {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
451 uint32 group = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
452 uint32 element = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
453 string value = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
454 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
455 repeated Tag tags = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
456 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
457 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
458
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
459 message GetPublicId {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
460 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
461 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
462 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
463 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
464 string id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
465 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
466 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
467
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
468 message GetResourcesCount {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
469 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
470 ResourceType type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
471 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
472 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
473 uint64 count = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
474 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
475 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
476
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
477 message GetResourceType {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
478 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
479 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
480 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
481 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
482 ResourceType type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
483 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
484 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
485
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
486 message GetTotalCompressedSize {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
487 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
488 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
489 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
490 uint64 size = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
491 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
492 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
493
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
494 message GetTotalUncompressedSize {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
495 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
496 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
497 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
498 uint64 size = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
499 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
500 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
501
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
502 message IsProtectedPatient {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
503 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
504 int64 patient_id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
505 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
506 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
507 bool protected_patient = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
508 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
509 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
510
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
511 message ListAvailableAttachments {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
512 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
513 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
514 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
515 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
516 repeated int32 attachments = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
517 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
518 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
519
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
520 message LogChange {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
521 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
522 int32 change_type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
523 ResourceType resource_type = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
524 int64 resource_id = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
525 string date = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
526 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
527 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
528 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
529 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
530
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
531 message LogExportedResource {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
532 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
533 ResourceType resource_type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
534 string public_id = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
535 string modality = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
536 string date = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
537 string patient_id = 5;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
538 string study_instance_uid = 6;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
539 string series_instance_uid = 7;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
540 string sop_instance_uid = 8;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
541 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
542 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
543 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
544 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
545
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
546 message LookupAttachment {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
547 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
548 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
549 int32 content_type = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
550 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
551 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
552 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
553 FileInfo attachment = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
554 int64 revision = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
555 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
556 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
557
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
558 message LookupGlobalProperty {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
559 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
560 string server_id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
561 int32 property = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
562 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
563 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
564 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
565 string value = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
566 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
567 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
568
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
569 message LookupMetadata {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
570 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
571 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
572 int32 metadata_type = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
573 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
574 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
575 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
576 string value = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
577 int64 revision = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
578 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
579 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
580
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
581 message LookupParent {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
582 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
583 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
584 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
585 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
586 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
587 int64 parent = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
588 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
589 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
590
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
591 message LookupResource {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
592 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
593 string public_id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
594 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
595 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
596 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
597 int64 internal_id = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
598 ResourceType type = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
599 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
600 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
601
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
602 message SelectPatientToRecycle {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
603 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
604 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
605 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
606 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
607 int64 patient_id = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
608 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
609 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
610
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
611 message SelectPatientToRecycleWithAvoid {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
612 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
613 int64 patient_id_to_avoid = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
614 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
615 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
616 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
617 int64 patient_id = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
618 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
619 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
620
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
621 message SetGlobalProperty {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
622 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
623 string server_id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
624 int32 property = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
625 string value = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
626 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
627 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
628 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
629 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
630
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
631 message ClearMainDicomTags {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
632 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
633 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
634 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
635 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
636 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
637 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
638
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
639 message SetMetadata {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
640 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
641 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
642 int32 metadata_type = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
643 string value = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
644 int64 revision = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
645 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
646 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
647 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
648 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
649
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
650 message SetProtectedPatient {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
651 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
652 int64 patient_id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
653 bool protected_patient = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
654 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
655 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
656 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
657 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
658
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
659 message IsDiskSizeAbove {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
660 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
661 uint64 threshold = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
662 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
663 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
664 bool result = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
665 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
666 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
667
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
668 message LookupResources {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
669 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
670 repeated DatabaseConstraint lookup = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
671 ResourceType query_level = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
672 uint32 limit = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
673 bool retrieve_instances_ids = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
674 repeated string labels = 5; // New in Orthanc 1.12.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
675 LabelsConstraintType labels_constraint = 6; // New in Orthanc 1.12.0
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
676 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
677 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
678 repeated string resources_ids = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
679 repeated string instances_ids = 2; // Only filled if "retrieve_instances" is true
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
680 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
681 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
682
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
683 message CreateInstance {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
684 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
685 string patient = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
686 string study = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
687 string series = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
688 string instance = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
689 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
690 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
691 bool is_new_instance = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
692 int64 instance_id = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
693
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
694 // The fields below are only set if "is_new_instance" is true
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
695 bool is_new_patient = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
696 bool is_new_study = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
697 bool is_new_series = 5;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
698 int64 patient_id = 6;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
699 int64 study_id = 7;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
700 int64 series_id = 8;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
701 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
702 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
703
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
704 message SetResourcesContent {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
705 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
706 message Tag {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
707 int64 resource_id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
708 bool is_identifier = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
709 uint32 group = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
710 uint32 element = 4;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
711 string value = 5;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
712 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
713
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
714 message Metadata {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
715 int64 resource_id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
716 int32 metadata = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
717 string value = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
718 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
719
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
720 repeated Tag tags = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
721 repeated Metadata metadata = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
722 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
723 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
724 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
725 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
726
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
727 message GetChildrenMetadata {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
728 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
729 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
730 int32 metadata = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
731 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
732 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
733 repeated string values = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
734 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
735 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
736
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
737 message GetLastChangeIndex {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
738 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
739 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
740 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
741 int64 result = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
742 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
743 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
744
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
745 message LookupResourceAndParent {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
746 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
747 string public_id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
748 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
749 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
750 bool found = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
751 int64 id = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
752 ResourceType type = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
753 string parent_public_id = 4; // Only for study, series, or instance
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
754 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
755 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
756
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
757 message AddLabel {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
758 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
759 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
760 string label = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
761 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
762 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
763 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
764 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
765
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
766 message RemoveLabel {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
767 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
768 int64 id = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
769 string label = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
770 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
771 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
772 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
773 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
774
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
775 message ListLabels {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
776 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
777 bool single_resource = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
778 int64 id = 2; // Only if "single_resource" is "true"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
779 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
780 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
781 repeated string labels = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
782 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
783 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
784
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
785 message TransactionRequest {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
786 sfixed64 transaction = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
787 TransactionOperation operation = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
788
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
789 Rollback.Request rollback = 100;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
790 Commit.Request commit = 101;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
791 AddAttachment.Request add_attachment = 102;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
792 ClearChanges.Request clear_changes = 103;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
793 ClearExportedResources.Request clear_exported_resources = 104;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
794 DeleteAttachment.Request delete_attachment = 105;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
795 DeleteMetadata.Request delete_metadata = 106;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
796 DeleteResource.Request delete_resource = 107;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
797 GetAllMetadata.Request get_all_metadata = 108;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
798 GetAllPublicIds.Request get_all_public_ids = 109;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
799 GetAllPublicIdsWithLimits.Request get_all_public_ids_with_limits = 110;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
800 GetChanges.Request get_changes = 111;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
801 GetChildrenInternalId.Request get_children_internal_id = 112;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
802 GetChildrenPublicId.Request get_children_public_id = 113;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
803 GetExportedResources.Request get_exported_resources = 114;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
804 GetLastChange.Request get_last_change = 115;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
805 GetLastExportedResource.Request get_last_exported_resource = 116;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
806 GetMainDicomTags.Request get_main_dicom_tags = 117;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
807 GetPublicId.Request get_public_id = 118;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
808 GetResourcesCount.Request get_resources_count = 119;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
809 GetResourceType.Request get_resource_type = 120;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
810 GetTotalCompressedSize.Request get_total_compressed_size = 121;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
811 GetTotalUncompressedSize.Request get_total_uncompressed_size = 122;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
812 IsProtectedPatient.Request is_protected_patient = 123;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
813 ListAvailableAttachments.Request list_available_attachments = 124;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
814 LogChange.Request log_change = 125;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
815 LogExportedResource.Request log_exported_resource = 126;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
816 LookupAttachment.Request lookup_attachment = 127;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
817 LookupGlobalProperty.Request lookup_global_property = 128;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
818 LookupMetadata.Request lookup_metadata = 129;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
819 LookupParent.Request lookup_parent = 130;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
820 LookupResource.Request lookup_resource = 131;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
821 SelectPatientToRecycle.Request select_patient_to_recycle = 132;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
822 SelectPatientToRecycleWithAvoid.Request select_patient_to_recycle_with_avoid = 133;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
823 SetGlobalProperty.Request set_global_property = 134;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
824 ClearMainDicomTags.Request clear_main_dicom_tags = 135;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
825 SetMetadata.Request set_metadata = 136;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
826 SetProtectedPatient.Request set_protected_patient = 137;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
827 IsDiskSizeAbove.Request is_disk_size_above = 138;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
828 LookupResources.Request lookup_resources = 139;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
829 CreateInstance.Request create_instance = 140;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
830 SetResourcesContent.Request set_resources_content = 141;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
831 GetChildrenMetadata.Request get_children_metadata = 142;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
832 GetLastChangeIndex.Request get_last_change_index = 143;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
833 LookupResourceAndParent.Request lookup_resource_and_parent = 144;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
834 AddLabel.Request add_label = 145;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
835 RemoveLabel.Request remove_label = 146;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
836 ListLabels.Request list_labels = 147;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
837 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
838
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
839 message TransactionResponse {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
840 Rollback.Response rollback = 100;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
841 Commit.Response commit = 101;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
842 AddAttachment.Response add_attachment = 102;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
843 ClearChanges.Response clear_changes = 103;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
844 ClearExportedResources.Response clear_exported_resources = 104;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
845 DeleteAttachment.Response delete_attachment = 105;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
846 DeleteMetadata.Response delete_metadata = 106;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
847 DeleteResource.Response delete_resource = 107;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
848 GetAllMetadata.Response get_all_metadata = 108;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
849 GetAllPublicIds.Response get_all_public_ids = 109;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
850 GetAllPublicIdsWithLimits.Response get_all_public_ids_with_limits = 110;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
851 GetChanges.Response get_changes = 111;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
852 GetChildrenInternalId.Response get_children_internal_id = 112;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
853 GetChildrenPublicId.Response get_children_public_id = 113;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
854 GetExportedResources.Response get_exported_resources = 114;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
855 GetLastChange.Response get_last_change = 115;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
856 GetLastExportedResource.Response get_last_exported_resource = 116;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
857 GetMainDicomTags.Response get_main_dicom_tags = 117;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
858 GetPublicId.Response get_public_id = 118;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
859 GetResourcesCount.Response get_resources_count = 119;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
860 GetResourceType.Response get_resource_type = 120;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
861 GetTotalCompressedSize.Response get_total_compressed_size = 121;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
862 GetTotalUncompressedSize.Response get_total_uncompressed_size = 122;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
863 IsProtectedPatient.Response is_protected_patient = 123;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
864 ListAvailableAttachments.Response list_available_attachments = 124;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
865 LogChange.Response log_change = 125;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
866 LogExportedResource.Response log_exported_resource = 126;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
867 LookupAttachment.Response lookup_attachment = 127;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
868 LookupGlobalProperty.Response lookup_global_property = 128;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
869 LookupMetadata.Response lookup_metadata = 129;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
870 LookupParent.Response lookup_parent = 130;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
871 LookupResource.Response lookup_resource = 131;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
872 SelectPatientToRecycle.Response select_patient_to_recycle = 132;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
873 SelectPatientToRecycleWithAvoid.Response select_patient_to_recycle_with_avoid = 133;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
874 SetGlobalProperty.Response set_global_property = 134;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
875 ClearMainDicomTags.Response clear_main_dicom_tags = 135;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
876 SetMetadata.Response set_metadata = 136;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
877 SetProtectedPatient.Response set_protected_patient = 137;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
878 IsDiskSizeAbove.Response is_disk_size_above = 138;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
879 LookupResources.Response lookup_resources = 139;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
880 CreateInstance.Response create_instance = 140;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
881 SetResourcesContent.Response set_resources_content = 141;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
882 GetChildrenMetadata.Response get_children_metadata = 142;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
883 GetLastChangeIndex.Response get_last_change_index = 143;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
884 LookupResourceAndParent.Response lookup_resource_and_parent = 144;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
885 AddLabel.Response add_label = 145;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
886 RemoveLabel.Response remove_label = 146;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
887 ListLabels.Response list_labels = 147;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
888 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
889
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
890 enum RequestType {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
891 REQUEST_DATABASE = 0;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
892 REQUEST_TRANSACTION = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
893 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
894
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
895 message Request {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
896 RequestType type = 1;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
897 DatabaseRequest database_request = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
898 TransactionRequest transaction_request = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
899 }
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
900
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
901 message Response {
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
902 DatabaseResponse database_response = 2;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
903 TransactionResponse transaction_response = 3;
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
904 }