Control Observation - Bundle

{
    "id": "1318898c-3553-4643-95cd-4f9884ce0b52",// add uuidv4
    "resourceType": "Bundle",
    "type": "message",
    "entry": [{
         ------------------- MessageHeader -------------------
            "resource": {
                "id": "1",
                "meta": {
                "profile":  [
                "http://roche.com/fhir/rdc/StructureDefinition/message-header"
                     ]
                 },
                "resourceType": "MessageHeader",
                "event": {
                    "system": "http://roche.com/fhir/rdc/message-type",
                    "code": "new-bundle",
                    "display": "New bundle generated"
                },
                "timestamp": "2019-02-22T11:28:57.962Z",
                "extension":  [
        {
            "url": "http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller",
            "valueString": "<GDPR controller>"
        }
       ],
                "source": {
                    "name": "AccuChekConnectApp",
                    "software": "Accu-Chek Connect App",
                    "version": "1.0",
                    "endpoint": "https://uudev-internal.rochedc.accentureanalytics.com/fhirmsg/rdc/v1.0.0/$process-message"
                }
            }
        },
        ------------------- Device-------------------
        {
            "resource": {
                "id": "2",
                "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": "Roche",
                "model": "AccuChekConnectApp",
                "version": "1.0"
            }
        },
        ------------------- DeviceComponent 1 Guide -------------------
        {
            "resource": {
                "id": "3",
                "meta": {
                "profile":  [
                "http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent"
                     ]
                 },
                "resourceType": "DeviceComponent",
                "identifier": {
                    "system": "http://roche.com/fhir/rdc/sid/device-identifier",
                    "value": "AccuChekConnectApp/705/450182936"
                },
                "type": {
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cdf",
                        "code": "cdf.dev.bgmeter",
                        "display": "Glucometer"
                    }]
                },
                "source": {
                    "reference": "Device/2"
                },
                "measurementPrinciple": "impedance",
                "productionSpecification": [{
                    "specType": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/specification-type",
                            "code": "serial-number",
                            "display": "Serial Number"
                        }]
                    },
                    "productionSpec": "450182936"
                }, {
                    "specType": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/specification-type",
                            "code": "unspecified",
                            "display": "Unspecified Production Specification"
                        }]
                    },
                    "productionSpec": "Guide"
                }, {
                    "specType": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/specification-type",
                            "code": "part-number",
                            "display": "Part Number"
                        }]
                    },
                    "productionSpec": "705"
                }],
                "lastSystemChange": "2019-02-22T11:28:57+02:00" // update "BG Device" last sync timestamp if ACCU-CHEK Connect App has this information
            }
        },
        ------------------- DeviceMetric 1 Guide ------------------- 
        {
            "resource": {
                "id": "4",
                "meta": {
                "profile":  [
                 "http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
                  ]
                },
                "resourceType": "DeviceMetric",
                "identifier": {
                    "system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
                    "value": "41653-7"
                },
                "type": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "41653-7",
                        "display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
                    }]
                },
                "unit": {
                    "coding": [{
                        "system": "http://unitsofmeasure.org",
                        "code": "mg/dL",
                        "display": "milligram per deciliter"
                    }]
                },
                "source": {
                    "reference": "Device/2"
                },
                "parent": {
                    "reference": "DeviceComponent/3"
                },
                "operationalStatus": "on",
                "category": "measurement"
            }
        },
        -------------------  DeviceComponent 2 Manual ------------------- 
        {
            "resource": {
                "id": "5",
                "meta": {
                "profile":  [
                "http://roche.com/fhir/rdc/StructureDefinition/phd-devicecomponent"
                     ]
                 },
                "resourceType": "DeviceComponent",
                "identifier": {
                    "system": "http://roche.com/fhir/rdc/sid/device-identifier",
                    "value": "AccuChekConnectApp/712/450274815"
                },
                "type": {
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "smartPhone",
                        "display": "Smart Phone"
                    }]
                },
                "source": {
                    "reference": "Device/2"
                },
                "measurementPrinciple": "manual",
                "productionSpecification": [{
                    "specType": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/specification-type",
                            "code": "serial-number",
                            "display": "Serial Number"
                        }]
                    },
                    "productionSpec": "450274815"
                }, {
                    "specType": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/specification-type",
                            "code": "unspecified",
                            "display": "Unspecified Production Specification"
                        }]
                    },
                    "productionSpec": "Samsung Galaxy"
                }, {
                    "specType": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/specification-type",
                            "code": "part-number",
                            "display": "Part Number"
                        }]
                    },
                    "productionSpec": "712"
                }],
                "lastSystemChange": "2019-02-22T11:28:57.962Z" // update the datetime of the bundle generated
            }
        },
        -------------------  DeviceMetric 2 Manual------------------- 
        {
            "resource": {
                "id": "6",
                "meta": {
                "profile":  [
                 "http://roche.com/fhir/rdc/StructureDefinition/dm-device-metric"
                  ]
                },
                "resourceType": "DeviceMetric",
                "identifier": {
                    "system": "http://roche.com/fhir/rdc/sid/devicemetric-identifier",
                    "value": "2339-0"
                },
                "type": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "2339-0",
                        "display": "Glucose [Mass/volume] in Blood"
                    }]
                },
                "unit": {
                    "coding": [{
                        "system": "http://unitsofmeasure.org",
                        "code": "mg/dL",
                        "display": "milligram per deciliter"
                    }]
                },
                "source": {
                    "reference": "Device/2"
                },
                "parent": {
                    "reference": "DeviceComponent/5"
                },
                "operationalStatus": "on",
                "category": "measurement"
            }
        },
        ------------------- BG observation 13/02 9:07    75 mg/dL    Before Meal Guide ------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "8",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "extension": [{
                    "url": "http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing",
                    "valueCodeableConcept": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/v3/TimingEvent",
                            "code": "AC",
                            "display": "AC"
                        }]
                    }
                }],
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "41653-7",
                        "display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-13T09:07:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 75,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/4"
                }
            }
        },
        -------------------  BG observation 13/02 10:11   149 mg/dL   After Meal Guide ------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "9",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "extension": [{
                    "url": "http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing",
                    "valueCodeableConcept": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/v3/TimingEvent",
                            "code": "PC",
                            "display": "PC"
                        }]
                    }
                }],
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "41653-7",
                        "display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-13T10:11:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 149,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/4"
                }
            }
        },
        -------------------  BG observation 13/02 17:00   174 mg/dL   Snack, Before Exercise  Manual ------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "10",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "extension": [{
                    "url": "http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing",
                    "valueCodeableConcept": {
                        "coding": [{
                            "system": "http://roche.com/fhir/rdc/cs",
                            "code": "SNACK",
                            "display": "Snack"
                        }]
                    }
                }, {
                    "url": "http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing",
                    "valueCodeableConcept": {
                        "coding": [{
                            "system": "http://roche.com/fhir/rdc/cs",
                            "code": "AEXERCISE",
                            "display": "Before exercise"
                        }]
                    }
                }],
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "362943005",
                        "display": "Manual method (qualifier value)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-13T17:00:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 174,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/6"
                }
            }
        },
        -------------------  BG observation 13/02 23:23   132 mg/dL   Bedtime Guide ------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "11",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "extension": [{
                    "url": "http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing",
                    "valueCodeableConcept": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/v3/TimingEvent",
                            "code": "HS",
                            "display": "HS"
                        }]
                    }
                }],
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "41653-7",
                        "display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-13T23:23:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 132,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/4"
                }
            }
        },
        -------------------  BG observation 14/02 12:11   78 mg/dL    Fasting Guide  ------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "12",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "41653-7",
                        "display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-14T12:11:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 78,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/4"
                },
                "related": [
					{
						"type": "has-member",
						"target": {
							"reference": "Observation/mz9KWvp-Fgk-12286"
						}
					}
				]
            }
        },
             {
			"resource": {
				"resourceType": "Observation",
				"id": "mz9KWvp-Fgk-12286",
				"status": "final",
				"category": [
					{
						"coding": [
							{
								"system": "http://roche.com/fhir/rdc/cs",
								"code": "observation-health-event",
								"display": "Health Event Observation"
							}
						]
					}
				],
				"code": {
					"coding": [
						{
							"system": "http://snomed.info/sct",
							"code": "405157008",
							"display": "Personal health status (observable entity)"
						}
					]
				},
				"subject": {
					"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
				},
				"effectiveDateTime": "2019-02-14T12:11:00+02:00",
				"performer": [
					{
						"reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ0"
					}
				],
				"valueCodeableConcept": {
					"coding": [
						{
							"system": "http://snomed.info/sct",
							"code": "16985007",
							"display": "Fasting (finding)"
						}
					]
				},
				"device": {
					"reference": "Device/2"
				}
			}
		}
        -------------------  BG observation 15/02 20:30   80 mg/dL    After Exercise  Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "13",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "extension": [{
                    "url": "http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing",
                    "valueCodeableConcept": {
                        "coding": [{
                            "system": "http://roche.com/fhir/rdc/cs",
                            "code": "PEXERCISE",
                            "display": "After exercise"
                        }]
                    }
                }],
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "362943005",
                        "display": "Manual method (qualifier value)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-15T20:30:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 80,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/6"
                }
            }
        },
        -------------------  BG observation 16/02 9:05    64 mg/dL    Before Meal, Stress Guide------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "14",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "extension": [{
                    "url": "http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing",
                    "valueCodeableConcept": {
                        "coding": [{
                            "system": "http://hl7.org/fhir/v3/TimingEvent",
                            "code": "AC",
                            "display": "AC"
                        }]
                    }
                }],
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "41653-7",
                        "display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-16T09:05:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 64,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/4"
                },
                "related": [{
                    "type": "has-member",
                    "target": {
                        "reference": "Observation/20"
                    }
                }]
            }
        },
        -------------------  BG observation 17/02 15:00   151 mg/dL   Illness, Oral-medication Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "15",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "362943005",
                        "display": "Manual method (qualifier value)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-17T15:00:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 151,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/6"
                },
                "related": [{
                    "type": "has-member",
                    "target": {
                        "reference": "Observation/21"
                    }
                }, {
                    "type": "has-member",
                    "target": {
                        "reference": "Observation/22"
                    }
                }]
            }
        },
        -------------------  BG observation 18/02 9:15    86 mg/dL    Premenstrual Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "16",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "362943005",
                        "display": "Manual method (qualifier value)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-18T09:15:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 86,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/6"
                },
                "related": [{
                    "type": "has-member",
                    "target": {
                        "reference": "Observation/23"
                    }
                }]
            }
        },
        -------------------  BG observation 18/02 18:20   142 mg/dL   Exercise 1  Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "17",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "362943005",
                        "display": "Manual method (qualifier value)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-18T18:20:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 142,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/6"
                },
                "related": [{
                    "type": "has-member",
                    "target": {
                        "reference": "Observation/24"
                    }
                }]
            }
        },
        -------------------  BG observation 19/02 07:00  80 mg/dL    Exercise 2  Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "18",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "362943005",
                        "display": "Manual method (qualifier value)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-19T7:00:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                    "value": 80,
                    "unit": "mg/dL",
                    "system": "http://unitsofmeasure.org",
                    "code": "mg/dL"
                },
                "device": {
                    "reference": "DeviceMetric/6"
                },
                "related": [{
                    "type": "has-member",
                    "target": {
                        "reference": "Observation/25"
                    }
                }]
            }
        },       
        -------------------  BG observation 21/02/2019 11:05   "HI" Guide  ------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "12",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "41653-7",
                        "display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-21T11:05:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "dataAbsentReason": {
                "coding": [
                       {
                        "system": "http://hl7.org/fhir/v3/NullFlavor",
                        "code": "PINF",
                        "display": "positive infinity"
                       }
                    ],
                    "text": "Above sensor range"
                },
                "device": {
                    "reference": "DeviceMetric/4"
                }
            }
        },
        -------------------  BG observation 22/02/2019 12:23  "LO" Guide  ------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "12",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "clinical-observation",
                        "display": "Clinical Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://loinc.org",
                        "code": "41653-7",
                        "display": "Glucose [Mass/volume] in Capillary blood by Glucometer"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-22T12:23:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "dataAbsentReason": {
                "coding": [
                       {
                        "system": "http://hl7.org/fhir/v3/NullFlavor",
                        "code": "NINF",
                        "display": "negative infinity"
                       }
                    ],
                    "text": "Below sensor range"
                },
                "device": {
                    "reference": "DeviceMetric/4"
                }
            }
        },
        ------------------- Stress Guide------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "20",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/health-event-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "observation-health-event",
                        "display": "Health Event Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "405157008",
                        "display": "Personal health status (observable entity)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-16T09:05:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueCodeableConcept": {
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "stress",
                        "display": "Stress"
                    }]
                },
                "device": {
                    "reference": "Device/2"
                }
            }
        },
        ------------------- Illness Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "21",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/health-event-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "observation-health-event",
                        "display": "Health Event Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "405157008",
                        "display": "Personal health status (observable entity)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-17T15:00:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueCodeableConcept": {
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "illness",
                        "display": "Illness"
                    }]
                },
                "device": {
                    "reference": "Device/2"
                }
            }
        },
        ------------------- *Oral Medication Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "22",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/health-event-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "observation-health-event",
                        "display": "Health Event Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "405157008",
                        "display": "Personal health status (observable entity)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-28T15:00:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueCodeableConcept": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "386359008",
                        "display": "Administration of drug or medicament via oral route (procedure)"
                    }]
                },
                "device": {
                    "reference": "Device/2"
                }
            }
        },
        ------------------- Premenstrual Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "23",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/health-event-observation"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "observation-health-event",
                        "display": "Health Event Observation"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://snomed.info/sct",
                        "code": "405157008",
                        "display": "Personal health status (observable entity)"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-18T09:15:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueCodeableConcept": {
                    "coding": [{
                        "system": "http://roche.com/fhir/rdc/cs",
                        "code": "premenstrual",
                        "display": "Premenstrual"
                    }]
                },
                "device": {
                    "reference": "Device/2"
                }
            }
        },
        ------------------- Exercise 1 Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "24",
                "meta": {
                    "profile":  [
                        "http://roche.com/fhir/rdc/StructureDefinition/activity-observation"
                    ]
                },
                "status": "final",
                "category":  [
                    {
                        "coding":  [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "257733005",
                                "display": "Activity (observable entity)"
                            }
                        ]
                    }
                ],
                "code": {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "280147009",
                            "display": "Type of activity (attribute)"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/FEoFwXp-KQ-10"
                },
                "effectiveDateTime": "2019-02-18T18:20:00+02:00",
                "performer":  [
                    {
                        "reference": "Patient/FEoFwXp-KQ-10"
                    }
                ],
                "valueCodeableConcept": {
                    "coding":  [
                        {
                            "system": "http://roche.com/fhir/rdc/cs",
                            "code": "exercise1",
                            "display": "Exercise 1"
                        }
                    ]
                },
                "device": {
                    "reference": "Device/2"
                }
            }
        },
        ------------------- Exercise 2 Manual------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "25",
                "meta": {
                    "profile":  [
                        "http://roche.com/fhir/rdc/StructureDefinition/activity-observation"
                    ]
                },
                "status": "final",
                "category":  [
                    {
                        "coding":  [
                            {
                                "system": "http://snomed.info/sct",
                                "code": "257733005",
                                "display": "Activity (observable entity)"
                            }
                        ]
                    }
                ],
                "code": {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "280147009",
                            "display": "Type of activity (attribute)"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/FEoFwXp-KQ-10"
                },
                "effectiveDateTime": "2019-02-18T18:20:00+02:00",
                "performer":  [
                    {
                        "reference": "Patient/FEoFwXp-KQ-10"
                    }
                ],
                "valueCodeableConcept": {
                    "coding":  [
                        {
                            "system": "http://roche.com/fhir/rdc/cs",
                            "code": "exercise2",
                            "display": "Exercise 2"
                        }
                    ]
                },
                "device": {
                    "reference": "Device/2"
                }
            }
        },
        ------------------- Control solution 2 observation Guide------------------- 
        {
            "resource": {
                "resourceType": "Observation",
                "id": "26",
                "meta": {
         "profile":  [
         "http://roche.com/fhir/rdc/StructureDefinition/observation-calibration"
          ]
        },
                "status": "final",
                "category": [{
                    "coding": [{
                        "system": "http://ncimeta.nci.nih.gov",
                         "code": "C0006751",
                         "display": "Calibration"
                    }]
                }],
                "code": {
                    "coding": [{
                        "system": "http://ncimeta.nci.nih.gov",
                        "code": "C0337438",
                        "display": "Glucose Measurement"
                    }]
                },
                "subject": {
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                },
                "effectiveDateTime": "2019-02-20T14:01:00+02:00",
                "performer": [{
                    "reference": "Patient/abcdefghijklmnopqrstuvxyz0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ"
                }],
                "valueQuantity": {
                     "value": 150,
                     "unit": "mg/dL",
                     "system": "http://unitsofmeasure.org",
                     "code": "mg/dL"
                 },
                "device": {
                    "reference": "DeviceMetric/6"
                }
            }
        }
    ]
}