Skip to content

Commit 0388a00

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into privateendpoint-availability
2 parents 057b804 + ec2ac48 commit 0388a00

18 files changed

+451
-654
lines changed

.openpublishing.redirection.healthcare-apis.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,13 +542,25 @@
542542
"redirect_url": "/azure/healthcare-apis/iot/how-to-enable-diagnostic-settings",
543543
"redirect_document_id": false
544544
},
545+
{ "source_path_from_root": "/articles/healthcare-apis/iot/how-to-use-collection-content-mappings.md",
546+
"redirect_url": "/azure/healthcare-apis/iot/how-to-use-device-mappings",
547+
"redirect_document_id": false
548+
},
549+
{ "source_path_from_root": "/articles/healthcare-apis/iot/how-to-use-jsonpath-content-mappings.md",
550+
"redirect_url": "/azure/healthcare-apis/iot/how-to-use-device-mappings",
551+
"redirect_document_id": false
552+
},
553+
{ "source_path_from_root": "/articles/healthcare-apis/iot/how-to-use-iot-central-json-content-mappings.md",
554+
"redirect_url": "/azure/healthcare-apis/iot/how-to-use-iot-jsonpath-content-mappings",
555+
"redirect_document_id": false
556+
},
545557
{ "source_path_from_root": "/articles/healthcare-apis/events/events-display-metrics.md",
546558
"redirect_url": "/azure/healthcare-apis/events/events-use-metrics",
547559
"redirect_document_id": false
548560
},
549561
{ "source_path_from_root": "/articles/healthcare-apis/events/events-export-logs-metrics.md",
550562
"redirect_url": "/azure/healthcare-apis/events/events-enable-diagnostic-settings",
551563
"redirect_document_id": false
552-
}
564+
}
553565
]
554566
}

articles/applied-ai-services/form-recognizer/concept-id-document.md

Lines changed: 131 additions & 33 deletions
Large diffs are not rendered by default.

articles/azure-cache-for-redis/cache-whats-new.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ author: flang-msft
66
ms.author: franlanglois
77
ms.service: cache
88
ms.topic: conceptual
9-
ms.date: 09/29/2022
9+
ms.date: 10/2/2022
1010

1111
---
1212

1313
# What's New in Azure Cache for Redis
1414

15+
## October 2022
16+
17+
### Failover for passive geo-replication
18+
1519
## September 2022
1620

1721
### Upgrade your Azure Cache for Redis instances to use Redis version 6 by June 30, 2023

articles/cognitive-services/language-service/sentiment-opinion-mining/includes/quickstarts/rest-api.md

Lines changed: 78 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,66 +12,107 @@ ms.custom: ignite-fall-2021
1212

1313
[Reference documentation](/rest/api/language/text-analysis-runtime)
1414

15-
Use this quickstart to send sentiment analysis requests using the REST API. In the following example, you will use cURL to identify the sentiment(s) expressed in a text sample, and perform aspect-based sentiment analysis.
15+
Use this quickstart to send sentiment analysis requests using the REST API. In the following example, you'll use cURL to identify the sentiment(s) expressed in a text sample, and perform aspect-based sentiment analysis.
1616

1717
## Prerequisites
1818

