Snack

meal-carbohydrates

Sample scenario:

Carb 10g not associated with any Blood Glucose value (manual entry on the smart phone)

{
	"id": "1318898c-3553-4643-95cd-4f9884ce0b52",
	"resourceType": "Bundle",
	"type": "message",
	"entry": [
		{
			"resource": {
				"id": "id-messageHeader",
				"resourceType": "MessageHeader",
				"event": {
					"system": "http://roche.com/fhir/rdc/message-type",
					"code": "new-bundle",
					"display": "New bundle generated"
				},
				"timestamp": "2020-04-28T11:28:57.962Z",
				"source": {
					"name": "SmartLifeApp",
					"software": "SmartLifeBackend",
					"version": "x.x",
					"endpoint": "https://uudev-internal.rochedc.accentureanalytics.com/fhirmsg/rdc/v1.0.0/$process-message"
				},
				"extension": [
					{
						"url": "http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller",
						"valueString": "<GDPR controller>"
					}
				]
			}
		},
		{
			"resource": {
				"id": "id-device",
				"meta": {
					"profile": [
						"http://roche.com/fhir/rdc/StructureDefinition/phg-device"
					]
				},
				"resourceType": "Device",
				"status": "active",
				"type": {
					"coding": [
						{
							"system": "http://roche.com/fhir/rdc/cdf",
							"code": "cdf.dev.im",
							"display": "Manual interface"
						}
					]
				},
				"manufacturer": "SmartLife",
				"model": "SmartLifeApp",
				"version": "x.x"
			}
		},
		{
			"resource": {
				"id": "id-deviceComponent-smartphone",
				"meta": {
					"profile": [
						"http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent"
					]
				},
				"resourceType": "DeviceComponent",
				"identifier": {
					"system": "http://roche.com/fhir/rdc/sid/device-identifier",
					"value": "<unique identifier for the DeviceComponent>"
				},
				"type": {
					"coding": [
						{
							"system": "http://roche.com/fhir/rdc/cs",
							"code": "smartPhone",
							"display": "Smart Phone"
						}
					]
				},
				"source": {
					"reference": "Device/id-device"
				},
				"measurementPrinciple": "manual",
				"productionSpecification": [
					{
						"specType": {
							"coding": [
								{
									"system": "http://hl7.org/fhir/specification-type",
									"code": "unspecified",
									"display": "Unspecified Production Specification"
								}
							]
						},
						"productionSpec": "SmartLifeApp"
					}
				],
				"lastSystemChange": "2020-10-14T02:00:00.000+00:00"
			}
		},
		{
			"resource": {
				"id": "id-deviceMetric-smartPhone-carb",
				"meta": {
					"profile": [
						"http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
					]
				},
				"resourceType": "DeviceMetric",
				"identifier": {
					"system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
					"value": "2331003"
				},
				"type": {
					"coding": [
						{
							"system": "http://snomed.info/sct",
							"code": "2331003",
							"display": "Carbohydrate (substance)"
						}
					]
				},
				"unit": {
					"coding": [
						{
							"system": "http://unitsofmeasure.org",
							"code": "g",
							"display": "gram"
						}
					]
				},
				"source": {
					"reference": "Device/id-device"
				},
				"parent": {
					"reference": "DeviceComponent/id-deviceComponent-smartphone"
				},
				"operationalStatus": "on",
				"category": "measurement"
			}
		},
		{
			"resource": {
				"resourceType": "Observation",
				"id": "id-diet-intake-observation-1",
				"meta": {
					"profile": [
						"http://roche.com/fhir/rdc/StructureDefinition/diet-intake-observation"
					]
				},
				"status": "final",
				"identifier": [
					{
						"use": "official",
						"system": "http://roche.com/fhir/rdc/sid/observation/smartlife",
						"value": "321aef5cc0b4481e7ee58375b546b68d"
					}
				],
				"category": [
					{
						"coding": [
							{
								"system": "http://snomed.info/sct",
								"code": "364395008",
								"display": "Dietary intake (observable entity)"
							}
						]
					}
				],
				"code": {
					"coding": [
						{
							"system": "http://snomed.info/sct",
							"code": "246251008",
							"display": "Type of meal (attribute)"
						}
					]
				},
				"subject": {
					"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
				},
				"effectiveDateTime": "2020-06-02T09:13:50.613Z",
				"performer": [
					{
						"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
					}
				],
				"valueCodeableConcept": {
					"coding": [
						{
							"system": "http://snomed.info/sct",
							"code": "228070005",
							"display": "Snack food (substance)"
						}
					]
				},
				"device": {
					"reference": "Device/id-device"
				},
				"related": [
					{
						"type": "has-member",
						"target": {
							"reference": "Observation/id-carbs-observation-1"
						}
					}
				],
				"component": [
					{
						"code": {
							"coding": [
								{
									"system": "http://snomed.info/sct",
									"code": "229957008",
									"display": "Food composition types (substance)"
								}
							]
						},
						"valueCodeableConcept": {
							"coding": [
								{
									"system": "http://snomed.info/sct",
									"code": "227993004",
									"display": "Low carbohydrate food"
								}
							]
						}
					},
					{
						"code": {
							"coding": [
								{
									"system": "http://roche.com/fhir/rdc/cs",
									"code": "carbs-complexity",
									"display": "Carbs complexity"
								}
							]
						},
						"valueCodeableConcept": {
							"coding": [
								{
									"system": "http://snomed.info/sct",
									"code": "227996007",
									"display": "Simple carbohydrate food"
								}
							]
						}
					}
				]
			}
		},
		{
			"resource": {
				"resourceType": "Observation",
				"id": "id-carbs-observation-1",
				"meta": {
					"profile": [
						"http://roche.com/fhir/rdc/StructureDefinition/nutritional-value-observation"
					]
				},
				"identifier": [
					{
						"use": "official",
						"system": "http://roche.com/fhir/rdc/sid/observation/smartlife",
						"value": "<unique identifier>"
					}
				],
				"status": "final",
				"category": [
					{
						"coding": [
							{
								"system": "http://snomed.info/sct",
								"code": "84626001",
								"display": "Nutritional value, function (observable entity)"
							}
						]
					}
				],
				"code": {
					"coding": [
						{
							"system": "http://loinc.org",
							"code": "9060-5",
							"display": "Carbohydrate intake Measured"
						}
					]
				},
				"subject": {
					"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
				},
				"effectiveDateTime": "2020-06-02T09:13:50.613Z",
				"performer": [
					{
						"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
					}
				],
				"valueQuantity": {
					"value": 10,
					"unit": "g",
					"system": "http://unitsofmeasure.org",
					"code": "g"
				},
				"device": {
					"reference": "DeviceMetric/id-deviceMetric-smartPhone-carb"
				}
			}
		}
	]
}