dr_protocol_idl.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. syntax = "proto3";
  2. option go_package = "dr_protocol_pb/";
  3. package dr.protocol;
  4. message EmptyRequest {}
  5. service Basic {
  6. rpc SoftwareInfo (EmptyRequest) returns (SoftwareInfoReply) {}
  7. }
  8. message SoftwareInfoReply {
  9. string module = 1;
  10. string desc = 2;
  11. string build = 3;
  12. string version = 4;
  13. }
  14. service Protocol {
  15. rpc GetPatientType (PatientTypeRequest) returns (PatientTypeReply) {}
  16. rpc GetBodyPart (BodyPartRequest) returns (BodyPartReply) {}
  17. rpc GetProcedure (ProcedureRequest) returns (ProcedureReply) {}
  18. }
  19. message PatientTypeRequest {
  20. optional bool is_enabled = 1;
  21. optional bool is_pre_install = 2;
  22. }
  23. message PatientType {
  24. uint64 id = 1;
  25. string patient_type_id = 2;
  26. string patient_type_name = 3;
  27. string patient_type_local = 4;
  28. string patient_type_description = 5;
  29. int32 sort = 6;
  30. bool is_enabled = 7;
  31. string product = 8;
  32. bool is_pre_install = 9;
  33. }
  34. message PatientTypeReply {
  35. repeated PatientType patient_type_list = 1;
  36. }
  37. message BodyPartRequest {
  38. optional string patient_type = 1;
  39. optional string modality = 2;
  40. optional bool is_enabled = 3;
  41. optional bool is_pre_install = 4;
  42. }
  43. message BodyPart {
  44. uint64 id = 1;
  45. string body_part_id = 2;
  46. string body_part_name = 3;
  47. string body_part_local = 4;
  48. string body_part_description = 5;
  49. string patient_type = 6;
  50. string modality = 7;
  51. int32 sort = 8;
  52. bool is_enabled = 9;
  53. string product = 10;
  54. bool is_pre_install = 11;
  55. }
  56. message BodyPartReply {
  57. repeated BodyPart body_part_list = 1;
  58. }
  59. message ProcedureRequest {
  60. optional string patient_type = 1;
  61. optional string body_part_id = 2;
  62. optional string modality = 3;
  63. optional bool is_enabled = 4;
  64. optional bool is_pre_install = 5;
  65. }
  66. message Procedure {
  67. uint64 id = 1;
  68. string procedure_id = 2;
  69. string procedure_code = 3;
  70. string procedure_name = 4;
  71. string procedure_name_local = 5;
  72. string procedure_other_name = 6;
  73. string procedure_description = 7;
  74. string procedure_description_local = 8;
  75. string patient_type = 9;
  76. string body_part_id = 10;
  77. string procedure_type = 11;
  78. bool fast_search = 12;
  79. string protocol_laterality = 13;
  80. string procedure_category = 14;
  81. string modality = 15;
  82. int32 sort = 16;
  83. bool is_enabled = 17;
  84. string product = 18;
  85. bool is_pre_install = 19;
  86. }
  87. message ProcedureReply {
  88. repeated Procedure procedure_list = 1;
  89. }