A method for measuring a patient's glucose levels, comprising: - receiving (54) from the patient a goal for a structured test; - identify (55) a test template corresponding to the objective from a plurality of predefined test templates, in which the test template is composed of multiple sample instances over a period of time, the multiple sampling instances being a glucose measurement or a pair of blood glucose measurements before and after an event, and the multiple sample instances that provide a group of samples; - present (56) to the patient with a plurality of contextual criteria for the identified test template; - receive (57) the selection of one or more contextual criteria associated with the event by the patient of the plurality of contextual criteria; - construct (58) a structured test that includes the contextual criteria selected by the patient and in accordance with the identified test template; and - administer the structured test to the patient, including - suggesting the patient provide a blood sample to a glucose meter; - collect data that includes blood glucose measurement data; - present a question to the patient for each contextual criterion; - receive answers to questions from the patient; and - associate the responses with the data collected during the structured test; so that the steps of the method are implemented by a computer processor of a device; Characterized because - the plurality of contextual criteria presented to the user that are a subset of contextual criteria that are filtered or preselected by the computer processor from a large group of contextual criteria taking into account the objective for the structured test; - determine a variability of the sample group; and - when, while the structured test is administered to the user, the variability is less than a predetermined threshold that allows a modification of the contextual criteria and when, while the structured test is administered to the user, the variability is greater than