dr_protocol_idl.proto 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. syntax = "proto3";
  2. option go_package = "dr_protocol_pb/";
  3. package dr.protocol;
  4. import "google/protobuf/struct.proto"; // 导入用于处理 JSON 的 struct.proto
  5. message EmptyRequest {}
  6. message IDRequest {
  7. optional uint32 id = 1;
  8. optional string instance_id = 2;
  9. }
  10. service Basic {
  11. rpc SoftwareInfo (EmptyRequest) returns (SoftwareInfoReply) {}
  12. }
  13. message SoftwareInfoReply {
  14. string module = 1;
  15. string desc = 2;
  16. string build = 3;
  17. string version = 4;
  18. }
  19. service Protocol {
  20. rpc GetPatientTypeList (PatientTypeRequest) returns (PatientTypeReply) {}
  21. rpc GetBodyPartList (BodyPartRequest) returns (BodyPartReply) {}
  22. rpc GetProcedureList (ProcedureRequest) returns (ProcedureReply) {}
  23. rpc GetProcedure (IDRequest) returns (Procedure) {}
  24. rpc GetViewList (ViewRequest) returns (ViewReply) {}
  25. rpc GetView (IDRequest) returns (View) {}
  26. }
  27. message PatientTypeRequest {
  28. optional bool is_enabled = 1;
  29. optional bool is_pre_install = 2;
  30. }
  31. message PatientType {
  32. uint64 id = 1;
  33. string patient_type_id = 2;
  34. string patient_type_name = 3;
  35. string patient_type_local = 4;
  36. string patient_type_description = 5;
  37. int32 sort = 6;
  38. bool is_enabled = 7;
  39. string product = 8;
  40. bool is_pre_install = 9;
  41. }
  42. message PatientTypeReply {
  43. repeated PatientType patient_type_list = 1;
  44. }
  45. message BodyPartRequest {
  46. optional string patient_type = 1;
  47. optional string modality = 2;
  48. optional bool is_enabled = 3;
  49. optional bool is_pre_install = 4;
  50. }
  51. message BodyPart {
  52. uint64 id = 1;
  53. string body_part_id = 2;
  54. string body_part_name = 3;
  55. string body_part_local = 4;
  56. string body_part_description = 5;
  57. string patient_type = 6;
  58. string modality = 7;
  59. int32 sort = 8;
  60. bool is_enabled = 9;
  61. string product = 10;
  62. bool is_pre_install = 11;
  63. }
  64. message BodyPartReply {
  65. repeated BodyPart body_part_list = 1;
  66. }
  67. message ProcedureRequest {
  68. optional string patient_type = 1;
  69. optional string body_part_id = 2;
  70. optional string modality = 3;
  71. optional bool is_enabled = 4;
  72. optional bool is_pre_install = 5;
  73. }
  74. message Procedure {
  75. uint64 id = 1;
  76. string procedure_id = 2;
  77. string procedure_code = 3;
  78. string procedure_name = 4;
  79. string procedure_name_local = 5;
  80. string procedure_other_name = 6;
  81. string procedure_description = 7;
  82. string procedure_description_local = 8;
  83. string patient_type = 9;
  84. string body_part_id = 10;
  85. string procedure_type = 11;
  86. bool fast_search = 12;
  87. string protocol_laterality = 13;
  88. string procedure_category = 14;
  89. string modality = 15;
  90. int32 sort = 16;
  91. bool is_enabled = 17;
  92. string product = 18;
  93. bool is_pre_install = 19;
  94. }
  95. message ProcedureReply {
  96. repeated Procedure procedure_list = 1;
  97. }
  98. message ViewRequest {
  99. optional string patient_type = 1;
  100. optional string body_part_id = 2;
  101. optional string procedure_id = 3;
  102. optional string modality = 4;
  103. optional bool is_enabled = 5;
  104. optional bool is_pre_install = 6;
  105. }
  106. message View {
  107. string internal_id = 1;
  108. string view_id = 2;
  109. string view_name = 3;
  110. string view_name_local = 4;
  111. string view_other_name = 5;
  112. string view_description = 6;
  113. string view_position = 7;
  114. string application = 8;
  115. string anatomic_region = 9;
  116. string patient_type = 10;
  117. string body_part_id = 11;
  118. string view_icon_name = 12;
  119. string view_big_icon_name = 13;
  120. string view_coach_name = 14;
  121. string modality = 15;
  122. google.protobuf.Struct config_object = 16;
  123. string tech_template = 17;
  124. string img_proc_template = 18;
  125. int32 sort = 19;
  126. bool is_enabled = 20;
  127. string product = 21;
  128. bool is_pre_install = 22;
  129. }
  130. message ViewReply {
  131. repeated View view_list = 1;
  132. }