diff --git a/src/main/java/com/docus/server/report/job/ReportJob.java b/src/main/java/com/docus/server/report/job/ReportJob.java index 9b44830..48f48e5 100644 --- a/src/main/java/com/docus/server/report/job/ReportJob.java +++ b/src/main/java/com/docus/server/report/job/ReportJob.java @@ -512,16 +512,15 @@ public class ReportJob { } /** - * 从就诊唯一键中,获取就诊次数 * - * @param visitSn 患者本次就诊唯一键:患者id【12位】+就诊次数 + * + * @param visitSn 住院号_住院次数 * @param patientSn 患者id * @return 就诊次数 */ private static Integer getAdmissTimes(String visitSn, String patientSn) { - patientSn = patientSn.replace("m", "").replace("z", ""); - String admissTimesStr = visitSn.replace(patientSn, ""); - return Integer.valueOf(admissTimesStr); + String[] split = visitSn.split("_"); + return Integer.valueOf(split[1]); } private List parseQuerySdRyInspectReport(String respBody, TBasic tBasic, AtomicInteger reportTotalCount) {