|
@@ -180,15 +180,45 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
}
|
|
}
|
|
|
|
|
|
aMedicalRecordContentFacade.executeMrRecordContent(s.getContents());
|
|
aMedicalRecordContentFacade.executeMrRecordContent(s.getContents());
|
|
- //日间病历修改质控类型为0 不参与质控
|
|
|
|
- /*if(s.getRecTitle().contains("日间入出院记录")||s.getRecTitle().contains("24小时入出院记录")||s.getRecTitle().contains("日间病历")){
|
|
|
|
|
|
+ /*//日间病历修改质控类型为0 不参与质控
|
|
|
|
+ if(s.getRecTitle().contains("日间入出院记录")||s.getRecTitle().contains("24小时入出院记录")||s.getRecTitle().contains("日间病历")){
|
|
UpdateWrapper<BehospitalInfo> wrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<BehospitalInfo> wrapper = new UpdateWrapper<>();
|
|
wrapper.eq("behospital_code",s.getBehospitalCode())
|
|
wrapper.eq("behospital_code",s.getBehospitalCode())
|
|
.eq("is_deleted","N")
|
|
.eq("is_deleted","N")
|
|
.set("qc_type_id",0);
|
|
.set("qc_type_id",0);
|
|
behospitalInfoService.update(wrapper);
|
|
behospitalInfoService.update(wrapper);
|
|
}*/
|
|
}*/
|
|
- });
|
|
|
|
|
|
+
|
|
|
|
+ BehospitalInfo behospitalInfo =behospitalInfoFacade.getOne(new QueryWrapper<BehospitalInfo>().eq("behospital_code", s.getBehospitalCode()));
|
|
|
|
+ QcType qcType= qcTypeFacade.getOne(new QueryWrapper<QcType>()
|
|
|
|
+ .eq("beh_dept_id", behospitalInfo.getBehDeptId())
|
|
|
|
+ .eq("default_module",0)
|
|
|
|
+ .eq("sex",behospitalInfo.getSex())
|
|
|
|
+ .eq("hospital_id", behospitalInfo.getHospitalId())
|
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N));
|
|
|
|
+ //根据日间病例标志 查看质控类型 没有质控类型 则修改质控类型
|
|
|
|
+ if (qcType==null) {
|
|
|
|
+ UpdateWrapper<BehospitalInfo> wrapper = new UpdateWrapper<>();
|
|
|
|
+
|
|
|
|
+ if (behospitalInfo.getIsDaytime().equals("1")) {
|
|
|
|
+
|
|
|
|
+ if (behospitalInfo.getSex().equals(SexEnum.NUM_MALE.getName())) {
|
|
|
|
+ QcType byId = qcTypeFacade.getById("129");
|
|
|
|
+ wrapper.eq("behospital_code",s.getBehospitalCode())
|
|
|
|
+ .eq("is_deleted","N")
|
|
|
|
+ .set("qc_type_id",byId.getId());
|
|
|
|
+ behospitalInfoService.update(wrapper);
|
|
|
|
+
|
|
|
|
+ }else{
|
|
|
|
+ QcType byId = qcTypeFacade.getById("161");
|
|
|
|
+ wrapper.eq("behospital_code",s.getBehospitalCode())
|
|
|
|
+ .eq("is_deleted","N")
|
|
|
|
+ .set("qc_type_id",byId.getId());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }});
|
|
|
|
+
|
|
//评分后返回结构体
|
|
//评分后返回结构体
|
|
if (aMrContentVO.getRecords().get(0).getRecTypeId().equals("BASY")) {
|
|
if (aMrContentVO.getRecords().get(0).getRecTypeId().equals("BASY")) {
|
|
AHomePageIngVO aHomePageIngVO = new AHomePageIngVO();
|
|
AHomePageIngVO aHomePageIngVO = new AHomePageIngVO();
|