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 timestamp
  • identifier - will have the unique identifier having internal confidence ID
  • status - 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 ID
  • status - 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]"
        }
    }
}