|
@@ -132,9 +132,9 @@ public class CommonFacade {
|
|
|
// 【所有症状】(主诉、现病史)
|
|
|
List<String> clinicalList = new ArrayList<>();
|
|
|
ChiefLabel chiefLabel = wordCrfDTO.getChiefLabel();
|
|
|
- clinicalList.addAll(CoreUtil.getPropertyList(chiefLabel.getClinicals()));
|
|
|
+ CoreUtil.addList(clinicalList, CoreUtil.getPropertyList(chiefLabel.getClinicals()));
|
|
|
PresentLabel presentLabel = wordCrfDTO.getPresentLabel();
|
|
|
- clinicalList.addAll(CoreUtil.getPropertyList(presentLabel.getClinicals()));
|
|
|
+ CoreUtil.addList(clinicalList, CoreUtil.getPropertyList(presentLabel.getClinicals()));
|
|
|
standConvert.setClinicalList(clinicalList);
|
|
|
|
|
|
// 【所有疾病】
|
|
@@ -209,7 +209,7 @@ public class CommonFacade {
|
|
|
CoreUtil.addList(drugList, CoreUtil.getPropertyList(pastLabel.getMedicines()));
|
|
|
// 5、开单药品
|
|
|
CoreUtil.addList(drugList, wordCrfDTO.getDrugOrder().stream().filter(z -> StringUtils.isBlank(z.getUniqueName())).map(x -> x.getName()).collect(Collectors.toList()));
|
|
|
- // 6、医嘱药品
|
|
|
+ // 6、结构化药品
|
|
|
CoreUtil.addList(drugList, wordCrfDTO.getDrug().stream().filter(z -> StringUtils.isBlank(z.getUniqueName())).map(x -> x.getName()).collect(Collectors.toList()));
|
|
|
standConvert.setDrugList(drugList);
|
|
|
|
|
@@ -254,40 +254,71 @@ public class CommonFacade {
|
|
|
List<Item> pacsList = wordCrfDTO.getPacsLabel().getItem();
|
|
|
VitalLabel vitalLabel = wordCrfDTO.getVitalLabel();
|
|
|
|
|
|
- //症状回填
|
|
|
+ // 【症状回填】
|
|
|
CoreUtil.setPropertyList(chiefLabel.getClinicals(), map.get(StandConvertEnum.symptom.toString()));
|
|
|
CoreUtil.setPropertyList(presentLabel.getClinicals(), map.get(StandConvertEnum.symptom.toString()));
|
|
|
- //诊断回填
|
|
|
- CoreUtil.setPropertyList(diagLabel.getDiags(), map.get(StandConvertEnum.disease.toString())); // 文本诊断
|
|
|
- CoreUtil.setPropertyList(chiefLabel.getDiags(), map.get(StandConvertEnum.disease.toString())); // 主诉诊断
|
|
|
- CoreUtil.setPropertyList(presentLabel.getDiags(), map.get(StandConvertEnum.disease.toString())); // 现病史诊断
|
|
|
- CoreUtil.setPropertyList(pastLabel.getDiags(), map.get(StandConvertEnum.disease.toString())); // 既往史诊断
|
|
|
- CoreUtil.setPropertyList(wordCrfDTO.getDiagOrder(), "name", "uniqueName", map.get(StandConvertEnum.disease.toString())); // 开单项诊断
|
|
|
- CoreUtil.setPropertyList(wordCrfDTO.getDiag(), "name", "uniqueName", map.get(StandConvertEnum.disease.toString())); // 结构化诊断
|
|
|
- CoreUtil.setPropertyList(wordCrfDTO.getDiseaseName(), "name", "uniqueName", map.get(StandConvertEnum.disease.toString())); // 选中诊断
|
|
|
- //药品回填
|
|
|
+
|
|
|
+ // 【诊断回填】
|
|
|
+ // 1、主诉诊断
|
|
|
+ CoreUtil.setPropertyList(chiefLabel.getDiags(), map.get(StandConvertEnum.disease.toString()));
|
|
|
+ // 2、现病史诊断
|
|
|
+ CoreUtil.setPropertyList(presentLabel.getDiags(), map.get(StandConvertEnum.disease.toString()));
|
|
|
+ // 3、文本诊断
|
|
|
+ CoreUtil.setPropertyList(diagLabel.getDiags(), map.get(StandConvertEnum.disease.toString()));
|
|
|
+ // 4、既往史诊断
|
|
|
+ CoreUtil.setPropertyList(pastLabel.getDiags(), map.get(StandConvertEnum.disease.toString()));
|
|
|
+ // 5、开单项诊断
|
|
|
+ CoreUtil.setPropertyList(wordCrfDTO.getDiagOrder(), "name", "uniqueName", map.get(StandConvertEnum.disease.toString()));
|
|
|
+ // 6、结构化诊断
|
|
|
+ CoreUtil.setPropertyList(wordCrfDTO.getDiag(), "name", "uniqueName", map.get(StandConvertEnum.disease.toString()));
|
|
|
+ // 7、选中诊断
|
|
|
+ CoreUtil.setPropertyList(wordCrfDTO.getDiseaseName(), "name", "uniqueName", map.get(StandConvertEnum.disease.toString()));
|
|
|
+
|
|
|
+ // 【药品回填】
|
|
|
+ // 1、主诉药品
|
|
|
+ CoreUtil.setPropertyList(chiefLabel.getMedicines(), map.get(StandConvertEnum.drug.toString()));
|
|
|
+ // 2、现病史药品
|
|
|
CoreUtil.setPropertyList(presentLabel.getMedicines(), map.get(StandConvertEnum.drug.toString()));
|
|
|
- // CoreUtil.setPropertyList(presentLabel.getTakeMedicine(), map.get(StandConvertEnum.drug.toString()));
|
|
|
+ // 3、既往史(药物过敏)
|
|
|
CoreUtil.setPropertyList(pastLabel.getAllergyMedicines(), map.get(StandConvertEnum.drug.toString()));
|
|
|
+ // 4、既往史(药物)
|
|
|
+ CoreUtil.setPropertyList(pastLabel.getMedicines(), map.get(StandConvertEnum.drug.toString()));
|
|
|
+ // 5、开单药品
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getDrugOrder(), "name", "uniqueName", map.get(StandConvertEnum.drug.toString()));
|
|
|
+ // 6、结构化药品
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getDrug(), "name", "uniqueName", map.get(StandConvertEnum.drug.toString()));
|
|
|
- //化验回填
|
|
|
+
|
|
|
+ // 【化验回填】
|
|
|
+ // 1、普通化验
|
|
|
CoreUtil.setPropertyList(lis, "detailName", "uniqueName", map.get(StandConvertEnum.lis.toString()));
|
|
|
+ // 2、开单化验——取套餐
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getLisOrder(), "name", "uniqueName", map.get(StandConvertEnum.lis.toString()));
|
|
|
- //辅助检查回填
|
|
|
+
|
|
|
+ // 【辅助项目回填】
|
|
|
+ // 1、模型解析辅检项目
|
|
|
CoreUtil.setPropertyList(pacsList, "name", "uniqueName", map.get(StandConvertEnum.pacs.toString()));
|
|
|
+ // 2、结构化辅检项目
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getPacs(), "name", "uniqueName", map.get(StandConvertEnum.pacs.toString()));
|
|
|
+ // 3、开单辅检项目
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getPacsOrder(), "name", "uniqueName", map.get(StandConvertEnum.pacs.toString()));
|
|
|
- //体征回填
|
|
|
+
|
|
|
+ // 【体征回填】
|
|
|
CoreUtil.setPropertyList(vitalLabel.getVitals(), map.get(StandConvertEnum.vital.toString()));
|
|
|
CoreUtil.setPropertyList(vitalLabel.getClinicals(), map.get(StandConvertEnum.vital.toString()));
|
|
|
- //手术回填
|
|
|
+
|
|
|
+ // 【手术回填】
|
|
|
+ // 1、现病史手术
|
|
|
CoreUtil.setPropertyList(presentLabel.getOperations(), map.get(StandConvertEnum.operation.toString()));
|
|
|
+ // 2、既往史手术
|
|
|
CoreUtil.setPropertyList(pastLabel.getOperations(), map.get(StandConvertEnum.operation.toString()));
|
|
|
+ // 3、开单手术
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getOperationOrder(), "name", "uniqueName", map.get(StandConvertEnum.operation.toString()));
|
|
|
+ // 4、结构化手术
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getOperation(), "name", "uniqueName", map.get(StandConvertEnum.operation.toString()));
|
|
|
+ // 5、选中手术
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getOperationName(), "name", "uniqueName", map.get(StandConvertEnum.operation.toString()));
|
|
|
- //输血回填
|
|
|
+
|
|
|
+ //【输血回填】
|
|
|
CoreUtil.setPropertyList(wordCrfDTO.getTransfusionOrder(), "name", "uniqueName", map.get(StandConvertEnum.transfusion.toString()));
|
|
|
}
|
|
|
|