-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TA] Healthcare Analyze feature (#17234)
* Added support for Healthcare Analyze and Cancellation endpoints
- Loading branch information
Showing
48 changed files
with
3,614 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
323 changes: 323 additions & 0 deletions
323
...-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeHealthcareAsyncClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...com/azure/ai/textanalytics/implementation/HealthcareEntityCollectionPropertiesHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.ai.textanalytics.implementation; | ||
|
||
import com.azure.ai.textanalytics.models.HealthcareEntityCollection; | ||
import com.azure.ai.textanalytics.models.HealthcareEntityRelation; | ||
import com.azure.ai.textanalytics.models.TextAnalyticsWarning; | ||
import com.azure.core.util.IterableStream; | ||
|
||
/** | ||
* The helper class to set the non-public properties of an {@link HealthcareEntityCollection} instance. | ||
*/ | ||
public final class HealthcareEntityCollectionPropertiesHelper { | ||
private static HealthcareEntityCollectionAccessor accessor; | ||
|
||
private HealthcareEntityCollectionPropertiesHelper() { } | ||
|
||
/** | ||
* Type defining the methods to set the non-public properties of an {@link HealthcareEntityCollection} instance. | ||
*/ | ||
public interface HealthcareEntityCollectionAccessor { | ||
void setWarnings(HealthcareEntityCollection healthcareEntityCollection, | ||
IterableStream<TextAnalyticsWarning> warnings); | ||
void setEntityRelations(HealthcareEntityCollection healthcareEntityCollection, | ||
IterableStream<HealthcareEntityRelation> entityRelations); | ||
} | ||
|
||
/** | ||
* The method called from {@link HealthcareEntityCollection} to set it's accessor. | ||
* | ||
* @param healthcareEntityCollectionAccessor The accessor. | ||
*/ | ||
public static void setAccessor(final HealthcareEntityCollectionAccessor healthcareEntityCollectionAccessor) { | ||
accessor = healthcareEntityCollectionAccessor; | ||
} | ||
|
||
public static void setWarnings(HealthcareEntityCollection healthcareEntityCollection, | ||
IterableStream<TextAnalyticsWarning> warnings) { | ||
accessor.setWarnings(healthcareEntityCollection, warnings); | ||
} | ||
|
||
public static void setEntityRelations(HealthcareEntityCollection healthcareEntityCollection, | ||
IterableStream<HealthcareEntityRelation> entityRelations) { | ||
accessor.setEntityRelations(healthcareEntityCollection, entityRelations); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
.../java/com/azure/ai/textanalytics/implementation/HealthcareEntityLinkPropertiesHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.ai.textanalytics.implementation; | ||
|
||
import com.azure.ai.textanalytics.models.HealthcareEntityLink; | ||
|
||
/** | ||
* The helper class to set the non-public properties of an {@link HealthcareEntityLink} instance. | ||
*/ | ||
public final class HealthcareEntityLinkPropertiesHelper { | ||
private static HealthcareEntityLinkAccessor accessor; | ||
|
||
private HealthcareEntityLinkPropertiesHelper() { } | ||
|
||
/** | ||
* Type defining the methods to set the non-public properties of an {@link HealthcareEntityLink} instance. | ||
*/ | ||
public interface HealthcareEntityLinkAccessor { | ||
void setDataSource(HealthcareEntityLink healthcareEntityLink, String dataSource); | ||
void setDataSourceId(HealthcareEntityLink healthcareEntityLink, String dataSourceId); | ||
} | ||
|
||
/** | ||
* The method called from {@link HealthcareEntityLink} to set it's accessor. | ||
* | ||
* @param healthcareEntityLinkAccessor The accessor. | ||
*/ | ||
public static void setAccessor(final HealthcareEntityLinkAccessor healthcareEntityLinkAccessor) { | ||
accessor = healthcareEntityLinkAccessor; | ||
} | ||
|
||
public static void setDataSource(HealthcareEntityLink healthcareEntityLink, String dataSource) { | ||
accessor.setDataSource(healthcareEntityLink, dataSource); | ||
} | ||
|
||
public static void setDataSourceId(HealthcareEntityLink healthcareEntityLink, String dataSourceId) { | ||
accessor.setDataSourceId(healthcareEntityLink, dataSourceId); | ||
} | ||
} |
Oops, something went wrong.