dr_study_idl.proto 3.5 KB

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