dr_protocol_idl.proto 3.4 KB

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