|
@@ -24,29 +24,21 @@ import java.util.List;
|
|
|
public class BEH0018 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
PresentLabel presentLabel = inputInfo.getBeHospitalizedDoc().getPresentLabel();
|
|
|
- List<Clinical> clinicals = presentLabel.getClinicals();
|
|
|
- if(clinicals.size()>0){
|
|
|
- for (Clinical clinical:clinicals) {
|
|
|
- List<PD> timestamp = clinical.getTimestamp();
|
|
|
- if(timestamp != null){
|
|
|
- for (PD pd:timestamp) {
|
|
|
- if(!CatalogueUtil.isEmpty(pd.getName())){
|
|
|
- if(pd.getName().contains("天") || pd.getName().contains("周")|| pd.getName().contains("月")
|
|
|
- || pd.getName().contains("时") || pd.getName().contains("半年") || pd.getName().contains("秒")
|
|
|
- || pd.getName().contains("日")){
|
|
|
- status.set("0");
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if(status.get().equals("0")){
|
|
|
+ List<PD> pds = presentLabel.getPds();
|
|
|
+ if(pds != null && pds.size()>0){
|
|
|
+ for (PD pd:pds) {
|
|
|
+ String pdName = pd.getName();
|
|
|
+ if(!CatalogueUtil.isEmpty(pdName)){
|
|
|
+ if(pdName.contains("天") || pdName.contains("周")|| pdName.contains("月")
|
|
|
+ || pdName.contains("时") || pdName.contains("半年") || pdName.contains("秒")
|
|
|
+ || pdName.contains("日")){
|
|
|
+ status.set("0");
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }else {
|
|
|
- status.set("0");
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|