|
@@ -435,29 +435,12 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
}
|
|
|
if (behospitalInfo != null){
|
|
|
//如果病人住院信息存在,更新对应的qc_type_id
|
|
|
- Long qcTypeId = initQcTypeId(behospitalInfo);
|
|
|
- behospitalInfo.setQcTypeId(qcTypeId);
|
|
|
- behospitalInfoList.add(behospitalInfo);
|
|
|
- }
|
|
|
- }else if (modeId == Long.valueOf("33")){
|
|
|
- //33为日间病例 如果有的话qc_type_id 设置为0
|
|
|
- BehospitalInfo behospitalInfo = behospitalInfoFacade.getOne(new QueryWrapper<BehospitalInfo>()
|
|
|
- .eq("behospital_code", s.getBehospitalCode())
|
|
|
- .eq("hospital_id", s.getHospitalId()), false);
|
|
|
- if (behospitalInfo == null) {
|
|
|
- //如果不存在则取视图上查询并添加
|
|
|
- String code =s.getBehospitalCode();
|
|
|
- String hospitalCode = code.substring(0, code.indexOf("_"));
|
|
|
- String hospitalNum = code.substring(hospitalCode.length() + 1, code.length());
|
|
|
- String infoSql = "select * from admission_pat_regist where behospitalCode = '" + hospitalCode + "' and behospitalNum = '" + hospitalNum + "'";
|
|
|
- viewFacade.getInfo(infoSql);
|
|
|
- behospitalInfo = behospitalInfoFacade.getOne(new QueryWrapper<BehospitalInfo>()
|
|
|
- .eq("behospital_code", s.getBehospitalCode())
|
|
|
- .eq("hospital_id", s.getHospitalId()), false);
|
|
|
- }
|
|
|
- if (behospitalInfo != null){
|
|
|
- //如果病人住院信息存在,更新对应的qc_type_id
|
|
|
- Long qcTypeId = Long.valueOf("0");
|
|
|
+ Long qcTypeId=Long.valueOf("0");
|
|
|
+ if (s.getRecTitle().contains("日间")||s.getRecTitle().contains("24小时")){
|
|
|
+ qcTypeId=Long.valueOf("211");
|
|
|
+ }else {
|
|
|
+ qcTypeId = initQcTypeId(behospitalInfo);
|
|
|
+ }
|
|
|
behospitalInfo.setQcTypeId(qcTypeId);
|
|
|
behospitalInfoList.add(behospitalInfo);
|
|
|
}
|