|
|
|
@ -76,43 +76,33 @@ public class HomepageDictionaryImpl implements HomepageDictionary {
|
|
|
|
|
String[] mustCheckDataArray = mustCheckData.split(",");
|
|
|
|
|
List<String> types = Arrays.asList(mustCheckDataArray);
|
|
|
|
|
String typeIsExits = archiveDetailService.getTypeNotExits(types, masterId);
|
|
|
|
|
if (typeIsExits != null) {
|
|
|
|
|
//----------------单独处理出院记录
|
|
|
|
|
List list = new ArrayList<String>();
|
|
|
|
|
list.add("113");
|
|
|
|
|
String dischargeType = archiveDetailService.getTypeNotExits(list, masterId);
|
|
|
|
|
if(dischargeType != null){
|
|
|
|
|
if(Objects.equal( archiveMaster.getDeathFlag(),"1" ) ){
|
|
|
|
|
sb.append(typeIsExits +",死亡记录缺失");
|
|
|
|
|
if (typeIsExits != null ) {
|
|
|
|
|
sb.append("缺失"+typeIsExits);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//----------------单独处理出院记录,包含情况 2021-1-14
|
|
|
|
|
//----------------如果缺失出院记录,那么考虑是不是24小时病历,如果是,那么提示不缺失,如果不是, 那么考虑是不是存在die病历,如果是,那么提示,缺失死亡记录,否择提示缺失出院记录;
|
|
|
|
|
List list = new ArrayList<String>();
|
|
|
|
|
list.add("113");
|
|
|
|
|
list.add("11");
|
|
|
|
|
String disResult = archiveDetailService.getTypeNotExits(list, masterId);
|
|
|
|
|
if (disResult != null ) {
|
|
|
|
|
//再判断是不是24小时入院
|
|
|
|
|
String beHospitalized = archiveDetailService.getBeHospitalized(masterId, "9");
|
|
|
|
|
if (!Objects.equal(beHospitalized, "24小时内入出院记录")) {
|
|
|
|
|
if (Objects.equal(archiveMaster.getDeathFlag(), "1")) {
|
|
|
|
|
Integer dieResult = archiveDetailService.countDetail(masterId, "17");
|
|
|
|
|
if(dieResult == 0){
|
|
|
|
|
sb.append(",死亡记录");
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
sb.append(typeIsExits + ",出院记录缺失");
|
|
|
|
|
sb.append("," + disResult);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//----------------单独处理出院记录
|
|
|
|
|
}
|
|
|
|
|
//----------------单独处理出院记录
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// // 检查申请单
|
|
|
|
|
// if (!checkReportType.equals("")) {
|
|
|
|
|
// String[] checkReportTypeArray = checkReportType.split(",");
|
|
|
|
|
// List<String> types = Arrays.asList(checkReportTypeArray);
|
|
|
|
|
// String checkReportNotExits = archiveDetailService.getCheckReportNotExits(types, masterId);
|
|
|
|
|
// if (checkReportNotExits != null) {
|
|
|
|
|
// if (sb.length() != 0) {
|
|
|
|
|
// sb.append(";");
|
|
|
|
|
// }
|
|
|
|
|
// sb.append(checkReportNotExits);
|
|
|
|
|
// }else{
|
|
|
|
|
// String typeIsExits1 = archiveDetailService.getCheckReportNotExits1(types, masterId);
|
|
|
|
|
// if (typeIsExits1 != null) {
|
|
|
|
|
// if (sb.length() != 0) {
|
|
|
|
|
// sb.append(";");
|
|
|
|
|
// }
|
|
|
|
|
// sb.append(typeIsExits1);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// 检验申请单
|
|
|
|
|
if (!inspectionReportType.equals("")) {
|
|
|
|
|
String[] inspectionReportTypeArray = inspectionReportType.split(",");
|
|
|
|
|