import request from '@/utils/request' 
 | 
import { parseStrEmpty } from "@/utils/ruoyi";//处理字符串,und,null转换为''; 
 | 
  
 | 
// 查询患者列表 
 | 
export function listpatient(query) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/list', 
 | 
    method: 'get', 
 | 
    params: query 
 | 
  }) 
 | 
}; 
 | 
// 用户信息查询患者列表 
 | 
export function messagelistpatient(data) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/patInfoByContion', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
// 用户信息查询患者列表 
 | 
export function patarchivelist(data) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/list', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
  
 | 
// 修改患者档案 
 | 
export function alterpatient(data) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/saveOrUpdatePatInfo', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
// 新增患者 
 | 
export function addpatient(data) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/add', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
  
 | 
// 患者详情 
 | 
export function particularpatient(userId) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/getInfo/' + userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 | 
// 患者门诊详情 
 | 
export function Patientclinic(userId) { 
 | 
  return request({ 
 | 
    url: 'patouthosp/selectPatMedOuthospList' + userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 | 
// 删除患者列表 
 | 
export function deletepatient(userId) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/remove/' + userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 | 
  
 | 
// 导出患者错误信息 
 | 
export function Exporterrorpatient(userId) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/patTagByContion/'+userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 | 
// 导入患者文件处理 
 | 
export function toleadpatient(userId) { 
 | 
  return request({ 
 | 
    url: '/smartor/patarchive/patTagByContion/'+userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 | 
// 新增患者病史 
 | 
  
 | 
export function addmedicalhistory(data) { 
 | 
  return request({ 
 | 
    url: '/medicalhistory/add', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
  
 | 
// 病史列表 
 | 
export function getmedicalhistory(data) { 
 | 
  return request({ 
 | 
    url: '/medicalhistory/selectMedicalHistoryList', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
  
 | 
// 修改病史 
 | 
export function editmedicalhistory(data) { 
 | 
  return request({ 
 | 
    url: '/medicalhistory/edit', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
  
 | 
// 新增患者联系方式 
 | 
export function addcontactinformation(data) { 
 | 
  return request({ 
 | 
    url: '/archivecontact/add', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
// 修改患者联系方式 
 | 
export function editcontactinformation(data) { 
 | 
  return request({ 
 | 
    url: '/archivecontact/edit', 
 | 
    method: 'post', 
 | 
    data: data 
 | 
  }) 
 | 
}; 
 | 
// 联系方式详情 
 | 
export function getcontactinformation(userId) { 
 | 
  return request({ 
 | 
    url: '/medicalhistory/'+userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 | 
// 联系方式列表 
 | 
export function listcontactinformation(data) { 
 | 
  return request({ 
 | 
    url: '/archivecontact/selectPatArchivecontactList', 
 | 
    method: 'post', 
 | 
    data:data 
 | 
  }) 
 | 
}; 
 | 
// 删除详情 
 | 
export function delcontactinformation(userId) { 
 | 
  return request({ 
 | 
    url: '/archivecontact/remove/'+userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 | 
// 患者过滤列表 
 | 
export function listfiltration(data) { 
 | 
  return request({ 
 | 
    url: '/smartor/filterlist/list', 
 | 
    method: 'get', 
 | 
    params:data 
 | 
  }) 
 | 
}; 
 | 
// 删除患者过滤 
 | 
export function delfiltration(userId) { 
 | 
  return request({ 
 | 
    url: '/smartor/filterlist/remove/'+userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 | 
// 修改过滤患者 
 | 
export function editfiltration(data) { 
 | 
  return request({ 
 | 
    url: '/smartor/filterlist/edit', 
 | 
    method: 'post', 
 | 
    data:data 
 | 
  }) 
 | 
}; 
 | 
// 修改过滤患者 
 | 
export function addfiltration(data) { 
 | 
  return request({ 
 | 
    url: '/smartor/filterlist/add', 
 | 
    method: 'post', 
 | 
    data:data 
 | 
  }) 
 | 
}; 
 | 
// 查询过滤患者详情 
 | 
export function infofiltration(userId) { 
 | 
  return request({ 
 | 
    url: '/smartor/filterlist/getInfo/'+userId, 
 | 
    method: 'get', 
 | 
  }) 
 | 
}; 
 |