example BG

BG Sample for Capillary Glycemia :

{
	"resourceType": "Observation",// Resource name value in FHIR for this profile
	"id": "7f4efa51-f023-4623-b007-6c31dec0d766",
	"meta": { // used for validation of the profile
		"profile": [
			"http://roche.com/fhir/iop/StructureDefinition/BG_Observation"
		]
	},
	"status": "final", // FHIR hardcorded value for status
	"code": {
		"coding": [
			{
				"system": "http://loinc.org",
				"code": "32016-8",
				"display": "Glucose [Mass/volume] in Capillary blood" // code for Capillary Glycemia
			}
		]
	},
	"subject": {
		"reference": "Patient/34605fdc-74aa-4587-a5f0-92e6c5f64527"
	},
	"effectiveTiming": {
        "event": "2020-10-14T02:00:00.000+00:00"
    },
	"valueQuantity": {
		"value": 102.0,
		"unit": "mg/dL",
		"system": "http://unitsofmeasure.org",
		"code": "mg/dL"
	},
	"device": {
		"reference": "Device/8954c958-41c5-4a24-82ef-693218c2f625"
	}
}


BG Sample for Capillary Glycemia with Carbs association :

{
	"resourceType": "Observation",// Resource name value in FHIR for this profile
	"id": "7f4efa51-f023-4623-b007-6c31dec0d766",
	"meta": { // used for validation of the profile
		"profile": [
			"http://roche.com/fhir/iop/StructureDefinition/BG_Observation"
		]
	},
	"status": "final", // FHIR hardcorded value for status
	"code": {
		"coding": [
			{
				"system": "http://loinc.org",
				"code": "32016-8",
				"display": "Glucose [Mass/volume] in Capillary blood" // code for Capillary Glycemia
			}
		]
	},
	"subject": {
		"reference": "Patient/34605fdc-74aa-4587-a5f0-92e6c5f64527"
	},
	"effectiveTiming": {
        "event": "2020-10-14T02:00:00.000+00:00"
    },
	"valueQuantity": {
		"value": 102.0,
		"unit": "mg/dL",
		"system": "http://unitsofmeasure.org",
		"code": "mg/dL"
	},
	"device": {
		"reference": "Device/8954c958-41c5-4a24-82ef-693218c2f625"
	},
	"hasMember": { // Reference to Observation (carbs)
        	"reference": "Observation/57787b6e-291a-45ba-8d0a-b16000b31c71"
      }
}