dr_protocol_idl.proto 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. syntax = "proto3";
  2. option go_package = "dr_protocol_pb/";
  3. package dr.protocol;
  4. import "google/protobuf/struct.proto";
  5. message EmptyRequest {}
  6. message IDRequest {
  7. optional uint32 id = 1;
  8. optional string instance_id = 2;
  9. }
  10. message OptionRequest {
  11. string group = 1;
  12. string flag = 2;
  13. }
  14. message OptionReply {
  15. repeated google.protobuf.Struct option = 1;
  16. }
  17. service Basic {
  18. rpc SoftwareInfo (EmptyRequest) returns (SoftwareInfoReply) {}
  19. rpc GetOptions (OptionRequest) returns (OptionReply) {}
  20. }
  21. message SoftwareInfoReply {
  22. string module = 1;
  23. string desc = 2;
  24. string build = 3;
  25. string version = 4;
  26. }
  27. service Protocol {
  28. rpc GetPatientTypeList (PatientTypeRequest) returns (PatientTypeReply) {}
  29. rpc GetBodyPartList (BodyPartRequest) returns (BodyPartReply) {}
  30. rpc GetProcedureList (ProcedureRequest) returns (ProcedureReply) {}
  31. rpc GetProcedure (IDRequest) returns (Procedure) {}
  32. rpc GetViewList (ViewRequest) returns (ViewReply) {}
  33. rpc GetView (IDRequest) returns (View) {}
  34. }
  35. message PatientTypeRequest {
  36. optional bool is_enabled = 1;
  37. optional bool is_pre_install = 2;
  38. }
  39. message PatientType {
  40. uint64 id = 1;
  41. string patient_type_id = 2;
  42. string patient_type_name = 3;
  43. string patient_type_name_local = 4;
  44. string patient_type_description = 5;
  45. int32 sort = 6;
  46. bool is_enabled = 7;
  47. string product = 8;
  48. bool is_pre_install = 9;
  49. }
  50. message PatientTypeReply {
  51. repeated PatientType patient_type_list = 1;
  52. }
  53. message BodyPartRequest {
  54. optional string patient_type = 1;
  55. optional string modality = 2;
  56. optional bool is_enabled = 3;
  57. optional bool is_pre_install = 4;
  58. }
  59. message BodyPart {
  60. uint64 id = 1;
  61. string body_part_id = 2;
  62. string body_part_name = 3;
  63. string body_part_name_local = 4;
  64. string body_part_description = 5;
  65. string patient_type = 6;
  66. string modality = 7;
  67. int32 sort = 8;
  68. bool is_enabled = 9;
  69. string product = 10;
  70. bool is_pre_install = 11;
  71. }
  72. message BodyPartReply {
  73. repeated BodyPart body_part_list = 1;
  74. }
  75. message ProcedureRequest {
  76. optional string patient_type = 1;
  77. optional string body_part_id = 2;
  78. optional string modality = 3;
  79. optional bool is_enabled = 4;
  80. optional bool is_pre_install = 5;
  81. }
  82. message Procedure {
  83. uint64 id = 1;
  84. string procedure_id = 2;
  85. string procedure_code = 3;
  86. string procedure_name = 4;
  87. string procedure_name_local = 5;
  88. string procedure_other_name = 6;
  89. string procedure_description = 7;
  90. string procedure_description_local = 8;
  91. string patient_type = 9;
  92. string body_part_id = 10;
  93. string procedure_type = 11;
  94. bool fast_search = 12;
  95. string protocol_laterality = 13;
  96. string procedure_category = 14;
  97. string modality = 15;
  98. int32 sort = 16;
  99. bool is_enabled = 17;
  100. string product = 18;
  101. bool is_pre_install = 19;
  102. }
  103. message ProcedureReply {
  104. repeated Procedure procedure_list = 1;
  105. }
  106. message ViewRequest {
  107. optional string patient_type = 1;
  108. optional string body_part_id = 2;
  109. optional string procedure_id = 3;
  110. optional string modality = 4;
  111. optional bool is_enabled = 5;
  112. optional bool is_pre_install = 6;
  113. }
  114. message View {
  115. string internal_id = 1;
  116. string view_id = 2;
  117. string view_name = 3;
  118. string view_name_local = 4;
  119. string view_other_name = 5;
  120. string view_description = 6;
  121. string view_position = 7;
  122. string application = 8;
  123. string anatomic_region = 9;
  124. string patient_type = 10;
  125. string body_part_id = 11;
  126. string view_icon_name = 12;
  127. string view_big_icon_name = 13;
  128. string view_coach_name = 14;
  129. string modality = 15;
  130. int32 work_station_id = 16;
  131. string apr_id = 17;
  132. string img_proc_id = 18;
  133. google.protobuf.Struct config_object = 19;
  134. int32 sort = 20;
  135. bool is_enabled = 21;
  136. string product = 22;
  137. bool is_pre_install = 23;
  138. }
  139. message ViewReply {
  140. repeated View view_list = 1;
  141. }
  142. service Apr {
  143. rpc GetApr (AprRequest) returns (AprReply) {}
  144. }
  145. message AprRequest {
  146. optional string view_id = 1;
  147. optional string apr_id = 2;
  148. optional bool is_enabled = 3;
  149. }
  150. message AprSub {
  151. int32 work_station_id = 1;
  152. string patient_size = 2;
  153. google.protobuf.Struct config_object = 3;
  154. }
  155. message AprReply {
  156. string apr_id = 1;
  157. string apr_name = 2;
  158. string apr_description = 3;
  159. string patient_type = 4;
  160. string body_part_id = 5;
  161. string view_position = 6;
  162. string category = 7;
  163. string modality = 8;
  164. repeated AprSub sub = 9;
  165. int32 sort = 10;
  166. bool is_enabled = 11;
  167. string product = 12;
  168. bool is_pre_install = 13;
  169. }