Observation resource

The "delete" approach for any Observation resource will be the same. So this approach applies for "deletion" of any data point that is modelled as an Observation resource.

  • effectiveDateTime - will have the timestamp when the observation was made
  • extension registered-timestamp - will have the timestamp of the delete action made on the entry
  • element device - will be a reference always to the device metric which basically points to the smartphone (assuming deleting is only possible on the app)
  • identifier - will have the same unique identifier with which it has been ingested already
  • status - will always be "cancelled" for the deleted resource

   

Below is a sample for deleting a BG observation with identifier "AAAAA-AAAAA-AAAAA":

   

Step Description BG Value BG Measurement TimeStamp Registered TimeStamp Type Identifier
1 A new blood glucose entry is made 88 2020-04-03T09:00:00Z 2020-04-06T12:00:00Z manual entry AAAAA-AAAAA-AAAAA
2 The entry is deleted in mySugr; In FHIR it is logically deleted by replacing it with "cancelled" status 88 2020-04-03T09:00:00Z 2020-04-06T14:00:00Z manual entry AAAAA-AAAAA-AAAAA

The following bundle is generated on Step 2.

Command 'json' could not render: File not found for 'subject=example-mysugr-deleted-values-observation'