dr_protocol_idl.proto 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 PatientTypeReply {
  23. uint64 id = 1;
  24. string patient_type_id = 2;
  25. string patient_type_name = 3;
  26. string patient_type_i18n = 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 BodyPartRequest {
  34. optional string patient_type = 1;
  35. optional string category = 2;
  36. optional bool is_enabled = 3;
  37. optional bool is_pre_install = 4;
  38. }
  39. message BodyPartReply {
  40. uint64 id = 1;
  41. string body_part_id = 2;
  42. string body_part_name = 3;
  43. string body_part_i18n = 4;
  44. string body_part_description = 5;
  45. string patient_type = 6;
  46. string category = 7;
  47. int32 sort = 8;
  48. bool is_enabled = 9;
  49. string product = 10;
  50. bool is_pre_install = 11;
  51. }