新增方法
This commit is contained in:
parent
7a6b710b88
commit
eb9e359736
@ -902,7 +902,11 @@ public class InspectPatientController {
|
|||||||
public CommonResult<InspectPatientDO> getPatientInfo(@RequestParam("medicalSn") String medicalSn) {
|
public CommonResult<InspectPatientDO> getPatientInfo(@RequestParam("medicalSn") String medicalSn) {
|
||||||
return success(patientService.getPatientInfo(medicalSn));
|
return success(patientService.getPatientInfo(medicalSn));
|
||||||
}
|
}
|
||||||
|
@GetMapping("/PatientBySearchKey")
|
||||||
|
@Operation(summary = "根据姓名、身份证号、体检编号获得患者信息")
|
||||||
|
public CommonResult<InspectPatientDO> getPatientBySearchKey(@RequestParam("searchKey") String searchKey) {
|
||||||
|
return success(patientService.getPatientBySearchKey(searchKey));
|
||||||
|
}
|
||||||
@GetMapping("/getecgTj")
|
@GetMapping("/getecgTj")
|
||||||
@Operation(summary = "获取体检ecg数据")
|
@Operation(summary = "获取体检ecg数据")
|
||||||
public CommonResult<Boolean> GetApiEcgInfo(@RequestParam("medicalSn") String medicalSn) {
|
public CommonResult<Boolean> GetApiEcgInfo(@RequestParam("medicalSn") String medicalSn) {
|
||||||
|
@ -81,6 +81,8 @@ public interface InspectPatientService {
|
|||||||
|
|
||||||
//根据条码获取患者信息
|
//根据条码获取患者信息
|
||||||
InspectPatientDO getPatientOfMedicalSn(String medicalSn);
|
InspectPatientDO getPatientOfMedicalSn(String medicalSn);
|
||||||
|
//根据身份证、姓名、体检编码获取患者信息
|
||||||
|
InspectPatientDO getPatientBySearchKey(String searchKey);
|
||||||
|
|
||||||
//更新患者汇总分析结果
|
//更新患者汇总分析结果
|
||||||
void updateSummaryResult(@Valid InspectPatientSaveReqVO updateReqVO);
|
void updateSummaryResult(@Valid InspectPatientSaveReqVO updateReqVO);
|
||||||
|
@ -158,6 +158,18 @@ public class InspectPatientServiceImpl implements InspectPatientService {
|
|||||||
lambdaQuery.eq(InspectPatientDO::getMedicalSn, medicalSn);
|
lambdaQuery.eq(InspectPatientDO::getMedicalSn, medicalSn);
|
||||||
return patientMapper.selectOne(lambdaQuery);
|
return patientMapper.selectOne(lambdaQuery);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public InspectPatientDO getPatientBySearchKey(String searchKey) {
|
||||||
|
LambdaQueryWrapper<InspectPatientDO> lambdaQuery = new LambdaQueryWrapper<>();
|
||||||
|
lambdaQuery.or(wrapper -> wrapper
|
||||||
|
.eq(InspectPatientDO::getMedicalSn, searchKey)
|
||||||
|
.or()
|
||||||
|
.eq(InspectPatientDO::getCardId, searchKey)
|
||||||
|
.or()
|
||||||
|
.like(InspectPatientDO::getPName, searchKey));
|
||||||
|
|
||||||
|
return patientMapper.selectOne(lambdaQuery);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateSummaryResult(InspectPatientSaveReqVO updateReqVO) {
|
public void updateSummaryResult(InspectPatientSaveReqVO updateReqVO) {
|
||||||
|
Loading…
Reference in New Issue
Block a user