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-iotjsonpathcontent-templates.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ IotJsonPathContent templates can be used when the MedTech service ingests device
22
22
23
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.
24
24
25
-
> [!IMPORTANT]
25
+
> [!NOTE]
26
26
> JMESPath is not supported by IotJsonPathContent templates.
27
27
28
28
An expression is defined as:
@@ -37,14 +37,15 @@ In the following example, `typeMatchExpression` is defined as:
37
37
"templateType": "IotJsonPathContent",
38
38
"template": {
39
39
"typeName": "heartrate",
40
-
"typeMatchExpression": "$..[?(@heartRate)]"
41
-
},
40
+
"typeMatchExpression": "$..[?(@heartRate)]",
41
+
...
42
+
}
42
43
```
43
44
44
45
> [!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.
46
47
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.
48
49
49
50
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:
50
51
@@ -61,13 +62,7 @@ The IotJsonPathContent templates allow matching on and extracting values from a
61
62
62
63
## Expression languages
63
64
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.
0 commit comments