|
@@ -0,0 +1,48 @@
|
|
|
+package com.lantone.qc.kernel.catalogue.hospital.xszyy.clinicalblood;
|
|
|
+
|
|
|
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
+import com.lantone.qc.pub.model.InputInfo;
|
|
|
+import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.model.doc.ClinicalBloodDoc;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : CLI0308
|
|
|
+ * @Description : 输血记录中未记录是否有不良反应
|
|
|
+ * @Author : 贺聪聪
|
|
|
+ * @Date: 2022-05-23 15:10
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class CLI0308 extends QCCatalogue {
|
|
|
+ public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ List<ClinicalBloodDoc> clinicalBloodDocs = inputInfo.getClinicalBloodDocs();//输血/血制品病程记录
|
|
|
+ if (ListUtil.isEmpty(clinicalBloodDocs)) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (clinicalBloodDocs != null && clinicalBloodDocs.size() > 0) {
|
|
|
+ String regex = ".*(未.*|无.*|否.*).*(输血反应|不良反应).*";
|
|
|
+ for (ClinicalBloodDoc cliB : clinicalBloodDocs) {
|
|
|
+ Map<String, String> cliBStructureMap = cliB.getStructureMap();
|
|
|
+ if(StringUtils.isNotEmpty(cliBStructureMap.get("病历内容")) && (cliBStructureMap.get("病历内容").contains("不良反应")
|
|
|
+ || cliBStructureMap.get("病历内容").contains("不适") || cliBStructureMap.get("病历内容").contains("未见")
|
|
|
+ || cliBStructureMap.get("病历内容").contains("未觉") || cliBStructureMap.get("病历内容").contains("不良")
|
|
|
+ || cliBStructureMap.get("病历内容").contains(regex))){
|
|
|
+ status.set("0");
|
|
|
+ break;
|
|
|
+ }else {
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ status.set("0");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+}
|