patient.js 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. import request from '@/utils/request'
  2. export function getBloodDialysisPatient(page, limit) {
  3. const params = {
  4. page: page,
  5. limit: limit
  6. }
  7. return request({
  8. url: 'm/api/patient/getbloodDialysisPatient',
  9. method: 'get',
  10. params: params
  11. })
  12. }
  13. export function getAllBloodDialysisPatient(page, limit, status, source) {
  14. const params = {
  15. page: page,
  16. limit: limit,
  17. patientstatus: status,
  18. source: source
  19. }
  20. return request({
  21. url: '/m/api/patient/getallblooddialysispatient',
  22. method: 'get',
  23. params: params
  24. })
  25. }
  26. export function getAllSlowPatient(page, limit) {
  27. const params = {
  28. page: page,
  29. limit: limit
  30. }
  31. return request({
  32. url: '/m/api/patient/getallslowpatient',
  33. method: 'get',
  34. params: params
  35. })
  36. }
  37. export function getAllMemberPatient(page, limit) {
  38. const params = {
  39. page: page,
  40. limit: limit
  41. }
  42. return request({
  43. url: '/m/api/patient/getallmemberpatient',
  44. method: 'get',
  45. params: params
  46. })
  47. }
  48. export function GenerateDialysisNo(params) {
  49. return request({
  50. url: '/m/api/patients/generatedialysisnotwo',
  51. method: 'get',
  52. params: params
  53. })
  54. }
  55. export function GetIllnessList(params) {
  56. return request({
  57. url: 'm/api/patient/getillnesslist',
  58. method: 'get',
  59. params: params
  60. })
  61. }
  62. export function GetPatientInfo(phone) {
  63. const params = {
  64. phone: phone
  65. }
  66. return request({
  67. url: 'm/api/patient/getpatientinfo',
  68. method: 'get',
  69. params: params
  70. })
  71. }
  72. export function savePatient(data) {
  73. return request({
  74. url: '/m/api/patient/savepatient',
  75. method: 'post',
  76. data: data
  77. })
  78. }
  79. export function getPatientDetail(id, params) {
  80. return request({
  81. url: '/m/api/patient/getpatientdetail?id=' + id,
  82. method: 'get',
  83. params: params
  84. })
  85. }
  86. export function getDoctorAdvices(id, type, startime, endtime, limit, page) {
  87. const params = {
  88. id: id,
  89. type: type,
  90. startime: startime,
  91. endtime: endtime,
  92. limit: limit,
  93. page: page
  94. }
  95. return request({
  96. url: '/m/api/patient/getdoctoradvices',
  97. method: 'get',
  98. params: params
  99. })
  100. }
  101. export function getDryWeight(id, startime, endtime, limit, page) {
  102. const params = {
  103. id: id,
  104. startime: startime,
  105. endtime: endtime,
  106. limit: limit,
  107. page: page
  108. }
  109. return request({
  110. url: '/m/api/paitent/getdryweight',
  111. method: 'get',
  112. params: params
  113. })
  114. }
  115. export function getBloodDialysisPatientTwo(page, limit) {
  116. const params = {
  117. page: page,
  118. limit: limit
  119. }
  120. return request({
  121. url: 'm/api/patient/getbloodDialysisPatientwo',
  122. method: 'get',
  123. params: params
  124. })
  125. }
  126. export function ToSearch(name) {
  127. const params = {
  128. name: name
  129. }
  130. return request({
  131. url: 'm/api/patient/tosearch',
  132. method: 'get',
  133. params: params
  134. })
  135. }
  136. export function getBloodPatientInfo(phone) {
  137. const params = {
  138. phone: phone
  139. }
  140. return request({
  141. url: '/m/api/patient/getbloodpatientinfo',
  142. method: 'get',
  143. params: params
  144. })
  145. }
  146. export function getSlowPatientInfo(phone) {
  147. const params = {
  148. phone: phone
  149. }
  150. return request({
  151. url: '/m/api/patient/getslowpatientinfo',
  152. method: 'get',
  153. params: params
  154. })
  155. }
  156. export function getMemberPatientInfo(phone) {
  157. const params = {
  158. phone: phone
  159. }
  160. return request({
  161. url: '/m/api/patient/getmemberpatientinfo',
  162. method: 'get',
  163. params: params
  164. })
  165. }
  166. export function getCourseManagement(id, limit, page, startime, endtime) {
  167. const params = {
  168. id: id,
  169. limit: limit,
  170. page: page,
  171. startime: startime,
  172. endtime: endtime
  173. }
  174. return request({
  175. url: '/m/api/patient/getcoursemanagement',
  176. method: 'get',
  177. params: params
  178. })
  179. }
  180. export function DeleteCouseManage(id, params) {
  181. return request({
  182. url: '/m/api/patient/delelecousemanage?id=' + id,
  183. method: 'delete',
  184. params: params
  185. })
  186. }
  187. export function getCouseManagementDetail(id, params) {
  188. return request({
  189. url: '/m/api/patient/getcousemanagementdetail?id=' + id,
  190. method: 'get',
  191. params: params
  192. })
  193. }
  194. export function DeleteDryWeight(id, params) {
  195. return request({
  196. url: '/m/api/patient/deletedryweight?id=' + id,
  197. method: 'delete',
  198. params: params
  199. })
  200. }
  201. export function getDryWeightDetail(id, params) {
  202. return request({
  203. url: '/m/api/patient/getdryweightdetail?id=' + id,
  204. method: 'get',
  205. params: params
  206. })
  207. }
  208. export function GetLongDialysisRecord(id, limit, page, startime, endtime) {
  209. const params = {
  210. id: id,
  211. limit: limit,
  212. page: page,
  213. startime: startime,
  214. endtime: endtime
  215. }
  216. return request({
  217. url: '/m/api/patient/getlongdialysisrecord',
  218. method: 'get',
  219. params: params
  220. })
  221. }
  222. export function GetPatientDetail(id, params) {
  223. return request({
  224. url: '/m/api/patient/getpatientdetail?id=' + id,
  225. method: 'get',
  226. params: params
  227. })
  228. }
  229. export function getRescueRecord(id, limit, page, startime, endtime) {
  230. const params = {
  231. id: id,
  232. limit: limit,
  233. page: page,
  234. startime: startime,
  235. endtime: endtime
  236. }
  237. return request({
  238. url: '/m/api/patient/getrescuerecord',
  239. method: 'get',
  240. params: params
  241. })
  242. }
  243. export function getScheduling(id, limit, page, startime, endtime, mode_types) {
  244. const params = {
  245. id: id,
  246. limit: limit,
  247. page: page,
  248. startime: startime,
  249. endtime: endtime,
  250. mode_types: mode_types
  251. }
  252. return request({
  253. url: '/m/api/patient/getscheduling',
  254. method: 'get',
  255. params: params
  256. })
  257. }
  258. export function getEducation(id, limit, page, startime, endtime) {
  259. const params = {
  260. id: id,
  261. limit: limit,
  262. page: page,
  263. startime: startime,
  264. endtime: endtime
  265. }
  266. return request({
  267. url: '/m/api/patient/geteducation',
  268. method: 'get',
  269. params: params
  270. })
  271. }
  272. export function getSchedulingDetail(id, params) {
  273. return request({
  274. url: '/m/api/patient/getschedulingdetail?id=' + id,
  275. method: 'get',
  276. params: params
  277. })
  278. }
  279. export function DeleteScheduling(id, params) {
  280. return request({
  281. url: '/m/api/patient/deletescheduling?id=' + id,
  282. method: 'delete',
  283. params: params
  284. })
  285. }
  286. export function getEducationDetail(id, params) {
  287. return request({
  288. url: '/m/api/patient/geteducationdetail?id=' + id,
  289. method: 'get',
  290. params: params
  291. })
  292. }
  293. export function DeleteEducationOne(id, params) {
  294. return request({
  295. url: '/m/api/patient/deleteeductionone?id=' + id,
  296. method: 'delete',
  297. params: params
  298. })
  299. }
  300. export function getRescueRecordDetail(id, params) {
  301. return request({
  302. url: '/m/api/patient/getrescuerecorddetail?id=' + id,
  303. method: 'get',
  304. params: params
  305. })
  306. }
  307. export function DeleteRescueRecord(id, params) {
  308. return request({
  309. url: '/m/api/patient/deleterescuerecord?id=' + id,
  310. method: 'delete',
  311. params: params
  312. })
  313. }
  314. export function toSearchPatient(keyword) {
  315. const params = {
  316. keyword: keyword
  317. }
  318. return request({
  319. url: '/m/api/patient/tosearchepatient',
  320. method: 'get',
  321. params: params
  322. })
  323. }
  324. export function SearchAllPatient(keyword) {
  325. const params = {
  326. keyword: keyword
  327. }
  328. return request({
  329. url: '/m/api/patient/searchallpatient',
  330. method: 'get',
  331. params: params
  332. })
  333. }
  334. export function SearchAllBlood(keyword) {
  335. const params = {
  336. keyword: keyword
  337. }
  338. return request({
  339. url: '/m/api/patient/searchallblood',
  340. method: 'get',
  341. params: params
  342. })
  343. }
  344. export function getSlowSearchPatient(keyword) {
  345. const params = {
  346. keyword: keyword
  347. }
  348. return request({
  349. url: '/m/api/patient/getslowsearchepatient',
  350. method: 'get',
  351. params: params
  352. })
  353. }
  354. export function getMemberSearchPatient(keyword) {
  355. const params = {
  356. keyword: keyword
  357. }
  358. return request({
  359. url: '/m/api/patient/getmembersearchpatient',
  360. method: 'get',
  361. params: params
  362. })
  363. }
  364. export function getLongDialysisDetail(id, params) {
  365. return request({
  366. url: '/m/api/patient/getlongdialysisdetail?id=' + id,
  367. method: 'get',
  368. params: params
  369. })
  370. }
  371. export function DeleteLongDialysis(id, params) {
  372. return request({
  373. url: '/m/api/patient/deletelongdialysis?id=' + id,
  374. method: 'delete',
  375. params: params
  376. })
  377. }
  378. export function getDialysisRecord(id, limit, page, startime, endtime, dislysType) {
  379. const params = {
  380. id: id,
  381. limit: limit,
  382. page: page,
  383. startime: startime,
  384. endtime: endtime,
  385. dislysType: dislysType
  386. }
  387. return request({
  388. url: '/m/api/patient/getdialysisrecord',
  389. method: 'get',
  390. params: params
  391. })
  392. }
  393. export function GetDoctorAdviceDetail(id, params) {
  394. return request({
  395. url: '/m/api/patient/getdoctoradvicedetail?id=' + id,
  396. method: 'get',
  397. params: params
  398. })
  399. }
  400. export function DeleteManagement(id, params) {
  401. return request({
  402. url: '/m/api/patient/deletemanagement?id=' + id,
  403. method: 'delete',
  404. params: params
  405. })
  406. }
  407. export function DeleteChild(id, params) {
  408. return request({
  409. url: '/m/api/patient/deletechild?id=' + id,
  410. method: 'delete',
  411. params: params
  412. })
  413. }
  414. export function updatedPatient(data) {
  415. return request({
  416. url: '/m/api/patient/updatedpatient',
  417. method: 'post',
  418. data: data
  419. })
  420. }
  421. export function getAllDoctor(params) {
  422. return request({
  423. url: '/m/api/patient/getalldoctor',
  424. method: 'get',
  425. params: params
  426. })
  427. }
  428. export function getAllInspection(params) {
  429. return request({
  430. url: '/m/api/patient/getallinspection',
  431. method: 'get',
  432. params: params
  433. })
  434. }
  435. export function getInspection(id, limit, page, startime, endtime, projectid) {
  436. const params = {
  437. id: id,
  438. limit: limit,
  439. page: page,
  440. startime: startime,
  441. endtime: endtime,
  442. projectid: projectid
  443. }
  444. return request({
  445. url: '/m/api/patient/getinspection',
  446. method: 'get',
  447. params: params
  448. })
  449. }
  450. export function getMyInformation(id, params) {
  451. return request({
  452. url: '/m/api/patient/getmyinformation?id=' + id,
  453. method: 'get',
  454. params: params
  455. })
  456. }
  457. export function getPatientName(id, params) {
  458. return request({
  459. url: '/m/api/patient/getpatientname?id=' + id,
  460. method: 'get',
  461. params: params
  462. })
  463. }
  464. export function getInspectionDetail(patientid, date, projectid) {
  465. const params = {
  466. patientid: patientid,
  467. date: date,
  468. projectid: projectid
  469. }
  470. return request({
  471. url: '/m/api/patient/getinspectiondetail',
  472. method: 'get',
  473. params: params
  474. })
  475. }
  476. export function submitFeed(params) {
  477. return request({
  478. url: '/m/api/patient/savefeed',
  479. method: 'get',
  480. params: params
  481. })
  482. }
  483. export function DeleteInspection(date) {
  484. const params = {
  485. date: date
  486. }
  487. return request({
  488. url: '/m/api/patient/deleteinspection',
  489. method: 'delete',
  490. params: params
  491. })
  492. }
  493. export function DeleteChildInspection(name, date) {
  494. const params = {
  495. name: name,
  496. date: date
  497. }
  498. return request({
  499. url: '/m/api/patient/deletechildinspection',
  500. method: 'delete',
  501. params: params
  502. })
  503. }
  504. export function SaveMessage(params) {
  505. return request({
  506. url: '/m/api/patient/savemessage',
  507. method: 'get',
  508. params: params
  509. })
  510. }
  511. export function SaveSex(sex, id) {
  512. const params = {
  513. sex: sex,
  514. id: id
  515. }
  516. return request({
  517. url: '/m/api/patient/savesex',
  518. method: 'get',
  519. params: params
  520. })
  521. }
  522. export function SaveBirthday(data) {
  523. return request({
  524. url: '/m/api/patient/savebirthday',
  525. method: 'post',
  526. data: data
  527. })
  528. }
  529. export function getOrgName(id, params) {
  530. return request({
  531. url: '/m/api/patient/getorgname?id=' + id,
  532. method: 'Get',
  533. params: params
  534. })
  535. }
  536. export function getRoleName(id, params) {
  537. return request({
  538. url: '/m/api/patient/getrolename?id=' + id,
  539. method: 'get',
  540. params: params
  541. })
  542. }
  543. export function SavePartition(params) {
  544. return request({
  545. url: '/m/api/patient/savepartition',
  546. method: 'get',
  547. params: params
  548. })
  549. }
  550. export function GetAllZone(page, limit) {
  551. const params = {
  552. page: page,
  553. limit: limit
  554. }
  555. return request({
  556. url: '/m/api/patient/getallzone',
  557. method: 'get',
  558. params: params
  559. })
  560. }
  561. export function DeleteZone(id, params) {
  562. return request({
  563. url: '/m/api/patient/deletezone?id=' + id,
  564. method: 'delete',
  565. params: params
  566. })
  567. }
  568. export function saveGroup(params) {
  569. return request({
  570. url: '/m/api/patient/savegroup',
  571. method: 'get',
  572. params: params
  573. })
  574. }
  575. export function getAllGroup(page, limit) {
  576. const params = {
  577. page: page,
  578. limit: limit
  579. }
  580. return request({
  581. url: '/m/api/patient/getallgroup',
  582. method: 'get',
  583. params: params
  584. })
  585. }
  586. export function DeleteGroup(id, params) {
  587. return request({
  588. url: '/m/api/patient/deletegroup?id=' + id,
  589. method: 'delete',
  590. params: params
  591. })
  592. }
  593. export function getAllGroupOne(params) {
  594. return request({
  595. url: '/m/api/patient/getallgroupone',
  596. method: 'get',
  597. params: params
  598. })
  599. }
  600. export function SaveBed(params) {
  601. return request({
  602. url: '/m/api/patient/savebed',
  603. method: 'get',
  604. params: params
  605. })
  606. }
  607. export function GetAllNumber(page, limit) {
  608. const params = {
  609. page: page,
  610. limit: limit
  611. }
  612. return request({
  613. url: '/m/api/patient/getallnumber',
  614. method: 'get',
  615. params: params
  616. })
  617. }
  618. export function DeleteBed(id, params) {
  619. return request({
  620. url: '/m/api/patient/deletebed?id=' + id,
  621. method: 'delete',
  622. params: params
  623. })
  624. }
  625. export function LoginOut(id, params) {
  626. return request({
  627. url: '/m/api/patient/loginout?id=' + id,
  628. method: 'get',
  629. params: params
  630. })
  631. }
  632. export function getMemberPatient(params) {
  633. return request({
  634. url: '/m/api/patient/getmemberpatient',
  635. method: 'get',
  636. params: params
  637. })
  638. }
  639. export function getSlowPatient(params) {
  640. return request({
  641. url: '/m/api/patient/getslowpatient',
  642. method: 'get',
  643. params: params
  644. })
  645. }
  646. export function getBloodPatient(params) {
  647. return request({
  648. url: '/m/api/patient/getbloodpatient',
  649. method: 'get',
  650. params: params
  651. })
  652. }
  653. export function DeletePatient(id, params) {
  654. return request({
  655. url: '/m/api/patient/deletePatient?id=' + id,
  656. method: 'delete',
  657. params: params
  658. })
  659. }
  660. export function saveName(id, name) {
  661. const params = {
  662. id: id,
  663. name: name
  664. }
  665. return request({
  666. url: '/m/api/patient/savename',
  667. method: 'get',
  668. params: params
  669. })
  670. }
  671. export function getAllOrganization(id, params) {
  672. return request({
  673. url: '/m/api/patient/getallorganization?id=' + id,
  674. method: 'get',
  675. params: params
  676. })
  677. }
  678. export function getMyOrganazition(id, params) {
  679. return request({
  680. url: '/m/api/patient/getmyorganazition?id=' + id,
  681. method: 'get',
  682. params: params
  683. })
  684. }
  685. export function getOrgInformation(id, params) {
  686. return request({
  687. url: '/m/api/org/getorginformation?id=' + id,
  688. method: 'get',
  689. params: params
  690. })
  691. }
  692. export function getAllOrgType(params) {
  693. return request({
  694. url: '/m/api/patient/getallorgtype',
  695. method: 'get',
  696. params: params
  697. })
  698. }
  699. export function updateOrg(params, id) {
  700. return request({
  701. url: '/m/api/patient/editorg?id=' + id,
  702. method: 'get',
  703. params: params
  704. })
  705. }
  706. export function getMyInforName(id, params) {
  707. return request({
  708. url: '/m/api/patient/getmyinforname?id=' + id,
  709. method: 'get',
  710. params: params
  711. })
  712. }
  713. export function getPartionDetail(id, params) {
  714. return request({
  715. url: '/m/api/patient/getpartiondetail?id=' + id,
  716. method: 'get',
  717. params: params
  718. })
  719. }
  720. export function UpdatePartition(params) {
  721. return request({
  722. url: '/m/api/patient/updatepartition',
  723. method: 'get',
  724. params: params
  725. })
  726. }
  727. export function getGroupDetail(id, params) {
  728. return request({
  729. url: '/m/api/patient/getgroupdetail?id=' + id,
  730. method: 'get',
  731. params: params
  732. })
  733. }
  734. export function updateGroup(params) {
  735. return request({
  736. url: '/m/api/patient/updategroup',
  737. method: 'get',
  738. params: params
  739. })
  740. }
  741. export function getBedDetail(id, params) {
  742. return request({
  743. url: '/m/api/patient/getbeddetail?id=' + id,
  744. method: 'get',
  745. params: params
  746. })
  747. }
  748. export function updateBed(params) {
  749. console.log('params', params)
  750. return request({
  751. url: '/m/api/patient/updatebed',
  752. method: 'get',
  753. params: params
  754. })
  755. }