Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Azure Health Insights Sample Issue #31605

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# App registration secret for AAD authentication
HEALTH_INSIGHTS_KEY=
HEALTH_INSIGHTS_ENDPOINT=
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the age mismatch of the Radiology Insights request.
* @summary Displays the age mismatch of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the complete order discrepancy of the Radiology Insights request.
* @summary Displays the complete order discrepancy of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the critical results of the Radiology Insights request.
* @summary Displays the critical results of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the critical results of the Radiology Insights request.
* @summary Displays the critical results of the Radiology Insights request.
*/
import { DefaultAzureCredential, logger } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the finding of the Radiology Insights request.
* @summary Displays the finding of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the follow up communication of the Radiology Insights request.
* @summary Displays the follow up communication of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the follow up recommendation of the Radiology Insights request.
* @summary Displays the follow up recommendation of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the laterality discrepancy of the Radiology Insights request.
* @summary Displays the laterality discrepancy of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the limited order discrepancy of the Radiology Insights request.
* @summary Displays the limited order discrepancy of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the radiology procedure of the Radiology Insights request.
* @summary Displays the radiology procedure of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

/**
* Displays the sex mismatch of the Radiology Insights request.
* @summary Displays the sex mismatch of the Radiology Insights request.
*/
import { DefaultAzureCredential } from "@azure/identity";
import "dotenv/config";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# HealthInsightsRadiologyInsights samples for JavaScript (Beta)
# HealthInsightsRadiologyInsights client library samples for JavaScript

These sample programs show how to use the JavaScript client libraries for HealthInsightsRadiologyInsights in some common scenarios.

| **File Name** | **Description** |
| --------------------------------------------------------------------------------------------------- | ------------------------- |
| [sample_age_mismatch_inference_async.js][sample_age_mismatch_inference_async] | Infer age mismatches from a radiology report (async) |
| [sample_complete_order_inference_async.js][sample_complete_order_inference_async] | Infer complete orders from a radiology report (async) |
| [sample_critical_result_inference_async.js][sample_critical_result_inference_async] | Infer critical results from a radiology report (async) |
| [sample_finding_inference_async.js][sample_finding_inference_async] | Infer findings from a radiology report (async) |
| [sample_follow_up_communication_inference_async.js][sample_follow_up_communication_inference_async] | Infer follow up communications from a radiology report (async) |
| [sample_follow_up_recommendation_inference_async.js][sample_follow_up_recommendation_inference_async]| Infer follow up recommendation from a radiology report (async) |
| [sample_laterality_discrepancy_inference_async.js][sample_laterality_discrepancy_inference_async] | Infer laterality discrepancies from a radiology report (async) |
| [sample_limited_order_disrepancy_inference_async.js][sample_limited_order_disrepancy_inference_async] | Infer limited orders from a radiology report (async) |
| [sample_radioloy_procedure_inference_async.js][sample_radioloy_procedure_inference_async] | Infer radiology procedures from a radiology report (async) |
| [sample_sex_mismatch_inference_async.js][sample_sex_mismatch_inference_async] | Infer sex mismatches from a radiology report (async) |
| [sample_critical_result_managed_identity.js][sample_critical_result_managed_identity] | Sample on how to use Managed Identity credentials, should return the sam as the critical results example
| **File Name** | **Description** |
| --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [sample_age_mismatch_inference_async.js][sample_age_mismatch_inference_async] | Displays the age mismatch of the Radiology Insights request. |
| [sample_complete_order_discrepancy_inference_async.js][sample_complete_order_discrepancy_inference_async] | Displays the complete order discrepancy of the Radiology Insights request. |
| [sample_critical_result_inference_async.js][sample_critical_result_inference_async] | Displays the critical results of the Radiology Insights request. |
| [sample_critical_result_managed_identity.js][sample_critical_result_managed_identity] | Displays the critical results of the Radiology Insights request. |
| [sample_finding_inference_async.js][sample_finding_inference_async] | Displays the finding of the Radiology Insights request. |
| [sample_follow_up_communication_inference_async.js][sample_follow_up_communication_inference_async] | Displays the follow up communication of the Radiology Insights request. |
| [sample_follow_up_recommendation_inference_async.js][sample_follow_up_recommendation_inference_async] | Displays the follow up recommendation of the Radiology Insights request. |
| [sample_laterality_discrepancy_inference_async.js][sample_laterality_discrepancy_inference_async] | Displays the laterality discrepancy of the Radiology Insights request. |
| [sample_limited_order_discrepancy_inference_async.js][sample_limited_order_discrepancy_inference_async] | Displays the limited order discrepancy of the Radiology Insights request. |
| [sample_radiology_procedure_inference_async.js][sample_radiology_procedure_inference_async] | Displays the radiology procedure of the Radiology Insights request. |
| [sample_sex_mismatch_inference_async.js][sample_sex_mismatch_inference_async] | Displays the sex mismatch of the Radiology Insights request. |

