Edit approach - Observation resource
The "edit" approach for observation resource will be as below. So this approach applies for any data point that is modelled as observation resource.
effectiveDateTime- will have the timestamp of the measurement/observation made. This will remain the same unless the user updates also the measurement timestampidentifier- will have the unique identifier having internal confidence IDstatus- will always be "final" for the updated resource
Below is a sample for updating a BG observation with internal confidence ID "CCCC-CCCC-C"
| Step | Description | BG Value | BG Measurement TimeStamp | Type | Identifier |
|---|---|---|---|---|---|
| 1 | A new blood glucose entry is made | 102 | 2020-08-04T15:00:16Z | manual entry | CCCC-CCCC-C |
| 2 | The entry is updated | 105 | 2020-08-04T15:00:16Z | manual entry | CCCC-CCCC-C |
The following bundle is generated on Step 2.
{
"resourceType": "Observation",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/observation-bg-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence",
"value": "CCCC-CCCC-C"
}
],
"status": "final",
"code": {
"text": "BloodGlucoseValue"
},
"effectiveDateTime": "2020-08-04T18:10:16",
"comment": "Blood Glucose Observation",
"valueQuantity": {
"value": "105",
"unit": "mg/dL"
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
]
}
Delete approach - Observation resource
The "Delete" approach for observation resource will be as below. So this approach applies for any data point that is modelled as observation resource.
effectiveDateTime- will have the timestamp of the measurement/observation made.identifier- will have the unique identifier having internal confidence IDstatus- will always be "cancelled" for the deleted resource
Below is a sample for deleting a BG observation with internal confidence ID "CCCC-CCCC-C":
| Step | Description | BG Value | BG Measurement TimeStamp | Type | Identifier |
|---|---|---|---|---|---|
| 1 | A new blood glucose entry is made | 102 | 2020-08-04T15:00:16Z | manual entry | CCCC-CCCC-C |
| 2 | The entry is updated | 105 | 2020-08-04T15:00:16Z | manual entry | CCCC-CCCC-C |
| 3 | The entry is deleted; In FHIR it is logically deleted by replacing it with "cancelled" status | 2020-08-04T15:00:16Z |
The following bundle is generated on Step 3.
{
"resourceType": "Observation",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/observation-bg-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/confidence",
"value": "CCCC-CCCC-C"
}
],
"status": "cancelled",
"code": {
"text": "BloodGlucoseValue"
},
"effectiveDateTime": "2020-08-04T18:10:16Z",
"comment": "Blood Glucose Observation",
"valueQuantity": {
"value": "105",
"unit": "mg/dL"
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
]
}