The objective of the study was to assess the efficacy and cost-effectiveness of a combined diet and physical activity intervention implemented before , during and after pregnancy in a primary health care setting for preventing gestational diabetes , later type 2 diabetes and other metabolic consequences .