|
@@ -4,6 +4,7 @@ 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.BeHospitalizedDoc;
|
|
|
+import com.lantone.qc.pub.model.entity.General;
|
|
|
import com.lantone.qc.pub.model.entity.GeneralDesc;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -19,26 +20,23 @@ import java.util.List;
|
|
|
@Component
|
|
|
public class BEH0442 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
- status.set("0");
|
|
|
- BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();
|
|
|
- if(beHospitalizedDoc != null && beHospitalizedDoc.getPresentLabel() != null){
|
|
|
- String text = beHospitalizedDoc.getPresentLabel().getText();
|
|
|
- if(text != null && (text.contains("便") || text.contains("血尿") || text.contains("多尿"))){
|
|
|
- return;
|
|
|
- }else {
|
|
|
- status.set("-1");
|
|
|
- }
|
|
|
- }
|
|
|
- /*List<GeneralDesc> generals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getGenerals();
|
|
|
+ List<GeneralDesc> generals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getGenerals();
|
|
|
if(generals.size() > 0 || generals != null){
|
|
|
for (GeneralDesc general:generals) {
|
|
|
- if(general.getName().contains("二便") || general.getName().contains("小便")
|
|
|
- ||general.getName().contains("大便")||general.getName().contains("大小便")){
|
|
|
+ if(general.getName().contains("便") || general.getName().contains("尿")){
|
|
|
status.set("0");
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- }*/
|
|
|
-
|
|
|
+ }
|
|
|
+ List<General> gens = inputInfo.getBeHospitalizedDoc().getPresentLabel().getGens();
|
|
|
+ if(gens.size() > 0 || gens != null){
|
|
|
+ for (General general:gens) {
|
|
|
+ if(general.getName().contains("便") || general.getName().contains("尿")){
|
|
|
+ status.set("0");
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|