Viewer

org.bluetooth.characteristic.glucose_measurement_context

Last Modified: 2012-02-27 Approved: Yes

Name: Glucose Measurement Context

Type: org.bluetooth.characteristic.glucose_measurement_contextDownload / View

Assigned Number: 0x2A34

Summary:

The Glucose Measurement Context characteristic is a variable length structure containing a Flags field, a Sequence Number field and, based upon the contents of the Flags field, may contain a Carbohydrate ID field, Carbohydrate field, Meal field, Tester-Health field, Exercise Duration field, Exercise Intensity field, Medication ID field, Medication field and a HbA1c field.

Value Fields

Names Field Requirement Format Minimum Value Maximum Value Additional Information
Flags
Information:
These flags define which data fields are present in the Characteristic value
Mandatory
8bit N/A N/A
Bit Field
Bit Size Name
Definition
Key Value Requires
0 1 Carbohydrate ID And Carbohydrate Present
0 False
1 True C2
1 1 Meal Present
0 False
1 True C3
2 1 Tester-Health Present
0 False
1 True C4
3 1 Exercise Duration And Exercise Intensity Present
0 False
1 True C5
4 1 Medication ID And Medication Present
0 False
1 True C6
5 1 Medication Value Units
0 kilograms C8
1 liters C9
6 1 HbA1c Present
0 False
1 True C7
7 1 Extended Flags Present
0 False
1 True C1
Sequence Number
Mandatory
uint16 N/A N/A None
Extended Flags
Information:
C1: Field exists if the key of bit 7 of the Flags field is set to 1
C1
8bit N/A N/A
Bit Field
Bit Size Name
Definition
Key Value
0 8 Reserved for future use
Carbohydrate ID
Information:
C2: Field exists if the key of bit 0 of the Flags field is set to 1
C2
uint8 N/A N/A
Enumerations
Key Value
0 Reserved for future use
1 Breakfast
2 Lunch
3 Dinner
4 Snack
5 Drink
6 Supper
7 Brunch
8 - 255 Reserved for future use
Carbohydrate - units of kilograms
Information:
C2: Field exists if the key of bit 0 of the Flags field is set to 1
Unit:
org.bluetooth.unit.mass.kilogram
Exponent: Decimal, -3
C2
SFLOAT N/A N/A None
Meal
Information:
C3: Field exists if the key of bit 1 of the Flags field is set to 1
C3
uint8 N/A N/A
Enumerations
Key Value
0 Reserved for future use
1 Preprandial (before meal)
2 Postprandial (after meal)
3 Fasting
4 Casual (snacks, drinks, etc.)
5 Bedtime
6 - 255 Reserved for future use
Tester
Information:
C4: Field exists if the key of bit 2 of the Flags field is set to 1
C4
nibble N/A N/A
Enumerations
Key Value
0 Reserved for future use
1 Self
2 Health Care Professional
3 Lab test
15 Tester value not available
4 - 14 Reserved for future use
Health
Information:
C4: Field exists if the key of bit 2 of the Flags field is set to 1
C4
nibble N/A N/A
Enumerations
Key Value
0 Reserved for future use
1 Minor health issues
2 Major health issues
3 During menses
4 Under stress
5 No health issues
15 Health value not available
6 - 14 Reserved for future use
Exercise Duration
Information:
C5: Field exists if the key of bit 3 of the Flags field is set to 1
Unit:
org.bluetooth.unit.time.second
C5
uint16 N/A N/A
Enumerations
Key Value
65535 Overrun
0 - 65534 Exercise Duration in seconds
Exercise Intensity
Information:
C5: Field exists if the key of bit 3 of the Flags field is set to 1
Unit:
org.bluetooth.unit.percentage
C5
uint8 N/A N/A None
Medication ID
Information:
C6: Field exists if the key of bit 4 of the Flags field is set to 1
C6
uint8 N/A N/A
Enumerations
Key Value
0 Reserved for future use
1 Rapid acting insulin
2 Short acting insulin
3 Intermediate acting insulin
4 Long acting insulin
5 Pre-mixed insulin
6 - 255 Reserved for future use
Medication - units of kilograms
Information:
C6: Field exists if the key of bit 4 of the Flags field is set to 1, C8: Field exists if the key of bit 5 of the Flags field is set to 0
Unit:
org.bluetooth.unit.mass.kilogram
Exponent: Decimal, -6
C6
C8
SFLOAT N/A N/A None
Medication - units of liters
Information:
C6: Field exists if the key of bit 4 of the Flags field is set to 1, C9: Field exists if the key of bit 5 of the Flags field is set to 1
Unit:
org.bluetooth.unit.volume.litre
Exponent: Decimal, -3
C6
C9
SFLOAT N/A N/A None
HbA1c
Information:
C7: Field exists if the key of bit 6 of the Flags field is set to 1
Unit:
org.bluetooth.unit.percentage
C7
SFLOAT N/A N/A None

Note:

The fields in the above table, reading from top to bottom, are shown in the order of LSO to MSO, where LSO = Least Significant Octet and MSO = Most Significant Octet.

Where fields with the format ‘nibble’ have been defined in the above table, the fields are shown in the order of Least Significant Nibble first, when reading the table from top to bottom. Where the characteristic definition contains two adjacent nibbles and the service specification has defined that that pair of nibbles comprise a single octet, the Least Significant Nibble means the four bits numbered 0, 1, 2 and 3 of the octet and the Most Significant Nibble means the four bits numbered 4, 5, 6 and 7 of that octet.