annotate Resources/Orthanc/Sdk-1.12.3/orthanc/OrthancDatabasePlugin.proto @ 505:38e428f8179d

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