Fix Bug #444: 门诊手术医嘱界面"已引用计费药品"列表未正常显示药品名称
根因分析: 1. 前端 handleMedicalAdvice 调用 getPrescriptionList 时只传 encounterId, 未传 generateSourceEnum=6 和 sourceBillNo(手术单号), 后端默认查询 generateSourceEnum=1(医生开立),漏掉了手术计费创建的药品记录 2. 后端 getRequestBaseInfo 在 sourceBillNo 存在时会过滤掉药品(adviceType=1), 进一步阻断了手术计费药品的返回 修复方案: - 前端:handleMedicalAdvice 传参 (visitId, 6, operCode) 匹配手术计费记录 - 后端:移除手术计费场景的药品过滤,前端各组件已按 adviceType 自行过滤 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -2107,11 +2107,9 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
|
||||
CommonConstants.TableName.MED_MEDICATION_REQUEST, CommonConstants.TableName.WOR_DEVICE_REQUEST,
|
||||
CommonConstants.TableName.WOR_SERVICE_REQUEST, practitionerId, Whether.NO.getCode(),
|
||||
sourceEnum, sourceBillNo);
|
||||
// 手术计费场景:sourceBillNo 不为空时,过滤掉药品(1),保留耗材(2)和诊疗(3/6)
|
||||
if (sourceBillNo != null && !sourceBillNo.isEmpty()) {
|
||||
requestBaseInfo.removeIf(dto -> dto.getAdviceType() != null
|
||||
&& dto.getAdviceType() == 1);
|
||||
}
|
||||
// 🔧 修复 Bug #444: 移除手术计费场景的药品过滤。
|
||||
// 原过滤会导致门诊手术医嘱界面无法获取手术计费创建的药品记录。
|
||||
// 前端各组件已根据自身业务逻辑做了正确的 adviceType 过滤。
|
||||
for (RequestBaseDto requestBaseDto : requestBaseInfo) {
|
||||
// 请求状态
|
||||
requestBaseDto
|
||||
|
||||
Reference in New Issue
Block a user