---
page_type: sample
languages:
  - java
products:
  - azure
  - azure-cognitive-services
  - azure-health-insights
urlFragment: healthinsights-java-samples
---

# Azure Health Insights client library samples for Java

Azure Health Insights Cancer Profiling samples are a set of self-contained Java programs that demonstrate interacting with Azure self-contained service using the client library. Each sample focuses on a specific scenario and can be executed independently.

## Examples

The following sections provide code samples covering common scenario operations with the Azure Health Insights CancerProfiling client library.

All of these samples need the endpoint to your Health Insights resource, and your Health Insights API key.

|**File Name**|**Description**|
|----------------|-------------|
|[SampleInferCancerProfile.java][infer_cancer_profiling]|Get the inferred cancer staging|

<!-- LINKS -->
[infer_cancer_profiling]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/healthinsights/azure-health-insights-cancerprofiling/src/samples/java/com/azure/health/insights/cancerprofiling/SampleInferCancerProfile.java


