|
@@ -52,14 +52,14 @@ public class THR03069 extends QCCatalogue {
|
|
|
docAdvStruct
|
|
|
.stream()
|
|
|
.map(x -> x.get("医嘱项目名称"))
|
|
|
- .forEach(y -> antibioticStatus.put(y.replaceAll("[\\[国产\\]\\[进口\\]\\[合信\\]\\[合资\\]]", ""), 0));
|
|
|
+ .forEach(y -> antibioticStatus.put(removeBracket(y), 0));
|
|
|
|
|
|
String drugName = null, value = null, startDateStr = null;
|
|
|
for (Map<String, String> structMap : docAdvStruct) {
|
|
|
drugName = structMap.get("医嘱项目名称");
|
|
|
value = structMap.get("医嘱单次剂量");
|
|
|
startDateStr = structMap.get("医嘱开始时间");
|
|
|
- drugName = drugName.replaceAll("[\\[国产\\]\\[进口\\]\\[合信\\]\\[合资\\]]", "");
|
|
|
+ drugName = removeBracket(drugName);
|
|
|
collectAntibioticInfo(antibioticDate, antibioticStatus, antibioticValue, drugName, value, startDateStr);
|
|
|
}
|
|
|
|
|
@@ -93,7 +93,7 @@ public class THR03069 extends QCCatalogue {
|
|
|
//查房记录抗生素加用过的集合中没包含该抗生素,则认为该抗生素是第一次出现,此时不需要加用原因
|
|
|
if (!antibioticStatusWard.containsKey(drug.getName()) || drug.getUsageWardRound() != null) {
|
|
|
String consumption = drug.getConsumption().getName();
|
|
|
- collectAntibioticInfo(antibioticDateWard, antibioticStatusWard, antibioticValueWard, drug.getName(), consumption, doc.getStructureMap().get("查房日期"));
|
|
|
+ collectAntibioticInfo(antibioticDateWard, antibioticStatusWard, antibioticValueWard, removeBracket(drug.getName()), consumption, doc.getStructureMap().get("查房日期"));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -193,4 +193,17 @@ public class THR03069 extends QCCatalogue {
|
|
|
return group;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 如果文本包含中括号([海正]美罗培南针),取括号之后的文字
|
|
|
+ *
|
|
|
+ * @param str
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ private String removeBracket(String str) {
|
|
|
+ if (str.contains("]") && str.indexOf("]") != str.length() - 1) {
|
|
|
+ return str.substring(str.indexOf("]") + 1);
|
|
|
+ }
|
|
|
+ return str;
|
|
|
+ }
|
|
|
+
|
|
|
}
|