|
@@ -540,6 +540,32 @@ public class PushFacade {
|
|
|
String[] featureTypes = featureType.split(",|,");
|
|
|
Set<String> featureTypeSet = new HashSet(Arrays.asList(featureTypes));
|
|
|
|
|
|
+ if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Symptom.getKey()))) {
|
|
|
+ List<FeatureRate> symptomFeature = data.getSymptom();
|
|
|
+ if (symptomFeature.size() > 0) {
|
|
|
+ List<EMRQuestionDTO> symptomList = Lists.newLinkedList();
|
|
|
+ for (FeatureRate featureRate : symptomFeature) {
|
|
|
+ EMRQuestionDTO symptom = new EMRQuestionDTO();
|
|
|
+ symptom.setName(featureRate.getFeatureName());
|
|
|
+ symptom.setUniqueName(featureRate.getFeatureName());
|
|
|
+ symptomList.add(symptom);
|
|
|
+ }
|
|
|
+ pushEMRDTO.setSymptomList(symptomList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Vital.getKey()))) {
|
|
|
+ List<FeatureRate> vitalFeature = data.getVitals();
|
|
|
+ if (vitalFeature.size() > 0) {
|
|
|
+ List<EMRQuestionDTO> vitalList = Lists.newLinkedList();
|
|
|
+ for (FeatureRate featureRate : vitalFeature) {
|
|
|
+ EMRQuestionDTO vital = new EMRQuestionDTO();
|
|
|
+ vital.setName(featureRate.getFeatureName());
|
|
|
+ vital.setUniqueName(featureRate.getFeatureName());
|
|
|
+ vitalList.add(vital);
|
|
|
+ }
|
|
|
+ pushEMRDTO.setVitalList(vitalList);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (featureTypeSet.contains(String.valueOf(QuestionTypeEnum.Lis.getKey()))) {
|
|
|
List<FeatureRate> lisFeatures = data.getLabs();
|
|
|
if (lisFeatures.size() > 0) {
|