dr_protocol_idl.proto 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. }
  18. message PatientTypeRequest {
  19. optional bool is_enabled = 1;
  20. optional bool is_pre_install = 2;
  21. }
  22. message PatientType {
  23. uint64 id = 1;
  24. string patient_type_id = 2;
  25. string patient_type_name = 3;
  26. string patient_type_local = 4;
  27. string patient_type_description = 5;
  28. int32 sort = 6;
  29. bool is_enabled = 7;
  30. string product = 8;
  31. bool is_pre_install = 9;
  32. }
  33. message PatientTypeReply {
  34. repeated PatientType patient_type_list = 1;
  35. }
  36. message BodyPartRequest {
  37. optional string patient_type = 1;
  38. optional string category = 2;
  39. optional bool is_enabled = 3;
  40. optional bool is_pre_install = 4;
  41. }
  42. message BodyPart {
  43. uint64 id = 1;
  44. string body_part_id = 2;
  45. string body_part_name = 3;
  46. string body_part_local = 4;
  47. string body_part_description = 5;
  48. string patient_type = 6;
  49. string category = 7;
  50. int32 sort = 8;
  51. bool is_enabled = 9;
  52. string product = 10;
  53. bool is_pre_install = 11;
  54. }
  55. message BodyPartReply {
  56. repeated BodyPart body_part_list = 1;
  57. }