Skip to content

Commit 2a7eac7

Browse files
committed
More updates based on feedback
1 parent 9b358e1 commit 2a7eac7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ In the following example, `typeMatchExpression` is defined as:
4848

4949
The CalculatedContent templates allow matching on and extracting values from a device message read from an Azure Event Hubs event hub through the following expressions:
5050

51-
|Element|Description|JSONPath expression|JMESPath expression|
52-
|:------|:----------|:------------------|:------------------|
51+
|Element|Description|JSONPath expression example|JMESPath expression example|
52+
|:------|:----------|:--------------------------|:--------------------------|
5353
|typeMatchExpression|The expression that the MedTech service evaluates against the device message payload. If the service finds a matching token value, it considers the template a match. The service evaluates all later expressions against the extracted token value matched here.|`$..[?(@heartRate)]`|``[Body][?contains(keys(@), `heartRate`)] \| @[0]``|
5454
|deviceIdExpression|The expression to extract the device identifier.|`$.matchedToken.deviceId`|`@.matchedToken.deviceId`|
5555
|timestampExpression|The expression to extract the timestamp value for the measurement's `OccurrenceTimeUtc` value.|`$.matchedToken.endDate`|`@.matchedToken.endDate`|

articles/healthcare-apis/iot/how-to-use-iotjsonpathcontent-templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This article provides an overview of how to use IotJsonPathContent templates wit
2020

2121
IotJsonPathContent templates can be used when the MedTech service ingests device messages [routed](../../iot-hub/iot-concepts-and-iot-hub.md#message-routing-sends-data-to-other-endpoints) from an [Azure IoT Hub](../../iot-hub/iot-concepts-and-iot-hub.md). When IotJsonPathContent templates are used within the [device mapping](overview-of-device-mapping.md), the MedTech service extracts the device ID and measurement timestamp from metadata provided by an IoT hub. The DeviceIdExpression and TimestampExpression shouldn't be included in IotJsonPathContent templates.
2222

23-
The MedTech service IotJsonPathContent templates support the JSON expression language JSONPath. Expressions are used to identify which template to use with a given JSON device message (for example: TypeMatchExpression) and to extract specific values that are required to create a normalized message (for example: PatientIdExpression, ValueExpression, etc.). IotJsonPathContent templates are similar to the CalculatedContent templates except the DeviceIdExpression and TimestampExpression aren't supported.
23+
The MedTech service IotJsonPathContent templates support the JSON expression language JSONPath. Expressions are used to identify which template to use with a given JSON device message (for example: TypeMatchExpression) and to extract specific values that are required to create a normalized message (for example: PatientIdExpression, ValueExpression, etc.). IotJsonPathContent templates are similar to the [CalculatedContent templates](how-to-use-calculatedcontent-templates.md) except the DeviceIdExpression and TimestampExpression aren't supported.
2424

2525
> [!NOTE]
2626
> JMESPath is not supported by IotJsonPathContent templates.
@@ -47,7 +47,7 @@ If your MedTech service is set up to ingest device messages from an IoT hub, you
4747
The IotJsonPathContent templates allow matching on and extracting values from a device message read from an Azure Event Hubs event hub through the following expressions:
4848

4949
|Element|Description|JSONPath expression example|
50-
|:------|:----------|:------------------|
50+
|:------|:----------|:--------------------------|
5151
|typeMatchExpression|The expression that the MedTech service evaluates against the device message payload. If the service finds a matching token value, it considers the template a match.|`$..[?(@heartRate)]`|
5252
|patientIdExpression|The expression to extract the patient identifier. *Required* when the MedTech services's **Resolution type** is set to **Create**, and *optional* when the MedTech service's **Resolution type** is set to **Lookup**.|`$.SystemProperties.iothub-connection-device-id`|
5353
|encounterIdExpression|*Optional*: The expression to extract the encounter identifier.|`$.Body.encounterId`|

0 commit comments

Comments
 (0)