|
@@ -1,14 +1,18 @@
|
|
|
package com.lantone.qc.kernel.catalogue.hangzhoudiqi.behospitalized;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
+import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
|
+import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
|
|
|
import com.lantone.qc.pub.model.entity.Clinical;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -25,6 +29,16 @@ public class BEH0560 extends QCCatalogue {
|
|
|
if (beHospitalizedDoc == null || beHospitalizedDoc.getChiefLabel() == null) {
|
|
|
return;
|
|
|
}
|
|
|
+ //修改该规则只适用于神经内科
|
|
|
+ MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
|
|
|
+ Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
|
|
|
+ String behDeptName = structureMap.get("behDeptName");
|
|
|
+ if(StringUtil.isEmpty(behDeptName)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(!Content.neurology.equals(behDeptName)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
String chiefTxt = beHospitalizedDoc.getChiefLabel().getText();
|
|
|
if (chiefTxt.contains("检查") || chiefTxt.contains("术后") || chiefTxt.contains("药物") || chiefTxt.contains("发现")) {
|
|
|
status.set("0");
|