dr_study_idl.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. syntax = "proto3";
  2. option go_package = "dr_study_pb/";
  3. package dr.study;
  4. import "google/protobuf/timestamp.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 Study {
  20. rpc CreateStudy (StudyRequest) returns (StudyReply) {}
  21. rpc GetStudy (IDRequest) returns (StudyReply) {}
  22. }
  23. message ViewRequest {
  24. string view_id = 1;
  25. string procedure_id = 2;
  26. }
  27. message StudyRequest {
  28. string accession_number = 1;
  29. string patient_id = 2;
  30. string patient_name = 3;
  31. string patient_size = 4;
  32. string patient_age = 5;
  33. google.protobuf.Timestamp patient_dob = 6;
  34. string patient_sex = 7;
  35. string sex_neutered = 8;
  36. string pregnancy_status = 9; //妊娠状态
  37. string patient_type = 10;
  38. string ref_physician = 11; //兽医师
  39. string operator_id = 12;
  40. string modality = 13;
  41. int32 weight = 14;
  42. int32 thickness = 15;
  43. int32 length = 16;
  44. string study_type = 17;
  45. string chip_number = 18;
  46. string variety = 19; //品种描述
  47. string comment = 20; //备注
  48. repeated ViewRequest views = 21;
  49. }
  50. message Image {
  51. string sop_instance_id = 1;
  52. string series_instance_uid = 2;
  53. string study_instance_uid = 3;
  54. string secondary_sop_uid = 4;
  55. string study_id = 5;
  56. string view_id = 6;
  57. string view_description = 7;
  58. string image_status = 8;
  59. string image_file_path = 9;
  60. string acquisition_mode = 10;
  61. int32 sort = 11;
  62. string product = 12;
  63. bool is_pre_install = 13;
  64. }
  65. message Series {
  66. string series_instance_uid = 1;
  67. string study_instance_uid = 2;
  68. string study_id = 3;
  69. string procedure_id = 4;
  70. string body_part = 5;
  71. google.protobuf.Timestamp performed_datetime = 6;
  72. string performed_protocol_code_meaning = 7;
  73. string performed_protocol_code_value = 8;
  74. int32 sort = 9;
  75. string product = 10;
  76. bool is_pre_install = 11;
  77. repeated Image images = 12;
  78. }
  79. message StudyReply {
  80. string study_instance_uid = 1;
  81. string study_id = 2;
  82. string public_study_id = 3;
  83. string specific_character_set = 4;
  84. string accession_number = 5;
  85. string ref_physician = 6;
  86. string patient_id = 7;
  87. string patient_name = 8;
  88. string patient_size = 9;
  89. string other_patient_ids = 10;
  90. string other_patient_names = 11;
  91. string owner_name = 12;
  92. string patient_age = 13;
  93. google.protobuf.Timestamp patient_dob = 14;
  94. string patient_sex = 15;
  95. string patient_state = 16;
  96. google.protobuf.Timestamp admitting_time = 17;
  97. string priority = 18;
  98. string reg_source = 19;
  99. string study_status = 20;
  100. string study_description = 21;
  101. google.protobuf.Timestamp study_start_datetime = 22;
  102. google.protobuf.Timestamp study_end_datetime = 23;
  103. google.protobuf.Timestamp scheduled_procedure_step_start_date = 24;
  104. string performed_physician = 25;
  105. string study_lock = 26;
  106. string folder_path = 27;
  107. string operator_name = 28;
  108. string modality = 29;
  109. int32 weight = 30;
  110. int32 thickness = 31;
  111. int32 length = 32;
  112. string patient_type = 33;
  113. string study_type = 34;
  114. string mwl = 35;
  115. bool is_exported = 36;
  116. bool is_edited = 37;
  117. bool is_appended = 38;
  118. string department = 39;
  119. bool mapped_status = 40;
  120. bool qc_result = 41;
  121. string comment = 42;
  122. int32 sort = 43;
  123. string product = 44;
  124. repeated Series series = 45;
  125. }