|
@@ -172,9 +172,7 @@ public class IntroduceInfoFacade extends IntroduceInfoServiceImpl {
|
|
|
Map<String, Map<String, String>> lisConfigMap = new LinkedHashMap<>();
|
|
|
if (isDocking) {
|
|
|
RespDTO<Map<String, Map<String, String>>> respLisConfigMap = tranServiceClient.getLisConfigByHosCode_NotEmptyItemName(hosCodeVO);
|
|
|
- if (RespDTOUtil.respIsNG(respLisConfigMap)) {
|
|
|
- throw new CommonException(CommonErrorCode.RPC_ERROR);
|
|
|
- }
|
|
|
+ RespDTOUtil.respNGDealCover(respLisConfigMap, CommonErrorCode.RPC_ERROR.getMsg());
|
|
|
lisConfigMap = respLisConfigMap.data;
|
|
|
} else {
|
|
|
lisConfigMap = lisMappingFacade.getLisMapping_NotEmptyItemName();
|
|
@@ -185,9 +183,7 @@ public class IntroduceInfoFacade extends IntroduceInfoServiceImpl {
|
|
|
Map<String, String> lisConfigMap_emptyItemName = new LinkedHashMap<>();
|
|
|
if (isDocking) {
|
|
|
RespDTO<Map<String, String>> respLisConfigMap_emptyItemName = tranServiceClient.getLisConfigByHosCode_EmptyItemName(hosCodeVO);
|
|
|
- if (RespDTOUtil.respIsNG(respLisConfigMap_emptyItemName)) {
|
|
|
- throw new CommonException(CommonErrorCode.RPC_ERROR);
|
|
|
- }
|
|
|
+ RespDTOUtil.respNGDealCover(respLisConfigMap_emptyItemName, CommonErrorCode.RPC_ERROR.getMsg());
|
|
|
lisConfigMap_emptyItemName = respLisConfigMap_emptyItemName.data;
|
|
|
} else {
|
|
|
lisConfigMap_emptyItemName = lisMappingFacade.getLisConfig_EmptyItemName();
|
|
@@ -198,9 +194,7 @@ public class IntroduceInfoFacade extends IntroduceInfoServiceImpl {
|
|
|
} else if (type.equals(QuestionTypeEnum.Pacs.getKey())) {
|
|
|
if (isDocking) {
|
|
|
RespDTO<Map<String, String>> respPacsConfigMap = tranServiceClient.getPacsConfigByHosCode(hosCodeVO);
|
|
|
- if (RespDTOUtil.respIsNG(respPacsConfigMap)) {
|
|
|
- throw new CommonException(CommonErrorCode.RPC_ERROR);
|
|
|
- }
|
|
|
+ RespDTOUtil.respNGDealCover(respPacsConfigMap, CommonErrorCode.RPC_ERROR.getMsg());
|
|
|
Map<String, String> pacsConfigMap = respPacsConfigMap.data;
|
|
|
uniqueName = pacsConfigMap.get(emrIntroduceVO.getName());
|
|
|
} else {
|
|
@@ -209,9 +203,7 @@ public class IntroduceInfoFacade extends IntroduceInfoServiceImpl {
|
|
|
} else if (type.equals(QuestionTypeEnum.Disease.getKey())) {
|
|
|
if (isDocking) {
|
|
|
RespDTO<Map<String, String>> respDisMap = tranServiceClient.getDiseaseIcdByHosCode(hosCodeVO);
|
|
|
- if (RespDTOUtil.respIsNG(respDisMap)) {
|
|
|
- throw new CommonException(CommonErrorCode.RPC_ERROR);
|
|
|
- }
|
|
|
+ RespDTOUtil.respNGDealCover(respDisMap, CommonErrorCode.RPC_ERROR.getMsg());
|
|
|
Map<String, String> disMap = respDisMap.data;
|
|
|
uniqueName = disMap.get(emrIntroduceVO.getName());
|
|
|
} else {
|
|
@@ -231,9 +223,7 @@ public class IntroduceInfoFacade extends IntroduceInfoServiceImpl {
|
|
|
if (ArrayUtil.isNotEmpty(titles)) {
|
|
|
if (isDocking) {
|
|
|
RespDTO<Map<String, String>> respTitleMappingMap = tranServiceClient.getTitleMappingHosCode(hosCodeVO);
|
|
|
- if (RespDTOUtil.respIsNG(respTitleMappingMap)) {
|
|
|
- throw new CommonException(CommonErrorCode.RPC_ERROR);
|
|
|
- }
|
|
|
+ RespDTOUtil.respNGDealCover(respTitleMappingMap, CommonErrorCode.RPC_ERROR.getMsg());
|
|
|
Map<String, String> titleMappingMap = respTitleMappingMap.data;
|
|
|
for (String title : titles) {
|
|
|
String uniqueTitle = titleMappingMap.get(title);
|