|
@@ -2,6 +2,7 @@ package com.diagbot.service.impl;
|
|
|
|
|
|
import com.diagbot.biz.push.entity.Item;
|
|
|
import com.diagbot.dto.TcmDTO;
|
|
|
+import com.diagbot.enums.OtherIndexEnum;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.facade.TcmdiseaseConfigFacade;
|
|
@@ -121,6 +122,7 @@ public class MrServiceImpl implements MrService {
|
|
|
|
|
|
/**
|
|
|
* 获取中医病历信息
|
|
|
+ *
|
|
|
* @param mrId
|
|
|
* @return
|
|
|
*/
|
|
@@ -138,8 +140,8 @@ public class MrServiceImpl implements MrService {
|
|
|
Map<String, String> otherIndex = pushJoinVO.getOtherIndex();
|
|
|
if (otherIndex != null) {
|
|
|
Item tcmdisease = new Item();
|
|
|
- if (otherIndex.containsKey("中医疾病")) {
|
|
|
- tcmdisease.setName(otherIndex.get("中医疾病"));
|
|
|
+ if (otherIndex.containsKey(OtherIndexEnum.getName(OtherIndexEnum.TcmDiag.getKey()))) {
|
|
|
+ tcmdisease.setName(otherIndex.get(OtherIndexEnum.getName(OtherIndexEnum.TcmDiag.getKey())));
|
|
|
Map<String, Map<String, Long>> configMap
|
|
|
= tcmdiseaseConfigFacade.getConfigMap(hospitalId,
|
|
|
Arrays.asList(new String[] { tcmdisease.getName() }), null);
|
|
@@ -152,8 +154,8 @@ public class MrServiceImpl implements MrService {
|
|
|
}
|
|
|
|
|
|
Item tcmsyndrome = new Item();
|
|
|
- if (otherIndex.containsKey("中医证候")) {
|
|
|
- tcmsyndrome.setName(otherIndex.get("中医证候"));
|
|
|
+ if (otherIndex.containsKey(OtherIndexEnum.getName(OtherIndexEnum.TcmSyndrome.getKey()))) {
|
|
|
+ tcmsyndrome.setName(otherIndex.get(OtherIndexEnum.getName(OtherIndexEnum.TcmSyndrome.getKey())));
|
|
|
Map<String, Map<String, Long>> configMap
|
|
|
= tcmsyndromeConfigFacade.getConfigMap(hospitalId,
|
|
|
Arrays.asList(new String[] { tcmsyndrome.getName() }), null);
|