Medication Adminstration Delete use case
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 same unique identifier with which it has been ingested alreadystatus
- 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 | 4 | 2020-04-28T10:30:00Z | manual entry | BBBBB-BBBBB-BBBBB |
2 | The entry is updated | 3 | 2020-04-28T10:30:00Z | manual entry | BBBBB-BBBBB-BBBBB |
3 | The entry is deleted; In FHIR it is logically deleted by replacing it with "entered-in-error" status | 2020-04-28T10:30:00Z |
The following bundle is generated on Step 3.
{
"resourceType": "MedicationAdministration",
"id": "id-medicationAdministration-pen-manual-basal",
"meta": {
"profile": [
"http://roche.com/fhir/rdc/StructureDefinition/medication-administration"
]
},
"identifier": [
{
"system": "http://roche.com/fhir/rdc/sid/medication-administration/mysugr",
"value": "BBBBB-BBBBB-BBBBB"
}
],
"status": "entered-in-error",
"medicationCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "25305005",
"display": "Long-acting insulin (substance)"
}
],
"text": "Novolin"
},
"subject": {
"reference": "Patient/SandboxPat3"
},
"effectiveDateTime": "2020-04-28T10:30:00Z",
"performer": [
{
"actor": {
"reference": "Patient/SandboxPat3"
}
}
],
"dosage": {
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/medication-administration-dosage/admin-type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "61968008",
"display": "Syringe, device (physical object)"
}
]
}
}
],
"dose": {
"value": 3,
"unit": "[iU]",
"system": "http://unitsofmeasure.org",
"code": "[iU]"
}
},
"extension": [
{
"url": "http://roche.com/fhir/rdc/StructureDefinition/parent-device-metric",
"valueReference": {
"reference": "DeviceMetric/id-deviceMetric-smartPhone-insulin"
}
}
]
}