followup-api.js 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. (function(){
  2. var apis = {
  3. getPatientInfo: function(data){
  4. return APIService.httpGet("/doctor/patient/info", {data: data});
  5. },
  6. getDictByDictName: function(){
  7. return APIService.httpGet("/common/getDictByDictName", {
  8. data: {
  9. name: 'FOLLOWUP_MANAGER_STATUS'
  10. }
  11. })
  12. },
  13. //获取随访内容
  14. getFollowup: function(data){
  15. return APIService.httpGet("/doctor/followup/getFollowup", {data: data});
  16. },
  17. //开始随访计划
  18. startFollowup: function(data){
  19. return APIService.httpPost("/doctor/followup/startFollowup", {data: data});
  20. },
  21. //新增临时随访
  22. addFollowup: function(data){
  23. return APIService.httpPost("/doctor/followup/addFollowup", {data: data});
  24. },
  25. //获得随访个项目数据
  26. getFollowupProjectData: function(data){
  27. return APIService.httpGet("/doctor/followup/getFollowupProjectData", {data: data});
  28. },
  29. //获得历史记录的数据
  30. getHealthIndexHistory: function(data){
  31. return APIService.httpGet("/doctor/health_index/getHealthIndexHistory", {data: data});
  32. },
  33. //获得历史记录的表格参数
  34. getHistoryTableObj:{
  35. url: APIService.server+ '/doctor/health_index/getHealthIndexHistory',
  36. datatype: 'json',
  37. mtype: 'get',
  38. ajaxGridOptions:{
  39. beforeSend: function(request) {
  40. request.setRequestHeader("userAgent", JSON.stringify(APIService.userAgent));
  41. },
  42. complete: function(xhr, ts) {
  43. console.log(xhr);
  44. console.log(ts);
  45. APIService.failCodeHandle(xhr.responseJSON)
  46. //// resolve(res)
  47. // return res;
  48. }
  49. }
  50. },
  51. //保存填写的表单数据
  52. saveFollowupProjectData: function(data){
  53. return APIService.httpPost("/doctor/followup/saveFollowupProjectData", {data: data});
  54. },
  55. //获取随访用药记录的数据
  56. getFollowupDrugs: function(data){
  57. return APIService.httpGet("doctor/followup/drugs/getFollowupDrugs", {data: data});
  58. },
  59. //获取处方记录
  60. getPrescriptionList: function(data){
  61. return APIService.httpGet("doctor/prescriptionInfo/getPrescriptionInfos", {data: data});
  62. },
  63. getPrescriptionListTableAjaxObj: { //表格数据获取时,使用的ajax请求配置
  64. method: 'get',
  65. url: APIService.server + 'doctor/prescriptionInfo/getRecipeMasterList',
  66. contentType: "application/json",
  67. dataType: "json",
  68. ajaxOptions: {
  69. beforeSend: function(request) {
  70. var userAgent = APIService.userAgent;
  71. userAgent = JSON.stringify(userAgent);
  72. request.setRequestHeader("userAgent", userAgent);
  73. }
  74. }
  75. },
  76. //获取用药频率
  77. getRateList:function() {
  78. return APIService.httpGet('doctor/prescriptionInfo/getRateList');
  79. },
  80. //保存随访用药情况
  81. saveFollowupDrugs: function(data){
  82. return APIService.httpPost('doctor/followup/drugs/saveFollowupDrugs', {data: data});
  83. }
  84. };
  85. window.followupAPI = apis;
  86. })(jQuery)