同步超声报告方法增加更新所见所得

This commit is contained in:
lxd 2025-04-14 14:35:48 +08:00
parent 261cdbdacb
commit 3dc8eb757e
3 changed files with 34 additions and 1 deletions

View File

@ -672,6 +672,14 @@ public class InspectPatientController {
// 获取 pdfurl pname
String pdfurl = (String) dataMap.get("pdfurl");
String pname = (String) dataMap.get("pname");
String examDescription="";
String diagResults="";
if(dataMap.get("examDescription")!=null&&dataMap.get("diagResults")!=null)
{
examDescription = (String) dataMap.get("examDescription");
diagResults = (String) dataMap.get("diagResults");
}
// 检查 pdfurl pname 是否为空
if (pdfurl != null && !pdfurl.isEmpty() && pname != null && !pname.isEmpty()) {
InspectPacsDataSaveReqVO inspectPacs = new InspectPacsDataSaveReqVO();
@ -681,6 +689,17 @@ public class InspectPatientController {
inspectPacs.setPersonName(pname);
pacsDataService.createPacsData(inspectPacs);
}
//更新超声所见所得
if(examDescription!=null&&!examDescription.isEmpty()&&diagResults!=null&&!diagResults.isEmpty())
{
InspectPatientitemsSaveReqVO saveReqVO = new InspectPatientitemsSaveReqVO();
saveReqVO.setMedicalSn(medicalSn);
saveReqVO.setItemCode("US001");
saveReqVO.setExamDescription(examDescription);
saveReqVO.setItemResult(diagResults);
patientitemsService.updateitemUSinference(saveReqVO);
}
}
} catch (IOException e) {

View File

@ -71,6 +71,11 @@ public interface InspectPatientitemsService {
* */
String Getanalyse(String medicalSn, String itemCode);
/*
* 根据体检编号和项目编号更新结论和所见
* */
void updateitemUSinference(InspectPatientitemsSaveReqVO saveReqVO);
/**
* 获得患者体检项目
*

View File

@ -140,7 +140,16 @@ public class InspectPatientitemsServiceImpl implements InspectPatientitemsServic
}
}
@Override
public void updateitemUSinference(InspectPatientitemsSaveReqVO saveReqVO)
{
LambdaUpdateWrapper<InspectPatientitemsDO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.set(InspectPatientitemsDO::getItemResult, saveReqVO.getItemResult())
.set(InspectPatientitemsDO::getExamDescription, saveReqVO.getExamDescription())
.eq(InspectPatientitemsDO::getMedicalSn, saveReqVO.getMedicalSn())
.eq(InspectPatientitemsDO::getItemCode, saveReqVO.getItemCode());
patientitemsMapper.update(null, updateWrapper);
}
@Override
public InspectPatientitemsDO getPatientitems(Integer id) {
return patientitemsMapper.selectById(id);