|
@@ -125,76 +125,7 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
medicalRecordQe.in("rec_id", hisDataDealVO.getRecIdList());
|
|
|
}
|
|
|
List<MedicalRecord> medicalRecordList = medicalRecordService.list(medicalRecordQe);
|
|
|
- Boolean flag = true;
|
|
|
- if (hisDataDealVO.getModeId().size() > 1) {
|
|
|
- flag = false;
|
|
|
- Map<String, Object> content = new HashMap<>();
|
|
|
- for (MedicalRecord medicalRecord : medicalRecordList) {
|
|
|
- RecordDataVO recordContentVO_7 = new RecordDataVO();
|
|
|
- BeanUtil.copyProperties(medicalRecord, recordContentVO_7);
|
|
|
- recordContentVO_7.setModeId(7l);
|
|
|
- List<RecordContentDTO> recordContentFac_7 = medicalRecordFacade.getRecordData(recordContentVO_7);
|
|
|
- specialDataWithKey(encryptFlag, recordContentFac_7);
|
|
|
- List<Map<String, Object>> returnData = new ArrayList<>();
|
|
|
- Map<String, List<Map<String, Object>>> returnMap = new HashMap<>();
|
|
|
- if (ListUtil.isNotEmpty(recordContentFac_7)) {
|
|
|
- for (RecordContentDTO recordContentDTO : recordContentFac_7) {
|
|
|
- try {
|
|
|
- Map<String, Object> objectMap = MapUtil.objectToMap(recordContentDTO);
|
|
|
- returnData.add(objectMap);
|
|
|
- returnMap.put("会诊记录", returnData);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- RecordDataVO recordContentVO_30 = new RecordDataVO();
|
|
|
- BeanUtil.copyProperties(medicalRecord, recordContentVO_30);
|
|
|
- recordContentVO_30.setModeId(30l);
|
|
|
- List<RecordContentDTO> recordContentFac_30 = medicalRecordFacade.getRecordData(recordContentVO_30);
|
|
|
- specialDataWithKey(encryptFlag, recordContentFac_30);
|
|
|
- if (ListUtil.isNotEmpty(recordContentFac_30)) {
|
|
|
- for (RecordContentDTO recordContentDTO : recordContentFac_30) {
|
|
|
- try {
|
|
|
- Map<String, Object> objectMap = MapUtil.objectToMap(recordContentDTO);
|
|
|
- returnData.add(objectMap);
|
|
|
- returnMap.put("会诊申请单", returnData);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- RecordDataVO recordContentVO_31 = new RecordDataVO();
|
|
|
- BeanUtil.copyProperties(medicalRecord, recordContentVO_31);
|
|
|
- recordContentVO_31.setModeId(31l);
|
|
|
- List<RecordContentDTO> recordContentFac_31 = medicalRecordFacade.getRecordData(recordContentVO_31);
|
|
|
- specialDataWithKey(encryptFlag, recordContentFac_31);
|
|
|
- if (ListUtil.isNotEmpty(recordContentFac_31)) {
|
|
|
- for (RecordContentDTO recordContentDTO : recordContentFac_31) {
|
|
|
- try {
|
|
|
- Map<String, Object> objectMap = MapUtil.objectToMap(recordContentDTO);
|
|
|
- returnData.add(objectMap);
|
|
|
- returnMap.put("会诊结果单", returnData);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- content.put("content", returnMap);
|
|
|
- MedrecVo medrecVo = new MedrecVo();
|
|
|
- medrecVo.setHospitalId(medicalRecord.getHospitalId());
|
|
|
- medrecVo.setContent(content);
|
|
|
- if (recordContentVO_31.getModeId() == 7l || recordContentVO_30.getModeId() == 30l || recordContentVO_31.getModeId() == 31l) {
|
|
|
- medrecVo.setTitle("会诊");
|
|
|
- }
|
|
|
- splicingParam(null, medrecVo);
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (flag) {
|
|
|
+
|
|
|
medicalRecordList.forEach(medicalRecord -> {
|
|
|
|
|
|
QueryWrapper<MedicalRecordContent> medicalRecordContentQe = new QueryWrapper<>();
|
|
@@ -225,11 +156,9 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
records.add(aMedicalRecordVO);
|
|
|
AMrContentVO aMrContentVO = new AMrContentVO();
|
|
|
aMrContentVO.setRecords(records);
|
|
|
- splicingParam(aMrContentVO, null);
|
|
|
+ splicingParam(aMrContentVO);
|
|
|
}
|
|
|
);
|
|
|
- }
|
|
|
- ;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -261,17 +190,8 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
*
|
|
|
* @param aMrContentVO
|
|
|
*/
|
|
|
- public void splicingParam(AMrContentVO aMrContentVO, MedrecVo medrec) {
|
|
|
- if (null == aMrContentVO) {
|
|
|
- QueryVo queryVo = new QueryVo();
|
|
|
- List<MedrecVo> medreclist = Lists.newArrayList();
|
|
|
- medreclist.add(medrec);
|
|
|
- queryVo.setMedrec(medreclist);
|
|
|
- queryVo.setHospitalId(String.valueOf(medrec.getHospitalId()));
|
|
|
- queryVo.setCid(basHospitalInfoFacade.getHosCode(medrec.getHospitalId()));
|
|
|
- columnFacade.analyseRec(queryVo);
|
|
|
- }
|
|
|
- if (null == medrec) {
|
|
|
+ public void splicingParam(AMrContentVO aMrContentVO) {
|
|
|
+
|
|
|
try {
|
|
|
QueryVo queryVo = new QueryVo();
|
|
|
List<MedrecVo> medreclist = Lists.newArrayList();
|
|
@@ -327,7 +247,7 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
aMedAbnormalInfoFacade.saveAbnormalInfo("参数拼接", "", JSON.toJSONString(aMrContentVO), "", e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 运行质控-通过接口更新病历记录
|
|
@@ -363,7 +283,7 @@ public class AMedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
});
|
|
|
|
|
|
//数据解析
|
|
|
- splicingParam(aMrContentVO, null);
|
|
|
+ splicingParam(aMrContentVO);
|
|
|
|
|
|
//评分后返回结构体
|
|
|
return mrIng(aMrContentVO);
|