Skip to content

Commit 5d45c84

Browse files
committed
edit pass: how-to-use-calculatedcontent-mappings
1 parent 01620bb commit 5d45c84

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: How to use CalculatedContentT mappings with the MedTech service device mappings - Azure Health Data Services
2+
title: How to use CalculatedContent mappings - Azure Health Data Services
33
description: This article describes how to use CalculatedContent mappings with the MedTech service device mappings.
44
author: msjasteppe
55
ms.service: healthcare-apis
@@ -11,9 +11,9 @@ ms.author: jasteppe
1111

1212
# How to use CalculatedContent mappings
1313

14-
This article describes how to use CalculatedContent mappings with MedTech service device mappings.
14+
This article describes how to use CalculatedContent mappings with MedTech service device mappings in Azure Health Data Services.
1515

16-
## CalculatedContent mappings
16+
## Overview of CalculatedContent mappings
1717

1818
The 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.
1919

@@ -29,7 +29,7 @@ An expression is defined as:
2929
}
3030
```
3131

32-
In the example below, *typeMatchExpression* is defined as:
32+
In the following example, *typeMatchExpression* is defined as:
3333

3434
```json
3535
"templateType": "CalculatedContent",
@@ -67,7 +67,7 @@ The default expression language to use for a MedTech service device mappings can
6767
}
6868
```
6969

70-
The CalculatedContent mappings allow matching on and extracting values from an Azure Event Hubs message using **Expressions** as defined below:
70+
The CalculatedContent mappings allow matching on and extracting values from an Azure Event Hubs message using **Expressions**, as defined in the following table:
7171

7272
|Property|Description|Example|
7373
|--------|-----------|-------|
@@ -82,9 +82,9 @@ The CalculatedContent mappings allow matching on and extracting values from an A
8282
|Values[].ValueExpression|The expression to extract the wanted value.|`$.matchedToken.heartRate`|
8383
|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`|
8484

85-
### Expression Languages
85+
## Expression languages
8686

87-
When specifying the language to use for the expression, the below values are valid:
87+
When specifying the language to use for the expression, the following values are valid:
8888

8989
| Expression Language | Value |
9090
|---------------------|--------------|
@@ -96,15 +96,15 @@ When specifying the language to use for the expression, the below values are val
9696
>
9797
> For more information on JMESPath, see [JMESPath](https://jmespath.org/specification.html). CalculatedContent mappings use the [JMESPath .NET implementation](https://github.com/jdevillard/JmesPath.Net) for resolving JMESPath expressions.
9898
99-
### Custom functions
99+
## Custom functions
100100

101-
A set of MedTech service custom functions are 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).
101+
A set of MedTech service custom functions is also available. The MedTech service custom functions are outside 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).
102102

103-
### Matched Token
103+
## Matched token
104104

105-
The **TypeMatchExpression** is evaluated against the incoming EventData payload. If a matching JToken is found, the template is considered a match.
105+
The **TypeMatchExpression** is evaluated against the incoming EventData payload. If a matching JToken is found, the template is considered a match.
106106

107-
All later expressions are evaluated against a new JToken. This new JToken contains both the original EventData payload and the extracted JToken matched here.
107+
All later expressions are evaluated against a new JToken. This new JToken contains both the original EventData payload and the extracted JToken matched here.
108108

109109
In this way, the original payload and the matched object are available to each later expression. The extracted JToken will be available as the property **matchedToken**.
110110

@@ -223,9 +223,9 @@ And
223223
}
224224
```
225225

226-
### Examples
226+
## Examples
227227

228-
**Heart Rate**
228+
### Heart rate
229229

230230
*Message*
231231

@@ -262,7 +262,7 @@ And
262262
}
263263
```
264264

265-
**Blood Pressure**
265+
### Blood pressure
266266

267267
*Message*
268268

@@ -305,7 +305,7 @@ And
305305
}
306306
```
307307

308-
**Project Multiple Measurements from Single Message**
308+
### Project multiple measurements from a single message
309309

310310
*Message*
311311

@@ -364,7 +364,7 @@ And
364364
}
365365
```
366366

367-
**Project Multiple Measurements from Array in Message**
367+
### Project multiple measurements from array in a message
368368

369369
*Message*
370370

@@ -413,7 +413,7 @@ And
413413
}
414414
```
415415

416-
**Project Data From Matched Token And Original Event**
416+
### Project data from a matched token and original event
417417

418418
*Message*
419419

@@ -465,9 +465,9 @@ And
465465
}
466466
```
467467

468-
**Select and transform incoming data**
468+
### Select and transform incoming data
469469

470-
In the below example, height data arrives in either inches or meters. We want all normalized height data to be in meters. To achieve this outcome, we create a template that targets only height data in inches and transforms it into meters. Another template targets height data in meters and simply stores it as is.
470+
In the following example, height data arrives in either inches or meters. We want all normalized height data to be in meters. To achieve this outcome, we create a template that targets only height data in inches and transforms it into meters. Another template targets height data in meters and simply stores it as is.
471471

472472
*Message*
473473

@@ -538,15 +538,15 @@ In the below example, height data arrives in either inches or meters. We want al
538538
```
539539

540540
> [!TIP]
541-
> See the MedTech service article [Troubleshoot MedTech service errors](troubleshoot-errors.md) for assistance fixing MedTech service errors.
541+
> For assistance fixing MedTech service errors, see the MedTech service article [Troubleshoot MedTech service errors](troubleshoot-errors.md).
542542
543543
## Next steps
544544

545-
In this article, you learned how to configure the MedTech service device mappings using CalculatedContent mappings.
545+
In this article, you learned how to configure the MedTech service device mappings using CalculatedContent mappings.
546546

547547
To learn how to configure FHIR destination mappings, see
548548

549549
> [!div class="nextstepaction"]
550550
> [How to configure FHIR destination mappings](how-to-configure-fhir-mappings.md)
551551
552-
(FHIR®) is a registered trademark of Health Level Seven International, registered in the U.S. Trademark Office and is used with their permission.
552+
(FHIR®) is a registered trademark of Health Level Seven International, registered in the U.S. Trademark Office, and is used with permission.

0 commit comments

Comments
 (0)