当手术计费弹窗中点击"签发"耗材时,因耗材的locationId(发放库房)为空导致后端异常。 在DoctorStationAdviceAppServiceImpl.handDevice方法中,当locationId为null时,使用登录用户的科室ID作为默认值, 与NurseBillingAppService中的处理方式保持一致。
226 lines
4.3 KiB
JavaScript
Executable File
226 lines
4.3 KiB
JavaScript
Executable File
import request from '@/utils/request'
|
||
|
||
/**
|
||
* 获取患者列表
|
||
*/
|
||
export function getList(queryParams) {
|
||
return request({
|
||
url: '/charge-manage/pricing/patient-info',
|
||
method: 'get',
|
||
params: queryParams
|
||
})
|
||
}
|
||
|
||
// 处方相关接口
|
||
/**
|
||
* 获取药品列表
|
||
*/
|
||
export function getAdviceBaseInfo(queryParams) {
|
||
return request({
|
||
url: '/charge-manage/pricing/advice-base-info',
|
||
method: 'get',
|
||
params: queryParams
|
||
})
|
||
}
|
||
/**
|
||
* 保存处方(单条)
|
||
* @param {Object} data - 处方数据
|
||
* @param {String} adviceOpType - 医嘱操作类型:'0'=保存草稿,'1'=签发医嘱
|
||
*/
|
||
export function savePrescription(data, adviceOpType = '0') {
|
||
return request({
|
||
url: '/doctor-station/advice/save-advice',
|
||
method: 'post',
|
||
params: { adviceOpType },
|
||
data: data
|
||
})
|
||
}
|
||
/**
|
||
* 签发处方
|
||
*/
|
||
export function savePrescriptionSign(data) {
|
||
return request({
|
||
url: '/doctor-station/advice/sign-advice',
|
||
method: 'post',
|
||
data: data
|
||
})
|
||
}
|
||
/**
|
||
* 处方签退
|
||
*/
|
||
export function singOut(data) {
|
||
return request({
|
||
url: '/doctor-station/advice/sign-off',
|
||
method: 'post',
|
||
data: data
|
||
})
|
||
}
|
||
/**
|
||
* 获取患者本次就诊处方
|
||
*/
|
||
export function getPrescriptionList(encounterId) {
|
||
// Add timestamp to bypass browser caching and ensure fresh data is loaded
|
||
return request({
|
||
url: '/doctor-station/advice/request-base-info?encounterId=' + encounterId + '&t=' + Date.now(),
|
||
method: 'get',
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 门诊病历详情(与医生站一致,无记录时 data 为 null)
|
||
*/
|
||
export function getEmrDetail(encounterId) {
|
||
return request({
|
||
url: '/doctor-station/emr/emr-detail?encounterId=' + encounterId,
|
||
method: 'get',
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 当前就诊诊断列表
|
||
*/
|
||
export function getEncounterDiagnosis(encounterId) {
|
||
return request({
|
||
url: '/doctor-station/diagnosis/get-encounter-diagnosis?encounterId=' + encounterId,
|
||
method: 'get',
|
||
})
|
||
}
|
||
/**
|
||
* 获取科室列表
|
||
*/
|
||
export function getOrgTree() {
|
||
return request({
|
||
url: '/base-data-manage/organization/organization',
|
||
method: 'get',
|
||
})
|
||
}
|
||
/**
|
||
* 获取退费账单
|
||
*/
|
||
export function getEncounterPatientPayment(encounterId) {
|
||
return request({
|
||
url: '/charge-manage/refund/patient-payment?encounterId=' + encounterId,
|
||
method: 'get',
|
||
})
|
||
}
|
||
/**
|
||
* 申请退费
|
||
*/
|
||
export function refundPayment(data) {
|
||
return request({
|
||
url: '/charge-manage/refund/refund-payment',
|
||
method: 'post',
|
||
data: data
|
||
})
|
||
}
|
||
|
||
|
||
// 电子处方相关接口
|
||
/**
|
||
* 电子处方查询
|
||
*/
|
||
export function getVeriPrescriptionInfo(queryParams) {
|
||
return request({
|
||
url: '/ybelep-request/get-PrescriptionInfo',
|
||
method: 'get',
|
||
params: queryParams
|
||
})
|
||
}
|
||
|
||
// 处方开立相关接口
|
||
/**
|
||
* 获取全部药品信息
|
||
*/
|
||
export function getAllMedicationInfo(queryParams) {
|
||
return request({
|
||
url: '/doctor-station/elep/get-allMedicationInfo',
|
||
method: 'get',
|
||
params: queryParams
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 电子处方下拉框
|
||
*/
|
||
export function elepPrescriptionInit() {
|
||
return request({
|
||
url: '/doctor-station/elep/init',
|
||
method: 'get'
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 获取处方信息
|
||
*/
|
||
export function getPrescriptionInfo(queryParams) {
|
||
return request({
|
||
url: '/doctor-station/elep/get-prescriptionInfo',
|
||
method: 'get',
|
||
params: queryParams
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 获取药品信息
|
||
*/
|
||
export function getMedicationInfo(queryParams) {
|
||
return request({
|
||
url: '/doctor-station/elep/get-medicationInfo',
|
||
method: 'get',
|
||
params: queryParams
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 获取单据号
|
||
*/
|
||
export function prescriptionNoInit() {
|
||
return request({
|
||
url: '/doctor-station/elep/prescriptionNoInit',
|
||
method: 'get'
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 新增处方
|
||
*/
|
||
export function savePrescriptionInfo(data) {
|
||
return request({
|
||
url: '/doctor-station/elep/save-prescriptionInfo',
|
||
method: 'post',
|
||
data: data
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 修改处方
|
||
*/
|
||
export function updatePrescriptionInfo(data) {
|
||
return request({
|
||
url: '/doctor-station/elep/update-prescriptionInfo',
|
||
method: 'post',
|
||
data: data
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 删除处方
|
||
*/
|
||
export function deletePrescriptionInfo(data) {
|
||
return request({
|
||
url: '/doctor-station/elep/delete-prescriptionInfo',
|
||
method: 'post',
|
||
data: data
|
||
})
|
||
}
|
||
|
||
/**
|
||
* 签发处方
|
||
*/
|
||
export function issuancePrescription(prescriptionNoList) {
|
||
return request({
|
||
url: '/doctor-station/elep/issuance-prescription',
|
||
method: 'post',
|
||
data: prescriptionNoList
|
||
})
|
||
} |