Skip to content

Commit 1316bf4

Browse files
committed
Adding in note regarding latest data ingested
1 parent cc17201 commit 1316bf4

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

articles/healthcare-apis/iot/understand-service.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,39 @@ At this point, the [Device](https://www.hl7.org/fhir/device.html) resource, alon
7373
If no Device resource for a given device identifier exists in the FHIR service, the outcome depends upon the value of [Resolution Type](deploy-new-config.md#configure-the-destination-tab) set at the time of the MedTech service deployment. When set to `Lookup`, the specific message is ignored, and the pipeline continues to process other incoming device messages. If set to `Create`, the MedTech service creates minimal Device and Patient resources in the FHIR service.
7474

7575
> [!NOTE]
76-
> The `Resolution Type` can also be adjusted post deployment of the MedTech service in the event that a different type is later desired.
76+
> The `Resolution Type` can also be adjusted post deployment of the MedTech service if a different `Resolution Type` is later required.
7777
7878
The MedTech service buffers the FHIR Observations resources created during the transformation stage and provides near real-time processing. However, it can potentially take up to five minutes for FHIR Observation resources to be persisted in the FHIR service.
7979

80+
> [!NOTE]
81+
> When multiple device messages contain data for the same FHIR Observation, have the same timestamp, and are sent within the same device message group (for example, within the five minute window or in device message groups of 300 device messages), only the data corresponding to the latest device message for that FHIR Observation is persisted.
82+
>
83+
> For example:
84+
>
85+
> Device message one:
86+
> ```json
87+
> {   
88+
> "patientid": "testpatient1",   
89+
> "deviceid": "testdevice1",
90+
> "systolic": "129",   
91+
> "diastolic": "65",   
92+
> "measurementdatetime": "2022-02-15T04:00:00.000Z"
93+
> } 
94+
> ```
95+
>
96+
> Device message two:
97+
> ```json
98+
> {   
99+
> "patientid": "testpatient1",   
100+
> "deviceid": "testdevice1",   
101+
> "systolic": "113",   
102+
> "diastolic": "58",   
103+
> "measurementdatetime": "2022-02-15T04:00:00.000Z"
104+
> }
105+
> ```
106+
>
107+
> Assuming these device messages were ingested within the same five minute window or in the same group of 300 device messages, and since the `measurementdatetime` is the same for both device messages (indicating these contain data for the same FHIR Observation), only device message two is persisted to represent the latest/most recent data.
108+
80109
## Persist
81110
Persist is the final stage where the FHIR Observation resources from the transform stage are persisted in the [FHIR service](../fhir/overview.md). If the FHIR Observation resource is new, it's created in the FHIR service. If the FHIR Observation resource already existed, it gets updated in the FHIR service.
82111

0 commit comments

Comments
 (0)