CGM Session - reduced FHIR

Sample Scenario

Data Point Value unit
SessionId AAAA
SessionStatus Started possible values: NotConfigured, Started, Stopped, WarmingUp, UnPaired
MacAddress Note: See the section CGM Sensor.
As it is relevant to the sensor it is included in the DeviceComponent resource. There is an extension in the DeviceComponent resource that holds the Session ID.
Calculated Session start time 2020-08-03T05:05:00Z UTC
SessionStartTime (Pairing Date) 2020-08-03T05:00:00Z UTC
CGM Session Run Time 5 hours
CGM session end time 2020-08-03T10:00:00Z UTC
NotificationAlreadyScheduled true bool

Note: Comments are provided in green in the JSON below
Paring Date will be same as the session start time

When a session just starts the resource is sent to FHIR with only the start timestamp. Once the session has ended the resource with the same identifier has to be sent again with also the end time

	{
		"resourceType": "Observation",    //FHIR resource type
		"meta": {  //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a DeviceComponent resource
			"profile": [
				"http://roche.com/fhir/rdc/StructureDefinition/miscellaneous-observation-reduced"   
			]
		},
		"identifier": [
		{
				"system": "http://roche.com/fhir/rdc/sid/observation/confidence", //always same for resourceType Observation
				"value": "AAAA"   //Session ID which will be unique for that session
			}
		],
		"status": "final",     //always final 
		"code": {
			
					"text": "CGMSession"    //text describing that this observation is for a CGM session
			
		},
		 "effectivePeriod": {
						"start": "2020-08-03T05:00:00Z",    //SessionStartTime
						"end": "2020-08-03T10:00:00Z"       //CGM session end time. When the CGM session will be first shared if the end time is now known, only the start can be sent and once the session has ended the resource can be sent again with the end time. 
					},
		 "extension":  [
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/session-run-time",  
			"valueQuantity": {
					"value": 5,      //runtime in hours
					"unit": "h"
				}
		},
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/calculated-session-start-time",
			"valueDateTime": "2020-08-03T05:05:00Z"        //Calculated Session start time
		},
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/session-status",
			"valueString": "Started"   //session status
		},
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/notification-scheduled-status",
			"valueBoolean": true      //notification already scheduled boolean
		},
		{
		"url": "http://roche.com/fhir/rdc/StructureDefinition/patient-timezone",
			"valueString": "+02:00" //timezone of the patient when the CGM reading was taken. ** Refer timezone extension page for possible combination of timezone displayed.
	}
	]
	}
	


** Refer timezone extension page HERE for possible combination of timezone formats.