doctor.proto 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818
  1. syntax = "proto3";
  2. import "base.proto";
  3. import "system.proto";
  4. package com.ywt.gapi.user;
  5. option java_generic_services = true;
  6. option java_multiple_files = true;
  7. option java_package = "com.ywt.gapi.user";
  8. option go_package = "/gapi";
  9. //医生信息
  10. message Doctor {
  11. int32 userid = 1;
  12. string title = 2;
  13. string specialty = 3;
  14. string briefintro = 4;
  15. int64 createtime = 5;
  16. int64 updatetime = 6;
  17. }
  18. //医生详细信息
  19. message DoctorInfo{
  20. int32 doctorid = 1;
  21. string name = 2;
  22. string avatar = 3;
  23. string city = 4;
  24. string hospital = 5;
  25. string specialty = 6;
  26. int32 status = 7;
  27. string title = 8;
  28. string dept = 9;
  29. string hospitalIds = 10;
  30. string deptIds = 11;
  31. int32 scheduleStatus = 12; //医生出诊状态
  32. int32 consultFee = 13; //医生咨询费用(单位:分)
  33. string qrCodeUrl = 14; //二维码链接
  34. string briefIntro = 15; //简介
  35. int32 signId = 16; //医生签名ID
  36. string signUrl = 17; //医生签名地址
  37. int32 baseInfoStatus = 18; //基本信息是否填写(0-未填写,1-已填写)
  38. int32 licenseStatus = 19; //认证状态(0-未通过,1-已通过)
  39. string mobile = 20; //手机号
  40. int32 authType = 21; //认证方式, 0-后台导入;1-医生认证
  41. int32 userType = 22; //用户类型
  42. string rpContent = 23; //处方二维码内容
  43. string rpUrl = 24; //处方二维码链接
  44. string avatar2 = 25;
  45. string rpContentPc = 26; //处方二维码内容PC端
  46. string rpUrlPc = 27; //处方二维码链接PC端
  47. int32 pharmacyId = 28;
  48. string pharmacyName = 29;
  49. }
  50. //患者信息
  51. message Patient{
  52. int32 patientid = 1; //患者Id
  53. string realname = 2; //真实姓名
  54. int32 age = 3; //年龄
  55. int32 sex = 4; //性别(数字)
  56. string mobile = 5; //手机号码
  57. int32 doctorId = 6; //医生Id
  58. int32 userId = 7; //用户Id
  59. int64 createtime = 8; //创建时间
  60. string chiefComplaint = 9; //主诉
  61. string diagnosis = 10; //诊断结果
  62. string remark = 11; //备注
  63. string sexStr = 12; //性别(中文)
  64. string allergicHistory = 13; //过敏史
  65. string description = 14; //病情描述
  66. string idCardNo = 15; //身份证号
  67. string hisPatientId = 16; //太和门诊ID
  68. }
  69. message DoctorRequest {
  70. int32 userid = 1;
  71. string phone = 2;
  72. }
  73. message DoctorResponse {
  74. Result result = 1;
  75. Doctor doctor = 2;
  76. }
  77. message DoctorInfoResponse{
  78. Result result = 1;
  79. DoctorInfo info = 2;
  80. }
  81. message UnionDoctorListRequest{
  82. int32 doctorId = 1;
  83. int32 pageIndex = 2;
  84. int32 pageSize = 3;
  85. int32 hospitalId = 4;
  86. int32 deptId = 5;
  87. string name = 6;
  88. string areaIds = 7; //地区Id,e.g. 100000,110000,110001
  89. }
  90. message UnionDoctorListResponse{
  91. Result result = 1;
  92. repeated DoctorInfo doctorList = 2;
  93. int32 count = 3;
  94. int32 totalPages = 4;
  95. }
  96. //获取我的关联医生列表请求
  97. message GetFriendListRequest{
  98. int32 doctorId = 1; //医生Id
  99. int32 hospitalId = 2; //医院Id
  100. int32 deptId = 3; //科室Id
  101. string name = 4; //医生姓名
  102. string areaIds = 5; //地区Id,e.g. 100000,110000,110001
  103. }
  104. //获取我的关联医生列表响应
  105. message GetFriendListResponse{
  106. Result result = 1; //结果
  107. repeated DoctorInfo doctorList = 2; //医生列表
  108. }
  109. message PatientListRequest{
  110. int32 doctorId = 1;
  111. int32 pageIndex = 2;
  112. int32 pageSize = 3;
  113. string name = 4;
  114. }
  115. message PatientListResponse {
  116. Result result = 1;
  117. repeated Patient patientlist = 2;
  118. int32 count = 3;
  119. int32 totalPages = 4;
  120. }
  121. message CreatePatientRequest{
  122. string name = 1;
  123. int32 sex = 2;
  124. int32 age = 3;
  125. string mobile = 4;
  126. int32 doctorId = 5;
  127. string chiefComplaint = 6;
  128. string diagnosis = 7;
  129. string remark = 8;
  130. string images = 9;
  131. string allergicHistory = 10; //过敏史
  132. string description = 11; //病情描述
  133. string idCardNo = 12; //身份证号
  134. }
  135. message CreatePatientResponse{
  136. Result result = 1;
  137. }
  138. message WithdrawRequest{
  139. int32 doctorId = 1;
  140. double amount = 2;
  141. int32 cardId = 3;
  142. }
  143. message UnionDoctorRequest{
  144. int32 doctorId = 1;
  145. int32 userId = 2;
  146. int32 type = 3;
  147. }
  148. message PlatformDoctorListRequest{
  149. int32 pageIndex = 1;
  150. int32 pageSize = 2;
  151. int32 doctorId = 3;
  152. string name = 4;
  153. int32 hospitalId = 5;
  154. int32 deptId = 6;
  155. string areaIds = 7; //地区Id,e.g. 100000,110000,110001
  156. }
  157. message PlatformDoctorListResponse{
  158. Result result = 1;
  159. repeated DoctorInfo doctorList = 2;
  160. int32 count = 3;
  161. int32 totalPages = 4;
  162. }
  163. message PatientOrderInfoListRequest{
  164. int32 doctorId = 1;
  165. int32 pageIndex = 2;
  166. int32 pageSize = 3;
  167. string name = 4;
  168. int32 type = 5;
  169. }
  170. message PatientOrderInfoListResponse{
  171. Result result = 1;
  172. repeated PatientOrderInfo patientOrderInfoList = 2;
  173. int32 count = 3;
  174. int32 totalPages = 4;
  175. }
  176. message WithdrawRecord{
  177. int32 recordId = 1;
  178. double amount = 2;
  179. int64 createTime = 3;
  180. int32 cardId = 4;
  181. string cardNo = 5;
  182. int32 status = 6;
  183. int64 updateTime = 7;
  184. int32 auditStatus = 8; //状态(1-待审核,2-审核通过,3-审核不通过)
  185. int32 userId = 9;
  186. string remark = 10;
  187. }
  188. message WithdrawRecordListRequest{
  189. int32 doctorId = 1;
  190. int32 pageIndex = 2;
  191. int32 pageSize = 3;
  192. int32 status = 4;
  193. }
  194. message WithdrawRecordListResponse{
  195. Result result = 1;
  196. repeated WithdrawRecord recordList = 2;
  197. int32 count = 3;
  198. int32 totalPages = 4;
  199. }
  200. //删除银行卡请求
  201. message DelBankCardRequest{
  202. int32 doctorId = 1;
  203. int32 cardId = 2;
  204. }
  205. //查看患者信息请求
  206. message GetPatientRequest{
  207. int32 patientId = 1;
  208. int32 doctorId = 2;
  209. }
  210. //查看患者信息响应
  211. message GetPatientResponse{
  212. Result result = 1;
  213. Patient patient = 2;
  214. repeated MedicalRecordsImage images = 3;
  215. }
  216. //医生签名
  217. message DoctorSign{
  218. int32 id = 1;
  219. int32 doctorId = 2;
  220. string signUrl = 3;
  221. int64 createTime = 4;
  222. }
  223. //保存医生签名请求
  224. message SaveSignRequest{
  225. string signUrl = 1;
  226. int32 doctorId = 2;
  227. }
  228. //获取医生签名请求
  229. message GetDoctorSignListRequest{
  230. int32 doctorId = 1;
  231. }
  232. //获取医生签名响应
  233. message GetDoctorSignListResponse{
  234. Result result = 1;
  235. repeated DoctorSign signs = 2;
  236. }
  237. //根据Id获取医生签名请求
  238. message GetDoctorSignRequest{
  239. int32 id = 1;
  240. }
  241. //根据Id获取医生签名响应
  242. message GetDoctorSignResponse{
  243. Result result = 1;
  244. DoctorSign sign = 2;
  245. }
  246. //删除银行卡请求
  247. message DelPatientRequest{
  248. int32 doctorId = 1;
  249. int32 patientId = 2;
  250. }
  251. //医生出诊状态开关
  252. message UpdateScheduleStatusRequest{
  253. int32 type = 1; //业务类型:1-会诊,2-转诊,3-主诊,4-咨询
  254. int32 status = 2; //业务状态:0-关闭 1-开启
  255. int32 userId = 3; //用户Id
  256. }
  257. //修改咨询费用
  258. message UpdateConsultFeeRequest{
  259. int32 userId = 1; //用户Id
  260. int32 amount = 2; //咨询费用,单位:分
  261. }
  262. //获取咨询功能设置请求
  263. message GetConsultSettingsRequest{
  264. int32 userId = 1; //用户Id
  265. }
  266. //获取咨询功能设置响应
  267. message GetConsultSettingsResponse{
  268. Result result = 1;
  269. int32 consultFee = 2; //咨询费
  270. int32 status = 3; //状态:0-关闭 1-开启
  271. }
  272. //获取咨询医生列表请求
  273. message GetConsultDoctorListRequest{
  274. int32 pageIndex = 1;
  275. int32 pageSize = 2;
  276. string name = 3;
  277. int32 hospitalId = 4;
  278. int32 deptId = 5;
  279. string areaIds = 6; //地区Id
  280. }
  281. //获取咨询医生列表响应
  282. message GetConsultDoctorListResponse{
  283. Result result = 1;
  284. repeated DoctorInfo doctorList = 2;
  285. int32 count = 3;
  286. int32 totalPages = 4;
  287. }
  288. //创建病历请求
  289. message CreateMedicalRecordsRequest{
  290. string typeName = 1;
  291. string desc = 2;
  292. string images = 3;
  293. int32 doctorId = 4;
  294. int32 patientId = 5;
  295. string diagnose = 6;
  296. }
  297. //修改病历请求
  298. message UpdateMedicalRecordsRequest{
  299. int32 recordId = 1;
  300. string typeName = 2;
  301. string desc = 3;
  302. string images = 4;
  303. int32 doctorId = 5;
  304. string diagnose = 6;
  305. }
  306. //病历详情
  307. message MedicalRecordsDetail{
  308. int32 recordId = 1;
  309. string typeName = 2;
  310. string desc = 3;
  311. repeated string imageUrl = 4; //图片
  312. int32 doctorId = 5;
  313. int32 patientId = 6;
  314. int64 createTime = 7;
  315. string mobile = 8;
  316. int32 age = 9;
  317. int32 sex = 10;
  318. string patientName = 11; //患者姓名
  319. int32 userId = 12;
  320. string admTime = 13; //患者入院日期
  321. string hospitalName = 14; //医院名称
  322. string doctorName = 15; //医生名字
  323. string selfReport = 16; //主诉
  324. string phyExam = 17; //体格检查
  325. string diagnose = 18; //诊断结果
  326. string suggestion = 19; //意见
  327. string advice = 20; //门急诊医嘱
  328. repeated LaboratoryReport laboratoryReport = 21; //化验报告
  329. repeated InspectionReport inspectionReport = 22; //检查报告
  330. string idNo = 23; //身份证号
  331. }
  332. //获取病历详情请求
  333. message GetMedicalRecordsDetailRequest{
  334. int32 recordId = 1;
  335. }
  336. //获取病历详情响应
  337. message GetMedicalRecordsDetailResponse{
  338. Result result = 1;
  339. MedicalRecordsDetail detail = 2;
  340. }
  341. //获取病历列表请求
  342. message GetMedicalRecordsDetailListRequest{
  343. int32 doctorId = 1;
  344. int32 pageIndex = 2;
  345. int32 pageSize = 3;
  346. int32 patientId = 4;
  347. }
  348. //获取病历列表响应
  349. message GetMedicalRecordsDetailListResponse{
  350. Result result = 1;
  351. repeated MedicalRecordsDetail detail = 2;
  352. int32 count = 3;
  353. int32 totalPages = 4;
  354. }
  355. //获取病历列表请求
  356. message GetMedicalRecordListByUserIdRequest{
  357. int32 userId = 1;
  358. int32 pageIndex = 2;
  359. int32 pageSize = 3;
  360. }
  361. //获取订单图片列表请求
  362. message GetOrderImageListRequest{
  363. int32 doctorId = 1;
  364. int32 userId = 2;
  365. int32 pageIndex = 3;
  366. int32 pageSize = 4;
  367. }
  368. //获取订单图片列表响应
  369. message GetOrderImageListResponse{
  370. Result result = 1;
  371. repeated MedicalRecordsImage images = 2;
  372. int32 count = 3;
  373. int32 totalPages = 4;
  374. }
  375. message MedicalRecordsImage{
  376. int32 id = 1;
  377. int32 doctorId = 2;
  378. int32 patientId = 3;
  379. string imageUrl = 4;
  380. int64 createTime = 5;
  381. int32 orderId = 6;
  382. }
  383. //患者能否发起业务(远程会诊、名医主诊、双向转诊、咨询)请求
  384. message CanInitiateRequest{
  385. int32 doctorId = 1;
  386. int32 patientId = 2;
  387. int32 type = 3;
  388. }
  389. //获取医生信息请求
  390. message GetDoctorRequest{
  391. int32 doctorId = 1;
  392. }
  393. //获取医生信息响应
  394. message GetDoctorResponse{
  395. Result result = 1;
  396. DoctorInfo doctorInfo = 2; //医生信息
  397. }
  398. //获取所有医生信息请求
  399. message GetDoctorAllRequest {
  400. int32 doctorId = 1;
  401. }
  402. //获取所有医生信息响应
  403. message GetDoctorAllResponse{
  404. int32 code = 1;
  405. repeated DoctorInfo doctorInfos = 2; //医生信息集合
  406. }
  407. //获取远程会诊功能设置请求
  408. message GetTreatmentSettingsRequest{
  409. int32 userId = 1; //用户Id
  410. }
  411. //获取远程会诊功能设置响应
  412. message GetTreatmentSettingsResponse{
  413. Result result = 1;
  414. int32 treatmentFee = 2; //会诊费
  415. }
  416. //医生远程会诊功能设置
  417. message UpdateTreatmentFeeRequest{
  418. int32 userId = 1; //用户Id
  419. int32 amount = 2; //咨询费用,单位:分
  420. }
  421. //医生审核资料
  422. message DoctorInfoAudit{
  423. int32 doctorId = 1;
  424. string avatar = 2;
  425. string doctorName = 3;
  426. int32 sex = 4;
  427. int32 hospitalId = 5;
  428. int32 deptId = 6;
  429. string title = 7;
  430. string briefIntro = 8;
  431. string specialty = 9;
  432. repeated string certificateUrl = 10; //执业证书
  433. int32 auditStatus = 11;
  434. int64 auditTime = 12;
  435. string auditRemark = 13;
  436. int32 infoId = 14;
  437. string hospital = 15;
  438. string dept = 16;
  439. repeated string doctorIdNoImg = 17; //医生身份证照片
  440. repeated string doctorQualificationImg = 18; //医师资格证
  441. repeated string doctorProfessionalSkillImg = 19; //医师专业技术资格证
  442. string idNo = 20; //身份证号码
  443. int32 authType = 21; //认证方式, 0-后台导入;1-医生认证
  444. string avatar2 = 22;
  445. }
  446. //更新医生资料请求
  447. message UpdateDoctorInfoRequest{
  448. int32 doctorId = 1;
  449. string avatar = 2;
  450. string doctorName = 3;
  451. int32 sex = 4;
  452. int32 hospitalId = 5;
  453. int32 deptId = 6;
  454. string title = 7;
  455. string briefIntro = 8;
  456. string specialty = 9;
  457. string idNo = 10; //身份证号
  458. string hospitalName = 11; //医院名称(自填)
  459. repeated string certificateUrl = 12; //执业证书
  460. repeated string doctorIdNoImg = 17; //医生身份证照片
  461. repeated string doctorQualificationImg = 18; //医师资格证
  462. repeated string doctorProfessionalSkillImg = 19; //医师专业技术资格证
  463. }
  464. //获取医生信息请求
  465. message GetDoctorInfoAuditRequest{
  466. int32 doctorId = 1;
  467. }
  468. //获取医生信息响应
  469. message GetDoctorInfoAuditResponse{
  470. Result result = 1;
  471. DoctorInfoAudit doctorInfo = 2;
  472. }
  473. //搜索患者Request
  474. message SearchPatientRequest{
  475. string patientName = 1;
  476. int32 doctorId = 2;
  477. int32 pageIndex = 3; //当前页
  478. int32 pageSize = 4; //每页大小
  479. }
  480. //搜索患者Response
  481. message SearchPatientResponse{
  482. Result result = 1;
  483. repeated Patient patient = 2;
  484. int32 count = 3; //总条数
  485. int32 totalPages = 4; //总页数
  486. }
  487. //查询患者病历数量request
  488. message GetPatientMedicalRecordCountRequest{
  489. int32 patientId = 1; //患者ID
  490. int32 doctorId = 2; //医生ID
  491. }
  492. //查询患者病历数量response
  493. message GetPatientMedicalRecordCountResponse{
  494. int32 code = 1;
  495. string info = 2;
  496. int32 medicalRecordCount = 3; //病历数量
  497. }
  498. //添加或修改病历模版Request
  499. message AddOrUpdateMedicalModuleRequest{
  500. int32 doctorId = 1;
  501. int32 moduleId = 2;
  502. string moduleName = 3;
  503. string context = 4;
  504. int32 type = 5;
  505. }
  506. //得到模版详情Request
  507. message GetMedicalModuleDetailRequest{
  508. int32 moduleId = 1;
  509. }
  510. //得到模版详情Response
  511. message GetMedicalModuleDetailResponse{
  512. Result result = 1;
  513. int32 moduleId = 2;
  514. string moduleName = 3;
  515. string context = 4;
  516. int32 type = 5;
  517. string typeStr = 6;
  518. }
  519. //根据模版类型type和医生ID得到所有模版Request
  520. message GetAllMedicalModuleRequest{
  521. int32 doctorId = 1;
  522. int32 type = 2;
  523. }
  524. message MedicalModule{
  525. int32 moduleId = 1;
  526. string moduleName = 2;
  527. }
  528. //根据模版类型type和医生ID得到所有模版Response
  529. message GetAllMedicalModuleResponse{
  530. Result result = 1;
  531. repeated MedicalModule medicalModule =2;
  532. string context = 3; //表示最近的一个模版内容
  533. int32 type = 4;
  534. string typeStr = 5;
  535. }
  536. //得到患者信息Response
  537. message GetPatientByIdResponse{
  538. Result result = 1;
  539. Patient patient = 2;
  540. }
  541. //获取病历详情Request
  542. message GetMedicalRecordsDetailByIdRequest{
  543. int32 recordId = 1;
  544. }
  545. //获取病历详情Response
  546. message GetMedicalRecordsDetailByIdResponse{
  547. Result result = 1;
  548. string patientName = 2;
  549. int32 patientSex = 3;
  550. int32 patientAge = 4;
  551. string patientMobile = 5;
  552. string chiefComplaint = 6; //主诉
  553. string presentHistory = 7; //现病史
  554. string pastHistory = 8; //既往史
  555. string allergicHistory = 9; //过敏史
  556. string personalHistory = 10; //个人史
  557. string phyExam = 11; //体格检查
  558. double bodyTemperature = 12; //病人体温
  559. string specialCondition = 13; //专科情况
  560. string accessoryExamination = 14; //辅助检查
  561. string diagnosis = 15; //诊断
  562. int32 single = 16; //单病种,1-是,0-否
  563. int64 diseaseTime = 17; //发病时间
  564. int32 disposition = 18; //病人去向
  565. int32 treatmentCase = 19; //抢救病人
  566. int32 treatmentStatus = 20; //是否抢救成功
  567. string diseaseEvaluation = 21; //病情评估
  568. string icdCode = 22; //ICD编码
  569. string management = 23; //处置
  570. string doctorName = 24;
  571. string deptName = 25;
  572. string remark = 26;
  573. int64 createTime = 27; //病历创建时间,就诊日期
  574. }
  575. //获取病历列表Request
  576. message GetMedicalRecordsDetailListByPatientIdRequest{
  577. int32 doctorId = 1;
  578. int32 patientId = 2;
  579. }
  580. //添加患者病历Request
  581. message AddMedicalRecordRequest{
  582. int32 patientId = 1;
  583. string patientName = 2;
  584. int32 patientSex = 3;
  585. int32 patientAge = 4;
  586. string patientMobile = 5;
  587. string chiefComplaint = 6; //主诉
  588. string presentHistory = 7; //现病史
  589. string pastHistory = 8; //既往史
  590. string allergicHistory = 9; //过敏史
  591. string personalHistory = 10; //个人史
  592. string phyExam = 11; //体格检查
  593. double bodyTemperature = 12; //病人体温
  594. string specialCondition = 13; //专科情况
  595. string accessoryExamination = 14; //辅助检查
  596. string diagnosis = 15; //诊断
  597. int32 single = 16; //单病种,1-是,0-否
  598. int64 diseaseTime = 17; //发病时间
  599. int32 disposition = 18; //病人去向
  600. int32 treatmentCase = 19; //抢救病人
  601. int32 treatmentStatus = 20; //是否抢救成功
  602. string diseaseEvaluation = 21; //病情评估
  603. string icdCode = 22; //ICD编码
  604. string management = 23; //处置
  605. int32 doctorId = 24;
  606. string remark = 25;
  607. string idCardNo = 26; //身份证号
  608. int32 userId = 27;
  609. }
  610. //获取关联医生所在医院列表请求
  611. message GetFriendHospitalListRequest{
  612. int32 doctorId = 1; //医生Id
  613. }
  614. //获取关联医生所在医院列表响应
  615. message GetFriendHospitalListResponse{
  616. Result result = 1; //结果
  617. repeated com.ywt.gapi.system.Hospital hospitalList = 2; //医生列表
  618. }
  619. //得到医生最近一个月的交易记录Request create by daiyihua
  620. message GetLastMonthTransactionRecordRequest{
  621. int32 doctorId = 1;
  622. }
  623. //得到医生最近一个月的交易记录Response create by daiyihua
  624. message GetLastMonthTransactionRecordResponse{
  625. Result result = 1;
  626. repeated AccountDetail detailList = 2;
  627. int32 payCount = 3; //支出金额
  628. int32 incomeCount = 4; //收入金额
  629. }
  630. // 按时间段获取医生交易记录request
  631. message GetTransactionRecordRequest {
  632. int32 doctorId = 1;
  633. string startTime = 2; // 起始时间
  634. string endTime = 3; // 结束时间
  635. int32 pageIndex = 4; // 页码
  636. int32 pageSize = 5; // 页大小
  637. }
  638. // 按时间段获取医生交易记录response
  639. message GetTransactionRecordResponse {
  640. Result result = 1;
  641. repeated AccountDetail detailList = 2;
  642. int32 payCount = 3; //支出金额统计
  643. int32 incomeCount = 4; //收入金额统计
  644. int32 count = 5; //总条数
  645. int32 totalPages = 6; //总页数
  646. }
  647. // 快捷语 create by daiyihua
  648. message QuickLanguage{
  649. int32 id=1; //快捷语ID
  650. string content = 2; //快捷语内容
  651. int32 count = 3;
  652. int32 totalPages = 4;
  653. }
  654. //得到快捷语Request create by daiyihua
  655. message GetQuickLanguageListRequest{
  656. }
  657. //得到快捷语Response create by daiyihua
  658. message GetQuickLanguageListResponse{
  659. Result resutl = 1;
  660. repeated QuickLanguage quickLanguage = 2;
  661. }
  662. //出诊排班 create by daiyihua
  663. message DoctorSchedule {
  664. int64 clinicTime = 1 ; //出诊日期
  665. int32 morning = 2; //是否上午出诊(0-不出诊;1-出诊)
  666. int32 afternoon = 3; //是否上午出诊(0-不出诊;1-出诊)
  667. int32 night = 4; //是否上午出诊(0-不出诊;1-出诊)
  668. int32 configId = 5; //schedule配置ID,没有则用0表示
  669. int32 amount = 6; //预约金额
  670. int32 provinceId = 7; //省ID
  671. int32 cityId = 8; //市ID
  672. int32 areaId = 9; //区ID
  673. string province = 10; //省
  674. string city = 11; //市
  675. string area = 12; //区
  676. string address = 13; //地址
  677. string remark = 14; //备注
  678. int32 type = 15; //类型:1-按月 2-按周
  679. int32 scheduleId = 16; //医生排班ID,新增的时候,默认为0
  680. }
  681. //保存出诊排班Request create by daiyihua
  682. message SaveDoctorScheduleRequest {
  683. int32 doctorId = 1; //医生ID
  684. repeated DoctorSchedule doctorSchedule = 2; //出诊排班
  685. }
  686. //得到医生问诊排班信息Request create by daiyihua
  687. message GetDoctorScheduleRequest{
  688. int32 doctorId = 1;
  689. }
  690. //得到医生问诊排班信息Response create by daiyihua
  691. message GetDoctorScheduleResponse{
  692. Result result = 1;
  693. repeated DoctorSchedule doctorSchedule = 2; //出诊排班
  694. }
  695. //根据医生问诊排班ID得到排班信息Request
  696. message GetScheduleConfigByScheduleIdRequest{
  697. int32 docotorId = 1;
  698. int32 scheduleId = 2;
  699. }
  700. //根据医生问诊排班ID得到排班信息Response
  701. message GetScheduleConfigByScheduleIdResponse{
  702. Result result = 1;
  703. DoctorSchedule doctorSchedule = 2; //出诊排班配置
  704. }
  705. //出诊排班 create by daiyihua
  706. message DoctorScheduleTime {
  707. int64 clinicTime = 1 ; //出诊日期
  708. int32 morning = 2; //是否上午出诊(0-不出诊;1-出诊)
  709. int32 afternoon = 3; //是否上午出诊(0-不出诊;1-出诊)
  710. int32 night = 4; //是否上午出诊(0-不出诊;1-出诊)
  711. int32 scheduleId = 5; //预约ID
  712. }
  713. //得到最近的排班信息Request create by daiyihua
  714. message GetLatestScheduleRequest{
  715. int32 doctorId = 1;
  716. string date = 2;
  717. }
  718. //得到最近的排班信息Response create by daiyihua
  719. message GetLatestScheduleResponse{
  720. Result result = 1;
  721. repeated DoctorScheduleTime doctorScheduleTime = 2;
  722. }
  723. //设置停诊排班Response create by daiyihua
  724. message SetCancelScheduleRequest{
  725. int32 doctorId = 1;
  726. string scheduleIds = 2; //停诊排班
  727. }
  728. //判断排班预约状况Request create by daiyihua
  729. message CheckScheduleStatusRequest{
  730. int32 doctorId = 1;
  731. }
  732. //判断排班预约状况Respnose create by daiyihua
  733. message CheckScheduleStatusResponse{
  734. Result result = 1;
  735. int32 count = 2; //0:没有预约,1-有预约
  736. }
  737. // 有加诊排班的医生
  738. message ScheduleDoctorInfo{
  739. int32 doctorId = 1; //医生ID
  740. string name = 2; //医生姓名
  741. string hospital = 3; //医院
  742. string specialty = 4; //擅长
  743. string title = 5; //职称
  744. string dept = 6; //部门
  745. string hospitalIds = 7; //医院ID
  746. string deptIds = 8; //部门ID
  747. string briefIntro = 9; //简介
  748. string avatar = 10; //医生头像
  749. }
  750. //获取加诊医生列表请求
  751. message GetScheduleDoctorListRequest{
  752. int32 hospitalId = 1; //医院Id
  753. int32 deptId = 2; //科室Id
  754. string name = 3; //医生姓名
  755. string areaIds = 4; //地区Id,e.g. 100000,110000,110001
  756. int32 pageIndex = 5; //当前页数
  757. int32 pageSize = 6; //每页大小
  758. }
  759. //获取加诊医生列表响应
  760. message GetScheduleDoctorListResponse{
  761. Result result = 1; //结果
  762. repeated ScheduleDoctorInfo scheduleDoctorInfo = 2; //有加诊排班的医生列表
  763. int32 totalPages = 3; //总页数
  764. int32 count = 4; //总条数
  765. }
  766. //根据状态查询咨询订单Request create by daiyihua
  767. message GetConsultOrderListRequest{
  768. int32 doctorId = 1;
  769. int32 pageIndex = 2;
  770. int32 pageSize = 3;
  771. int32 status = 4;
  772. }
  773. //咨询订单详情 create by daiyihua
  774. message ConsultOrderDetail{
  775. string patientName = 1; //患者姓名
  776. int32 patientSex = 2; //患者性别
  777. int32 patientAge = 3; //患者年龄
  778. string patientMobile = 4; //患者手机号
  779. int32 amount = 5; //咨询费用
  780. int32 status = 6; //预约状态
  781. string statusStr = 7; //预约状态
  782. int32 consultId = 8; // 问诊订单ID
  783. int64 createTime = 9; //下单时间
  784. int32 orderId = 10; //订单ID
  785. }
  786. //根据状态查询咨询订单Response create by daiyihua
  787. message GetConsultOrderListResponse{
  788. Result result = 1; //返回状态
  789. repeated ConsultOrderDetail detail = 2;
  790. int32 count = 3; //总条数
  791. int32 totalPages = 4; //总页数
  792. }
  793. //根据状态查询加号订单Request create by daiyihua
  794. message GetAdditionalRegistrationListRequest{
  795. int32 doctorId = 1;
  796. int32 pageIndex = 2;
  797. int32 pageSize = 3;
  798. int32 status = 4;
  799. }
  800. //加诊订单详情 create by daiyihua
  801. message AdditionalRegistration{
  802. string patientName = 1; //患者姓名
  803. int32 patientSex = 2; //患者性别
  804. int32 patientAge = 3; //患者年龄
  805. string patientMobile = 4; //患者手机号
  806. int32 amount = 5; //加诊费用
  807. string address = 6; //加诊地址
  808. int32 status = 7; //加诊状态
  809. string statusStr = 8; //加诊状态
  810. int32 additionalRegistrationId = 9; //加诊订单ID
  811. int64 addDate = 10; //预约时间
  812. int32 addTime = 11; //上午、下午、晚上
  813. }
  814. //根据状态查询加号订单Response create by daiyihua
  815. message GetAdditionalRegistrationListResponse{
  816. Result result = 1; //返回状态
  817. repeated AdditionalRegistration additionalRegistration = 2;
  818. int32 count = 3; //总条数
  819. int32 totalPages = 4; //总页数
  820. }
  821. //得到医生订单统计Response create by daiyihua
  822. message GetDoctorStatisticsResponse{
  823. Result result = 1;
  824. int32 bookedCount = 2;//已预约数
  825. int32 diagnosisCount = 3;//待诊数
  826. int32 followUpCount = 4; //随访数
  827. int32 consultCount = 5; //咨询数
  828. int32 myTeamCount = 6; //我的团队数量(我加入的和我创建的)
  829. int32 patientCount = 7; //邀请的患者数量
  830. int32 articleCount = 8; //未读资讯数量
  831. }
  832. //医生绑定信息
  833. message DoctorBindWxRequest{
  834. string mobile = 1;
  835. string unionId = 2;
  836. string openId = 3;
  837. int32 terminal = 4;
  838. string ip = 5;
  839. }
  840. //团队中的医生信息 create by daiyihua
  841. message TeamDoctorInfo{
  842. int32 doctorId = 1; //医生ID
  843. string doctorName = 2; //医生姓名
  844. string title = 3; //医生职称
  845. string hospitalName = 4; //医院名称
  846. string deptName = 5; //科室名称
  847. int32 status = 6; //加入状态
  848. string avatar = 7; //医生头像
  849. string specialty = 8; //医生擅长
  850. string avatar2 = 9; //医生头像
  851. }
  852. //保存团队信息Request create by daiyihua
  853. message SaveTeamRequest{
  854. int32 teamId = 1; //团队ID,新增时传0
  855. string teamName = 2; //团队名称
  856. string teamIntro = 3; //团队介绍
  857. repeated TeamDoctorInfo teamDoctorInfo = 4; //团队成员
  858. int32 doctorId = 5; //创建医生ID
  859. }
  860. //得到团队信息Request create by daihua
  861. message GetTeamInfoRequest{
  862. int32 teamId = 1; //团队ID
  863. }
  864. //得到团队信息Response create by daiyihua
  865. message GetTeamInfoResponse{
  866. Result result = 1;
  867. int32 teamId = 2; //团队ID
  868. int32 doctorId = 3; //创建团队的医生ID
  869. string teamName = 4; //团队名称
  870. string teamIntro = 5; //团队介绍
  871. repeated TeamDoctorInfo teamDoctorInfo = 6; //团队成员
  872. }
  873. //搜索医生Request create by daiyihua
  874. message SearchDoctorRequest{
  875. string name = 1; //搜索的关键字
  876. string areaIds = 2; //地区ID
  877. int32 hospitalId = 3; //医院ID
  878. int32 deptId = 4; //科室ID
  879. int32 teamId = 5; //团队ID(新增时传0)
  880. int32 pageIndex = 6; //当前页
  881. int32 pageSize = 7; //每页大小
  882. }
  883. //搜索医生Response create by daiyihua
  884. message SearchDoctorResponse{
  885. Result result = 1;
  886. repeated TeamDoctorInfo teamDoctorInfo = 2; //医生信息
  887. int32 count = 3; //总条数
  888. int32 totalPages = 4; //总页数
  889. }
  890. //删除团队成员Request create by daiyihua
  891. message DelTeamDoctorRequest{
  892. int32 doctorId = 1; //医生ID
  893. int32 teamId = 2; //团队ID
  894. }
  895. //删除团队Request create by daiyihua
  896. message DelTeamRequest{
  897. int32 doctorId = 1; //医生ID
  898. int32 teamId = 2; //团队ID
  899. }
  900. //团队成员 create by daiyihua
  901. message TeamDoctor{
  902. int32 doctorId = 1; //医生ID
  903. string name = 2; //医生姓名
  904. string avatar = 3; //医生头像
  905. string title = 4; //医生职称
  906. string hospital = 5; //医生所在医院(名称)
  907. string dept = 6; //医生所在科室(名称)
  908. string specialty = 7; //医生擅长
  909. }
  910. //团队信息 create by daiyihua
  911. message TeamInfo{
  912. int32 teamId = 1; //团队ID
  913. int32 doctorId = 2; //创建人ID
  914. string teamName = 3; //团队名称
  915. string avatar = 4; //团队头像(创建人头像)
  916. string teamIntro = 5; //团队介绍
  917. repeated TeamDoctor teamDoctor = 6;
  918. string avatar2 = 7; //团队头像(创建人头像)
  919. }
  920. //得到团队信息Request create by daiyihua
  921. message GetMyTeamRequest{
  922. int32 doctorId = 1;
  923. }
  924. //得到团队信息Response create by daiyihua
  925. message GetMyTeamResponse{
  926. Result result = 1;
  927. repeated TeamInfo teamInfo = 2; //团队信息
  928. }
  929. //申请加入团队Request create by daiyihua
  930. message ApplyToJoinRequest{
  931. int32 teamId = 1; //团队ID
  932. int32 doctorId = 2; //医生(申请人)ID
  933. }
  934. //搜索团队Reqeust create by daiyihua
  935. message SearchTeamRequest{
  936. string name = 1; //关键字搜索
  937. int32 doctorId = 2; //医生ID
  938. int32 pageIndex = 3; //当前页
  939. int32 pageSize = 4; //每页大小
  940. }
  941. //搜索团队Response create by daiyihua
  942. message SearchTeamResponse{
  943. Result result = 1;
  944. repeated TeamInfo teamInfo = 2; //团队信息
  945. int32 count = 3; //总条数
  946. int32 totalPages = 4; //总页数
  947. }
  948. //处理邀请Request create by daiyihua
  949. message DealWithInvitationRequest{
  950. int32 doctorId = 1; //医生ID
  951. int32 teamId = 2; //团队ID
  952. int32 status = 3; //状态(1-同意加入,2-拒绝加入)
  953. }
  954. //搜索的医生信息 create by daiyihua
  955. message SearchDoctorInfo{
  956. int32 doctorId = 1; //医生ID
  957. string doctorName = 2; //医生姓名
  958. string title = 3; //医生职称
  959. string hospitalName = 4; //医院名称
  960. string deptName = 5; //科室名称
  961. string avatar = 6; //医生头像
  962. string specialty = 7; //医生擅长
  963. }
  964. //根据科室搜索医生信息Request create by daiyihua
  965. message GetDoctorListByDeptIdRequest{
  966. int32 deptId = 1;
  967. int32 pageIndex = 2; //当前页
  968. int32 pageSize = 3; //每页大小
  969. }
  970. //根据科室搜索医生信息Response create by daiyihua
  971. message GetDoctorListByDeptIdResponse{
  972. Result result = 1;
  973. repeated SearchDoctorInfo searchDoctorInfo = 2; //医生信息
  974. int32 count = 3; //总条数
  975. int32 totalPages = 4; //总页数
  976. }
  977. //根据医生ID得到医生团队数量Request create by daiyihua
  978. message GetDoctorTeamCountRequest{
  979. int32 doctorId = 1; //医生ID
  980. }
  981. //根据医生ID得到医生加号数量Request create by daiyihua
  982. message GetDoctorAdditionalCountRequest{
  983. int32 doctorId = 1; //医生ID
  984. }
  985. //根据医院ID得到医院对象Reqeust create by daiyihua
  986. message GetHospitalByIdRequest{
  987. int32 hospitalId = 1;
  988. }
  989. //根据医院ID得到医院对象Response create by daiyihua
  990. message GetHospitalByIdResponse{
  991. Result result = 1;
  992. int32 hospitalId = 2; //医院ID
  993. string hospitalName = 3; //医院名称
  994. }
  995. //根据用户ID判断医院的状态Request create by daiyihua
  996. message CheckHospitalStatusByDoctorIdRequest{
  997. int32 doctorId = 1; //医生ID
  998. }
  999. //返回医院的状态Request create by daiyihua
  1000. message CheckHospitalStatusResponse{
  1001. Result result = 1;
  1002. int32 status = 2; //医院状态(0-正常 1-禁用)
  1003. }
  1004. //修改患者信息Reqeust create by daiyihua
  1005. message UpdatePatientRequest{
  1006. string name = 1;
  1007. int32 sex = 2;
  1008. int32 age = 3;
  1009. string mobile = 4;
  1010. int32 doctorId = 5;
  1011. string chiefComplaint = 6;
  1012. string diagnosis = 7;
  1013. string remark = 8;
  1014. string images = 9;
  1015. string allergicHistory = 10; //过敏史
  1016. string description = 11; //病情描述
  1017. int32 patientId = 12;
  1018. }
  1019. //得到医生团队信息Request create by daiyihua
  1020. message GetDoctorTeamsRequest{
  1021. int32 doctorId = 1;
  1022. }
  1023. //得到医生团队信息Response create by daiyihua
  1024. message GetDoctorTeamsResponse{
  1025. Result result = 1;
  1026. repeated TeamInfo teamInfo = 2; //团队信息
  1027. }
  1028. //医生对于医院的code
  1029. message DoctorHisCode{
  1030. int32 doctorId = 1; //医生ID
  1031. int32 hospitalId = 2; //医院ID
  1032. string deptCode = 3; //his的部门编号
  1033. string doctorCode = 4; //his的医生编号
  1034. string doctorName = 5; //医生姓名
  1035. }
  1036. //获取医生信息请求 create by daiyihua
  1037. message GetDoctorHisCodeRequest{
  1038. int32 doctorId = 1;
  1039. int32 hospitalId = 2;
  1040. }
  1041. //获取医生信息响应 create by daiyihua
  1042. message GetDoctorHisCodeResponse{
  1043. Result result = 1;
  1044. DoctorHisCode doctorHisCode = 2; //医生信息
  1045. }
  1046. //保存基本信息Request create by daiyihua
  1047. message SaveBaseInfoRequest{
  1048. int32 doctorId = 1;
  1049. string name = 2; //医生姓名
  1050. int32 hospitalId = 3; //医院id
  1051. string hospitalName = 4;//医院名称
  1052. int32 deptId = 5; //科室ID
  1053. string title = 6; //职称
  1054. }
  1055. //根据医院ID和hiscode得到医生信息Request create by daiyihua
  1056. message GetDoctorByHisCodeRequest{
  1057. int32 hospitalId = 1;
  1058. string hisCode = 2;
  1059. }
  1060. //根据医院ID和hiscode得到医生信息Response create by daiyihua
  1061. message GetDoctorByHisCodeResponse{
  1062. Result result = 1;
  1063. int32 doctorId = 2; //医生ID
  1064. string doctorName = 3; //医生姓名
  1065. string avatar = 4; //医生头像
  1066. }
  1067. //患者订单信息
  1068. message PatientOrderInfo{
  1069. int32 patientid = 1;
  1070. string realname = 2;
  1071. int32 age = 3;
  1072. int32 sex = 4;
  1073. string mobile = 5;
  1074. int32 doctorId = 6;
  1075. int32 userId = 7;
  1076. int64 createtime = 8;
  1077. int32 status = 9; //0未预约,1已预约
  1078. int32 type = 10; //订单类型
  1079. string diagnosis = 11; //诊断
  1080. string idCardNo = 15; //身份证号
  1081. }
  1082. //化验报告
  1083. message LaboratoryReport {
  1084. string inspectionId = 1; //检验报告单id
  1085. string inspectionName = 2; //检验报告单标题名称
  1086. int64 inspectionDate = 3; //检验报告单审核日期(YYYY-MM-DD HH:MM:SS)
  1087. int32 status = 4; //报告状态 0 未审核 1已审核
  1088. string patientName = 5; //患者姓名
  1089. string patientAge = 6; //患者年龄
  1090. int32 sex = 7; //性别
  1091. string deptName = 8; //申请科室名称
  1092. string clinicalDiagnosis = 9; //临床诊断
  1093. string reportDoctorName = 10; //报告医生姓名
  1094. string clinicSeq = 11; //门诊就诊流水号
  1095. string inpatientId = 12; //住院号
  1096. string checkDoctorName = 13; //审核医生姓名
  1097. int32 id = 14; //主键
  1098. }
  1099. //检查结果
  1100. message InspectionReport{
  1101. string reportId = 1; //检查报告单id
  1102. string reportTitle = 2; //检查报告单标题名称
  1103. int64 reportDate = 3; //检查报告单审核日期(YYYY-MM-DD HH:MM:SS)
  1104. int32 status = 4; //报告状态 0 未审核 1已审核
  1105. string patientName = 5; //患者姓名
  1106. string patientAge = 6; //患者年龄
  1107. int32 sex = 7; //性别
  1108. string clinicalDiagnosis = 8; //临床诊断
  1109. string clinicSeq = 9; //门诊就诊流水号
  1110. string inpatientId = 10; //住院流水号
  1111. int32 id = 11; //主键Id
  1112. }
  1113. //明细信息
  1114. message AccountDetail{
  1115. int32 detailId = 1;
  1116. double balance = 2;
  1117. double amount = 3;
  1118. string title = 4;
  1119. int64 createTime = 5;
  1120. }
  1121. //病历时间列表
  1122. message MedicalRecordsTime{
  1123. string recordsTime = 1;
  1124. int32 recordsId = 2;
  1125. }
  1126. //病历日期列表
  1127. message MedicalRecordsDate{
  1128. string recordsDate = 1;
  1129. repeated MedicalRecordsTime recordsTime = 2;
  1130. }
  1131. //获取病历列表Response
  1132. message GetMedicalRecordsDetailListByPatientIdResponse{
  1133. Result result = 1;
  1134. repeated MedicalRecordsDate recordsDate = 2;
  1135. }
  1136. //根据科室Id获取医生团队请求
  1137. message GetTeamListByDeptIdRequest{
  1138. int32 deptId = 1;
  1139. }
  1140. //根据科室Id获取医生团队响应
  1141. message GetTeamListByDeptIdResponse{
  1142. int32 code = 1;
  1143. string msg = 2;
  1144. repeated TeamInfo team = 3;
  1145. }
  1146. //科室排班医生
  1147. message DeptScheduleDoctor{
  1148. int32 id = 1;
  1149. int32 hospitalId = 2;
  1150. int32 doctorId = 3;
  1151. string doctorCode = 4;
  1152. string doctorName = 5;
  1153. int32 deptId = 6;
  1154. string deptCode = 7;
  1155. string scheduleCode = 8;
  1156. }
  1157. //获取科室排班医生请求
  1158. message GetDeptScheduleDoctorListRequest{
  1159. }
  1160. //获取科室排班医生响应
  1161. message GetDeptScheduleDoctorListResponse{
  1162. int32 code = 1;
  1163. string msg = 2;
  1164. repeated DeptScheduleDoctor deptDoctor = 3;
  1165. }
  1166. //用户得到平台医生request creawte by daiyihua
  1167. message GeneralGetPlatformDoctorListRequest{
  1168. int32 pageIndex = 1;
  1169. int32 pageSize = 2;
  1170. int32 userId = 3;
  1171. string name = 4;
  1172. int32 hospitalId = 5;
  1173. int32 deptId = 6;
  1174. string areaIds = 7; //地区Id,e.g. 100000,110000,110001
  1175. }
  1176. //用户得到平台医生response creawte by daiyihua
  1177. message GeneralGetPlatformDoctorListResponse{
  1178. Result result = 1;
  1179. repeated DoctorInfo doctorList = 2;
  1180. int32 count = 3;
  1181. int32 totalPages = 4;
  1182. }
  1183. //用户得到关注的平台医生request creawte by daiyihua
  1184. message GeneralGetAttentionDoctorListRequest{
  1185. int32 pageIndex = 1;
  1186. int32 pageSize = 2;
  1187. int32 userId = 3;
  1188. string name = 4;
  1189. int32 hospitalId = 5;
  1190. int32 deptId = 6;
  1191. string areaIds = 7; //地区Id,e.g. 100000,110000,110001
  1192. }
  1193. //用户得到关注的平台医生response creawte by daiyihua
  1194. message GeneralGetAttentionDoctorListResponse{
  1195. Result result = 1;
  1196. repeated DoctorInfo doctorList = 2;
  1197. int32 count = 3;
  1198. int32 totalPages = 4;
  1199. }
  1200. //展示的医生团队数据
  1201. message DisplayTeam{
  1202. message TeamInfo{
  1203. int32 teamId = 1;
  1204. string teamName = 2;
  1205. string teamIntro = 3;
  1206. repeated DoctorInfo doctor = 4;
  1207. }
  1208. message DoctorInfo{
  1209. int32 doctorId = 1;
  1210. string doctorName = 2;
  1211. string title = 3;
  1212. string avatar = 4;
  1213. string hospitalName = 5;
  1214. string deptName = 6;
  1215. string specialty = 7;
  1216. string intro = 8;
  1217. repeated ScheduleInfo schedule = 9;
  1218. }
  1219. message ScheduleInfo{
  1220. string week = 1;
  1221. string date = 2;
  1222. string afternoon = 3;
  1223. string forenoon = 4;
  1224. }
  1225. int32 deptId = 1;
  1226. string deptName = 2;
  1227. repeated TeamInfo team = 3;
  1228. }
  1229. message GetDisplayTeamListRequest{
  1230. }
  1231. message GetDisplayTeamListResponse{
  1232. int32 code = 1;
  1233. string msg = 2;
  1234. repeated DisplayTeam displayTeam = 3;
  1235. }
  1236. message CheckUserUnionDoctorRequest{
  1237. int32 userId = 1;
  1238. int32 doctorId = 2;
  1239. }
  1240. // 通知医生审核通过request
  1241. message NotifyDoctorVerificationPassRequest {
  1242. int32 userId = 1; // user id
  1243. string mobile = 2;
  1244. string password = 3;
  1245. }
  1246. // 通知医生审核不通过request
  1247. message NotifyDoctorVerificationNotPassRequest {
  1248. int32 userId = 1;// user id
  1249. string auditRemark = 2;// 审核备注
  1250. }
  1251. //获取问诊医生列表请求
  1252. message GetConsultDoctorPageListRequest {
  1253. int32 pageIndex = 1; // page index
  1254. int32 pageSize = 2; // page size
  1255. int32 userId = 3; // patient id
  1256. string name = 4; // doctor name, optional
  1257. int32 hospitalId = 5; // hospital id, optional
  1258. int32 deptId = 6; // department id, optional
  1259. string areaIds = 7; // area id, optional
  1260. int32 filterType = 8;// Filter type, 0:no filter, 1:filter out non-consulting doctors.Default is 0.
  1261. }
  1262. //获取问诊医生列表响应
  1263. message GetConsultDoctorPageListResponse {
  1264. Result result = 1;
  1265. repeated ConsultDoctorInfo doctorList = 2;
  1266. int32 count = 3;
  1267. int32 totalPages = 4;
  1268. }
  1269. //问诊医生信息
  1270. message ConsultDoctorInfo {
  1271. int32 doctorId = 1;
  1272. string title = 2;
  1273. string specialty = 3;
  1274. string briefintro = 4;
  1275. int64 createtime = 5;
  1276. int64 updatetime = 6;
  1277. string hospitals = 7;
  1278. string depts = 8;
  1279. string realName = 9;
  1280. string avatar = 10;
  1281. int32 followed = 11; //是否已关注:0-未关注;1-已关注
  1282. string avatar2 = 12;
  1283. }
  1284. //推荐医生
  1285. message RecommendDoctor{
  1286. int32 doctorId = 1;
  1287. string title = 2;
  1288. string specialty = 3;
  1289. string briefintro = 4;
  1290. int64 createtime = 5;
  1291. int64 updatetime = 6;
  1292. string hospitals = 7;
  1293. string depts = 8;
  1294. string realName = 9;
  1295. string avatar = 10;
  1296. int32 lineNumber = 11;//行数
  1297. string avatar2 = 12;
  1298. }
  1299. //推荐医生请求
  1300. message GetRecommendDoctorListRequest{
  1301. }
  1302. //推荐医生响应
  1303. message GetRecommendDoctorListResponse{
  1304. int32 code = 1;
  1305. string msg = 2;
  1306. repeated RecommendDoctor doctor = 3;
  1307. }
  1308. // 扫码加入医生团队
  1309. message ScanQrCodeJoinTeamDoctorRequest{
  1310. int32 teamId = 1; //团队ID
  1311. int32 doctorId = 2; //医生ID
  1312. }
  1313. //医生端公众号功能栏目显示/隐藏设置
  1314. message DoctorMpMenu{
  1315. int32 id = 1;
  1316. int32 doctorId = 2;
  1317. int32 status = 3;
  1318. int64 createTime = 4;
  1319. int64 updateTime = 5;
  1320. string menuCode = 6;
  1321. }
  1322. //获取医生端公众号功能栏目显示/隐藏
  1323. message GetDoctorMpMenuListReqeust{
  1324. int32 doctorId = 1;
  1325. }
  1326. //获取医生端公众号功能栏目显示/隐藏
  1327. message GetDoctorMpMenuListResponse{
  1328. int32 code = 1;
  1329. string msg = 2;
  1330. repeated DoctorMpMenu menu = 3;
  1331. }
  1332. //设置医生端公众号功能栏目显示/隐藏
  1333. message UpdateDoctorMpMenuReqeust{
  1334. int32 doctorId = 1;
  1335. string menuCode = 2;
  1336. int32 status = 3;
  1337. }
  1338. //设置医生端公众号功能栏目显示/隐藏
  1339. message UpdateDoctorMpMenuResponse{
  1340. int32 code = 1;
  1341. string msg = 2;
  1342. }
  1343. message GetIsUserAnAuditDoctorRequest {
  1344. int32 doctorId = 1;
  1345. }
  1346. message GetIsUserAnAuditDoctorResponse {
  1347. int32 code = 1;
  1348. string info = 2;
  1349. int32 status = 3;//审核状态 0-未审核通过;1-审核通过
  1350. }
  1351. //设置医生默认处方药房请求
  1352. message SetDefaultPharmacyRequest{
  1353. int32 doctorId = 1;
  1354. int32 pharmacyId = 2;
  1355. }
  1356. //
  1357. message SetDefaultPharmacyResponse{
  1358. int32 code = 1;
  1359. string msg = 2;
  1360. }
  1361. message DoctorTitle{
  1362. int32 id = 1; // 医生职称表ID
  1363. string name = 2; // 医生职称
  1364. }
  1365. message GetDoctorTitleListRequest{
  1366. }
  1367. message GetDoctorTitleListResponse{
  1368. int32 code = 1;
  1369. string msg = 2;
  1370. repeated DoctorTitle DoctorTitle = 4;
  1371. }
  1372. //医生相关服务 // 对应 rpc 项目的 DoctorServiceImpl 类
  1373. service DoctorService {
  1374. rpc findByUserId(DoctorRequest) returns (DoctorResponse); //根据用户ID获取医生
  1375. rpc getDoctorInfo(DoctorRequest) returns (DoctorInfoResponse); //根据手机号获取医生详细信息
  1376. rpc getPatientList(PatientListRequest) returns (PatientListResponse); //获取"我的患者"列表
  1377. rpc createPatient(CreatePatientRequest) returns (CreatePatientResponse); //添加患者
  1378. rpc getUnionDoctorList(UnionDoctorListRequest) returns (UnionDoctorListResponse); //获取关联医生信息
  1379. rpc unionDoctor(UnionDoctorRequest) returns (Result); //添加或取消医生关联
  1380. rpc getPlatformDoctorList(PlatformDoctorListRequest) returns (PlatformDoctorListResponse); //获取平台所有医生
  1381. rpc getPatientOrderInfoList(PatientOrderInfoListRequest) returns (PatientOrderInfoListResponse); //获取患者订单信息
  1382. rpc DelPatientRequent(DelPatientRequest) returns (Result); //删除我的患者
  1383. rpc getPatient(GetPatientRequest) returns (GetPatientResponse); //获取患者信息
  1384. rpc saveSign(SaveSignRequest) returns (ResultInt); //保存医生签名
  1385. rpc getDoctorSignList(GetDoctorSignListRequest) returns (GetDoctorSignListResponse); //获取医生签名
  1386. rpc updateScheduleStatus(UpdateScheduleStatusRequest) returns (Result); //医生出诊状态开关
  1387. rpc updateConsultFee(UpdateConsultFeeRequest) returns (Result); //修改咨询费用
  1388. rpc getConsultSettings(GetConsultSettingsRequest) returns (GetConsultSettingsResponse);//获取咨询功能设置
  1389. rpc getConsultDoctorList(GetConsultDoctorListRequest) returns (GetConsultDoctorListResponse);//获取咨询医生列表
  1390. rpc createMedicalRecords(CreateMedicalRecordsRequest) returns (Result);//创建病历
  1391. rpc updateMedicalRecords(UpdateMedicalRecordsRequest) returns (Result);//修改病历
  1392. rpc getMedicalRecordsDetail(GetMedicalRecordsDetailRequest) returns (GetMedicalRecordsDetailResponse);//获取病历详情
  1393. //获取病历列表
  1394. rpc getMedicalRecordsDetailList(GetMedicalRecordsDetailListRequest) returns (GetMedicalRecordsDetailListResponse);
  1395. //获取订单图片列表
  1396. rpc getOrderImageList(GetOrderImageListRequest) returns (GetOrderImageListResponse);
  1397. //患者能否发起业务(远程会诊、名医主诊、双向转诊、咨询)
  1398. rpc canInitiate(CanInitiateRequest) returns (Result);
  1399. //获取医生信息
  1400. rpc getDoctor(GetDoctorRequest) returns (GetDoctorResponse);
  1401. //获取所有医生信息
  1402. rpc getDoctorAll(GetDoctorAllRequest) returns (GetDoctorAllResponse);
  1403. //获取远程会诊功能设置
  1404. rpc getTreatmentSettings(GetTreatmentSettingsRequest) returns (GetTreatmentSettingsResponse);
  1405. //修改远程会诊费用
  1406. rpc updateTreatmentFee(UpdateTreatmentFeeRequest) returns (Result);
  1407. //更新医生资料
  1408. rpc updateDoctorInfo(UpdateDoctorInfoRequest) returns (Result);
  1409. //获取医生资料
  1410. rpc getDoctorInfoAudit(GetDoctorInfoAuditRequest) returns (GetDoctorInfoAuditResponse);
  1411. //根据Id获取医生签名
  1412. rpc getDoctorSign(GetDoctorSignRequest) returns (GetDoctorSignResponse);
  1413. //获取我的关联医生列表
  1414. rpc getFriendList(GetFriendListRequest) returns (GetFriendListResponse);
  1415. //根据患者名字搜索患者 create bt daiyihua
  1416. rpc searchPatient(SearchPatientRequest) returns (SearchPatientResponse);
  1417. //根据患者ID得到患者信息 create bt daiyihua
  1418. rpc getPatientById(GetPatientRequest) returns (GetPatientByIdResponse);
  1419. //查询患者病历数量 create bt daiyihua
  1420. rpc getPatientMedicalRecordCount(GetPatientMedicalRecordCountRequest) returns (GetPatientMedicalRecordCountResponse);
  1421. //添加或修改病历模版 create bt daiyihua
  1422. rpc addOrUpdateMedicalModule(AddOrUpdateMedicalModuleRequest) returns (Result);
  1423. //得到病历模版详情 create bt daiyihua
  1424. rpc getMedicalModuleDetail(GetMedicalModuleDetailRequest) returns (GetMedicalModuleDetailResponse);
  1425. //医生得到某一类的所有模版 create bt daiyihua
  1426. rpc getAllMedicalModule(GetAllMedicalModuleRequest) returns (GetAllMedicalModuleResponse);
  1427. //获取病历详情 create bt daiyihua
  1428. rpc getMedicalRecordsDetailById(GetMedicalRecordsDetailByIdRequest) returns (GetMedicalRecordsDetailByIdResponse);
  1429. //获取患者病历列表 create bt daiyihua
  1430. rpc getMedicalRecordsDetailListByPatientId(GetMedicalRecordsDetailListByPatientIdRequest) returns (GetMedicalRecordsDetailListByPatientIdResponse);
  1431. //添加患者病历 create bt daiyihua
  1432. rpc addMedicalRecord(AddMedicalRecordRequest) returns (Result);
  1433. //获取关联医生所在医院列表
  1434. rpc getFriendHospitalList(GetFriendHospitalListRequest) returns (GetFriendHospitalListResponse);
  1435. //医生微信公众号统计信息 create by daiyihua
  1436. rpc getDoctorStatistics(GetDoctorInfoAuditRequest) returns (GetDoctorStatisticsResponse);
  1437. //得到最近一个月的交易记录 create by daiyihua
  1438. rpc getLastMonthTransactionRecord(GetLastMonthTransactionRecordRequest) returns (GetLastMonthTransactionRecordResponse);
  1439. // 按时间段获取交易记录
  1440. rpc getTransactionRecord(GetTransactionRecordRequest) returns (GetTransactionRecordResponse);
  1441. //得到快捷语list create by daiyihua
  1442. rpc getQuickLanguageList(GetQuickLanguageListRequest) returns (GetQuickLanguageListResponse);
  1443. //待诊--(待诊、待诊中) 待诊--问诊记录(结束、退诊、取消) create by daiyihua
  1444. rpc getConsultOrderListWithStatus(GetConsultOrderListRequest) returns (GetConsultOrderListResponse);
  1445. //已预约--(待诊中),已预约--预约加号订单记录(患者取消、就诊结束、医生取消) create by daiyihua
  1446. rpc getAdditionalRegistrationListWithStatus(GetAdditionalRegistrationListRequest) returns (GetAdditionalRegistrationListResponse);
  1447. //保存出诊排班 create by daiyihua
  1448. rpc saveDoctorSchedule(SaveDoctorScheduleRequest) returns (Result);
  1449. //得到出诊排班信息 create by daiyihua
  1450. rpc getDoctorSchedule(GetDoctorScheduleRequest) returns (GetDoctorScheduleResponse);
  1451. //得到最近一周的排班信息 create by daiyihua
  1452. rpc getLatestWeekSchedule(GetDoctorScheduleRequest) returns (GetDoctorScheduleResponse);
  1453. //得到最近三个月的排班信息(排班时间) create by daiyihua
  1454. rpc getLatestSchedule(GetLatestScheduleRequest) returns (GetLatestScheduleResponse);
  1455. //设置停诊 create by daiyihua
  1456. rpc setCancelSchedule(SetCancelScheduleRequest) returns (Result);
  1457. //根据排班ID得到排班配置信息 create by daiyihua
  1458. rpc getScheduleConfigByScheduleId(GetScheduleConfigByScheduleIdRequest) returns (GetScheduleConfigByScheduleIdResponse);
  1459. //判断排班预约情况 create by daiyihua
  1460. rpc checkScheduleStatus(CheckScheduleStatusRequest) returns (CheckScheduleStatusResponse);
  1461. //医生绑定信息 create by daiyihua
  1462. rpc doctorBindWx(DoctorBindWxRequest) returns (Result);
  1463. //保存团队信息 create by daiyihua
  1464. rpc saveTeam(SaveTeamRequest) returns (Result);
  1465. //得到团队信息 create by daiyihua
  1466. rpc getTeamInfo(GetTeamInfoRequest) returns (GetTeamInfoResponse);
  1467. //搜索医生 create by daiyihua
  1468. rpc searchDoctor(SearchDoctorRequest) returns (SearchDoctorResponse);
  1469. //删除团队成员 create by daiyihua
  1470. rpc delTeamDoctor(DelTeamDoctorRequest) returns (Result);
  1471. //得到我的团队 create by daiyihua
  1472. rpc getMyTeam(GetMyTeamRequest) returns (GetMyTeamResponse);
  1473. //删除团队 create by daiyihua
  1474. rpc delTeam(DelTeamRequest) returns (Result);
  1475. //申请加入团队 create by daiyihua
  1476. rpc applyToJoin(ApplyToJoinRequest) returns (Result);
  1477. //搜索团队 create by daiyihua
  1478. rpc searchTeam(SearchTeamRequest) returns (SearchTeamResponse);
  1479. //处理团队邀请
  1480. rpc dealWithInvitation(DealWithInvitationRequest) returns (Result);
  1481. //根据用户ID判断医院的状态 create by daiyihua
  1482. rpc checkHospitalStatusByDoctorId(CheckHospitalStatusByDoctorIdRequest) returns (CheckHospitalStatusResponse);
  1483. //修改患者,病历
  1484. rpc updatePatient(UpdatePatientRequest) returns (Result);
  1485. //得到医生的团队(自己创建的和已加入的) create by daiyihua
  1486. rpc getDoctorTeams(GetDoctorTeamsRequest) returns (GetDoctorTeamsResponse);
  1487. //获取医生对应的his部门、医生编号信息 create by daiyihua
  1488. rpc getDoctorHisCode(GetDoctorHisCodeRequest) returns (GetDoctorHisCodeResponse);
  1489. //保存基本信息 create by daiyihua
  1490. rpc saveBaseInfo(SaveBaseInfoRequest) returns (Result);
  1491. //获取医生认证资料(新增的认证) create by daiyihua
  1492. rpc getDoctorInfoVerify(GetDoctorInfoAuditRequest) returns (GetDoctorInfoAuditResponse);
  1493. //更新医生资料(新增的认证) create by daiyihua
  1494. rpc updateDoctorInfoVerify(UpdateDoctorInfoRequest) returns (Result);
  1495. //根据hisCode得到对应的医生信息 create by daiyihua
  1496. rpc getDoctorByHisCode(GetDoctorByHisCodeRequest) returns (GetDoctorByHisCodeResponse);
  1497. //根据科室Id获取医生团队
  1498. rpc getTeamListByDeptId(GetTeamListByDeptIdRequest) returns (GetTeamListByDeptIdResponse);
  1499. //获取科室排班医生
  1500. rpc getDeptScheduleDoctorList(GetDeptScheduleDoctorListRequest)returns (GetDeptScheduleDoctorListResponse);
  1501. //获取平台所有医生(返回普通用户是否关注该医生)
  1502. rpc generalGetPlatformDoctorList(GeneralGetPlatformDoctorListRequest) returns (GeneralGetPlatformDoctorListResponse);
  1503. //获取关注的平台医生
  1504. rpc generalGetAttentionDoctorList(GeneralGetAttentionDoctorListRequest) returns (GeneralGetAttentionDoctorListResponse);
  1505. //获取展示的医生团队
  1506. rpc getDisplayTeamList(GetDisplayTeamListRequest) returns (GetDisplayTeamListResponse);
  1507. //判断患者是否关注医生
  1508. rpc checkUserUnionDoctor(CheckUserUnionDoctorRequest) returns (ResultInt);
  1509. // 通知医生信息审核通过
  1510. rpc notifyDoctorVerificationPass (NotifyDoctorVerificationPassRequest) returns (Result);
  1511. // 通知医生信息审核不通过
  1512. rpc notifyDoctorVerificationNotPass (NotifyDoctorVerificationNotPassRequest) returns (Result);
  1513. // 获取问诊医生列表
  1514. rpc getConsultDoctorPagedList (GetConsultDoctorPageListRequest) returns (GetConsultDoctorPageListResponse);
  1515. // 加入医生团队
  1516. rpc scanQrCodeJoinTeamDoctor(ScanQrCodeJoinTeamDoctorRequest) returns (Result);
  1517. // 获取推荐医生
  1518. rpc getRecommendDoctorList(GetRecommendDoctorListRequest) returns(GetRecommendDoctorListResponse);
  1519. //
  1520. rpc getDoctorMpMenuList(GetDoctorMpMenuListReqeust) returns (GetDoctorMpMenuListResponse);
  1521. //
  1522. rpc updateDoctorMpMenu(UpdateDoctorMpMenuReqeust) returns (UpdateDoctorMpMenuResponse);
  1523. //获取用户是否是审核通过的医生
  1524. rpc getIsUserAnAuditDoctor(GetIsUserAnAuditDoctorRequest) returns (GetIsUserAnAuditDoctorResponse);
  1525. //设置医生默认处方药房
  1526. rpc setDefaultPharmacy(SetDefaultPharmacyRequest) returns (SetDefaultPharmacyResponse);
  1527. // 得到医生职称列表
  1528. rpc getDoctorTitleList(GetDoctorTitleListRequest) returns (GetDoctorTitleListResponse);
  1529. }