This paper describes the architecture of, and the main reasoning methods involved in, a computer system developed to assist in diabetic management. The system integrates (i) a database module used for blood glucose monitoring, (ii) an interpreter module used to analyse the adequacy of diet and insulin treatment for diabetics, and (iii) an advisory module suggesting alterations in diet and/or insulin regimen in order to improve glycaemic control. The analysis of blood glucose profiles and hypoglycaemic episodes, as well as the suggestions for altered diet and insulin therapy, are based on qualitative and quantitative models of insulin effect and carbohydrate absorption using meal-time related glucose balance and distance from the preselected target (DFT) glucose values as focal concepts in the reasoning process. During the sequence of consultations with the system, a dynamic model of carbohydrate metabolism is gradually adjusted in order to constitute an appropriate simulation for the specific patient. This model is used to confirm the suggestions made by the ADVISOR program and to assist the health care professional in selecting the best control action by predicting the blood glucose profiles resulting from alternative control policies.