|
@@ -36,6 +36,7 @@ public class CacheUtil implements ApplicationRunner {
|
|
|
this.putHospitalDiagHuaZMap();//医院华卓映射
|
|
|
this.putLantoneDiagHuaZMap();//朗通华卓映射
|
|
|
this.putClinicBodyPartMap();//症状需要部位描述词典放入redis缓存
|
|
|
+ this.putHospitalDoctorInfoMap();//症状需要部位描述词典放入redis缓存
|
|
|
} catch (Exception e) {
|
|
|
logger.error("缓存文件读取错误。。。");
|
|
|
}
|
|
@@ -72,6 +73,28 @@ public class CacheUtil implements ApplicationRunner {
|
|
|
redisUtil.setJsonStringValue(KernelConstants.CONCEPT_DIAG_PROPERTY_MAP, diagMap);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 医院医生信息
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ public void putHospitalDoctorInfoMap() throws Exception {
|
|
|
+ Configuration configuration = new DefaultConfig();
|
|
|
+ List<String> lines = configuration.readTargetFileContents("cache/hospital_doctor_info.dict");
|
|
|
+
|
|
|
+ Map<String, Map<String, Object>> hospitalDoctorMap = new HashMap<>();
|
|
|
+ for (String line : lines) {
|
|
|
+ String[] line_arr = line.split("\\|", -1);
|
|
|
+ if (line_arr.length == 3) {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("doctorName", line_arr[0]);
|
|
|
+ map.put("deptName", line_arr[1]);
|
|
|
+ map.put("professor", line_arr[2]);
|
|
|
+ hospitalDoctorMap.put(line_arr[0], map);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ redisUtil.setJsonStringValue(KernelConstants.HOSPITAL_DOCTOR_MAP, hospitalDoctorMap);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 医院疾病信息放入redis缓存
|
|
|
*/
|