|
@@ -3,7 +3,6 @@ package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
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.PD;
|
|
|
|
import com.lantone.qc.pub.model.entity.Pacs;
|
|
import com.lantone.qc.pub.model.entity.Pacs;
|
|
import com.lantone.qc.pub.model.label.PacsLabel;
|
|
import com.lantone.qc.pub.model.label.PacsLabel;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
@@ -13,32 +12,37 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @ClassName : BEH0490
|
|
|
|
|
|
+ * @ClassName : BEH0491
|
|
* @Description : 实验室检查未注明时间和地点
|
|
* @Description : 实验室检查未注明时间和地点
|
|
* @Author : 胡敬
|
|
* @Author : 胡敬
|
|
* @Date: 2020-06-03 13:34
|
|
* @Date: 2020-06-03 13:34
|
|
*/
|
|
*/
|
|
@Component
|
|
@Component
|
|
-public class BEH0490 extends QCCatalogue {
|
|
|
|
|
|
+public class BEH0491 extends QCCatalogue {
|
|
@Override
|
|
@Override
|
|
protected void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
protected void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
- status.set("0");
|
|
|
|
if (inputInfo.getBeHospitalizedDoc() == null) {
|
|
if (inputInfo.getBeHospitalizedDoc() == null) {
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
PacsLabel pacsLabel = inputInfo.getBeHospitalizedDoc().getPacsLabel();
|
|
PacsLabel pacsLabel = inputInfo.getBeHospitalizedDoc().getPacsLabel();
|
|
if (pacsLabel == null || StringUtil.isBlank(pacsLabel.getText())) {
|
|
if (pacsLabel == null || StringUtil.isBlank(pacsLabel.getText())) {
|
|
|
|
+ status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
String pacsText = pacsLabel.getText();
|
|
String pacsText = pacsLabel.getText();
|
|
List<Pacs> pacses = pacsLabel.getPacses();
|
|
List<Pacs> pacses = pacsLabel.getPacses();
|
|
|
|
+ boolean findTime = false, findPlace = false;
|
|
for (Pacs pacs : pacses) {
|
|
for (Pacs pacs : pacses) {
|
|
- if (pacs.getName() == null && pacs.getPd() == null) {
|
|
|
|
- status.set("-1");
|
|
|
|
- return;
|
|
|
|
- } else {
|
|
|
|
|
|
+ /* 时间为入院检查的时间,模型输出处理后结构为 name为空,pd不为空 */
|
|
|
|
+ if (pacs.getName() == null && pacs.getPd() != null) {
|
|
|
|
+ findTime = true;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ /*
|
|
|
|
+ else {
|
|
PD pd = pacs.getPd();
|
|
PD pd = pacs.getPd();
|
|
if (pd == null) {
|
|
if (pd == null) {
|
|
continue;
|
|
continue;
|
|
@@ -52,6 +56,15 @@ public class BEH0490 extends QCCatalogue {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ */
|
|
|
|
+ }
|
|
|
|
+ String prefixText = pacsText.substring(0, Math.min(10, pacsText.length()));
|
|
|
|
+ if (prefixText.contains("院")) {
|
|
|
|
+ findPlace = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (findTime || findPlace) {
|
|
|
|
+ status.set("0");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|