|
@@ -1,6 +1,7 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -312,7 +313,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedConsultationApply.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("behospital_date")
|
|
.orderByAsc("behospital_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -321,7 +322,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedConsultationResult.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("behospital_date")
|
|
.orderByAsc("behospital_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -330,7 +331,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedConsultationNote.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("behospital_date")
|
|
.orderByAsc("behospital_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -339,7 +340,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedAdmissionNote.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("behospital_date")
|
|
.orderByAsc("behospital_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -348,7 +349,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedBloodResult.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -357,7 +358,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedBloodTransfusion.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -366,7 +367,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedCrisisNote.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -375,7 +376,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedDeathDiscussion.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -384,7 +385,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedDeathNote.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("death_date")
|
|
.orderByAsc("death_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -393,7 +394,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedDifficultCase.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -402,7 +403,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedFirstRecord.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -411,7 +412,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedIllCritically.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("doctor_sign_date")
|
|
.orderByAsc("doctor_sign_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -420,7 +421,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedIllSeriousl.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("doctor_sign_date")
|
|
.orderByAsc("doctor_sign_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -429,7 +430,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedLeaveHospital.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("leave_hospital_date")
|
|
.orderByAsc("leave_hospital_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -438,7 +439,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedOperativeFirstRecord.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -447,7 +448,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedOperativeNote.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -456,7 +457,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedPeriodConclusion.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -465,7 +466,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedPreoperativeDiscussion.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -474,7 +475,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedRescueNote.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -483,7 +484,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedTransferInNote.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("transfer_in_date")
|
|
.orderByAsc("transfer_in_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -492,7 +493,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedTransferOutNote.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("transfer_in_date")
|
|
.orderByAsc("transfer_in_date")
|
|
);
|
|
);
|
|
|
|
|
|
@@ -501,7 +502,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("hospital_id", hospitalId)
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
.eq("behospital_code", analyzeVO.getBehospitalCode())
|
|
- .select(MedWardRecord.class, info -> !info.getColumn().equals("whole_data"))
|
|
|
|
|
|
+ .select("whole_data")
|
|
.orderByAsc("rec_date")
|
|
.orderByAsc("rec_date")
|
|
);
|
|
);
|
|
// -------------------------------------文书数据改造结束----------------------------------
|
|
// -------------------------------------文书数据改造结束----------------------------------
|
|
@@ -600,134 +601,112 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
*/
|
|
*/
|
|
//会诊申请单
|
|
//会诊申请单
|
|
if (ListUtil.isNotEmpty(medConsultationApplyList)) {
|
|
if (ListUtil.isNotEmpty(medConsultationApplyList)) {
|
|
- addDataWithKeyConvert("会诊申请单", medConsultationApplyList, medrecVoList, dicMap.get("23"),Arrays.asList("recordDate", "behospitalDate",
|
|
|
|
- "applyDate", "consultationDate", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("会诊申请单", medConsultationApplyList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//会诊结果单
|
|
//会诊结果单
|
|
if (ListUtil.isNotEmpty(medConsultationResultList)) {
|
|
if (ListUtil.isNotEmpty(medConsultationResultList)) {
|
|
- addDataWithKeyConvert("会诊结果单", medConsultationResultList, medrecVoList,dicMap.get("24"), Arrays.asList("recordDate", "behospitalDate",
|
|
|
|
- "applyDate", "consultationArriveDate", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("会诊结果单", medConsultationResultList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//会诊单(申请和结果)
|
|
//会诊单(申请和结果)
|
|
if (ListUtil.isNotEmpty(medConsultationNoteList)) {
|
|
if (ListUtil.isNotEmpty(medConsultationNoteList)) {
|
|
- addDataWithKeyConvert("会诊单(申请和结果)", medConsultationNoteList, medrecVoList,dicMap.get("25"), Arrays.asList("recordDate", "behospitalDate",
|
|
|
|
- "applyDate", "consultationDate", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("会诊单(申请和结果)", medConsultationNoteList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//入院记录
|
|
//入院记录
|
|
if (ListUtil.isNotEmpty(medAdmissionNoteList)) {
|
|
if (ListUtil.isNotEmpty(medAdmissionNoteList)) {
|
|
- addDataWithKeyConvert("入院记录", medAdmissionNoteList, medrecVoList,dicMap.get("26"), Arrays.asList("recordDate", "birthday", "behospitalDate",
|
|
|
|
- "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("入院记录", medAdmissionNoteList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//输血效果评价
|
|
//输血效果评价
|
|
if (ListUtil.isNotEmpty(medBloodResultList)) {
|
|
if (ListUtil.isNotEmpty(medBloodResultList)) {
|
|
- addDataWithKeyConvert("输血效果评价", medBloodResultList, medrecVoList,dicMap.get("27"), Arrays.asList("recordDate", "recDate", "auditDate",
|
|
|
|
- "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("输血效果评价", medBloodResultList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//输血记录
|
|
//输血记录
|
|
if (ListUtil.isNotEmpty(medBloodTransfusionList)) {
|
|
if (ListUtil.isNotEmpty(medBloodTransfusionList)) {
|
|
- addDataWithKeyConvert("输血记录", medBloodTransfusionList, medrecVoList,dicMap.get("28"), Arrays.asList("recordDate", "startTime",
|
|
|
|
- "endTime", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("输血记录", medBloodTransfusionList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//危急值记录
|
|
//危急值记录
|
|
if (ListUtil.isNotEmpty(medCrisisNoteList)) {
|
|
if (ListUtil.isNotEmpty(medCrisisNoteList)) {
|
|
- addDataWithKeyConvert("危急值记录", medCrisisNoteList, medrecVoList,dicMap.get("29"), Arrays.asList("recordDate", "recieveDate",
|
|
|
|
- "consultationDate", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("危急值记录", medCrisisNoteList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//死亡病例讨论记录
|
|
//死亡病例讨论记录
|
|
if (ListUtil.isNotEmpty(medDeathDiscussionList)) {
|
|
if (ListUtil.isNotEmpty(medDeathDiscussionList)) {
|
|
- addDataWithKeyConvert("死亡病例讨论记录", medDeathDiscussionList, medrecVoList,dicMap.get("30"), Arrays.asList("recordDate", "deathDate",
|
|
|
|
- "discussDate", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("死亡病例讨论记录", medDeathDiscussionList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//死亡记录
|
|
//死亡记录
|
|
if (ListUtil.isNotEmpty(medDeathNoteList)) {
|
|
if (ListUtil.isNotEmpty(medDeathNoteList)) {
|
|
- addDataWithKeyConvert("死亡记录", medDeathNoteList, medrecVoList,dicMap.get("31"), Arrays.asList("recordDate", "behospitalDate",
|
|
|
|
- "deathDate", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("死亡记录", medDeathNoteList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//疑难病例讨论记录
|
|
//疑难病例讨论记录
|
|
if (ListUtil.isNotEmpty(medDifficultCaseList)) {
|
|
if (ListUtil.isNotEmpty(medDifficultCaseList)) {
|
|
- addDataWithKeyConvert("疑难病例讨论记录", medDifficultCaseList, medrecVoList,dicMap.get("32"), Arrays.asList("recordDate", "discussDate",
|
|
|
|
- "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("疑难病例讨论记录", medDifficultCaseList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//首次病程录
|
|
//首次病程录
|
|
if (ListUtil.isNotEmpty(medFirstRecordList)) {
|
|
if (ListUtil.isNotEmpty(medFirstRecordList)) {
|
|
- addDataWithKeyConvert("首次病程录", medFirstRecordList, medrecVoList,dicMap.get("33"), Arrays.asList("recordDate", "behospitalDate",
|
|
|
|
- "applyDate", "consultationDate", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("首次病程录", medFirstRecordList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//病危通知单
|
|
//病危通知单
|
|
if (ListUtil.isNotEmpty(medIllCriticallyList)) {
|
|
if (ListUtil.isNotEmpty(medIllCriticallyList)) {
|
|
- addDataWithKeyConvert("病危通知单", medIllCriticallyList, medrecVoList, dicMap.get("34"),Arrays.asList("recordDate", "recDate",
|
|
|
|
- "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("病危通知单", medIllCriticallyList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//病重通知单
|
|
//病重通知单
|
|
if (ListUtil.isNotEmpty(medIllSeriouslList)) {
|
|
if (ListUtil.isNotEmpty(medIllSeriouslList)) {
|
|
- addDataWithKeyConvert("病重通知单", medIllSeriouslList, medrecVoList, dicMap.get("35"),Arrays.asList("recordDate", "patientSignDate",
|
|
|
|
- "doctorSignDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("病重通知单", medIllSeriouslList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//出院小结
|
|
//出院小结
|
|
if (ListUtil.isNotEmpty(medLeaveHospitalList)) {
|
|
if (ListUtil.isNotEmpty(medLeaveHospitalList)) {
|
|
- addDataWithKeyConvert("出院小结", medLeaveHospitalList, medrecVoList, dicMap.get("36"),Arrays.asList("recordDate", "behospitalDate",
|
|
|
|
- "leaveHospitalDate", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("出院小结", medLeaveHospitalList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//术后首程
|
|
//术后首程
|
|
if (ListUtil.isNotEmpty(medOperativeFirstRecordList)) {
|
|
if (ListUtil.isNotEmpty(medOperativeFirstRecordList)) {
|
|
- addDataWithKeyConvert("术后首程", medOperativeFirstRecordList, medrecVoList,dicMap.get("37"), Arrays.asList("recordDate", "operationDate",
|
|
|
|
- "startTime", "endTime", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("术后首程", medOperativeFirstRecordList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//手术记录
|
|
//手术记录
|
|
if (ListUtil.isNotEmpty(medOperativeNoteList)) {
|
|
if (ListUtil.isNotEmpty(medOperativeNoteList)) {
|
|
- addDataWithKeyConvert("手术记录", medOperativeNoteList, medrecVoList, dicMap.get("38"),Arrays.asList("recordDate", "operationDate",
|
|
|
|
- "startTime", "endTime", "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("手术记录", medOperativeNoteList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//阶段小结
|
|
//阶段小结
|
|
if (ListUtil.isNotEmpty(medPeriodConclusionList)) {
|
|
if (ListUtil.isNotEmpty(medPeriodConclusionList)) {
|
|
- addDataWithKeyConvert("阶段小结", medPeriodConclusionList, medrecVoList,dicMap.get("39"), Arrays.asList("recordaDte", "recDate",
|
|
|
|
- "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("阶段小结", medPeriodConclusionList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//术前讨论小结
|
|
//术前讨论小结
|
|
if (ListUtil.isNotEmpty(medPreoperativeDiscussionList)) {
|
|
if (ListUtil.isNotEmpty(medPreoperativeDiscussionList)) {
|
|
- addDataWithKeyConvert("术前讨论小结", medPreoperativeDiscussionList, medrecVoList, dicMap.get("40"),Arrays.asList("recordDate", "discussTime",
|
|
|
|
- "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("术前讨论小结", medPreoperativeDiscussionList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//抢救记录
|
|
//抢救记录
|
|
if (ListUtil.isNotEmpty(medRescueNoteList)) {
|
|
if (ListUtil.isNotEmpty(medRescueNoteList)) {
|
|
- addDataWithKeyConvert("抢救记录", medRescueNoteList, medrecVoList,dicMap.get("41"),Arrays.asList("recordDate", "startTime", "endTime",
|
|
|
|
- "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("抢救记录", medRescueNoteList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//转入记录
|
|
//转入记录
|
|
if (ListUtil.isNotEmpty(medTransferInNoteList)) {
|
|
if (ListUtil.isNotEmpty(medTransferInNoteList)) {
|
|
- addDataWithKeyConvert("转入记录", medTransferInNoteList, medrecVoList,dicMap.get("42"), Arrays.asList("recordDate", "transferInDate",
|
|
|
|
- "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("转入记录", medTransferInNoteList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//转出记录
|
|
//转出记录
|
|
if (ListUtil.isNotEmpty(medTransferOutNoteList)) {
|
|
if (ListUtil.isNotEmpty(medTransferOutNoteList)) {
|
|
- addDataWithKeyConvert("转出记录", medTransferOutNoteList, medrecVoList,dicMap.get("43"), Arrays.asList("recordDate", "transferInDate",
|
|
|
|
- "recDate", "auditDate", "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("转出记录", medTransferOutNoteList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
//查房记录
|
|
//查房记录
|
|
if (ListUtil.isNotEmpty(medWardRecordList)) {
|
|
if (ListUtil.isNotEmpty(medWardRecordList)) {
|
|
- addDataWithKeyConvert("查房记录", medWardRecordList, medrecVoList, dicMap.get("44"),Arrays.asList("recordDate", "recDate", "auditDate",
|
|
|
|
- "gmtCreate", "gmtModified"));
|
|
|
|
|
|
+ newAddData("查房记录", medWardRecordList, medrecVoList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1063,6 +1042,35 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 1.5.0拼接数据
|
|
|
|
+ *
|
|
|
|
+ * @param key
|
|
|
|
+ * @param list
|
|
|
|
+ * @param medrecVoList
|
|
|
|
+ */
|
|
|
|
+public <T> void newAddData(String key, List<T> list, List<MedrecVo> medrecVoList) {
|
|
|
|
+ MedrecVo medrecVo = new MedrecVo();
|
|
|
|
+ medrecVo.setTitle(key);
|
|
|
|
+ Map<String, Object> content = new HashMap<>();
|
|
|
|
+ //装入jason数据
|
|
|
|
+ List<String> contents = new ArrayList<>();
|
|
|
|
+ for (T bean : list) {
|
|
|
|
+ try {
|
|
|
|
+ Map<String, Object> objectMap = MapUtil.objectToMap(bean);
|
|
|
|
+ String jsonStr = (String) objectMap.get("wholeData");
|
|
|
|
+ contents.add(jsonStr);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ content.put("content", contents);
|
|
|
|
+ medrecVo.setContent(content);
|
|
|
|
+ medrecVoList.add(medrecVo);
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 拼接数据,从数据字典获取信息转换
|
|
* 拼接数据,从数据字典获取信息转换
|
|
*
|
|
*
|
|
@@ -1077,11 +1085,6 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
medrecVo.setTitle(key);
|
|
medrecVo.setTitle(key);
|
|
Map<String, Object> content = new HashMap<>();
|
|
Map<String, Object> content = new HashMap<>();
|
|
List<String> contents = new ArrayList<>();
|
|
List<String> contents = new ArrayList<>();
|
|
- //1.5.0判断定制过滤数据
|
|
|
|
- if("结构化数据".equals(map.get("wholeData"))){
|
|
|
|
- map.remove("wholeData");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
for (T bean : list) {
|
|
for (T bean : list) {
|
|
try {
|
|
try {
|
|
Map<String, String> res = new HashMap<>();
|
|
Map<String, String> res = new HashMap<>();
|