|
@@ -70,7 +70,7 @@ public class THR03150 extends QCCatalogue {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//医嘱中判断为病危病重患者
|
|
//医嘱中判断为病危病重患者
|
|
- if (medicalOrderName.contains("病危")||medicalOrderName.contains("病重")) {
|
|
|
|
|
|
+ if ((medicalOrderName.contains("病危")||medicalOrderName.contains("病重"))&&!medicalOrderName.contains("停")) {
|
|
falg=true;
|
|
falg=true;
|
|
//获取医嘱开始时间
|
|
//获取医嘱开始时间
|
|
doctorStartTime = doctorAdviceDocStructureMap.get("医嘱开始时间");
|
|
doctorStartTime = doctorAdviceDocStructureMap.get("医嘱开始时间");
|
|
@@ -114,8 +114,10 @@ public class THR03150 extends QCCatalogue {
|
|
if(StringUtil.isBlank(doctorStartTime)){
|
|
if(StringUtil.isBlank(doctorStartTime)){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ status.set("-1");
|
|
Date doctorStartDate = StringUtil.parseDateTime(doctorStartTime);
|
|
Date doctorStartDate = StringUtil.parseDateTime(doctorStartTime);
|
|
if(getAllSaveDoctor(inputInfo,outputInfo,doctorStartDate)){
|
|
if(getAllSaveDoctor(inputInfo,outputInfo,doctorStartDate)){
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}else {
|
|
}else {
|
|
//去【抢救记录】内找是否有包含【上级医师姓名】/【主任】字段,若无报出
|
|
//去【抢救记录】内找是否有包含【上级医师姓名】/【主任】字段,若无报出
|
|
@@ -124,8 +126,8 @@ public class THR03150 extends QCCatalogue {
|
|
for (RescueDoc rescueDoc : rescueDocs) {
|
|
for (RescueDoc rescueDoc : rescueDocs) {
|
|
String text = rescueDoc.getText();
|
|
String text = rescueDoc.getText();
|
|
if (StringUtil.isNotBlank(text)) {
|
|
if (StringUtil.isNotBlank(text)) {
|
|
- if (!text.contains("主任") && !judgeContainsDoctor(text)) {
|
|
|
|
- status.set("-1");
|
|
|
|
|
|
+ if (text.contains("主任") || judgeContainsDoctor(text)) {
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -136,8 +138,8 @@ public class THR03150 extends QCCatalogue {
|
|
if(firstCourseRecordDoc!=null){
|
|
if(firstCourseRecordDoc!=null){
|
|
String text = firstCourseRecordDoc.getText();
|
|
String text = firstCourseRecordDoc.getText();
|
|
if (StringUtil.isNotBlank(text)) {
|
|
if (StringUtil.isNotBlank(text)) {
|
|
- if (!text.contains("主任") && !judgeContainsDoctor(text)) {
|
|
|
|
- status.set("-1");
|
|
|
|
|
|
+ if (text.contains("主任") || judgeContainsDoctor(text)) {
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -146,7 +148,7 @@ public class THR03150 extends QCCatalogue {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- //抢救6小时内 找标题为【主任*查房】或【主任级别的姓名查房】
|
|
|
|
|
|
+ //6小时内 找标题为【主任*查房】或【主任级别的姓名查房】
|
|
public boolean getAllSaveDoctor(InputInfo inputInfo, OutputInfo outputInfo,Date saveDate ) {
|
|
public boolean getAllSaveDoctor(InputInfo inputInfo, OutputInfo outputInfo,Date saveDate ) {
|
|
List<ThreeLevelWardDoc> threeLevelWardDocs = inputInfo.getThreeLevelWardDocs();
|
|
List<ThreeLevelWardDoc> threeLevelWardDocs = inputInfo.getThreeLevelWardDocs();
|
|
if (ListUtil.isEmpty(threeLevelWardDocs)) {
|
|
if (ListUtil.isEmpty(threeLevelWardDocs)) {
|
|
@@ -162,11 +164,12 @@ public class THR03150 extends QCCatalogue {
|
|
if(StringUtil.isBlank(checkTime)){
|
|
if(StringUtil.isBlank(checkTime)){
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+ Date checkDate = StringUtil.parseDateTime(checkTime);
|
|
if (!CatalogueUtil.compareTime(
|
|
if (!CatalogueUtil.compareTime(
|
|
saveDate,
|
|
saveDate,
|
|
- StringUtil.parseDateTime(checkTime),
|
|
|
|
- Long.valueOf(6 * 60))) {
|
|
|
|
- //不大于抢救开始时间6小时内,取查房标题
|
|
|
|
|
|
+ checkDate,
|
|
|
|
+ Long.valueOf(6 * 60))&&saveDate.before(checkDate)) {
|
|
|
|
+ //不大于开始时间6小时内,取查房标题
|
|
String wardRoundTitle = structureMap.get("查房标题");
|
|
String wardRoundTitle = structureMap.get("查房标题");
|
|
//【主任*查房】或【主任级别的姓名查房】
|
|
//【主任*查房】或【主任级别的姓名查房】
|
|
if(StringUtil.isBlank(wardRoundTitle)){
|
|
if(StringUtil.isBlank(wardRoundTitle)){
|