Skip to content

Commit aa6a47b

Browse files
committed
More feedback edits
1 parent e393f7c commit aa6a47b

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ When you're specifying the language to use for the expression, the following val
7070
| JSONPath | `JsonPath` |
7171
| JMESPath | `JmesPath` |
7272

73-
Because JSONPath is the default expression language, it's not required to include the expression language within a CalculatedContent template:
73+
Because JSONPath is the default expression language, it's not required to include the expression language within a CalculatedContent template.
7474

7575
```json
7676
"templateType": "CalculatedContent",

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

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ IotJsonPathContent templates can be used when the MedTech service ingests device
2222

2323
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.
2424

25-
> [!IMPORTANT]
25+
> [!NOTE]
2626
> JMESPath is not supported by IotJsonPathContent templates.
2727
2828
An expression is defined as:
@@ -37,14 +37,15 @@ In the following example, `typeMatchExpression` is defined as:
3737
"templateType": "IotJsonPathContent",
3838
"template": {
3939
"typeName": "heartrate",
40-
"typeMatchExpression": "$..[?(@heartRate)]"
41-
},
40+
"typeMatchExpression": "$..[?(@heartRate)]",
41+
...
42+
}
4243
```
4344

4445
> [!IMPORTANT]
45-
> The MedTech service will use the device id defined in Azure IoT Hub as the FHIR resource device identifier. If the MedTech service is setup to use an identity resolution type of **Lookup**, a Device resource with a matching device identifier **must** exist in the FHIR service or an error will occur when the device message is processed. If the MedTech service identity resolution type is set to **Create**, a `patientIdExpression` must be included in the device message so that a new Patient resource and Device resource can be created if they do not already exist.
46+
> The MedTech service will use the device ID defined in IoT hub as the FHIR resource device identifier. If the MedTech service is setup to use an identity resolution type of **Lookup**, a Device resource with a matching device identifier **must** exist in the FHIR service or an error will occur when the device message is processed. If the MedTech service identity resolution type is set to **Create**, a `patientIdExpression` must be included in the device message so that a new Patient resource and Device resource can be created if they do not already exist.
4647
47-
If your MedTech service is set up to ingest device messages from an Azure IoT Hub, you aren't required to use IotJsonPathContent templates. CalculatedContent templates can be used assuming that you correctly define the DeviceIdExpression and TimestampExpression.
48+
If your MedTech service is set up to ingest device messages from an IoT hub, you aren't required to use IotJsonPathContent templates. CalculatedContent templates can be used assuming that you correctly define the DeviceIdExpression and TimestampExpression.
4849

4950
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:
5051

@@ -61,13 +62,7 @@ The IotJsonPathContent templates allow matching on and extracting values from a
6162
6263
## Expression languages
6364

64-
When you're specifying the language to use for the expression, the following values are valid:
65-
66-
| Expression language |Value |
67-
|---------------------|------------|
68-
| JSONPath | `JsonPath` |
69-
70-
Because JSONPath is the default expression language, it's not required to include the expression language within an IotJsonPathContent template:
65+
JSONPath is the default expression language, and inclusion of an expression language within an IotJsonPathContent template isn't supported. If you attempt to specify the expression language in an expression object, the IotJsonPathContent template containing the expression object fails.
7166

7267
```json
7368
"templateType": "IotJsonPathContent",

0 commit comments

Comments
 (0)