|
@@ -12,8 +12,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.text.ParseException;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* @ClassName : FIRC0093
|
|
@@ -23,6 +22,9 @@ import java.util.Map;
|
|
|
*/
|
|
|
@Component
|
|
|
public class FIRC0093 extends QCCatalogue {
|
|
|
+
|
|
|
+ private List<String> labelList = Arrays.asList("诊断依据", "鉴别诊断", "初步诊断", "病例分型", "入院诊断", "诊疗计划");
|
|
|
+
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
|
|
|
status.set("0");
|
|
|
FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
|
|
@@ -43,12 +45,10 @@ public class FIRC0093 extends QCCatalogue {
|
|
|
if (date_in == null || date_out == null) {
|
|
|
return;
|
|
|
}
|
|
|
- if (StringUtil.isBlank(courseRecordDocStructureMap.get("诊断依据")) && StringUtil.isBlank(courseRecordDocStructureMap.get("鉴别诊断")) &&
|
|
|
- StringUtil.isBlank(courseRecordDocStructureMap.get("初步诊断")) && StringUtil.isBlank(courseRecordDocStructureMap.get("病例分型"))) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ boolean empty = isEmpty(courseRecordDocStructureMap);
|
|
|
+
|
|
|
boolean firc = CatalogueUtil.compareTime(date_in, date_out, 8 * 60L);
|
|
|
- if (firc) {
|
|
|
+ if (firc || !empty) {
|
|
|
info.set("(" + admisTime + "-" + couDate + ")");
|
|
|
status.set("-1");
|
|
|
}
|
|
@@ -72,6 +72,18 @@ public class FIRC0093 extends QCCatalogue {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private boolean isEmpty(Map<String, String> courseRecordDocStructureMap) {
|
|
|
+ for (String label : labelList) {
|
|
|
+ if (StringUtil.isBlank(courseRecordDocStructureMap.get(label))) {
|
|
|
+ String labelStr = courseRecordDocStructureMap.get(label).replaceAll(",?,?[0-9]\\.", "").replaceAll("[\\p{Punct}\\pP。-]", "").replace(" ", "");
|
|
|
+ if (StringUtil.isNotBlank(labelStr) && labelStr.length() > 1) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
private String getKeyByHospitalId() {
|
|
|
switch (Content.hospital_Id) {
|
|
|
case "1": //长兴
|