diff --git a/src/main/java/gov/cms/madie/terminology/service/FhirTerminologyService.java b/src/main/java/gov/cms/madie/terminology/service/FhirTerminologyService.java index 46f4b37..19facc7 100644 --- a/src/main/java/gov/cms/madie/terminology/service/FhirTerminologyService.java +++ b/src/main/java/gov/cms/madie/terminology/service/FhirTerminologyService.java @@ -140,10 +140,11 @@ public List searchValueSets(String apiKey, Map String.valueOf(extension.getValue())) + .orElse("")) .name(vs.getName()) .composedOf( vs.getCompose().getInclude().stream() diff --git a/src/main/java/gov/cms/madie/terminology/service/VsacService.java b/src/main/java/gov/cms/madie/terminology/service/VsacService.java index 70a01b8..06f5bb3 100644 --- a/src/main/java/gov/cms/madie/terminology/service/VsacService.java +++ b/src/main/java/gov/cms/madie/terminology/service/VsacService.java @@ -144,8 +144,8 @@ public List validateCodes(List cqlCodes, UmlsUser umlsUser, St } else { // unidentified code system. log.info( - "No associated Code system found in code system entry json for {}", - cqlCode.getCodeSystem().getOid()); + "No associated Code system found in code system entry json for {}", + cqlCode.getCodeSystem().getOid()); cqlCode.getCodeSystem().setValid(false); cqlCode.getCodeSystem().setErrorMessage("Invalid Code system"); } @@ -281,13 +281,16 @@ private void buildVsacErrorMessage(CqlCode cqlCode, VsacCode vsacCode) { && StringUtils.isNumeric(vsacCode.getErrors().getResultSet().get(0).getErrCode())) { int errorCode = Integer.parseInt(vsacCode.getErrors().getResultSet().get(0).getErrCode()); if (errorCode == 800 || errorCode == 801) { - log.info("Error code is 800, or 801 from VSAC. Error: {}", vsacCode.getErrors().getResultSet().get(0)); + log.info( + "Error code is 800, or 801 from VSAC. Error: {}", + vsacCode.getErrors().getResultSet().get(0)); cqlCode.getCodeSystem().setValid(false); cqlCode .getCodeSystem() .setErrorMessage(vsacCode.getErrors().getResultSet().get(0).getErrDesc()); } else if (errorCode == 802) { - log.info("Error code is 802 from VSAC. Error: {}", vsacCode.getErrors().getResultSet().get(0)); + log.info( + "Error code is 802 from VSAC. Error: {}", vsacCode.getErrors().getResultSet().get(0)); cqlCode.setValid(false); cqlCode.setErrorMessage(vsacCode.getErrors().getResultSet().get(0).getErrDesc()); } @@ -299,7 +302,10 @@ private void buildVsacErrorMessage(CqlCode cqlCode, VsacCode vsacCode) { + "If this error persists, please contact the Help Desk."); } else { cqlCode.setValid(false); - log.info("Error code is uncaught. General catch, Error: {} status: {}", vsacCode.getErrors().getResultSet().get(0), vsacCode.getStatus()); + log.info( + "Error code is uncaught. General catch, Error: {} status: {}", + vsacCode.getErrors().getResultSet().get(0), + vsacCode.getStatus()); } }