BG data - expanded FHIR

Sample Scenario

Data Point Value unit
Blood Glucose Value 118 mg/dL
Notes Blood Glucose Observation string
Time Stamp 2020-08-04T15:00:16Z UTC

Observation resource for BG measurement

A reduced format of this resource will be sent from Confidence. See the section BG data - reduced FHIR. The facade needs to further expand that resource by adding the other relavent fields as per our implementation guide. Details are provided in the comments below in green.

Below is an example JSON for the observation resource having bg information in expanded FHIR format

{
	"resourceType": "Observation", 
	"id": "905f85cd-5c11-47a8-8325-f7a176f434b5", //To be managed by FHIRSTACK 
	"meta": {
        "profile":  [  //To be updated by facade - FHIR profile for bg  observation for FHIR internal storage
            "http://roche.com/fhir/rdc/StructureDefinition/bg-observation"
        ]
    },
	"identifier": [ 
		{
			"system": "http://roche.com/fhir/rdc/sid/observation/confidence",
			"value": "<confidence unique identifier>" //retain same identifier received from Confidence reduced FHIR
		}
	],
	"status": "final", //retain same status received from confidence
	"category": [ //To be added by facade - category for bg will always be Clinical Observation
		{
			"coding": [
				{
					"system": "http://roche.com/fhir/rdc/cs",
					"code": "clinical-observation",
					"display": "Clinical Observation"
				}
			]
		}
	],
	"code": {
		"coding": [ //To be added by facade - system, code and display when code.text "BloodGlucoseValue" is received in the reduced FHIR
			{
				"system": "http://snomed.info/sct",
				"code": "362943005",
				"display": "Manual method (qualifier value)"
			}
		],
		"text": "BloodGlucoseValue" //To be retained as is from the reduced format so that on restore it can be sent back
	},
	"subject": {
		"reference": "Patient/2P0tI8p-SF9-6850" //To be added by facade - patient link
	},
	"effectiveDateTime": "2020-08-04T15:00:16Z", //Retain same value from Confidence reduced FHIR
	"performer": [
		{
			"reference": "Patient/2P0tI8p-SF9-6850" //To be added by facade - patient link
		}
	],
	"comment": "Blood Glucose Observation", //Retain same value from Confidence reduced FHIR
	"valueQuantity": {
		"value": "102", //retain value from reduced FHIR
		"unit": "mg/dL", //retain value from reduced FHIR
		"system": "http://unitsofmeasure.org", //To be added by facade - the system and code details for bg
		"code": "mg/dL"
	},
	"device": {
		"reference": "DeviceMetric/id-deviceMetric-smartPhone-bg" //To be added by facade - link to deviceMetric of smart phone capturing bg value .
	},
	"extension": [
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
			"valueString": "+02:00" //retain same data from Confidence reduced FHIR
		},
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-channel",
			"valueString": "<channel-name>" //To be added by facade - fill channel data
		},
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-source",
			"valueString": "<source-name>" //To be added by facade - fill source data
		}
	]
}