dialysis.js 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. import request from '@/utils/request'
  2. export function fetchList(params) {
  3. return request({
  4. url: '/api/patients',
  5. method: 'get',
  6. params: params
  7. })
  8. }
  9. export function getSchedualPatient(params) {
  10. return request({
  11. url: '/api/dialysis/patients',
  12. method: 'get',
  13. params: params
  14. })
  15. }
  16. export function PatientInfo(params) {
  17. return request({
  18. url: '/api/dialysis/info',
  19. method: 'get',
  20. params: params
  21. })
  22. }
  23. export function doctorAndNurseList(params) {
  24. return request({
  25. url: '/api/alldoctors',
  26. method: 'get',
  27. params: params
  28. })
  29. }
  30. export function commitDailysisRecord(params) {
  31. return request({
  32. url: '/api/dialysis/record',
  33. method: 'post',
  34. params: params
  35. })
  36. }
  37. export function getGobelInfo(params) {
  38. return request({
  39. url: '/api/dialysis/golbal',
  40. method: 'post',
  41. params: params
  42. })
  43. }
  44. export function CreateDoctorAdvice(id, dialysisId, record_date, params) {
  45. return request({
  46. url: '/api/dialysis/advice/create?id=' + id + '&dialysis_id=' + dialysisId + '&record_date=' + record_date,
  47. method: 'post',
  48. data: params
  49. })
  50. }
  51. export function getDoctorAdviceById(params) {
  52. return request({
  53. url: '/api/dialysis/advice/get',
  54. method: 'get',
  55. params: params
  56. })
  57. }
  58. export function editDoctorAdviceById(params) {
  59. return request({
  60. url: '/api/dialysis/advice/edit',
  61. method: 'put',
  62. params: params
  63. })
  64. }
  65. export function CreateMonitor(params) {
  66. return request({
  67. url: '/api/dialysis/monitor/create',
  68. method: 'post',
  69. params: params
  70. })
  71. }
  72. export function DelMonitor(params) {
  73. return request({
  74. url: '/api/dialysis/monitor/del',
  75. method: 'post',
  76. params: params
  77. })
  78. }
  79. export function GetAllZone(params) {
  80. return request({
  81. url: '/api/dialysis/zone',
  82. method: 'get',
  83. params: params
  84. })
  85. }
  86. export function PostStartRecordInfo(params) {
  87. return request({
  88. url: '/api/dialysis/start',
  89. method: 'post',
  90. params: params
  91. })
  92. }
  93. export function GetGlobalInfo(params) {
  94. return request({
  95. url: '/api/dialysis/device',
  96. method: 'get',
  97. params: params
  98. })
  99. }
  100. export function GetDeviceInfo(params) {
  101. return request({
  102. url: '/api/dialysis/device',
  103. method: 'get',
  104. params: params
  105. })
  106. }
  107. export function commitDailysisSolution(params) {
  108. return request({
  109. url: '/api/dialysis/global',
  110. method: 'get',
  111. params: params
  112. })
  113. }
  114. export function delMonitor(params) {
  115. return request({
  116. url: '/api/dialysis/monitor/del',
  117. method: 'post',
  118. params: params
  119. })
  120. }
  121. export function getDialysisRecord(params) {
  122. return request({
  123. url: '/api/dialysis/dialysisorder',
  124. method: 'Get',
  125. params: params
  126. })
  127. }
  128. export function postPrescription(params) {
  129. console.log('params', params)
  130. return request({
  131. url: '/api/dialysis/prescription',
  132. method: 'Post',
  133. params: params,
  134. headers: {
  135. 'Permission': 2
  136. }
  137. })
  138. }
  139. export function postSoulution(params) {
  140. console.log('params', params)
  141. return request({
  142. url: '/api/dialysis/soulution',
  143. method: 'Post',
  144. params: params,
  145. headers: {
  146. 'Permission': 2
  147. }
  148. })
  149. }
  150. export function postDoubleCheck(params) {
  151. return request({
  152. url: '/api/dialysis/dobule',
  153. method: 'Post',
  154. params: params,
  155. headers: {
  156. 'Permission': 2
  157. }
  158. })
  159. }
  160. export function postAccepts(params) {
  161. console.log('params', params)
  162. return request({
  163. url: '/api/dialysis/accepts',
  164. method: 'Post',
  165. params: params,
  166. headers: {
  167. 'Permission': 2
  168. }
  169. })
  170. }
  171. export function postAssessmentBeforeDislysis(params) {
  172. console.log('params', params)
  173. return request({
  174. url: '/api/dialysis/assessmentbeforedislysis',
  175. method: 'Post',
  176. params: params,
  177. headers: {
  178. 'Permission': 2
  179. }
  180. })
  181. }
  182. export function postTreatmentsummary(params) {
  183. console.log('param223322323', params)
  184. return request({
  185. url: '/api/dialysis/treatmentsummary',
  186. method: 'Post',
  187. params: params,
  188. headers: {
  189. 'Permission': 2
  190. }
  191. })
  192. }
  193. export function postAssessmentAfterDislysis(params, data) {
  194. return request({
  195. url: '/api/dialysis/assessmentafterdislysis',
  196. method: 'Post',
  197. params: params,
  198. data: data,
  199. headers: {
  200. 'Permission': 2
  201. }
  202. })
  203. }
  204. export function postDelMonitorInfo(params) {
  205. return request({
  206. url: '/api/dialysis/monitor/del',
  207. method: 'Post',
  208. params: params,
  209. data: data
  210. })
  211. }
  212. export function CreateGroupAdvice(id, groupno, advices) {
  213. return request({
  214. url: '/api/advice_remind/create?id=' + id + '&groupno=' + groupno,
  215. method: 'post',
  216. data: advices,
  217. headers: {
  218. 'Permission': 2
  219. }
  220. })
  221. }
  222. export function GetSolution(params) {
  223. return request({
  224. url: '/api/solution/get',
  225. method: 'get',
  226. params: params
  227. })
  228. }
  229. export function CreateDryWeight(params) {
  230. return request({
  231. url: '/api/dryweight/commit',
  232. method: 'post',
  233. params: params,
  234. headers: {
  235. 'Permission': 2
  236. }
  237. })
  238. }
  239. export function GetDialysisgoods(params) {
  240. return request({
  241. url: '/api/dialysisgoods/get',
  242. method: 'get',
  243. params: params
  244. })
  245. }
  246. export function GetDialysisGoodStatistics(params) {
  247. return request({
  248. url: '/api/goodstatistics/get',
  249. method: 'get',
  250. params: params
  251. })
  252. }
  253. export function changeRole(params) {
  254. return request({
  255. url: '/api/get/getrolelist',
  256. method: 'get',
  257. params: params
  258. })
  259. }
  260. export function getPatientDialysisSolutionGroupList(params) {
  261. return request({
  262. url: '/api/patient/getpatientdialysissolutiongrouplist',
  263. method: 'get',
  264. params: params
  265. })
  266. }
  267. export function getDialysisAdviceTemplateList(params) {
  268. return request({
  269. url: '/api/patient/getdialysisadvicetemplatelist',
  270. method: 'get',
  271. params: params
  272. })
  273. }
  274. export function saveDialysisSetting(params) {
  275. return request({
  276. url: '/api/patient/savedialysissetting',
  277. method: 'get',
  278. params: params
  279. })
  280. }
  281. export function getDialysisSetting(params) {
  282. return request({
  283. url: '/api/patient/getdialysissetting',
  284. method: 'get',
  285. params: params
  286. })
  287. }
  288. export function getDialysisParameter(params) {
  289. return request({
  290. url: '/api/patient/getdialysisparameter',
  291. method: 'get',
  292. params: params
  293. })
  294. }
  295. export function getDialysisGoodTotalCount(params) {
  296. return request({
  297. url: '/api/patient/getdialysisgoodtotalcount',
  298. method: 'get',
  299. params: params
  300. })
  301. }
  302. export function getDialysisAdviceSchedudeList(params) {
  303. return request({
  304. url: '/api/patient/getdialysisadvicescheduelist',
  305. method: 'get',
  306. params: params
  307. })
  308. }
  309. export function getDialysisParameterGoodList(params) {
  310. return request({
  311. url: '/api/patient/getdialysisparametergoodlist',
  312. method: 'get',
  313. params: params
  314. })
  315. }
  316. export function saveHisDialysis(params) {
  317. return request({
  318. url: '/api/patient/savehisdialysis',
  319. method: 'get',
  320. params: params
  321. })
  322. }
  323. export function getHisDialysisGoodCount(params) {
  324. return request({
  325. url: '/api/patient/gethisdialysisgoodcount',
  326. method: 'get',
  327. params: params
  328. })
  329. }
  330. export function getSchedualPrintList(params) {
  331. return request({
  332. url: '/api/patient/getscheduleprintlist',
  333. method: 'get',
  334. params: params
  335. })
  336. }
  337. export function getSolutionlistByOrgId(params) {
  338. return request({
  339. url: '/api/patient/getsolutionlistbyorgid',
  340. method: 'get',
  341. params: params
  342. })
  343. }
  344. export function getDialysisAdviceToday(params) {
  345. return request({
  346. url: '/api/patient/getdialysisadvicetoday',
  347. method: 'get',
  348. params: params
  349. })
  350. }