Browse Source

历史病案导出添加N多字段

lighter 1 year ago
parent
commit
729299096e

+ 14 - 1
src/main/java/thyyxxk/webserver/dao/his/inpatient/casefrontsheet/FrontSheetExportDao.java

@@ -116,7 +116,20 @@ public interface FrontSheetExportDao {
             "a.leader_doctor_name,a.main_doctor_name,a.admiss_doctor_name, " +
             "a.duty_nurse_name,a.quality_control_level,a.quality_control_doctor_name, " +
             "a.quality_control_nurse_name,a.zy_dismiss_way, " +
-            "a.total_cost,a.tumor_level_t,a.tumor_level_n,a.tumor_level_m,a.med_type, " +
+            "a.total_cost,a.tumor_level_t,a.tumor_level_n,a.tumor_level_m," +
+            "a.monopathy_management,a.clinical_pathway_management,a.drgs_management, " +
+            "a.use_antibiotic,a.bacilliculture,a.statutory_epidemic, " +
+            "a.pay_method,a.age,a.country,a.birth_place_name,a.native_place_name,a.nation, " +
+            "a.occupation,a.marriage,a.live_place_combo,a.addr_zip_code,a.hk_place_name, " +
+            "a.hk_zip_code,a.unit_name,a.unit_place,a.unit_phone,a.unit_zip_code,a.contact_name, " +
+            "a.contact_relation,a.contact_addr_name,a.contact_phone,a.has_surgery,a.trans_dept, " +
+            "a.allergy,a.allergic_medicine,a.autopsy,a.hbs_ag,a.hcv_ab,a.hiv_ab,a.tp_ab,a.blood_type, " +
+            "a.rh,a.dept_leader_name,a.coder_name,a.dismiss_destination,a.admiss_again_in_one_month, " +
+            "a.admiss_again_purpose,a.coma_days_before_admiss,a.coma_hours_before_admiss, " +
+            "a.coma_minutes_before_admiss,a.coma_days_after_admiss,a.coma_hours_after_admiss, " +
+            "a.coma_minutes_after_admiss,a.self_pay,a.diag_conform1,a.diag_conform2,a.diag_conform3, " +
+            "a.diag_conform4,a.diag_conform5,a.rescue_times,a.rescue_success_times,a.case_classification, " +
+            "a.has_icu,a.icu_days,a.icu_hours,a.xxe_apgar, " +
             "disdiagCodeStr=STUFF((SELECT '^' + b.code FROM t_case_frontsheet_disdiag b " +
             "WHERE b.bah = a.bah and b.times=a.admiss_times order by no " +
             "FOR XML PATH('')), 1, 1, ''), " +

+ 6 - 0
src/main/java/thyyxxk/webserver/dao/his/redislike/RedisLikeDao.java

@@ -44,6 +44,12 @@ public interface RedisLikeDao {
     @Select("select rtrim(name) from zd_country_code where code=#{code}")
     String selectCountryName(@Param("code") String code);
 
+    @Select("select rtrim(name) from zd_nation_code where code=#{code}")
+    String selectNationName(@Param("code") String code);
+
+    @Select("select rtrim(name) from zy_occupation_code where code=#{code}")
+    String selectOccupationName(@Param("code") String code);
+
     @Select("select b.code," +
             " rtrim(b.name) name," +
             " password," +

+ 62 - 165
src/main/java/thyyxxk/webserver/entity/casefrontsheet/response/HistorySheet.java

@@ -4,208 +4,105 @@ import lombok.Data;
 
 @Data
 public class HistorySheet {
-    /**
-     * 病案号,和住院号一样
-     */
     private String bah;
-
-    /**
-     * 住院次数
-     */
     private Integer admissTimes;
-
     private String name;
-
     private String sex;
-
-    /**
-     * 出生日期
-     */
     private String birthDate;
-
-    /**
-     * 身份证
-     */
     private String socialNo;
-
-    /**
-     * 手机号
-     */
     private String phone;
-
-    /**
-     * 入院方式
-     */
     private String zyAdmissWay;
-
-    /**
-     * 入院日期
-     */
     private String admissDate;
-
-    /**
-     * 入院科室
-     */
     private String admissDept;
-
-    /**
-     * 出院日期
-     */
     private String dismissDate;
-
-    /**
-     * 出院科室
-     */
     private String dismissDept;
-
-    /**
-     * 住院天数
-     */
     private String admissDays;
-
-    /**
-     * 门诊诊断编码
-     */
     private String clinicDiagCode;
-
-    /**
-     * 门诊诊断名称
-     */
     private String clinicDiagStr;
-
-    /**
-     * 意外伤害编码
-     */
     private String hurtReasonCode;
-
-    /**
-     * 意外伤害名称
-     */
     private String hurtReasonName;
-
-    /**
-     * 病理诊断编码
-     */
     private String pathologicDiagCode;
-
-    /**
-     * 病理诊断名称
-     */
     private String pathologicDiagStr;
-
-    /**
-     * 病历号
-     */
     private String blh;
-
-    /**
-     * 主任(副主任)医师姓名
-     */
     private String leaderDoctorName;
-
-    /**
-     * 主治医师姓名
-     */
     private String mainDoctorName;
-
-    /**
-     * 住院医师姓名
-     */
     private String admissDoctorName;
-
-    /**
-     * 责任护士姓名
-     */
     private String dutyNurseName;
-
-    /**
-     * 病案质量
-     */
     private String qualityControlLevel;
-
-    /**
-     * 质控医师姓名
-     */
     private String qualityControlDoctorName;
-
-    /**
-     * 质控护士姓名
-     */
     private String qualityControlNurseName;
-
-    /**
-     * 质控日期
-     */
     private String qualityControlDate;
-
-    /**
-     * 离院方式
-     */
     private String zyDismissWay;
-
-    /**
-     * 住院总费用
-     */
     private String totalCost;
-
-    /**
-     * 肿瘤分期(T)
-     */
     private String tumorLevelT;
-
-    /**
-     * 肿瘤分期(N)
-     */
     private String tumorLevelN;
-
-    /**
-     * 肿瘤分期(M)
-     */
     private String tumorLevelM;
-
-    /**
-     * 肿瘤分期
-     */
     private String tumorLevel;
-
-    /**
-     * 医疗类别
-     */
-    private String medType;
+    private String monopathyManagement;
+    private String clinicalPathwayManagement;
+    private String drgsManagement;
+    private String useAntibiotic;
+    private String bacilliculture;
+    private String statutoryEpidemic;
+
+    private String payMethod;
+    private String age;
+    private String country;
+    private String birthPlaceName;
+    private String nativePlaceName;
+    private String nation;
+    private String occupation;
+    private String marriage;
+    private String livePlaceCombo;
+    private String addrZipCode;
+    private String hkPlaceName;
+    private String hkZipCode;
+    private String unitName;
+    private String unitPlace;
+    private String unitPhone;
+    private String unitZipCode;
+    private String contactName;
+    private String contactRelation;
+    private String contactPhone;
+    private String contactAddrName;
+    private String hasSurgery;
+    private String transDept;
+    private String allergy;
+    private String allergicMedicine;
+    private String autopsy;
+    private String hbsAg;
+    private String hcvAb;
+    private String hivAb;
+    private String tpAb;
+    private String bloodType;
+    private String rh;
+    private String deptLeaderName;
+    private String coderName;
+    private String dismissDestination;
+    private String admissAgainInOneMonth;
+    private String admissAgainPurpose;
+    private String comaDaysBeforeAdmiss;
+    private String comaHoursBeforeAdmiss;
+    private String comaMinutesBeforeAdmiss;
+    private String comaDaysAfterAdmiss;
+    private String comaHoursAfterAdmiss;
+    private String comaMinutesAfterAdmiss;
+    private String selfPay;
+    private String diagConform1;
+    private String diagConform2;
+    private String diagConform3;
+    private String diagConform4;
+    private String diagConform5;
+    private String rescueTimes;
+    private String rescueSuccessTimes;
+    private String caseClassification;
+    private String hasIcu;
+    private String icuDays;
+    private String icuHours;
+    private String xxeApgar;
 
     private String disdiag0;
-//    private String disdiag1;
-//    private String disdiag2;
-//    private String disdiag3;
-//    private String disdiag4;
-//    private String disdiag5;
-//    private String disdiag6;
-//    private String disdiag7;
-//    private String disdiag8;
-//    private String disdiag9;
-//    private String disdiag10;
-//    private String disdiag11;
-//    private String disdiag12;
-//    private String disdiag13;
-//    private String disdiag14;
-//    private String disdiag15;
-//    private String disdiag16;
-//    private String disdiag17;
-//    private String disdiag18;
-//    private String disdiag19;
-//    private String disdiag20;
-//    private String disdiag21;
-//    private String disdiag22;
-//    private String disdiag23;
-//    private String disdiag24;
-//    private String disdiag25;
-
     private String surgery0;
-//    private String surgery1;
-//    private String surgery2;
-//    private String surgery3;
-//    private String surgery4;
-
     private String disdiagCodeStr;
     private String disdiagNameStr;
     private String surgeryCodeStr;

+ 4 - 4
src/main/java/thyyxxk/webserver/service/inpatient/casefrontsheet/CaseFrontSheetAnalyzeService.java

@@ -103,8 +103,8 @@ public class CaseFrontSheetAnalyzeService {
                 String staffName = StringUtil.isBlank(item.getSignStaff()) ?
                         "未签收" : redis.getEmployeeName(item.getSignStaff());
                 item.setSignStaff(staffName);
-                item.setBlfx(FilterUtil.filterCaseClassification(item.getBlfx()));
-                item.setFdcrb(FilterUtil.filterNotifiableInfectiousDiseases(item.getFdcrb()));
+                item.setBlfx(FilterUtil.translateCaseClass(item.getBlfx()));
+                item.setFdcrb(FilterUtil.translateStatutoryEpidemic(item.getFdcrb()));
             }
         } else {
             list = dao.selectDeathCount(dateRange[0], dateRange[1], param.getDept());
@@ -113,13 +113,13 @@ public class CaseFrontSheetAnalyzeService {
                     item.setZkWard(null);
                 }
                 item.setDisDept(redis.getDeptName(item.getDisDept()));
-                item.setBlfx(FilterUtil.filterCaseClassification(item.getBlfx()));
+                item.setBlfx(FilterUtil.translateCaseClass(item.getBlfx()));
                 item.setAdmissDept(redis.getDeptName(item.getAdmissDept()));
                 item.setZkWard(redis.getDeptName(item.getZkWard()));
                 item.setKzr(redis.getEmployeeName(item.getKzr()));
                 item.setZzys(redis.getEmployeeName(item.getZzys()));
                 item.setZyys(redis.getEmployeeName(item.getZyys()));
-                item.setFdcrb(FilterUtil.filterNotifiableInfectiousDiseases(item.getFdcrb()));
+                item.setFdcrb(FilterUtil.translateStatutoryEpidemic(item.getFdcrb()));
             }
         }
         return ResultVoUtil.success(list);

+ 33 - 78
src/main/java/thyyxxk/webserver/service/inpatient/casefrontsheet/CaseFrontSheetExportService.java

@@ -9,7 +9,6 @@ import thyyxxk.webserver.config.exception.BizException;
 import thyyxxk.webserver.constants.frntsheet.DismissWay;
 import thyyxxk.webserver.constants.frntsheet.Hbsag;
 import thyyxxk.webserver.constants.frntsheet.Provinces;
-import thyyxxk.webserver.constants.sidicts.MedType;
 import thyyxxk.webserver.dao.his.inpatient.casefrontsheet.FrontSheetExportDao;
 import thyyxxk.webserver.entity.casefrontsheet.CaseFrontsheetDisdiag;
 import thyyxxk.webserver.entity.casefrontsheet.CaseFrontsheetMain;
@@ -148,11 +147,39 @@ public class CaseFrontSheetExportService {
         AtomicInteger maxSurgerySize = new AtomicInteger(1);
         dao.selectHistorySheet2(request.getStart(), request.getEnd(), statement, result -> {
             HistorySheet sheet = result.getResultObject();
-            sheet.setSex(translateGender(sheet.getSex()));
-            sheet.setZyAdmissWay(translateAdmissWay(sheet.getZyAdmissWay()));
-            sheet.setQualityControlLevel(translateQualityLevel(sheet.getQualityControlLevel()));
-            sheet.setZyDismissWay(translateDismissWay(sheet.getZyDismissWay()));
-            sheet.setMedType(MedType.getName(sheet.getMedType()));
+            sheet.setSex(FilterUtil.translateGender(sheet.getSex()));
+            sheet.setZyAdmissWay(FilterUtil.translateAdmissWay(sheet.getZyAdmissWay()));
+            sheet.setQualityControlLevel(FilterUtil.translateQualityLevel(sheet.getQualityControlLevel()));
+            sheet.setZyDismissWay(FilterUtil.translateDismissWay(sheet.getZyDismissWay()));
+            sheet.setMonopathyManagement(FilterUtil.translateYesOrNo(sheet.getMonopathyManagement()));
+            sheet.setUseAntibiotic(FilterUtil.translateYesOrNo(sheet.getUseAntibiotic()));
+            sheet.setBacilliculture(FilterUtil.translateYesOrNo(sheet.getBacilliculture()));
+            sheet.setClinicalPathwayManagement(FilterUtil.translateClnclPthwyMngmnt(sheet.getClinicalPathwayManagement()));
+            sheet.setDrgsManagement(FilterUtil.translateDrgsManagement(sheet.getDrgsManagement()));
+            sheet.setStatutoryEpidemic(FilterUtil.translateStatutoryEpidemic(sheet.getStatutoryEpidemic()));
+            sheet.setPayMethod(FilterUtil.translatePayMethod(sheet.getPayMethod()));
+            sheet.setCountry(redis.getCountryName(sheet.getCountry()));
+            sheet.setNation(redis.getNationName(sheet.getNation()));
+            sheet.setOccupation(redis.getOccupationName(sheet.getOccupation()));
+            sheet.setMarriage(FilterUtil.translateMarriage(sheet.getMarriage()));
+            sheet.setContactRelation(FilterUtil.translateRelation(sheet.getContactRelation()));
+            sheet.setHasSurgery(FilterUtil.translateHasSurgery(sheet.getHasSurgery()));
+            sheet.setAllergy(FilterUtil.translateHaveOrNot(sheet.getAllergy()));
+            sheet.setAutopsy(FilterUtil.translateYesOrNo(sheet.getAutopsy()));
+            sheet.setHbsAg(FilterUtil.translateHbsAg(sheet.getHbsAg()));
+            sheet.setHcvAb(FilterUtil.translateHbsAg(sheet.getHcvAb()));
+            sheet.setHivAb(FilterUtil.translateHbsAg(sheet.getHivAb()));
+            sheet.setTpAb(FilterUtil.translateHbsAg(sheet.getTpAb()));
+            sheet.setRh(FilterUtil.translateHbsAg(sheet.getRh()));
+            sheet.setBloodType(FilterUtil.translateBloodType(sheet.getBloodType()));
+            sheet.setAdmissAgainInOneMonth(FilterUtil.translateHaveOrNot(sheet.getAdmissAgainInOneMonth()));
+            sheet.setDiagConform1(FilterUtil.translateDiagConform(sheet.getDiagConform1()));
+            sheet.setDiagConform2(FilterUtil.translateDiagConform(sheet.getDiagConform2()));
+            sheet.setDiagConform3(FilterUtil.translateDiagConform(sheet.getDiagConform3()));
+            sheet.setDiagConform4(FilterUtil.translateDiagConform(sheet.getDiagConform4()));
+            sheet.setDiagConform5(FilterUtil.translateDiagConform(sheet.getDiagConform5()));
+            sheet.setCaseClassification(FilterUtil.translateCaseClass(sheet.getCaseClassification()));
+            sheet.setHasIcu(FilterUtil.translateHaveOrNot(sheet.getHasIcu()));
             String[] diagCodeArr = sheet.getDisdiagCodeStr().split("\\^");
             String[] diagNameArr = sheet.getDisdiagNameStr().split("\\^");
             String[] surgeryCodeArr = sheet.getSurgeryCodeStr().split("\\^");
@@ -201,78 +228,6 @@ public class CaseFrontSheetExportService {
         excel.exportExcel(array, response);
     }
 
-    private String translateGender(String gender) {
-        if (null == gender) {
-            return "未知";
-        }
-        switch (gender) {
-            case "1":
-                return "男";
-            case "2":
-                return "女";
-            default:
-                return "未知";
-        }
-    }
-
-    private String translateAdmissWay(String code) {
-        if (null == code) {
-            return "其他";
-        }
-        switch (code) {
-            case "1":
-                return "急诊";
-            case "2":
-                return "门诊";
-            case "3":
-                return "其他医疗机构转入";
-            case "4":
-                return "GCP实验";
-            default:
-                return "其他";
-        }
-    }
-
-    private String translateQualityLevel(String code) {
-        if (null == code) {
-            return "";
-        }
-        switch (code) {
-            case "1":
-                return "I";
-            case "2":
-                return "II";
-            case "3":
-                return "III";
-            case "4":
-                return "IV";
-            case "5":
-                return "V";
-            default:
-                return "";
-        }
-    }
-
-    private String translateDismissWay(String code) {
-        if (null == code) {
-            return "其他";
-        }
-        switch (code) {
-            case "0":
-                return "医嘱离院";
-            case "1":
-                return "医嘱转院";
-            case "2":
-                return "医嘱转社区卫生服务机构/乡镇卫生院";
-            case "3":
-                return "非医嘱离院";
-            case "4":
-                return "死亡";
-            default:
-                return "其他";
-        }
-    }
-
     private String makeExportFormat(String code, String name) {
         if (StringUtil.isBlank(code)) {
             return null;

+ 26 - 0
src/main/java/thyyxxk/webserver/service/redislike/RedisLikeService.java

@@ -37,6 +37,8 @@ public class RedisLikeService {
     private final static Map<String, String> WJW_DEPARTMENT_MAP = new HashMap<>();
     private final static Map<String, String> WJW_NATION_MAP = new HashMap<>();
     private final static Map<String, String> COUNTRY_MAP = new HashMap<>();
+    private final static Map<String, String> NATION_MAP = new HashMap<>();
+    private final static Map<String, String> OCCUPATION_MAP = new HashMap<>();
     private final static Map<String, String> YB_CONTACT_RELATION_MAP = new HashMap<>();
     private final static Map<String, String> YB_DEPT_MAP = new HashMap<>();
     private final static Map<String, String> CODE_RS_MAP = new HashMap<>();
@@ -215,6 +217,30 @@ public class RedisLikeService {
         return name;
     }
 
+    public String getNationName(String code) {
+        if (StringUtil.invalidValue(code)) {
+            return null;
+        }
+        String name = NATION_MAP.get(code);
+        if (null == name) {
+            name = dao.selectNationName(code);
+            NATION_MAP.put(code, name);
+        }
+        return name;
+    }
+
+    public String getOccupationName(String code) {
+        if (StringUtil.invalidValue(code)) {
+            return null;
+        }
+        String name = OCCUPATION_MAP.get(code);
+        if (null == name) {
+            name = dao.selectOccupationName(code);
+            OCCUPATION_MAP.put(code, name);
+        }
+        return name;
+    }
+
     public void setUserInfo(UserInfo us) {
         redisServer.setData(RedisServer.USER_INFO(us.getCode()), us);
     }

+ 301 - 25
src/main/java/thyyxxk/webserver/utils/FilterUtil.java

@@ -10,28 +10,11 @@ import thyyxxk.webserver.entity.medicalinsurance.setlinfo.SiSetlinfo;
  * @author dj
  */
 public class FilterUtil {
-    private static final String MALE = "1";
-    private static final String FEMALE = "2";
-
     @SuppressWarnings("unchecked")
     public static <T> T cast(Object x) {
         return (T) x;
     }
 
-    public static String filterSex(String sex) {
-        if (StringUtil.isBlank(sex)) {
-            return "未知";
-        }
-        sex = sex.trim();
-        if (MALE.equals(sex)) {
-            return "男";
-        } else if (FEMALE.equals(sex)) {
-            return "女";
-        } else {
-            return "未知";
-        }
-    }
-
     public static String filterDismissWay(String code) {
         if (StringUtil.isBlank(code)) {
             return "";
@@ -270,25 +253,129 @@ public class FilterUtil {
         }
     }
 
-    public static String filterCaseClassification(String val) {
-        if (StringUtil.isBlank(val)) {
+    public static String translateGender(String gender) {
+        if (null == gender) {
+            return "未知";
+        }
+        switch (gender) {
+            case "1":
+                return "男";
+            case "2":
+                return "女";
+            default:
+                return "未知";
+        }
+    }
+
+    public static String translateAdmissWay(String code) {
+        if (null == code) {
+            return "其他";
+        }
+        switch (code) {
+            case "1":
+                return "急诊";
+            case "2":
+                return "门诊";
+            case "3":
+                return "其他医疗机构转入";
+            case "4":
+                return "GCP实验";
+            default:
+                return "其他";
+        }
+    }
+
+    public static String translateQualityLevel(String code) {
+        if (null == code) {
             return "";
         }
-        switch (val) {
+        switch (code) {
             case "1":
-                return "A";
+                return "I";
             case "2":
-                return "B";
+                return "II";
             case "3":
-                return "C";
+                return "III";
             case "4":
-                return "D";
+                return "IV";
+            case "5":
+                return "V";
             default:
                 return "";
         }
     }
 
-    public static String filterNotifiableInfectiousDiseases(String val) {
+    public static String translateDismissWay(String code) {
+        if (null == code) {
+            return "其他";
+        }
+        switch (code) {
+            case "0":
+                return "医嘱离院";
+            case "1":
+                return "医嘱转院";
+            case "2":
+                return "医嘱转社区卫生服务机构/乡镇卫生院";
+            case "3":
+                return "非医嘱离院";
+            case "4":
+                return "死亡";
+            default:
+                return "其他";
+        }
+    }
+
+    public static String translateYesOrNo(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "1":
+                return "是";
+            case "2":
+                return "否";
+            default:
+                return "";
+        }
+    }
+
+    public static String translateClnclPthwyMngmnt(String code) {
+        if (null == code) {
+            return "";
+        }
+        switch (code) {
+            case "1":
+                return "完成";
+            case "2":
+                return "变异";
+            case "3":
+                return "退出";
+            case "4":
+                return "未入";
+            default:
+                return "";
+        }
+    }
+
+    public static String translateDrgsManagement(String code) {
+        if (null == code) {
+            return "";
+        }
+        switch (code) {
+            case "1":
+                return "无";
+            case "2":
+                return "按病种";
+            case "3":
+                return "按费用";
+            case "4":
+                return "两者都有";
+            default:
+                return "";
+        }
+    }
+
+    public static String translateStatutoryEpidemic(String val) {
         if (StringUtil.isBlank(val)) {
             return "";
         }
@@ -303,4 +390,193 @@ public class FilterUtil {
                 return "";
         }
     }
+
+    public static String translatePayMethod(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 "其他社会保险";
+            default:
+                return "其他";
+        }
+    }
+
+    public static String translateMarriage(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "1":
+                return "未婚";
+            case "2":
+                return "已婚";
+            case "3":
+                return "丧偶";
+            case "4":
+                return "离婚";
+            default:
+                return "其他";
+        }
+    }
+
+    public static String translateRelation(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "0":
+                return "本人或户主";
+            case "1":
+                return "配偶";
+            case "2":
+                return "子";
+            case "3":
+                return "女";
+            case "4":
+                return "孙子、孙女或外孙子、外孙女";
+            case "5":
+                return "父母";
+            case "6":
+                return "祖父母或外祖父母";
+            case "7":
+                return "兄弟姐妹";
+            case "8":
+                return "同事同学";
+            default:
+                return "其他";
+        }
+    }
+
+    public static String translateHasSurgery(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "0":
+                return "非手术";
+            case "1":
+                return "传统手术";
+            case "2":
+                return "介入手术";
+            case "3":
+                return "微创手术";
+            case "4":
+                return "恶性肿瘤放射治疗";
+            case "5":
+                return "恶性肿瘤化学治疗";
+            case "6":
+                return "恶性肿瘤放疗加化疗";
+            case "7":
+                return "恶性肿瘤姑息治疗";
+            default:
+                return "";
+        }
+    }
+
+    public static String translateHaveOrNot(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "1":
+                return "无";
+            case "2":
+                return "有";
+            default:
+                return "";
+        }
+    }
+
+    public static String translateHbsAg(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "0":
+                return "未查";
+            case "1":
+                return "阴性";
+            case "2":
+                return "阳性";
+            case "3":
+                return "不详";
+            default:
+                return "";
+        }
+    }
+
+    public static String translateBloodType(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "1":
+                return "A";
+            case "2":
+                return "B";
+            case "3":
+                return "O";
+            case "4":
+                return "AB";
+            case "5":
+                return "不详";
+            case "6":
+                return "未查";
+            default:
+                return "";
+        }
+    }
+
+    public static String translateDiagConform(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "0":
+                return "未做";
+            case "1":
+                return "符合";
+            case "2":
+                return "不符合";
+            case "3":
+                return "不确定";
+            default:
+                return "";
+        }
+    }
+
+    public static String translateCaseClass(String code) {
+        if (StringUtil.isBlank(code)) {
+            return "";
+        }
+        switch (code) {
+            case "1":
+                return "A";
+            case "2":
+                return "B";
+            case "3":
+                return "C";
+            case "4":
+                return "D";
+            default:
+                return "";
+        }
+    }
+
 }