Skip to content

Commit ce706cc

Browse files
prajwalkumar-msftPrajwal Kumar
andauthored
[HealthInsights] Update Oncophenotype documentation and sample code (Azure#35008)
* Update Oncophenotype documentation and sample code * Fix spelling * Remove case call * Clean imports * Update code snippet in readme --------- Co-authored-by: Prajwal Kumar <[email protected]>
1 parent ba3c006 commit ce706cc

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

sdk/healthinsights/azure-health-insights-cancerprofiling/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Azure Cognitive Services Health Insights Cancer Profiling client library for Java
22

3-
[Health Insights](https://review.learn.microsoft.com/azure/azure-health-insights/?branch=release-azure-health-insights) is an Azure Applied AI Service built with the Azure Cognitive Services Framework, that leverages multiple Cognitive Services, Healthcare API services and other Azure resources.
3+
[Health Insights][health_insights] is an Azure Applied AI Service built with the Azure Cognitive Services Framework, that leverages multiple Cognitive Services, Healthcare API services and other Azure resources.
44

55
The [Cancer Profiling model][cancer_profiling_docs] receives clinical records of oncology patients and outputs cancer staging, such as clinical stage TNM categories and pathologic stage TNM categories as well as tumor site, histology.
66
[Source code][source_code] | [Package (Maven)][package] | [API reference documentation][cancer_profiling_api_documentation] | [Product Documentation][product_documentation] | [Samples][samples_location]
@@ -73,10 +73,6 @@ Infer key cancer attributes such as tumor site, histology, clinical stage TNM ca
7373
```Java com.azure.health.insights.cancerprofiling.infercancerprofile
7474
// Construct Patient
7575
PatientRecord patient1 = new PatientRecord("patient_id");
76-
PatientInfo patientInfo = new PatientInfo();
77-
patientInfo.setBirthDate(LocalDate.parse("1965-12-26"));
78-
patientInfo.setSex(PatientInfoSex.FEMALE);
79-
patient1.setInfo(patientInfo);
8076
LinkedList<PatientDocument> patientDocuments = new LinkedList<>();
8177
patient1.setData(patientDocuments);
8278

@@ -211,13 +207,14 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con
211207
[cognitive_resource_cli]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli
212208
[jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable
213209

210+
[health_insights]: https://learn.microsoft.com/azure/azure-health-insights/overview
214211
[azure_cli]: https://docs.microsoft.com/cli/azure
215212
[azure_portal]: https://portal.azure.com
216-
[cancer_profiling_docs]: https://review.learn.microsoft.com/azure/cognitive-services/health-decision-support/oncophenotype/overview?branch=main
213+
[cancer_profiling_docs]: https://learn.microsoft.com/azure/azure-health-insights/oncophenotype/overview
217214
[cancer_profiling_client_class]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/healthinsights/azure-health-insights-cancerprofiling/src/main/java/com/azure/health/insights/cancerprofiling/CancerProfilingClient.java
218215
[package]: https://mvnrepository.com/artifact/com.azure/azure-health-insights-cancerprofiling
219216
[source_code]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/healthinsights/azure-health-insights-cancerprofiling/src
220-
[cancer_profiling_api_documentation]: https://review.learn.microsoft.com/rest/api/cognitiveservices/healthinsights/onco-phenotype?branch=healthin202303
221-
[product_documentation]:https://review.learn.microsoft.com/azure/cognitive-services/health-decision-support/oncophenotype/?branch=main
217+
[cancer_profiling_api_documentation]: https://learn.microsoft.com/rest/api/cognitiveservices/healthinsights/onco-phenotype
218+
[product_documentation]: https://learn.microsoft.com/azure/azure-health-insights/oncophenotype/
222219
[samples_location]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/healthinsights/azure-health-insights-cancerprofiling/src/samples/
223220
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%healthinsights%2Fazure-health-insights-cancerprofiling%2FREADME.png)

sdk/healthinsights/azure-health-insights-cancerprofiling/src/samples/java/com/azure/health/insights/cancerprofiling/SampleInferCancerProfile.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
package com.azure.health.insights.cancerprofiling;
55

6-
import java.time.LocalDate;
76
import java.time.OffsetDateTime;
87
import java.util.Arrays;
98
import java.util.LinkedList;
@@ -15,9 +14,7 @@
1514
import com.azure.core.util.polling.AsyncPollResponse;
1615
import com.azure.core.util.polling.LongRunningOperationStatus;
1716
import com.azure.core.util.polling.PollerFlux;
18-
import com.azure.health.insights.cancerprofiling.models.PatientInfoSex;
1917
import com.azure.health.insights.cancerprofiling.models.ClinicalCodedElement;
20-
import com.azure.health.insights.cancerprofiling.models.PatientInfo;
2118
import com.azure.health.insights.cancerprofiling.models.PatientRecord;
2219
import com.azure.health.insights.cancerprofiling.models.PatientDocument;
2320
import com.azure.health.insights.cancerprofiling.models.ClinicalDocumentType;
@@ -47,10 +44,6 @@ public static void main(final String[] args) throws InterruptedException {
4744
// BEGIN: com.azure.health.insights.cancerprofiling.infercancerprofile
4845
// Construct Patient
4946
PatientRecord patient1 = new PatientRecord("patient_id");
50-
PatientInfo patientInfo = new PatientInfo();
51-
patientInfo.setBirthDate(LocalDate.parse("1965-12-26"));
52-
patientInfo.setSex(PatientInfoSex.FEMALE);
53-
patient1.setInfo(patientInfo);
5447
LinkedList<PatientDocument> patientDocuments = new LinkedList<>();
5548
patient1.setData(patientDocuments);
5649

0 commit comments

Comments
 (0)