|
@@ -6,6 +6,7 @@ import com.lantone.qc.kernel.util.SpringContextUtil;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.entity.Diag;
|
|
import com.lantone.qc.pub.model.entity.Diag;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
@@ -21,28 +22,15 @@ import java.util.Map;
|
|
@Component
|
|
@Component
|
|
public class BEH0494 extends QCCatalogue {
|
|
public class BEH0494 extends QCCatalogue {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
- status.set("0");
|
|
|
|
-
|
|
|
|
- String sign = inputInfo.getBeHospitalizedDoc().getStructureMap().get("签名");
|
|
|
|
- sign = (null==sign)?"":sign.trim();
|
|
|
|
-
|
|
|
|
- if(sign.length() > 0 || true) {
|
|
|
|
|
|
+ String doctorName = inputInfo.getBeHospitalizedDoc().getStructureMap().get("签名");
|
|
|
|
+ if(StringUtils.isNotEmpty(doctorName)) {
|
|
RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
|
|
RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
|
|
- int cnt = 0;
|
|
|
|
-
|
|
|
|
- Map<String, String> surgeon;
|
|
|
|
-
|
|
|
|
- if (null != redisUtil.get(sign)) {
|
|
|
|
- surgeon = (Map)redisUtil.get(sign);
|
|
|
|
- String prof = surgeon.get("职称").trim();
|
|
|
|
- if (null != prof && prof.contains("医师")) {
|
|
|
|
- cnt += 1;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if (cnt == 0) {
|
|
|
|
- status.set("-1");
|
|
|
|
|
|
+ Map<String, String> surgeon = (Map<String, String>) redisUtil.get(doctorName);
|
|
|
|
+ if (StringUtils.isNotEmpty(surgeon.get("professor")) && surgeon.get("professor").contains("医师")) {
|
|
|
|
+ status.set("0");
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ status.set("0");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|