EMWR - reduced FHIR

Sample Scenario

Data Point Value unit Comment
SessionId AAAA
InstanceId EEMMWW mg/dL
MessageSource 2 Possible values are 0 = None, 1 = Application, 2 = CGM
EventName SENSOR_CALIBRATION_NEEDED String Possible values are SENSOR_TEMP_HIGH; SENSOR_TEMP_LOW; SENSOR_CONNECTION_LOST; SENSOR_BATTERY_LOW; SENSOR_CALIBRATION_NEEDED; SENSOR_CALIBRATION_FAILED; SENSOR_CALIBRATION_RECOMMENDED; SENSOR_MALFUNCTION; SENSOR_WARMING_UP; SESSION_ENDED; SIGN_IN_REQUIRED; HYPER_WARNING; HYPO_WARNING; HYPO_WARNING_URGENT; MARKETING_1; MARKETING_2
TimeOffsetOccurance 200 min
Acknowledged True Boolean Possible values are True or False
SnoozeWakeupTime 2020-08-05T15:10:16Z UTC
TimeWhenProcessed 2020-08-05T15:15:16Z UTC
Type Warning String Possible values are Error; Maintenance; Warning; Reminder; Message
Time Stamp 2020-08-04T15:00:16Z UTC

Note: 'Time Stamp' data point is added to the list of data points as we need to capture the time when the EMWR occured, Comments are provided in green in the JSON below

Below is an example JSON for the EMWR Observation resource in reduced FHIR format


{
	"resourceType": "Observation",
	"meta": { //Should be sent by Confidence saying which profile the below resource conforms to. It is always the same for a EWM Observation resource
		"profile": [
			"http://roche.com/fhir/rdc/StructureDefinition/observation-EWM-reduced" //always same for resourceType Observation
		]
	},
	"identifier": [
		{
			"system": "http://roche.com/fhir/rdc/sid/observation/confidence",
			"value": "EEMMWW"// Unique identifier from confidence
		}
	],
	"status": "final", //always final for EWM Observation
	"code": {
		"text": "Warning"  //static text describing that the resource is for a Warning type EWM Observation
	},
	"effectiveDateTime": "2020-08-04T15:00:16Z", //Timestamp of the EWMR in zulu/UTC
	"valueCodeableConcept": {
		"text": "SENSOR_CALIBRATION_NEEDED" //static text describing the EMWR event
	},
	"related": [
		{
			"type": "derived-from",
			"target": {
				"display": "AAAA"    //SessionID - unique identfier for the session to which this EMWR event is recorded
			}
		}
	],
	"device": {
		"display": "2" //static value describing the origin of source event
	},
	"extension": [
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/time-offset",
			"valueQuantity": {
				"value": 200, //time offset the EMWR occurred in relation to the CGM session start time in minutes
				"unit": "min"
			}
		},
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/ewm-acknowledged",
			"valueBoolean": "true" // acknowledgment of the EMWR
		},
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/snooze-wakeup-time",
			"valueDateTime": "2020-08-05T15:10:16Z" // time at which the EMWR would fire again if snoozed 
		},
		{
			"url": "http://roche.com/fhir/rdc/StructureDefinition/time-when-processed",
			"valueDateTime": "2020-08-05T15:15:16Z" // time at which the EMWR was processed by the user.
		},
		{
			"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 captured 
		}
	]
}

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