@Test public void testValidateDiagnosisCodeFalse() { final String codeFragment = "code"; final String codeSystem = "codesystem"; when(diagnosService.getDiagnosisByCode(codeFragment, codeSystem)).thenReturn(DiagnosResponse.notFound()); boolean res = service.validateDiagnosisCode(codeFragment, codeSystem); assertFalse(res); }
@Override public boolean validateDiagnosisCode(String codeFragment, String codeSystemStr) { DiagnosResponse response = diagnosService.getDiagnosisByCode(codeFragment, codeSystemStr); LOG.debug("Validation result for diagnosis code '{}' is {}", codeFragment, response); return DiagnosResponseType.OK.equals(response.getResultat()); }
WebcertModuleServiceImpl implements WebcertModuleService { @Override public boolean validateDiagnosisCode(String codeFragment, String codeSystemStr) { DiagnosResponse response = diagnosService.getDiagnosisByCode(codeFragment, codeSystemStr); LOG.debug("Validation result for diagnosis code '{}' is {}", codeFragment, response); return DiagnosResponseType.OK.equals(response.getResultat()); } }
WebcertModuleServiceImpl implements WebcertModuleService { @Override public boolean validateDiagnosisCode(String codeFragment, String codeSystemStr) { DiagnosResponse response = diagnosService.getDiagnosisByCode(codeFragment, codeSystemStr); LOG.debug("Validation result for diagnosis code '{}' is {}", codeFragment, response); return DiagnosResponseType.OK.equals(response.getResultat()); }  }
WebcertModuleServiceImpl implements WebcertModuleService { @Override public boolean validateDiagnosisCode(String codeFragment, String codeSystemStr) { DiagnosResponse response = diagnosService.getDiagnosisByCode(codeFragment, codeSystemStr); LOG.debug("Validation result for diagnosis code '{}' is {}", codeFragment, response); return DiagnosResponseType.OK.equals(response.getResultat()); }  @Override boolean validateDiagnosisCode(String codeFragment, String codeSystemStr); @Override boolean validateDiagnosisCode(String codeFragment, Diagnoskodverk codeSystem); @Override String getDescriptionFromDiagnosKod(String code, String codeSystemStr); }
WebcertModuleServiceImpl implements WebcertModuleService { @Override public boolean validateDiagnosisCode(String codeFragment, String codeSystemStr) { DiagnosResponse response = diagnosService.getDiagnosisByCode(codeFragment, codeSystemStr); LOG.debug("Validation result for diagnosis code '{}' is {}", codeFragment, response); return DiagnosResponseType.OK.equals(response.getResultat()); }  @Override boolean validateDiagnosisCode(String codeFragment, String codeSystemStr); @Override boolean validateDiagnosisCode(String codeFragment, Diagnoskodverk codeSystem); @Override String getDescriptionFromDiagnosKod(String code, String codeSystemStr);  }