dr_protocol_idl.proto 4.2 KB

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