Observation resource - Edited use case
The "edit" approach for any observation resource will be the same. So this approach applies for "updation" of any data point that is modelled as an 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 same unique identifier with which it has been ingested alreadystatus
- will always be "final" for the updated resource
Below is a sample for updating a BG observation with identifier "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 updated | 178 | 2018-03-19T06:46:00+00:00 | manual entry | AAAAA-AAAAA-AAAAA |
The following bundle is generated on Step 2.
{
"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/30d1355b-3705-4809-a3fa-d57dcd167f73"
}
],
"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": "final",
"valueQuantity": {
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL",
"value": 177
}
}
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/30d1355b-3705-4809-a3fa-d57dcd167f73"
},
"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": "final",
"valueQuantity": {
"unit": "mg/dL",
"system": "http://unitsofmeasure.org",
"code": "mg/dL",
"value": 178
}
}