|
@@ -38,6 +38,10 @@ public class FrontSheetUtil {
|
|
|
baseInfo.setNation(nation.getName());
|
|
|
}
|
|
|
// TODO: 2022/12/9 映射职业代码
|
|
|
+ baseInfo.setNewbornWeight(sheet.getNewBornWeight());
|
|
|
+ baseInfo.setNewbornHsptzdWeight(sheet.getNewBornAdmissWeight());
|
|
|
+ baseInfo.setHsptzdWaysId(sheet.getZyAdmissWay());
|
|
|
+ baseInfo.setHsptzdWays(filterAdmissWayName(sheet.getZyAdmissWay()));
|
|
|
baseInfo.setMarriageStatusId(reflectMarriage(sheet.getMarriage()));
|
|
|
baseInfo.setMarriageStatus(filterMarriageName(sheet.getMarriage()));
|
|
|
baseInfo.setCompanyName(sheet.getUnitName());
|
|
@@ -65,6 +69,8 @@ public class FrontSheetUtil {
|
|
|
baseInfo.setAllergicDrugs(sheet.getAllergicMedicine());
|
|
|
baseInfo.setRescueNum(sheet.getRescueTimes());
|
|
|
baseInfo.setRescueSuccNum(sheet.getRescueSuccessTimes());
|
|
|
+ baseInfo.setFeeModeId(reflectPayMethod(sheet.getPayMethod()));
|
|
|
+ baseInfo.setFeeMode(filterPayMethodName(sheet.getPayMethod()));
|
|
|
baseInfo.setQualityDate(DateUtil.formatDatetime(sheet.getQualityControlDate(), DateUtil.DATE));
|
|
|
baseInfo.setTotalFee(sheet.getTotalCost());
|
|
|
baseInfo.setOutHospId(reflectDismissWay(sheet.getZyDismissWay()));
|
|
@@ -106,11 +112,11 @@ public class FrontSheetUtil {
|
|
|
break;
|
|
|
}
|
|
|
QualityCheckDiseInfo diseInfo = new QualityCheckDiseInfo();
|
|
|
- diseInfo.setOrder(diag.getNo());
|
|
|
+ diseInfo.setOrder(String.valueOf(diag.getNo()));
|
|
|
diseInfo.setDagnsType(diag.getNo() == 1 ? "1" : "2");
|
|
|
diseInfo.setDiseaseName(diag.getName());
|
|
|
diseInfo.setIcdCode(diag.getCode());
|
|
|
- diseInfo.setDagnsCondiId(diag.getAdmissStatus());
|
|
|
+ diseInfo.setDagnsCondiId(String.valueOf(diag.getAdmissStatus()));
|
|
|
diseInfo.setDagnsCondi(filterDiagnoseCondition(diag.getAdmissStatus()));
|
|
|
list.add(diseInfo);
|
|
|
}
|
|
@@ -157,7 +163,89 @@ public class FrontSheetUtil {
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+// 1 急诊
|
|
|
+//2 门诊
|
|
|
+//3 其他医疗机构转入
|
|
|
+//9 其他
|
|
|
+
|
|
|
+ public static String filterAdmissWayName(String code) {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ switch (code) {
|
|
|
+ case "1":
|
|
|
+ return "急诊";
|
|
|
+ case "2":
|
|
|
+ return "门诊";
|
|
|
+ case "3":
|
|
|
+ return "其他医疗机构转入";
|
|
|
+ case "9":
|
|
|
+ return "其他";
|
|
|
+ default:
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static String reflectPayMethod(String code) {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ switch (code) {
|
|
|
+ case "1":
|
|
|
+ return "01";
|
|
|
+ case "2":
|
|
|
+ return "02";
|
|
|
+ case "3":
|
|
|
+ return "03";
|
|
|
+ case "4":
|
|
|
+ return "04";
|
|
|
+ case "5":
|
|
|
+ return "05";
|
|
|
+ case "6":
|
|
|
+ return "06";
|
|
|
+ case "7":
|
|
|
+ return "07";
|
|
|
+ case "8":
|
|
|
+ return "08";
|
|
|
+ case "9":
|
|
|
+ return "99";
|
|
|
+ default:
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static String filterPayMethodName(String code) {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ switch (code) {
|
|
|
+ case "1":
|
|
|
+ return "城镇职工基本医疗保险";
|
|
|
+ case "2":
|
|
|
+ return "城镇居民基本医疗保险";
|
|
|
+ case "3":
|
|
|
+ return "新型农村合作医疗";
|
|
|
+ case "4":
|
|
|
+ return "贫困救助";
|
|
|
+ case "5":
|
|
|
+ return "商业医疗保险";
|
|
|
+ case "6":
|
|
|
+ return "全公费";
|
|
|
+ case "7":
|
|
|
+ return "全自费";
|
|
|
+ case "8":
|
|
|
+ return "其他社会保险";
|
|
|
+ case "9":
|
|
|
+ return "其他";
|
|
|
+ default:
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public static String reflectDismissWay(String code) {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
switch (code) {
|
|
|
case "0":
|
|
|
return "1";
|
|
@@ -177,6 +265,9 @@ public class FrontSheetUtil {
|
|
|
}
|
|
|
|
|
|
public static String filterDismissWayName(String code) {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
switch (code) {
|
|
|
case "0":
|
|
|
return "医嘱离院";
|
|
@@ -196,6 +287,9 @@ public class FrontSheetUtil {
|
|
|
}
|
|
|
|
|
|
public static String reflectMarriage(String code) {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
switch (code) {
|
|
|
case "1":
|
|
|
return "10";
|
|
@@ -213,6 +307,9 @@ public class FrontSheetUtil {
|
|
|
}
|
|
|
|
|
|
public static String filterMarriageName(String code) {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
switch (code) {
|
|
|
case "1":
|
|
|
return "未婚";
|
|
@@ -230,6 +327,9 @@ public class FrontSheetUtil {
|
|
|
}
|
|
|
|
|
|
public static String filterOprtLevelName(String level) {
|
|
|
+ if (StringUtil.isBlank(level)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
switch (level) {
|
|
|
case "1":
|
|
|
return "一级手术";
|
|
@@ -252,6 +352,9 @@ public class FrontSheetUtil {
|
|
|
}
|
|
|
|
|
|
public static String filterHealName(String healId) {
|
|
|
+ if (StringUtil.isBlank(healId)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
switch (healId) {
|
|
|
case "1":
|
|
|
return "甲";
|
|
@@ -273,6 +376,9 @@ public class FrontSheetUtil {
|
|
|
}
|
|
|
|
|
|
public static String filterCutName(String cutId) {
|
|
|
+ if (StringUtil.isBlank(cutId)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
switch (cutId) {
|
|
|
case "1":
|
|
|
return "0";
|
|
@@ -286,7 +392,10 @@ public class FrontSheetUtil {
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
- public static String filterDiagnoseCondition(int condition) {
|
|
|
+ public static String filterDiagnoseCondition(Integer condition) {
|
|
|
+ if (null == condition) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
switch (condition) {
|
|
|
case 1:
|
|
|
return "有";
|