|
@@ -3,10 +3,18 @@ package com.diagbot.facade;
|
|
|
import com.diagbot.client.CRFServiceClient;
|
|
|
import com.diagbot.dto.WordBillCrfDTO;
|
|
|
import com.diagbot.model.ai.AIAnalyze;
|
|
|
+import com.diagbot.model.entity.Clinical;
|
|
|
+import com.diagbot.model.label.ChiefLabel;
|
|
|
+import com.diagbot.util.CoreUtil;
|
|
|
import com.diagbot.vo.IndicationPushVO;
|
|
|
+import com.diagbot.vo.StandConvert;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.lang.reflect.Field;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @Description: 通过业务facade
|
|
|
* @author: zhoutg
|
|
@@ -24,4 +32,16 @@ public class CommonFacade {
|
|
|
return wordBillCrfDTO;
|
|
|
}
|
|
|
|
|
|
+ public void dataTypeConvert(WordBillCrfDTO wordBillCrfDTO){
|
|
|
+ StandConvert standConvert = new StandConvert();
|
|
|
+ List<String> clinicalList = new ArrayList<>();
|
|
|
+
|
|
|
+ ChiefLabel chiefLabel = wordBillCrfDTO.getChiefLabel();
|
|
|
+ List<String> propertyList = CoreUtil.getPropertyList(chiefLabel.getClinicals());
|
|
|
+ clinicalList.addAll(propertyList);
|
|
|
+
|
|
|
+ standConvert.setClinicalList(clinicalList);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|