|
@@ -14,6 +14,7 @@ import org.springframework.stereotype.Component;
|
|
import java.lang.reflect.Field;
|
|
import java.lang.reflect.Field;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description: 通过业务facade
|
|
* @Description: 通过业务facade
|
|
@@ -32,16 +33,32 @@ public class CommonFacade {
|
|
return wordBillCrfDTO;
|
|
return wordBillCrfDTO;
|
|
}
|
|
}
|
|
|
|
|
|
- public void dataTypeConvert(WordBillCrfDTO wordBillCrfDTO){
|
|
|
|
|
|
+ public StandConvert dataTypeGet(WordBillCrfDTO wordBillCrfDTO){
|
|
StandConvert standConvert = new StandConvert();
|
|
StandConvert standConvert = new StandConvert();
|
|
List<String> clinicalList = new ArrayList<>();
|
|
List<String> clinicalList = new ArrayList<>();
|
|
|
|
|
|
ChiefLabel chiefLabel = wordBillCrfDTO.getChiefLabel();
|
|
ChiefLabel chiefLabel = wordBillCrfDTO.getChiefLabel();
|
|
- List<String> propertyList = CoreUtil.getPropertyList(chiefLabel.getClinicals());
|
|
|
|
- clinicalList.addAll(propertyList);
|
|
|
|
|
|
+ clinicalList.addAll(CoreUtil.getPropertyList(chiefLabel.getClinicals()));
|
|
|
|
|
|
standConvert.setClinicalList(clinicalList);
|
|
standConvert.setClinicalList(clinicalList);
|
|
|
|
+ return standConvert;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public StandConvert dataTypeSet(WordBillCrfDTO wordBillCrfDTO, Map<String, Map<String, String>> map){
|
|
|
|
+ StandConvert standConvert = new StandConvert();
|
|
|
|
+ List<String> clinicalList = new ArrayList<>();
|
|
|
|
|
|
|
|
+ Map<String, String> clinicMap = map.get("clinicalList");
|
|
|
|
+ ChiefLabel chiefLabel = wordBillCrfDTO.getChiefLabel();
|
|
|
|
+ List<Clinical> clinicals = chiefLabel.getClinicals();
|
|
|
|
+ for (Clinical c : clinicals) {
|
|
|
|
+ if (clinicMap != null && clinicMap.get(c.getName()) != null) {
|
|
|
|
+ c.setStandName(clinicMap.get(c.getName()));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ standConvert.setClinicalList(clinicalList);
|
|
|
|
+ return standConvert;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|