|
@@ -150,7 +150,7 @@ public class ABehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
}
|
|
|
if (behospitalInfo != null) {
|
|
|
s.setGmtModified(new Date());
|
|
|
- //s.setQcTypeId(initQcTypeId(s));
|
|
|
+ s.setQcTypeId(initQcTypeId(s));
|
|
|
updateE.add(s);
|
|
|
} else {
|
|
|
s.setGmtCreate(new Date());
|
|
@@ -173,11 +173,55 @@ public class ABehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
*/
|
|
|
private Long initQcTypeId(BehospitalInfo s) {
|
|
|
// 如果是婴儿(isBaby = 1),或者为取消入院的病人,质控类型直接返回0,不进行质控
|
|
|
- if (s.getIsCancelBehospital().equals("1")||s.getIsBaby().equals("1") || s.getName().contains("之子") || s.getName().contains("之女")) {
|
|
|
+ if ((StringUtil.isNotBlank(s.getIsCancelBehospital()) && s.getIsCancelBehospital().equals("1"))
|
|
|
+ ||(StringUtil.isNotBlank(s.getIsBaby())&&s.getIsBaby().equals("1"))) {
|
|
|
return 0L;
|
|
|
+ }
|
|
|
+ if(StringUtil.isNotBlank(s.getName())){
|
|
|
+ if ((s.getName().contains("之子") || s.getName().contains("之女")) &&
|
|
|
+ (s.getFileCode().startsWith("a")||s.getFileCode().startsWith("b")||s.getFileCode().startsWith("c")
|
|
|
+ ||s.getFileCode().startsWith("d")||s.getFileCode().startsWith("e")||s.getFileCode().startsWith("f"))) {
|
|
|
+ return 0L;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(StringUtil.isNotBlank(s.getDiagnose())){
|
|
|
+ //产科异位妊娠(234)与妊娠合并子宫瘢痕(233)专病质控类型分配
|
|
|
+ if(s.getDiagnose().contains("妊娠合并子宫瘢痕")){
|
|
|
+ return 233L;
|
|
|
+ }
|
|
|
+ if(s.getDiagnose().contains("异位妊娠")){
|
|
|
+ return 234L;
|
|
|
+ }
|
|
|
+ if (s.getDiagnose().contains("子宫内膜息肉") && "1".equals(s.getIsDaytime())){
|
|
|
+ return 239L;
|
|
|
+ }
|
|
|
+ if (s.getDiagnose().contains("急性支气管肺炎")){
|
|
|
+ return 240L;
|
|
|
+ }
|
|
|
+ if (s.getDiagnose().contains("新生儿呼吸窘迫")){
|
|
|
+ return 241L;
|
|
|
+ }
|
|
|
+ if (s.getDiagnose().contains("早期人工流产")){
|
|
|
+ return 242L;
|
|
|
+ }
|
|
|
+ if (s.getDiagnose().contains("新生儿高胆红素血症")){
|
|
|
+ return 243L;
|
|
|
+ }
|
|
|
+ if (s.getDiagnose().contains("乳腺良性肿瘤")){
|
|
|
+ return 244L;
|
|
|
+ }
|
|
|
+ if (s.getDiagnose().contains("包茎")){
|
|
|
+ return 245L;
|
|
|
+ }
|
|
|
+ if (s.getDiagnose().contains("手术后恶性肿瘤化学治疗")){
|
|
|
+ return 246L;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
//如果是日间病例,质控类型直接写死返回129(日间病房(男))这个后期要改
|
|
|
- if (s.getIsDaytime().equals("1")){
|
|
|
+ if (StringUtil.isNotBlank(s.getIsDaytime()) && s.getIsDaytime().equals("1")){
|
|
|
return 129L;
|
|
|
}
|
|
|
Long qcTypeId = Long.valueOf("0");
|