Source:
<code><START> PollerFlux<TextAnalyticsOperationResult, PagedFlux<HealthcareTaskResult>> beginAnalyzeHealthcare( <END> Iterable<TextDocumentInput> documents, RecognizeHealthcareEntityOptions options, Context context) { try { inputDocumentsValidation(documents); String modelVersion = null; StringIndexType stringIndexType = null; if (options != null) { modelVersion = options.getModelVersion(); if (options.getStringIndexType() != null) { stringIndexType = StringIndexType.fromString(options.getStringIndexType().toString()); } } final Boolean finalIncludeStatistics = options == null ? null : options.isIncludeStatistics(); return new PollerFlux<>( DEFAULT_POLL_DURATION, activationOperation(service.healthWithResponseAsync( new MultiLanguageBatchInput().setDocuments(toMultiLanguageInput(documents)), context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE), modelVersion, stringIndexType) .map(healthResponse -> { final TextAnalyticsOperationResult textAnalyticsOperationResult = new TextAnalyticsOperationResult(); TextAnalyticsOperationResultPropertiesHelper.setResultId(textAnalyticsOperationResult, parseModelId(healthResponse.getDeserializedHeaders().getOperationLocation())); return textAnalyticsOperationResult; })), pollingOperation(jobId -> service.healthStatusWithResponseAsync(jobId, context, null, null, finalIncludeStatistics)), (activationResponse, pollingContext) -> monoError(logger, new RuntimeException("Use the `beginCancelHealthcareJob` to cancel the job")), fetchingOperation(resultId -> Mono.just(getHealthcareFluxPage(resultId, finalIncludeStatistics == null ? false : finalIncludeStatistics, context))) ); } catch (RuntimeException ex) { return PollerFlux.error(ex); } }</code><technical_language>name beginAnalyzeHealthcareBatch</technical_language>

Target:
PollerFlux<TextAnalyticsOperationResult, PagedFlux<HealthcareTaskResult>> beginAnalyzeHealthcare( Iterable<TextDocumentInput> documents, RecognizeHealthcareEntityOptions options, Context context) { try { inputDocumentsValidation(documents); String modelVersion = null; if (options != null) { modelVersion = options.getModelVersion(); } final Boolean finalIncludeStatistics = options == null ? null : options.isIncludeStatistics(); return new PollerFlux<>( DEFAULT_POLL_DURATION, activationOperation(service.healthWithResponseAsync( new MultiLanguageBatchInput().setDocuments(toMultiLanguageInput(documents)), context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE), modelVersion, StringIndexType.UTF16CODE_UNIT) .map(healthResponse -> { final TextAnalyticsOperationResult textAnalyticsOperationResult = new TextAnalyticsOperationResult(); TextAnalyticsOperationResultPropertiesHelper.setResultId(textAnalyticsOperationResult, parseModelId(healthResponse.getDeserializedHeaders().getOperationLocation())); return textAnalyticsOperationResult; })), pollingOperation(jobId -> service.healthStatusWithResponseAsync(jobId, context, null, null, finalIncludeStatistics)), (activationResponse, pollingContext) -> monoError(logger, new RuntimeException("Use the `beginCancelHealthcareJob` to cancel the job")), fetchingOperation(resultId -> Mono.just(getHealthcareFluxPage(resultId, finalIncludeStatistics == null ? false : finalIncludeStatistics, context))) ); } catch (RuntimeException ex) { return PollerFlux.error(ex); } }