Observation Delete use case
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 same unique identifier with which it has been ingested alreadystatus
- will always be "cancelled" for the deleted resource
Below is a sample for deleting a BG observation with internal confidence ID "AAAAA-AAAAA-AAAAA":
Step | Description | BG Value | BG Measurement TimeStamp | Type | Identifier |
---|---|---|---|---|---|
1 | A new blood glucose entry is made | 170 | 2018-03-19T06:46:00+00:00 | manual entry | AAAAA-AAAAA-AAAAA |
2 | The entry is updated | 177 | 2018-03-19T06:46:00+00:00 | manual entry | AAAAA-AAAAA-AAAAA |
3 | The entry is deleted; In FHIR it is logically deleted by replacing it with "cancelled" status | 2018-03-19T06:46:00+00:00 |
The following bundle is generated on Step 3.
{
"resourceType": "Observation",
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/observation/mySugr",
"value": "AAAAA-AAAAA-AAAAA"
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "41653-7",
"display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
}
]
},
"performer": [
{
"reference": "Patient/SandboxPat1"
}
],
"effectiveDateTime": "2018-03-19T06:46:00+00:00",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
]
},
"subject": {
"reference": "Patient/SandboxPat1"
},
"id": "821a82d5-6982-4768-8e0e-4d2a63aafd16",
"category": [
{
"coding": [
{
"system": "http://roche.com/fhir/rdc/cs",
"code": "clinical-observation",
"display": "Clinical Observation"
}
]
}
],
"device": {
"reference": "DeviceMetric/57d99bc2-d1e4-4eb7-8dca-025a4e79466e"
},
"basedOn": [
{
"reference": "CarePlan/ab20a2dc-2a8c-4ea2-8629-8e9d8e72491e"
}
],
"status": "cancelled",
"valueQuantity": {
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL",
"value": 177
}
}