CGM Measurement data - reduced FHIR

   

Case 1 - With valid CGM, trend and quality values

Sample Scenario

Data Point Value unit
CGM UUID BBBB
SessionId AAAA
CGM Glucose Concentration 118 mg/dL
CGM Trend Information -0.5 mg/dL/min
CGM Quality 90 %
Time Offset 200 min
Time Stamp 2020-08-04T15:00:16Z UTC
Flags 32 - BatteryEmpty When more than 1 flag is set the sum of those integers is sent. Possible values are LO = 1; HI = 2 ; TempHI = 4 ; TempLO = 8 ; DeviceFault = 16 ; BatteryEmpty = 32 ; SensorMalfunction = 64 ; CalibrationRequired = 128 ; RateOfChangeMin = 256 ; RateOfChangeMax = 512 ; InvalidValue = 1024 ; TypeIncorrectForDevice = 2048 ; DeviceSpecificAlert = 4096 ; CalibrationNotAllowed = 8192 ; CalibrationRecommended = 16384 ; SessionStopped = 32768 ; SensorRateDecreaseExceeded = 65536 ; SensorRateIncreaseExceeded = 131072 ;

Note: Comments are provided in green in the JSON below


{
	"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/vitalsigns-observation-reduced"   
			]
		},
	"identifier": [
		{
			"system": "http://roche.com/fhir/rdc/sid/observation/confidence",//always same for resourceType Observation
			"value": "BBBB"   //CGM UUID - unique-identifier-for-the-cgm-reading
		}
	],
	"status": "final",     //always final for CGM
	"code": {
			"text": "CGMGlucoseConcentration"      //static text describing that the resource is for a CGM measurement
	},
	"effectiveDateTime": "2020-08-04T15:00:16Z",     //Timestamp of the measurement in zulu/UTC
	"valueQuantity": {
		"value": 118,        //CGM value in mg/dL
		"unit": "mg/dL"
	},
	"component": [
		{
			"code": {
				"text": "CGMTrendInformation"      //static text describing that the value is for a CGM trend/rate of change
			},
			"valueQuantity": {
				"value": -0.5,     //CGM trend in mg/dL/min
				"unit": "mg/dL/min" 
			}
		},
		{
			"code": {
				"text": "CGMQuality"      //static text describing that the value is for CGM quality
			},
			"valueQuantity": {
				"value": 90,   //CGM quality in %
				"unit": "%"
			}
		}
	],
	 "related":  [
				{
					"type": "derived-from",
					"target": {
						"display": "AAAA"   //SessionID - unique identfier for the session
					}
				}
			],
	 "extension":  [
	{
		"url": "http://roche.com/fhir/rdc/StructureDefinition/time-offset",  
		"valueQuantity": {
				"value": 200,      //Time offset from the start of the session in minutes
				"unit": "min"
			}
	},
	{
		"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.
	},
	{
		"url": "http://roche.com/fhir/rdc/StructureDefinition/flags",
		"valueString": "32"        //sum of flags
	}
]
}
}


** Refer timezone extension page for possible combination of timezone displayed HERE

Case 2 - With NaN for CGM value and NULL for trend and quality

Sample Scenario

Data Point Value unit
CGM UUID CCCC
SessionId AAAA
CGM Glucose Concentration NaN
CGM Trend Information NULL
CGM Quality NULL
Time Offset 200 min
Time Stamp 2020-08-04T15:15:16Z UTC
Flags 160 ( 32 - BatteryEmpty ; 128 - CalibrationRequired ) When more than 1 flag is set the sum of those integers is sent. Possible values are LO = 1; HI = 2 ; TempHI = 4 ; TempLO = 8 ; DeviceFault = 16 ; BatteryEmpty = 32 ; SensorMalfunction = 64 ; CalibrationRequired = 128 ; RateOfChangeMin = 256 ; RateOfChangeMax = 512 ; InvalidValue = 1024 ; TypeIncorrectForDevice = 2048 ; DeviceSpecificAlert = 4096 ; CalibrationNotAllowed = 8192 ; CalibrationRecommended = 16384 ; SessionStopped = 32768 ; SensorRateDecreaseExceeded = 65536 ; SensorRateIncreaseExceeded = 131072 ;

Note: Comments are provided in green in the JSON below


{
		"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/vitalsigns-observation-reduced"   
			]
		},
		"identifier": [
			{
				"system": "http://roche.com/fhir/rdc/sid/observation/confidence", //always same for resourceType Observatio
				"value": "CCCC"  //CGM UUID - unique-identifier-for-the-cgm-reading
			} 
		],
		"status": "final",       //always final for CGM
		"code": {
			"text": "CGMGlucoseConcentration"      //static text describing that the resource is for a CGM measurement
		},
		"effectiveDateTime": "2020-08-04T15:15:16Z",     //Timestamp of the measurement in zulu/UTC
		"dataAbsentReason": {
			"text": "NaN"      //text describing that the value of CGM is NaN
		},
		"related": [
			{
				"type": "derived-from",
				"target": {
					"display": "AAAA"  //SessionID - unique identfier for the session to which this CGM reading belongs
				}
			}
		],
		"extension": [
			{
				"url": "http://roche.com/fhir/rdc/StructureDefinition/time-offset",
				"valueQuantity": {
					"value": 200,    //Time offset from the start of the session in minutes
					"unit": "min"
				}
			},
			{
				"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 
			},
			{
				"url": "http://roche.com/fhir/rdc/StructureDefinition/flags",
				"valueString": "160"   //sum of flags
			}
		]
	}



** Refer timezone extension page for possible combination of timezone displayed HERE