Edited and Deleted approach
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"
}
]
}
Edit approach - Medication Adminstration resource
The "edit" approach for medication adminstration will be as below. So this approach applies for any data point that is modelled as medication adminstration resource.
effectiveDateTime- will have the timestamp of the medication administration. This will remain the same unless the user updates also the administration timestampidentifier- will have the unique identifier having internal confidence IDstatus- will always be "completed" for the updated resource
Below is a sample for updating a pen_basal_injection_unit with internal confidence ID "AAAA-AAAA-A":
| Step | Description | Insulin Units | Injected TimeStamp | Type | Identifier |
|---|---|---|---|---|---|
| 1 | A pen_basal_injection_unit is entered | 5 | 2020-08-04T15:00:16Z | manual entry | AAAA-AAAA-A |
| 2 | The entry is updated | 6 | 2020-08-04T15:00:16Z | manual entry | AAAA-AAAA-A |
The following bundle is generated on Step 2.
{
"resourceType": "MedicationAdministration",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/medication-administration-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/medication-administration/confidence",
"value": "<confidence unique identifier>"
}
],
"status": "completed",
"medicationCodeableConcept": {
"text": "BasalInsulin"
},
"subject": {
"reference": "Patient/<gigya_identifier>"
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"effectiveDateTime": "2020-08-04T15:00:16Z",
"dosage": {
"dose": {
"value": 6,
"unit": "[iU]"
}
}
}
Delete approach - Medication Adminstration resource
The "Delete" approach for medication adminstration resource will be as below. So this approach applies for any data point that is modelled as medication adminstration.
effectiveDateTime- will have the timestamp of the medication adminstration.identifier- will have the unique identifier having internal confidence IDstatus- will always be "entered-in-error" for the deleted resource
Below is a sample for deleting pen_basal_injection_unit with internal confidence ID AAAA-AAAA-A
| Step | Description | Insulin Units | Injected TimeStamp | Type | Identifier |
|---|---|---|---|---|---|
| 1 | A pen_basal_injection_unit is entered | 5 | 2020-08-04T15:00:16Z | manual entry | AAAA-AAAA-A |
| 2 | The entry is updated | 6 | 2020-08-04T15:00:16Z | manual entry | AAAA-AAAA-A |
| 2 | The entry is deleted; In FHIR it is logically deleted by replacing it with "entered-in-error" status | 2020-08-04T15:00:16Z |
The following bundle is generated on Step 3.
{
"resourceType": "MedicationAdministration",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/medication-administration-reduced"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/medication-administration/confidence",
"value": "AAAA-AAAA-A"
}
],
"status": "entered-in-error",
"medicationCodeableConcept": {
"text": "BasalInsulin"
},
"subject": {
"reference": "Patient/<gigya_identifier>"
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
"valueString": "+02:00"
}
],
"effectiveDateTime": "2020-08-04T15:00:16Z",
"dosage": {
"dose": {
"value": 6,
"unit": "[iU]"
}
}
}