19-
* The current version of [cURL](https://curl.haxx.se/).
20-
* Once you have your Azure subscription, <a href="https://portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics" title="Create a Language resource" target="_blank">create a Language resource </a> in the Azure portal to get your key and endpoint.
19+
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
20+
21+
> [!div class="nextstepaction"]
22+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Prerequisites" target="_target">I ran into an issue</a>
23+
24+
## Setting up
25+
26+
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
27+
28+
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
29+
30+
## Create a JSON file with the example request body
31+
32+
In a code editor, create a new file named `request_body.json` and copy the following JSON example. This example request will be sent to the API in the next step.
33+
34+
```json
35+
{
36+
"kind": "SentimentAnalysis",
37+
"parameters": {
38+
"modelVersion": "latest",
39+
"opinionMining": "True"
40+
},
41+
"analysisInput":{
42+
"documents":[
43+
{
44+
"id":"1",
45+
"language":"en",
46+
"text": "The food and service were unacceptable. The concierge was nice, however."
47+
}
48+
]
49+
}
50+
}
51+
```
52+
53+
Save `request_body.json` somewhere on your computer. For example, your desktop.
54+
55+
## Send a sentiment analysis and opinion mining API request
2156

2257
> [!NOTE]
23-
> * The following BASH examples use the `\` line continuation character. If your console or terminal uses a different line continuation character, use that character.
58+
> The below examples include a request for the opinion mining feature of sentiment analysis, which provides granular information about assessments (adjectives) related to targets (nouns) in the text.
2459
60+
Use the following commands to send the API request using the program you're using. Copy the command into your terminal, and run it.
2561

2662
|parameter |Description |
2763
|---------|---------|
2864
|`-X POST <endpoint>` | Specifies your endpoint for accessing the API. |
2965
|`-H Content-Type: application/json` | The content type for sending JSON data. |
3066
|`-H "Ocp-Apim-Subscription-Key:<key>` | Specifies the key for accessing the API. |
31-
|`-d <documents>` | The JSON containing the documents you want to send. |
67+
|`-d <documents>` | The JSON file containing the documents you want to send. |
3268

33-
The following cURL commands are executed from a BASH shell. Edit these commands with your own resource name, resource key, and JSON values.
69+
# [Windows](#tab/windows)
3470

35-
> [!div class="nextstepaction"]
36-
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Prerequisites" target="_target">I ran into an issue</a>
71+
Replace `C:\Users\<myaccount>\Desktop\test_sentiment_payload.json` with the location of the example JSON request file you created in the previous step.
3772

38-
## Setting up
73+
### Command prompt
3974

40-
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
75+
```terminal
76+
curl -X POST "%LANGUAGE_ENDPOINT%/language/:analyze-text?api-version=2022-05-01" ^
77+
-H "Content-Type: application/json" ^
78+
-H "Ocp-Apim-Subscription-Key: %LANGUAGE_KEY%" ^
79+
-d "@C:\Users\<myaccount>\Desktop\test_sentiment_payload.json"
80+
```
4181

42-
## Sentiment analysis and opinion mining
82+
### PowerShell
4383

44-
[!INCLUDE [REST API quickstart instructions](../../../includes/rest-api-instructions.md)]
84+
```terminal
85+
curl.exe -X POST $env:LANGUAGE_ENDPOINT/language/:analyze-text?api-version=2022-05-01 `
86+
-H "Content-Type: application/json" `
87+
-H "Ocp-Apim-Subscription-Key: $env:LANGUAGE_KEY" `
88+
-d "@C:\Users\<myaccount>\Desktop\test_sentiment_payload.json"
89+
```
4590

46-
> [!NOTE]
47-
> The below examples include a request for the Opinion Mining feature of Sentiment Analysis using the `opinionMining=true` parameter, which provides granular information about assessments (adjectives) related to targets (nouns) in the text.
91+
#### [Linux](#tab/linux)
4892

49-
```bash
50-
curl -i -X POST <your-language-resource-endpoint>/language/:analyze-text?api-version=2022-05-01 \
93+
Use the following commands to send the API request using the program you're using. Replace `/home/mydir/test_sentiment_payload.json` with the location of the example JSON request file you created in the previous step.
94+
95+
```terminal
96+
curl -X POST $LANGUAGE_ENDPOINT/language/:analyze-text?api-version=2022-05-01 \
5197
-H "Content-Type: application/json" \
52-
-H "Ocp-Apim-Subscription-Key: <your-language-resource-key>" \
53-
-d \
54-
'
55-
{
56-
"kind": "SentimentAnalysis",
57-
"parameters": {
58-
"modelVersion": "latest",
59-
"opinionMining": "True"
60-
},
61-
"analysisInput":{
62-
"documents":[
63-
{
64-
"id":"1",
65-
"language":"en",
66-
"text": "The food and service were unacceptable. The concierge was nice, however."
67-
}
68-
]
69-
}
70-
}
71-
'
98+
-H "Ocp-Apim-Subscription-Key: $LANGUAGE_KEY" \
99+
-d "@/home/mydir/test_sentiment_payload.json"
100+
```
101+
102+
#### [macOS](#tab/macos)
103+
104+
Use the following commands to send the API request using the program you're using. Replace `/home/mydir/test_sentiment_payload.json` with the location of the example JSON request file you created in the previous step.
105+
106+
```terminal
107+
curl -X POST $LANGUAGE_ENDPOINT/language/:analyze-text?api-version=2022-05-01 \
108+
-H "Content-Type: application/json" \
109+
-H "Ocp-Apim-Subscription-Key: $LANGUAGE_KEY" \
110+
-d "@/home/mydir/test_sentiment_payload.json"
72111
```
73112

74-
### JSON response
113+
---
114+
115+
## JSON response
75116

76117
```json
77118
{

articles/healthcare-apis/iot/how-to-use-calculated-functions-mappings.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,17 @@ author: msjasteppe
55
ms.service: healthcare-apis
66
ms.subservice: fhir
77
ms.topic: how-to
8-
ms.date: 02/16/2022
8+
ms.date: 10/25/2022
99
ms.author: jasteppe
1010
---
1111

1212
# How to use CalculatedContentTemplate mappings
1313

14-
> [!TIP]
15-
> Check out the [IoMT Connector Data Mapper](https://github.com/microsoft/iomt-fhir/tree/master/tools/data-mapper) tool for editing, testing, and troubleshooting MedTech service Device and FHIR destination mappings. Export mappings for uploading to MedTech service in the Azure portal or use with the [open-source version](https://github.com/microsoft/iomt-fhir) of MedTech service.
16-
17-
This article describes how to use CalculatedContentTemplate mappings with MedTech service Device mappings templates.
14+
This article describes how to use CalculatedContentTemplate mappings with MedTech service device mapping template.
1815

1916
## CalculatedContentTemplate
2017

21-
MedTech service provides an expression-based content template to both match the wanted template and extract values. **Expressions** may be used by either JSONPath or JmesPath. Each expression within the template may choose its own expression language.
18+
MedTech service provides an expression-based content template to both match the wanted template and extract values. **Expressions** may be used by either JSONPath or JMESPath. Each expression within the template may choose its own expression language.
2219

2320
> [!NOTE]
2421
> If an expression language isn't defined, the default expression language configured for the template will be used. The default is JSONPath but can be overwritten if needed.
@@ -45,8 +42,9 @@ In the example below, *typeMatchExpression* is defined as:
4542
...
4643
}
4744
```
45+
4846
> [!TIP]
49-
> The default expression language to use for a Device mapping template is JsonPath. If you want to use JsonPath, the expression alone may be supplied.
47+
> The default expression language to use for a MedTech service device mapping template is JsonPath. If you want to use JsonPath, the expression alone may be supplied.
5048
5149
```json
5250
"templateType": "CalculatedContent",
@@ -57,7 +55,7 @@ In the example below, *typeMatchExpression* is defined as:
5755
}
5856
```
5957

60-
The default expression language to use for a template can be explicitly set using the `defaultExpressionLanguage` parameter:
58+
The default expression language to use for a MedTech service device template can be explicitly set using the `defaultExpressionLanguage` parameter:
6159

6260
```json
6361
"templateType": "CalculatedContent",
@@ -69,7 +67,7 @@ The default expression language to use for a template can be explicitly set usin
6967
}
7068
```
7169

72-
The CalculatedContentTemplate allows matching on and extracting values from an Azure Event Hub message using **Expressions** as defined below:
70+
The CalculatedContentTemplate allows matching on and extracting values from an Azure Event Hubs message using **Expressions** as defined below:
7371

7472
|Property|Description|Example|
7573
|--------|-----------|-------|
@@ -82,7 +80,7 @@ The CalculatedContentTemplate allows matching on and extracting values from an A
8280
|CorrelationIdExpression|*Optional*: The expression to extract the correlation identifier. This output can be used to group values into a single observation in the FHIR destination mappings.|`$.matchedToken.correlationId`|
8381
|Values[].ValueName|The name to associate with the value extracted by the next expression. Used to bind the wanted value/component in the FHIR destination mapping template.|`hr`|
8482
|Values[].ValueExpression|The expression to extract the wanted value.|`$.matchedToken.heartRate`|
85-
|Values[].Required|Will require the value to be present in the payload. If not found, a measurement won't be generated and an InvalidOperationException will be created.|`true`|
83+
|Values[].Required|Will require the value to be present in the payload. If not found, a measurement won't be generated, and an InvalidOperationException will be created.|`true`|
8684

8785
### Expression Languages
8886

@@ -91,16 +89,16 @@ When specifying the language to use for the expression, the below values are val
9189
| Expression Language | Value |
9290
|---------------------|--------------|
9391
| JSONPath | **JsonPath** |
94-
| JmesPath | **JmesPath** |
92+
| JMESPath | **JmesPath** |
9593

9694
>[!TIP]
97-
>For more information on JSONPath, see [JSONPath](https://goessner.net/articles/JsonPath/). The [CalculatedContentTemplate](#calculatedcontenttemplate) uses the [JSON .NET implementation](https://www.newtonsoft.com/json/help/html/QueryJsonSelectTokenJsonPath.htm) for resolving JSONPath expressions.
95+
> For more information on JSONPath, see [JSONPath](https://goessner.net/articles/JsonPath/). The [CalculatedContentTemplate](#calculatedcontenttemplate) uses the [JSON .NET implementation](https://www.newtonsoft.com/json/help/html/QueryJsonSelectTokenJsonPath.htm) for resolving JSONPath expressions.
9896
>
99-
>For more information on JmesPath, see [JmesPath](https://jmespath.org/specification.html). The [CalculatedContentTemplate](#calculatedcontenttemplate) uses the [JmesPath .NET implementation](https://github.com/jdevillard/JmesPath.Net) for resolving JmesPath expressions.
97+
> For more information on JMESPath, see [JMESPath](https://jmespath.org/specification.html). The [CalculatedContentTemplate](#calculatedcontenttemplate) uses the [JMESPath .NET implementation](https://github.com/jdevillard/JmesPath.Net) for resolving JMESPath expressions.
10098
101-
### Custom Functions
99+
### Custom functions
102100

103-
A set of MedTech service Custom Functions is also available. These Custom Functions are outside of the functions provided as part of the JmesPath specification. For more information on Custom Functions, see [MedTech service Custom Functions](./how-to-use-custom-functions.md).
101+
A set of MedTech service custom functions is also available. The MedTech service custom functions are outside of the functions provided as part of the JMESPath specification. For more information on the MedTech service custom functions, see [How to use MedTech service custom functions](how-to-use-custom-functions.md).
104102

105103
### Matched Token
106104

@@ -221,7 +219,6 @@ And
221219
"systolic": "122",
222220
"diastolic": "82",
223221
"date": "2021-07-13T17:28:01.061122Z"
224-
}
225222
}
226223
}
227224
```
@@ -509,7 +506,7 @@ In the below example, height data arrives in either inches or meters. We want al
509506
{
510507
"required": "true",
511508
"valueExpression": {
512-
"value": "multiply(to_number(matchedToken.height), `0.0254`)", // Convert inches to meters. Notice we utilize JmesPath as that gives us access to transformation functions
509+
"value": "multiply(to_number(matchedToken.height), `0.0254`)", // Convert inches to meters. Notice we utilize JMESPath as that gives us access to transformation functions
513510
"language": "JmesPath"
514511
},
515512
"valueName": "height"
@@ -541,13 +538,13 @@ In the below example, height data arrives in either inches or meters. We want al
541538
```
542539

543540
> [!TIP]
544-
> See MedTech service [troubleshooting guide](./iot-troubleshoot-guide.md) for assistance fixing common errors and issues.
541+
> See the MedTech service article [Troubleshoot MedTech service device and FHIR destination mappings](iot-troubleshoot-mappings.md) for assistance fixing common errors and issues related to MedTech service mappings.
545542
546543
## Next steps
547544

548545
In this article, you learned how to use Device mappings. To learn how to use FHIR destination mappings, see
549546

550-
>[!div class="nextstepaction"]
551-
>[How to use FHIR destination mappings](how-to-use-fhir-mappings.md)
547+
> [!div class="nextstepaction"]
548+
> [How to use FHIR destination mappings](how-to-use-fhir-mappings.md)
552549
553-
(FHIR&#174;) is a registered trademark of [HL7](https://hl7.org/fhir/) and is used with the permission of HL7.
550+
(FHIR&#174;) is a registered trademark of Health Level Seven International, registered in the U.S. Trademark Office and is used with their permission.

articles/healthcare-apis/iot/how-to-use-collection-content-mappings.md

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)