Files
xk-doctor-wx/api/reception.js
2026-05-07 11:04:56 +08:00

283 lines
5.7 KiB
JavaScript

import {
req
} from '@/common/js/index.js';
// 转接方患者列表
export function getPatientList(data) {
return req.request({
url: '/newApi/doctor-reception-wx/patient-list',
method: 'GET',
data
})
}
// 获取正在接诊的患者列表
export function getAcceptingPatientList(data) {
return req.request({
url: '/newApi/doctor-reception-wx/accepting-patient-list',
method: 'GET',
data
})
}
// 获取患者详情
export function getPatientItem(id) {
return req.request({
url: '/newApi/doctor-reception-wx/patient-item',
method: 'GET',
data: { id }
})
}
/**
* 根据患者ID获取患者信息
* @param {number} patientId - 患者ID
* @returns {Promise}
*/
export function getPatientInfoByPatientId(patientId) {
return req.request({
url: '/newApi/doctor-reception-wx/get-patient-info-by-patient-id',
method: 'GET',
data: { patient_id: patientId }
})
}
// 接诊
export function receptionApi(id) {
return req.request({
url: '/newApi/doctor-reception-wx/reception',
method: 'POST',
data: { id }
})
}
// 拒诊
export function refuseReceptionApi(data) {
return req.request({
url: '/newApi/doctor-reception-wx/refuse-reception',
method: 'POST',
data
})
}
// 获取拒诊原因列表
export function refuseReceptionListApi() {
return req.request({
url: '/newApi/doctor-reception-wx/refuse-reception-list',
method: 'GET'
})
}
// 结束问诊
export function endOfDiagnosisApi(id) {
return req.request({
url: '/newApi/doctor-reception-wx/end-of-diagnosis',
method: 'POST',
data: { id }
})
}
// 获取商品列表
export function getProductListDoctorReception(data) {
return req.request({
url: '/newApi/doctor-reception-wx/product-list',
method: 'GET',
data
})
}
// 获取药品使用方式列表
export function getDrugUseList() {
return req.request({
url: '/newApi/doctor-reception-wx/drug-use-list',
method: 'GET'
})
}
// 获取药品使用方式及默认用法用量
export function getDrugUseWithDefault(drugId) {
return req.request({
url: '/newApi/doctor-reception-wx/drug-use-with-default',
method: 'GET',
data: { drug_id: drugId }
})
}
// 获取疾病列表
export function getDiseaseList(name, page = 1, pageSize = 20) {
return req.request({
url: '/newApi/doctor-reception-wx/disease-list',
// url: '/doctor-reception-wx/disease-list',
method: 'GET',
data: { name, page, page_size: pageSize }
})
}
// 获取医生的常用诊断列表
export function getMyDiseaseList() {
return req.request({
url: '/newApi/doctor-reception-wx/my-disease-list',
method: 'GET'
})
}
// 添加常用诊断
export function addMyDisease(diseaseId) {
return req.request({
url: '/newApi/doctor-reception-wx/add-my-disease',
method: 'POST',
data: { disease_id: diseaseId }
})
}
// 删除常用诊断
export function deleteMyDisease(id) {
return req.request({
url: '/newApi/doctor-reception-wx/delete-my-disease',
method: 'POST',
data: { id }
})
}
// 获取医嘱列表
export function getDoctorOrderList() {
return req.request({
url: '/newApi/doctor-reception-wx/doctor-order-list',
// url: '/doctor-reception-wx/doctor-order-list',
method: 'GET'
})
}
// 创建医嘱
export function createDoctorOrder(content) {
return req.request({
url: '/newApi/doctor-reception-wx/create-doctor-order',
method: 'POST',
data: { content }
})
}
// 删除医嘱
export function deleteDoctorOrder(id) {
return req.request({
url: '/newApi/doctor-reception-wx/delete-doctor-order',
method: 'POST',
data: { id }
})
}
// 添加西药处方
export function addWestPrescription(data) {
return req.request({
url: '/newApi/doctor-reception-wx/add-west-prescription',
method: 'POST',
data
})
}
// 检查中药相冲
export function checkChineseMedicineConflictApi(data) {
return req.request({
url: '/newApi/doctor-reception-wx/check-chinese-medicine-conflict',
method: 'POST',
data
})
}
// 获取我的诊所列表
export function getMyStoreListApi() {
return req.request({
url: '/newApi/doctor-reception-wx/get-my-store-list',
method: 'GET'
})
}
// 获取当前诊所类型
export function getCurrentStoreTypeApi(data) {
return req.request({
url: '/newApi/doctor-reception-wx/get-current-store-type',
method: 'GET',
data
})
}
// 切换诊所
export function switchStoreApi(data) {
return req.request({
url: '/newApi/doctor-reception-wx/switch-store',
method: 'POST',
data
})
}
// 获取处方详情
export function getPrescriptionInfoApi(id) {
return req.request({
url: '/newApi/prescription/detail',
method: 'GET',
data: { id }
})
}
// 获取加工规则列表
export function getProcessRuleList(data) {
return req.request({
url: '/newApi/doctor-reception-wx/process-rule-list',
method: 'GET',
data
})
}
// 获取煎煮方式列表
export function getUseWayList() {
return req.request({
url: '/newApi/doctor-reception-wx/drug-use-way-list',
method: 'GET'
})
}
// 获取常用方列表
export function getCommonPrescriptionListApi(storeId) {
return req.request({
url: '/newApi/common-prescription/list',
method: 'GET',
data: { store_id: storeId }
})
}
// 获取常用方详情
export function getCommonPrescriptionDetailApi(id, type) {
return req.request({
url: '/newApi/common-prescription/detail',
method: 'GET',
data: { id, type }
})
}
// 保存西药常用方
export function saveWestCommonPrescriptionApi(data) {
return req.request({
url: '/newApi/common-prescription/save-west',
method: 'POST',
data
})
}
// 保存中药常用方
export function saveChineseCommonPrescriptionApi(data) {
return req.request({
url: '/newApi/common-prescription/save-chinese',
method: 'POST',
data
})
}
// 获取公共医嘱列表
export function getDoctorOrderCommonList(data) {
return req.request({
url: '/newApi/doctor-reception-wx/common-list',
method: 'GET',
data
})
}