123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815 |
- import request from '@/utils/request'
- import { fromTextArea } from 'codemirror'
-
- export function fetchList(params) {
- return request({
- url: '/api/patients',
- method: 'get',
- params: params
- })
- }
-
- export function fetchAllList() {
- return request({
- url: '/api/patients/all',
- method: 'get'
- })
- }
- export function GetPatientTotal() {
- return request({
- url: '/api/patients/total',
- method: 'get'
- })
- }
-
- export function generateDialysisNo() {
- return request({
- url: '/api/patients/generatedialysisno',
- method: 'get'
- })
- }
-
- export function createPatient(patient) {
- return request({
- url: '/api/patients/create?record_date=' + patient.record_date + '&is_infectious=' + patient.is_infectious + '&remind_cycle=' + patient.remind_cycle,
- method: 'post',
- data: patient
- })
- }
- export function editPatient(id, patient) {
- return request({
- url: '/api/patients/edit?id=' + id + '&record_date=' + patient.record_date + '&is_infectious=' + patient.is_infectious + '&remind_cycle=' + patient.remind_cycle,
- method: 'put',
- data: patient
- })
- }
- export function fetchPatient(id) {
- return request({
- url: '/api/patients/get?id=' + id,
- method: 'get'
- })
- }
-
- export function fetchPatientDialysisSolutions(params) {
- return request({
- url: '/api/patients/dialysissolutions',
- method: 'Get',
- params: params
- })
- }
-
- export function findePatientDialysisLongSolutions(params) {
- return request({
- url: '/api/patient/findepatientdialysislongsolutions',
- method: 'get',
- params: params
- })
- }
-
- export function createPatientDialysisSolution(id, solution, mode) {
- return request({
- url: '/api/patients/dialysissolution/create?patient=' + id + '&mode=' + mode,
- method: 'post',
- data: solution,
- headers: {
- 'Permission': 3
- }
-
- })
- }
-
- export function editPatientDialysisSolution(patient, id, solution, mode) {
- return request({
- url: '/api/patients/dialysissolution/edit?patient=' + patient + '&id=' + id + '&mode=' + mode,
- method: 'put',
- data: solution,
- headers: {
- 'Permission': 3
- }
-
- })
- }
-
- export function createChildPatientDialysisSolution(id, solution) {
- return request({
- url: '/api/patients/dialysissolution/child/create?patient=' + id,
- method: 'post',
- data: solution
- })
- }
-
- export function editChildPatientDialysisSolution(patient, id, solution) {
- return request({
- url: '/api/patients/dialysissolution/child/edit?patient=' + patient + '&id=' + id,
- method: 'put',
- data: solution
- })
- }
-
- export function editDialysisSolutionDetail(patient, id, solution) {
- return request({
- url: '/api/patients/dialysissolution/detail/edit?patient=' + patient + '&id=' + id,
- method: 'put',
- data: solution
- })
- }
-
- export function deleteDialysisSolution(id) {
- return request({
- url: '/api/patients/dialysissolution/delete?id=' + id,
- method: 'delete'
- })
- }
-
- export function createDryWeight(patient, weight) {
- return request({
- url: '/api/patients/dryweight/create?id=' + patient,
- method: 'post',
- data: weight
- })
- }
-
- export function getDryWeights(params) {
- return request({
- url: '/api/patients/dryweight/get',
- method: 'get',
- params: params
- })
- }
-
- export function getPatientDialysisRecords(params) {
- return request({
- url: '/api/patients/dialysisrecords',
- method: 'get',
- params: params
- })
- }
- export function getPatientProEducation(params) {
- return request({
- url: '/api/patients/proeducation',
- method: 'get',
- params: params
- })
- }
-
- export function getCourseOfDiseaseRecords(patient_id, start_time_ymd, end_time_ymd) {
- var params = {
- patient_id: patient_id,
- start_time: start_time_ymd,
- end_time: end_time_ymd
- }
- return request({
- url: '/api/patient/courses',
- method: 'get',
- params: params
- })
- }
-
- export function createCourseOfDiseaseRecord(patient_id, content, record_time, title) {
- var params = {
- patient_id: patient_id,
- content: content,
- record_time: record_time,
- title: title
- }
- console.log('params222222', params)
- return request({
- url: '/api/patient/course/create',
- method: 'get',
- params: params
- })
- }
-
- export function modifyCourseOfDiseaseRecord(patient_id, content, record_time, id, title) {
- console.log(title)
- var params = {
- patient_id: patient_id,
- content: content,
- record_time: record_time,
- id: id,
- title: title
-
- }
- return request({
- url: '/api/patient/course/modify',
- method: 'get',
- params: params
- })
- }
-
- export function getRescueRecords(patient_id, start_time_ymd, end_time_ymd) {
- var params = {
- patient_id: patient_id,
- start_time: start_time_ymd,
- end_time: end_time_ymd
- }
- return request({
- url: '/api/patient/rescues',
- method: 'get',
- params: params
- })
- }
-
- export function createRescueRecord(patient_id, content) {
- var params = {
- patient_id: patient_id,
- content: content
- }
- return request({
- url: '/api/patient/rescue/create',
- method: 'post',
- params: params
- })
- }
-
- export function deleteCourseOfDiseaseRecords(patient_id, ids_str) {
- var params = {
- patient_id: patient_id,
- ids: ids_str
- }
- return request({
- url: '/api/patient/course/delete',
- method: 'post',
- params: params
- })
- }
-
- export function deleteRescueRecords(patient_id, ids_str) {
- var params = {
- patient_id: patient_id,
- ids: ids_str
- }
- return request({
- url: '/api/patient/rescue/delete',
- method: 'post',
- params: params
- })
- }
-
- export function EditLapseto(patient_id, data,start_time,end_time,address) {
- return request({
- url: '/api/patients/lapseto/edit?id=' + patient_id+"&start_time="+start_time+"&end_time="+end_time+"&patient_address="+address,
- method: 'post',
- data: data
- })
- }
-
- export function PostSearch(keyword) {
-
- return request({
- url: '/api/patients/search?keyword=' + keyword,
- method: 'post'
-
- })
- }
-
- export function OpenView(id) {
- return request({
- url: '/api/patients/querypatientbyId',
- method: 'Get',
- params: {
- id: id
- }
- })
- }
-
- export function code(id) {
- return request({
- url: '/api/patients/codebyId',
- method: 'Get',
- params: {
- id: id
- }
- })
- }
-
- export function GetCoursePrintData(params) {
- return request({
- url: '/api/print/course',
- method: 'Get',
- params: params
- })
- }
-
- export function GetRemind(params) {
- return request({
- url: '/api/infectious/remind',
- method: 'Get',
- params: params
- })
- }
-
- export function PostRemind(params) {
- return request({
- url: '/api/remind/is_open',
- method: 'Post',
- params: params
- })
- }
-
- export function getDryWeightData(patientid, params) {
- console.log('patientid', patientid)
- return request({
- url: '/api/patient/getdryweightdata?patientid=' + patientid,
- method: 'Get',
- params: params
- })
- }
-
- export function getAllDoctor(params) {
- return request({
- url: '/api/patient/getAllDoctor',
- method: 'Get',
- params: params
- })
- }
-
- export function UpdateDryWeightData(params) {
- return request({
- url: '/api/patient/updatedryweightdata',
- method: 'Post',
- params: params,
- headers: {
- 'Permission': 3
- }
-
- })
- }
-
- export function getAllData(id, page, limit) {
- const params = {
- id: id,
- page: page,
- limit: limit
- }
- return request({
- url: '/api/patient/getalldata',
- method: 'Get',
- params: params
- })
- }
-
- export function postExportPatients(params) {
- return request({
- url: '/api/patients/export',
- method: 'Post',
- data: params
- })
- }
-
- export function getMaxDialysisNo() {
- return request({
- url: '/api/patients/dialysis_no',
- method: 'Get'
- })
- }
-
- export function getDryWeightDetail(id, params) {
- return request({
- url: '/api/paients/getdryweightdetail?id=' + id,
- method: 'get',
- params: params
- })
- }
-
- export function modifyDryWeightData(params) {
- return request({
- url: '/api/patients/modifydryweightdata',
- method: 'get',
- params: params
- })
- }
-
- export function deleteDryWeight(id, data) {
- return request({
- url: '/api/patient/deletedryweight?id=' + id,
- method: 'delete',
- data: data
- })
- }
-
- export function saveVasularAccess(params) {
- return request({
- url: '/api/patient/savevasularaccess',
- method: 'Get',
- params: params
- })
- }
-
- export function getAllVascularAccessList(params) {
- return request({
- url: '/api/patient/getallvascualraccesslist',
- method: 'Get',
- params: params
- })
- }
-
- export function getVascularAccessByDetail(id, params) {
- return request({
- url: '/api/patient/getvascularaccessbydetial?id=' + id,
- method: 'get',
- params: params
- })
- }
-
- export function updatedVasularAccess(params) {
- return request({
- url: '/api/patient/updatevasularaccess',
- method: 'get',
- params: params
- })
- }
-
- export function DeleteVascularAccess(id, params) {
- return request({
- url: '/api/patient/deletevascularaccess?id=' + id,
- method: 'get',
- params: params
- })
- }
-
- export function savePasswayAssessment(params) {
- return request({
- url: '/api/patient/savepasswayassessment',
- method: 'get',
- params: params
- })
- }
-
- export function getAllPassWayAssessmentList(params) {
- return request({
- url: '/api/patient/getallpasswayassessment',
- method: 'get',
- params: params
- })
- }
-
- export function getPassWayAssessmentById(id, params) {
- return request({
- url: '/api/patient/getpasswayassmentbyid?id=' + id,
- method: 'Get',
- params: params
- })
- }
-
- export function updatePasswayAssessment(params) {
- return request({
- url: '/api/patient/updatepasswayassesment',
- method: 'get',
- params: params
- })
- }
-
- export function DeletePassWayAssessMent(id, params) {
- return request({
- url: '/api/patient/deletepasswayassessment?id=' + id,
- method: 'get',
- params: params
- })
- }
-
- export function getAccessList(params) {
- return request({
- url: '/api/patient/getaccesslist',
- method: 'get',
- params: params
- })
- }
-
- export function getInitDataList(params) {
- return request({
- url: '/api/patient/getinitdatelist',
- method: 'get',
- params: params
- })
- }
-
- export function getInspectionMajorItem(params) {
- return request({
- url: '/api/patient/getinspectionmajoritem',
- method: 'get',
- params: params
- })
- }
-
- export function getInspectionDetail(params) {
- return request({
- url: '/api/patient/getinspectiondetail',
- method: 'Get',
- params: params
- })
- }
-
- export function getInspectionItemList(params) {
- return request({
- url: '/api/patient/getinspectionitemlist',
- method: 'get',
- params: params
- })
- }
-
- export function saveCreation(data) {
-
- return request({
- url: '/api/patient/savecreationinspection',
- method: 'post',
- data: data
- })
- }
-
- export function getTemplateSummaryList(params) {
- return request({
- url: '/api/patient/getemlatesummarylist',
- method: 'Get',
- params: params
- })
- }
-
- export function getTemplateSummaryDetail(params) {
- return request({
- url: '/api/patient/gettemplatesummarydetail',
- method: 'Get',
- params: params
- })
- }
-
- export function getTemplateSummaryPrintDetail(params) {
- return request({
- url: '/api/patient/gettemplatesummaryprintdetail',
- method: 'Get',
- params: params
- })
- }
-
- export function UpdateTemplateSummary(data) {
- return request({
- url: '/api/patient/updatetemplatesummary',
- method: 'post',
- data: data
- })
- }
-
- export function deleteSummary(params) {
- return request({
- url: '/api/patient/deletesummary',
- method: 'Get',
- params: params
- })
- }
-
- export function createHospitalSummary(data) {
- return request({
- url: '/api/patient/hospitalsummary',
- method: 'post',
- data: data
- })
- }
-
- export function getHospitalSummaryList(params) {
- return request({
- url: '/api/patient/gethospitalsummarylist',
- method: 'Get',
- params: params
- })
- }
-
- export function getHospitalSummaryDetail(id, params) {
- return request({
- url: '/api/patient/gethospitalsummaydetail?id=' + id,
- method: 'get',
- params: params
- })
- }
-
- export function updateHospitalSummary(data) {
- return request({
- url: '/api/patient/updatehospitalsummary',
- method: 'post',
- data: data
- })
- }
-
- export function deleteHospitalSummary(params) {
- return request({
- url: '/api/patient/deletehospitalsummary',
- method: 'get',
- params: params
- })
- }
-
- export function getPatientInfo(params) {
- return request({
- url: '/api/patient/getpatientinfo',
- method: 'Get',
- params: params
- })
- }
-
- export function getDialysisSolutionDetailList(params) {
- return request({
- url: '/api/patient/getdialysissolutiondetaillist',
- method: 'get',
- params: params
- })
- }
-
- export function createFirstDisease(data) {
- return request({
- url: '/api/patient/createfirstdisease',
- method: 'post',
- data: data
- })
- }
-
- export function getFirstDiseaseList(params) {
- return request({
- url: '/api/patient/getfirstdiseaselist',
- method: 'Get',
- params: params
- })
- }
-
- export function getFirstDetail(id, params) {
- return request({
- url: '/api/patient/getfirstdetailbyid?id=' + id,
- method: 'get',
- params: params
- })
- }
-
- export function updateFirstDisease(data) {
- return request({
- url: '/api/patient/updatefirstdisease',
- method: 'post',
- data: data
- })
- }
-
- export function deleteFirstDisease(params) {
- return request({
- url: '/api/patient/deletefirstdisease',
- method: 'get',
- params: params
- })
- }
-
- export function createSickHistoryRecord(params) {
- return request({
- url: '/api/patient/sickhistory/create',
- method: 'get',
- params: params
- })
- }
-
-
- export function deleteSickHistoryRecords(params) {
- return request({
- url: '/api/patient/sickhistory/delete',
- method: 'post',
- params: params
- })
- }
-
- export function ModifySickHistoryRecord(params) {
- return request({
- url: '/api/patient/sickhistory/modify',
- method: 'get',
- params: params
- })
- }
-
- export function GetSickHistoryRecords(params) {
- return request({
- url: '/api/patient/sickhistory',
- method: 'get',
- params: params
- })
- }
-
-
-
- export function getPhysiqueCheckRecords(patient_id, start_time_ymd, end_time_ymd) {
- var params = {
- patient_id: patient_id,
- start_time: start_time_ymd,
- end_time: end_time_ymd
- }
- return request({
- url: '/api/patient/physiquecheck',
- method: 'get',
- params: params
- })
- }
- export function createPhysiqueCheckRecord(params) {
- return request({
- url: '/api/patient/physiquecheck/create',
- method: 'get',
- params: params
- })
- }
-
- export function modifyPhysiqueCheckRecord(params) {
- return request({
- url: '/api/patient/physiquecheck/modify',
- method: 'get',
- params: params
- })
- }
-
-
- export function deletePhysiqueCheckRecords(params) {
- return request({
- url: '/api/patient/physiquecheck/delete',
- method: 'post',
- params: params
- })
- }
-
-
- export function getPhysiqueCheckRecordsPrint(params) {
- return request({
- url: '/api/patient/physiquecheck/print',
- method: 'get',
- params: params
- })
- }
-
-
- export function getSickhistoryCheckRecordsPrint(params) {
- return request({
- url: '/api/patient/sickhistory/print',
- method: 'get',
- params: params
- })
- }
-
-
- export function getPatientDialysisInfor(params){
-
- return request({
- url:"/api/patient/getpatientdialysisinforlist",
- method:"get",
- params:params
- })
- }
-
- export function getContextScheduleList(params){
- return request({
- url:"/api/patient/getcontextschedulelistone",
- method:"get",
- params:params
- })
- }
-
- export function getPatientAllagic(id,params){
- return request({
- url:"/api/patient/getpatientallagic?id="+id,
- method:"get",
- params:params
- })
- }
-
- export function saveSitemap(data){
-
- return request({
- url:"/api/patient/savesitemap",
- method:"Post",
- data:data,
- })
- }
-
- export function getPatientSitemap(patient_id,params){
-
- return request({
- url:"/api/patient/getpatientsitemap?patient_id="+patient_id,
- method:"Get",
- params:params
- })
- }
-
- export function updateSiteMap(data){
-
- return request({
- url:"/api/patient/updatesitemap",
- method:"Post",
- data:data,
- })
- }
-
- export function getPatientDetailInformedconsent(id,params){
-
- return request({
- url:"/api/patient/getpatientdetailinformedconsent?patient_id="+id,
- method:"get",
- params:params,
- })
- }
-
- export function getExportList(params){
-
- return request({
- url:"/api/patient/getexportlist",
- metod:"get",
- params:params,
- })
- }
|