consulting-api.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. (function($){
  2. var consulting = {
  3. getList: function(data){
  4. return APIService.httpGet('/im_new/consult/getList', data);
  5. },
  6. getListTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  7. method: 'get',
  8. url: APIService.server + 'im_new/consult/getList',
  9. contentType: "application/json",
  10. dataType: "json",
  11. ajaxOptions: {
  12. beforeSend: function(request) {
  13. var userAgent = APIService.userAgent;
  14. userAgent = JSON.stringify(userAgent);
  15. request.setRequestHeader("userAgent", userAgent);
  16. }
  17. }
  18. },
  19. getListCount: function(data){
  20. return APIService.httpGet('/im_new/consult/getListCount', data);
  21. },
  22. getConsultStatus: function(data){
  23. return APIService.httpGet('doctor/consult/getConsultStatus', data);
  24. },
  25. getConsultStatusByXFcode:function(data){
  26. return APIService.httpGet('doctor/consult/getConsultStatusByPrescription', data);
  27. },
  28. getPrescriptionInfo: function(data){
  29. return APIService.httpGet('/doctor/consult/prescriptionDetail', data);
  30. },
  31. uploadImage: function(data){
  32. return APIService.httpPost('upload/chat', data);
  33. },
  34. getPatientServiceType: function(data){
  35. return APIService.httpGet('doctor/sign/getPatientFamilyServer', data);
  36. },
  37. finishConsult: function(data){
  38. return APIService.httpPost('doctor/consult/finish_consult', data);
  39. },
  40. //IM相关的接口
  41. socketUrl: APIService.imserver+'/socket.io/socket.io.js',
  42. getMessages: function(sessionId, data){
  43. return APIService.imHttpGet('/sessions/'+sessionId+'/messages', data);
  44. },
  45. sendMessage: function(sessionId, data){
  46. return APIService.imHttpPost('/sessions/'+sessionId+'/messages', data);
  47. },
  48. getMembers: function(sessionId){
  49. return APIService.imHttpGet('/sessions/'+sessionId+'/participants');
  50. },
  51. //通过续方code,获得续方详情
  52. getPrescriptionInfoByCode: function(data){
  53. return APIService.httpGet('doctor/prescriptionInfo/getContinuedPrescriptionAsDoctor', data);
  54. },
  55. //快捷回复列表
  56. getReplyList: function(data){
  57. return APIService.httpPost('/doctor/reply/list', {data: data});
  58. },
  59. //发送血糖血压快捷回复咨询
  60. addPrescriptionBloodStatusConsult: function(data){
  61. return APIService.httpPost('/doctor/consult/addPrescriptionBloodStatusConsult', {data: data});
  62. },
  63. //发送问卷快捷回复咨询
  64. addPrescriptionFollowupContentConsult: function(data){
  65. return APIService.httpPost('/doctor/consult/addPrescriptionFollowupContentConsult', {data: data});
  66. },
  67. //获得问卷列表
  68. getFollowupCountList: function(data){
  69. return APIService.httpGet("/doctor/prescription/followupcontent/list", {data: data});
  70. },
  71. //删除快捷回复内容
  72. deleteQuickReply: function(data){
  73. return APIService.httpPost("doctor/reply/delete", {data: data});
  74. },
  75. //添加快捷回复内容
  76. addQuickReply: function(data){
  77. return APIService.httpPost("/doctor/reply/add", {data: data});
  78. },
  79. //修改快捷回复
  80. modifyQuickReply: function(data){
  81. return APIService.httpPost('/doctor/reply/modify', {data: data});
  82. },
  83. //快捷回复排序
  84. sortList: function(data){
  85. return APIService.httpPost('doctor/reply/sortList', {data: data});
  86. },
  87. //续方药品导入随访记录
  88. importdrugs: function(data){
  89. return APIService.httpPost('/doctor/prescription/followupcontent/importdrugs', {data: data});
  90. },
  91. //续方续方患者的血糖导入随访记录
  92. importbloodsugar: function(data){
  93. return APIService.httpPost('/doctor/prescription/followupcontent/importbloodsugar', {data: data});
  94. },
  95. //续方续方患者的血压导入随访记录
  96. importbloodpressure: function(data){
  97. return APIService.httpPost('/doctor/prescription/followupcontent/importbloodpressure', {data: data});
  98. },
  99. //问卷导入随访记录
  100. importfollowupcontent: function(data){
  101. return APIService.httpPost('/doctor/prescription/followupcontent/importfollowupcontent', {data: data});
  102. },
  103. //获得问卷详情
  104. getSurveyInfo: function(data){
  105. return APIService.httpGet('/doctor/prescription/followupcontent/getinfo', {data: data});
  106. }
  107. };
  108. window.consultingAPI = consulting;
  109. })(jQuery)