|
@@ -58,8 +58,11 @@ public class THR02986 extends QCCatalogue {
|
|
|
}
|
|
|
String infoStr = "";
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
for (Map.Entry<Date, String> doctorAdviceDrug : doctorAdviceDrugMap.entrySet()) {
|
|
|
Date doctorAdviceDate = doctorAdviceDrug.getKey();
|
|
|
+ String format = sdf1.format(doctorAdviceDate);
|
|
|
+ doctorAdviceDate = StringUtil.parseDateTime(format);
|
|
|
Set<String> splitDrugs = CatalogueUtil.getRegexWords(doctorAdviceDrug.getValue(), "[((\\[][^\\[\\]()()]+[\\]))]");
|
|
|
|
|
|
boolean isFind = false;
|
|
@@ -100,9 +103,12 @@ public class THR02986 extends QCCatalogue {
|
|
|
for (ThreeLevelWardDoc threeLevelWardDoc : allDoctorWradDocs) {
|
|
|
Map<String, String> wardDocStructureMap = threeLevelWardDoc.getStructureMap();
|
|
|
String wardDateStr = wardDocStructureMap.get("查房日期");
|
|
|
+ if(StringUtils.isNotBlank(wardDateStr)){
|
|
|
+ wardDateStr = wardDateStr.split(" ")[0];
|
|
|
+ }
|
|
|
String content = wardDocStructureMap.get("病情记录") + wardDocStructureMap.get("治疗计划和措施");
|
|
|
Date wardDate = StringUtil.parseDateTime(wardDateStr);
|
|
|
- if (doctorAdviceDate.before(wardDate) && !CatalogueUtil.compareTime(doctorAdviceDate, wardDate, days * 24 * 60L)) {
|
|
|
+ if ((doctorAdviceDate.before(wardDate) || doctorAdviceDate.equals(wardDate)) && !CatalogueUtil.compareTime(doctorAdviceDate, wardDate, days * 24 * 60L)) {
|
|
|
if (content.contains(drug)) {
|
|
|
matchSum++;
|
|
|
}
|