## Prerequisites

Expand All @@ -41,7 +41,7 @@ npm install
3. Run whichever samples you like (note that some samples may require additional setup, see the table above):

```bash
node sample_critical_result_inference_async.js
node sample_age_mismatch_inference_async.js
```

Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
Expand All @@ -54,17 +54,17 @@ npx dev-tool run vendored cross-env HEALTH_INSIGHTS_KEY="<health insights key>"

Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.

[sample_age_mismatch_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_age_mismatch_inference_async.js
[sample_complete_order_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_complete_order_discrepancy_inference_async.js
[sample_critical_result_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_critical_result_inference_async.js
[sample_finding_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_finding_inference_async.js
[sample_follow_up_communication_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_follow_up_communication_inference_async.js
[sample_follow_up_recommendation_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_follow_up_recommendation_inference_async.js
[sample_laterality_discrepancy_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_laterality_discrepancy_inference_async.js
[sample_limited_order_disrepancy_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_limited_order_disrepancy_inference_async.js
[sample_radioloy_procedure_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_radiology_procedure_inference_async.js
[sample_sex_mismatch_inference_async]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_sex_mismatch_inference_async.js
[sample_critical_result_managed_identity]:https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_critical_result_managed_identity.js
[sample_age_mismatch_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_age_mismatch_inference_async.js
[sample_complete_order_discrepancy_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_complete_order_discrepancy_inference_async.js
[sample_critical_result_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_critical_result_inference_async.js
[sample_critical_result_managed_identity]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_critical_result_managed_identity.js
[sample_finding_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_finding_inference_async.js
[sample_follow_up_communication_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_follow_up_communication_inference_async.js
[sample_follow_up_recommendation_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_follow_up_recommendation_inference_async.js
[sample_laterality_discrepancy_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_laterality_discrepancy_inference_async.js
[sample_limited_order_discrepancy_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_limited_order_discrepancy_inference_async.js
[sample_radiology_procedure_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_radiology_procedure_inference_async.js
[sample_sex_mismatch_inference_async]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthinsights/health-insights-radiologyinsights-rest/samples/v1/javascript/sample_sex_mismatch_inference_async.js
[apiref]: https://docs.microsoft.com/javascript/api
[freesub]: https://azure.microsoft.com/free/
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@azure-samples/health-insights-radiologyinsights-js-beta",
"name": "@azure-samples/health-insights-radiologyinsights-js",
"private": true,
"version": "1.0.0",
"description": "HealthInsightsRadiologyInsights samples for JavaScript (Beta)",
"description": "HealthInsightsRadiologyInsights client library samples for JavaScript",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -28,6 +28,6 @@
"dependencies": {
"@azure-rest/health-insights-radiologyinsights": "latest",
"dotenv": "latest",
"@azure/core-auth": "^1.3.0"
"@azure/identity": "^4.0.1"
}
}
Loading
Loading