|
@@ -64,17 +64,25 @@ public class THR02900 extends QCCatalogue {
|
|
|
if (StringUtil.isNotBlank(opeAssName)) {
|
|
|
split = opeAssName.split("、");
|
|
|
firstAssistant = structureMap.get("助手");
|
|
|
- opeEndTime = structureMap.get("手术日期");
|
|
|
} else {
|
|
|
firstAssistant = structureMap.get("一助");
|
|
|
- //取得手术时间截取结束时间(格式 2020-07-24 10:30-2020-07-24 11:45)
|
|
|
- opeEndTime = structureMap.get("手术日期");
|
|
|
- if (StringUtil.isBlank(opeEndTime) || opeEndTime.contains("年月日")) {
|
|
|
- continue;
|
|
|
+ }
|
|
|
+ //取得手术时间截取结束时间(格式 2020-07-24 10:30-2020-07-24 11:45)
|
|
|
+ opeEndTime = structureMap.get("手术日期");
|
|
|
+ if (StringUtil.isNotBlank(opeEndTime)) {
|
|
|
+ if (opeEndTime.contains("结束")) {
|
|
|
+ opeEndTime = opeEndTime.substring(0, opeEndTime.indexOf("结束")).replace("开始:", "");
|
|
|
+ }
|
|
|
+ if (opeEndTime.contains("年月日")) {
|
|
|
+ opeEndTime = DateUtil.nowString();
|
|
|
+ }
|
|
|
+ //取不到时间不判断规则
|
|
|
+ if (StringUtil.parseDateTime(opeEndTime) == null) {
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
String chiefSurgeon = structureMap.get("主刀医师");
|
|
|
- if (chiefSurgeon.contains("、")) {
|
|
|
+ if (StringUtil.isNotBlank(chiefSurgeon) && chiefSurgeon.contains("、")) {
|
|
|
chiefSurgeon = chiefSurgeon.split("、")[0];
|
|
|
}
|
|
|
Date opeEndDate = CatalogueUtil.parseStringDate(opeEndTime);
|
|
@@ -126,7 +134,7 @@ public class THR02900 extends QCCatalogue {
|
|
|
StringUtil.isNotBlank(firstAssistant) && !allTitle.contains(firstAssistant)) {
|
|
|
status.set("-1");
|
|
|
return;
|
|
|
- } else if (StringUtil.isBlank(chiefSurgeon) && StringUtil.isBlank(firstAssistant) && split.length > 1) {
|
|
|
+ } else if (StringUtil.isBlank(chiefSurgeon) && StringUtil.isBlank(firstAssistant) && split != null && split.length > 1) {
|
|
|
for (int i = 0; i < split.length; i++) {
|
|
|
if (allTitle.contains(split[i])) {
|
|
|
return;
|