You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/healthcare-apis/iot/how-to-use-calculatedcontent-mappings.md
+23-23Lines changed: 23 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
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
3
3
description: This article describes how to use CalculatedContent mappings with the MedTech service device mappings.
4
4
author: msjasteppe
5
5
ms.service: healthcare-apis
@@ -11,9 +11,9 @@ ms.author: jasteppe
11
11
12
12
# How to use CalculatedContent mappings
13
13
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.
15
15
16
-
## CalculatedContent mappings
16
+
## Overview of CalculatedContent mappings
17
17
18
18
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.
19
19
@@ -29,7 +29,7 @@ An expression is defined as:
29
29
}
30
30
```
31
31
32
-
In the example below, *typeMatchExpression* is defined as:
32
+
In the following example, *typeMatchExpression* is defined as:
33
33
34
34
```json
35
35
"templateType": "CalculatedContent",
@@ -67,7 +67,7 @@ The default expression language to use for a MedTech service device mappings can
67
67
}
68
68
```
69
69
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:
71
71
72
72
|Property|Description|Example|
73
73
|--------|-----------|-------|
@@ -82,9 +82,9 @@ The CalculatedContent mappings allow matching on and extracting values from an A
82
82
|Values[].ValueExpression|The expression to extract the wanted value.|`$.matchedToken.heartRate`|
83
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`|
84
84
85
-
###Expression Languages
85
+
## Expression languages
86
86
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:
88
88
89
89
| Expression Language | Value |
90
90
|---------------------|--------------|
@@ -96,15 +96,15 @@ When specifying the language to use for the expression, the below values are val
96
96
>
97
97
> 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.
98
98
99
-
###Custom functions
99
+
## Custom functions
100
100
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).
102
102
103
-
###Matched Token
103
+
## Matched token
104
104
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.
106
106
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.
108
108
109
109
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**.
110
110
@@ -223,9 +223,9 @@ And
223
223
}
224
224
```
225
225
226
-
###Examples
226
+
## Examples
227
227
228
-
**Heart Rate**
228
+
### Heart rate
229
229
230
230
*Message*
231
231
@@ -262,7 +262,7 @@ And
262
262
}
263
263
```
264
264
265
-
**Blood Pressure**
265
+
### Blood pressure
266
266
267
267
*Message*
268
268
@@ -305,7 +305,7 @@ And
305
305
}
306
306
```
307
307
308
-
**Project Multiple Measurements from Single Message**
308
+
### Project multiple measurements from a single message
309
309
310
310
*Message*
311
311
@@ -364,7 +364,7 @@ And
364
364
}
365
365
```
366
366
367
-
**Project Multiple Measurements from Array in Message**
367
+
### Project multiple measurements from array in a message
368
368
369
369
*Message*
370
370
@@ -413,7 +413,7 @@ And
413
413
}
414
414
```
415
415
416
-
**Project Data From Matched Token And Original Event**
416
+
### Project data from a matched token and original event
417
417
418
418
*Message*
419
419
@@ -465,9 +465,9 @@ And
465
465
}
466
466
```
467
467
468
-
**Select and transform incoming data**
468
+
### Select and transform incoming data
469
469
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.
471
471
472
472
*Message*
473
473
@@ -538,15 +538,15 @@ In the below example, height data arrives in either inches or meters. We want al
538
538
```
539
539
540
540
> [!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).
542
542
543
543
## Next steps
544
544
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.
546
546
547
547
To learn how to configure FHIR destination mappings, see
548
548
549
549
> [!div class="nextstepaction"]
550
550
> [How to configure FHIR destination mappings](how-to-configure-fhir-mappings.md)
551
551
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