example - Insulin flow

MedicationAdministration (Insulin Sample) having reference to MedicationRequest:

{
   "resourceType": "MedicationAdministration", // Resource name value in FHIR for this profile
	"id": "69456d66-a558-4d4c-8c7a-77e1c2b3b0b6",
	  "meta": { // used for validation of the profile
		"profile": [
		"http://roche.com/fhir/iop/StructureDefinition/MedicationAdministration"
		]
	},
	"status": "completed", // FHIR hardcorded value for status
	"medication" : { // code for type of medication
    "concept" : {
      "coding" : [
			{
			"system": "http://roche.com/fhir/iop/cs",
			"code": "67866001_short_acting",
			"display": "67866001_short_acting"
	  	}
		]
    }
  },
	"subject": {
		"reference": "Patient/34605fdc-74aa-4587-a5f0-92e6c5f64527"
	},
	"occurenceDateTime": "2020-02-27T11:14:00+00:00",
	"performer": [{
		"actor": {
			 "reference" : {
        "reference" : "Device/5f0990b9-1be2-4f69-9621-028b6abdf1b5",
      }
		}
	}],
    "request": {
		"reference": "MedicationRequest/13f0823f-d3d8-40c2-9155-10e098a48b0f"
	},
	"dosage": {
		"dose": {
			"value": "3.0",
			"unit": "[iU]",
			"system": "http://unitsofmeasure.org",
			"code": "[iU]"
		}
	}
}


MedicationRequest Sample :

{
	"resourceType": "MedicationRequest",
	"id": "13f0823f-d3d8-40c2-9155-10e098a48b0f",
	"meta": {
		"profile": [
			"http://roche.com/fhir/iop/StructureDefinition/MedicationRequest"
		]
	},
	"status": "active",
	"intent": "proposal",
	"medication": {
		"concept": {
			"coding": [
				{
					"system": "http://roche.com/fhir/iop/cs",
					"code": "67866001_short_acting",
					"display": "Short-acting insulin (substance)"
				}
			]
		}
	},
	"subject": {
		"reference": "Patient/34605fdc-74aa-4587-a5f0-92e6c5f64527"
	},
	"authoredOn": "2020-02-27T11:14:00+00:00",
	"performer": [
		{
			"reference": "Device/5f0990b9-1be2-4f69-9621-028b6abdf1b5"
		}
	],
	"dosageInstruction": [
		{
			"doseAndRate": [
				{
					"doseQuantity": {
						"value": 3,
						"unit": "[iU]",
						"system": "http://unitsofmeasure.org",
						"code": "[iU]"
					}
				}
			]
		}
	]
}