1. Introduction
Type 2 diabetes mellitus (T2DM) is a major contributor to atherosclerotic cardiovascular disease, and acute coronary syndrome (ACS) remains one of its most clinically important complications. The global diabetes burden continues to rise, making diabetes-related cardiovascular prevention a central priority for health systems [
1]. In Qatar, T2DM and cardiometabolic risk factors are highly prevalent in primary-care populations, making locally generated evidence on preventable coronary risk particularly relevant [
2,
3].
Low-density lipoprotein cholesterol (LDL-C) is a causal, modifiable driver of atherosclerotic cardiovascular disease [
4]. In people with diabetes, randomized statin-trial evidence shows an approximately one-fifth proportional reduction in major vascular events per 1 mmol/L LDL-C reduction, and broader meta-analytic evidence indicates that cardiovascular benefit is proportional to the absolute LDL-C reduction achieved through statin and selected non-statin pathways [
5,
6]. Contemporary guidelines therefore recommend risk-based LDL-C targets in diabetes, commonly <1.8 mmol/L (<70 mg/dL) for many high-risk primary-prevention patients and <1.4 mmol/L (<55 mg/dL) for secondary-prevention or very-high-risk patients [
7,
8,
9].
Most clinical datasets, however, do not reflect a single static LDL-C exposure. Patients move in and out of target over time because of treatment initiation, treatment intensification, adherence, comorbidity, and testing patterns. A single baseline LDL-C value may therefore misclassify cumulative atherogenic exposure. Although longitudinal evidence suggests that cumulative LDL-C exposure and LDL-C time in target range provide information beyond a one-time LDL-C measure, few studies have jointly evaluated current LDL-C, cumulative burden, and prior time below target in patients with T2DM using incident ACS endpoints in Middle Eastern real-world care settings [
10,
11].
We therefore conducted a large retrospective longitudinal electronic health-record cohort study of patients with T2DM to evaluate the association between time-updated LDL-C and incident ACS. In addition to current LDL-C categories, we prespecified two complementary longitudinal exposure metrics: cumulative LDL-C burden above guideline-relevant thresholds and prior percentage of follow-up time below LDL-C targets. We hypothesized that very high current LDL-C, increasing cumulative LDL-C burden, and lower time below target would be associated with higher incident ACS risk.
2. Materials and Methods
2.1. Study Design and Data Source
We conducted a retrospective longitudinal cohort study using routinely collected electronic health-record data from Qatar’s Primary Health Care Corporation (PHCC). Patients were identified as having T2DM. The dataset included patient-level demographic variables, administrative clinical indicators, serial LDL-C measurements, HbA1c measurements, estimated glomerular filtration rate (eGFR) measurements, diagnosis indicators, and undated cardiometabolic medication-use flags. The administrative censoring date was 31 March 2024. The study is reported in accordance with STROBE guidance for observational studies [
12].
Medication-use dates were not available. Because the medication flags did not identify treatment timing, intensity, adherence, or changes after LDL-C testing, including them as primary model covariates could introduce treatment-exposure misclassification and confounding by indication rather than adequately control treatment confounding. Medication variables were therefore used only for descriptive summaries and as auxiliary variables in multiple imputation; they were not interpreted as time-dependent treatment exposures or causal treatment-effect covariates.
2.2. Source Population and Eligibility Criteria
The source population comprised patients with a valid patient identifier in the T2DM dataset. Patients were eligible for the analytic cohort if they had at least one valid LDL-C measurement between 1 January 2018 and 31 December 2023. LDL-C measurements were considered valid when the value was positive, ≤20 mmol/L, linked to an LDL-C assay, and accompanied by a valid measurement date.
For patients with an ACS diagnosis, LDL-C measurements were eligible only if they occurred strictly before the ACS date. Patients with ACS but without any eligible pre-ACS LDL-C measurement were excluded from the incident-event analytic cohort to preserve temporal ordering between LDL-C exposure and ACS occurrence. Baseline was defined as the date of the first eligible LDL-C measurement. Follow-up started at baseline and ended at the first recorded ACS event or administrative censoring on 31 March 2024, whichever occurred first.
Patients were identified from the T2DM source population; however, the first recorded T2DM diagnosis date was treated as an administrative recorded date rather than an absolute biological onset date. Therefore, the analysis did not require every baseline LDL-C measurement to occur after the first recorded T2DM diagnosis date. Duration of T2DM at baseline was calculated when the first recorded T2DM diagnosis date preceded the baseline LDL-C date and was treated as missing when the recorded diagnosis date occurred after baseline LDL-C.
2.3. LDL-C Exposure Definitions
LDL-C was analyzed longitudinally using time-updated start–stop intervals, as detailed in the
Supplementary Methods. Briefly, serial eligible LDL-C measurements were ordered chronologically within each patient, and the most recent LDL-C value was carried forward until the next eligible LDL-C measurement, incident ACS, or administrative censoring. Interval time was measured in years from baseline LDL-C, and intervals with non-positive duration were not retained.
The primary exposure was current time-updated LDL-C category. LDL-C was categorized as <1.4, 1.4 to <1.8, 1.8 to <2.6, 2.6 to <3.4, 3.4 to <4.9, and ≥4.9 mmol/L. The <1.4 mmol/L category was used as the reference group.
Two prespecified longitudinal LDL-C exposure metrics were evaluated as key secondary analyses. First, cumulative LDL-C burden above prespecified thresholds was calculated before each interval start as the sum of interval-level excess LDL-C exposure, defined as max (LDL-C—threshold, 0), multiplied by interval duration in years. Intuitively, 1 mmol/L-year represents LDL-C exposure 1 mmol/L above a threshold for one year, or 0.5 mmol/L above a threshold for two years. Cumulative burden was evaluated above 1.4, 1.8, 2.6, 3.4, and 4.9 mmol/L and modeled per 1 mmol/L-year higher burden. Second, prior time below LDL-C target was calculated before each interval start as the cumulative percentage of follow-up time from baseline spent below a given threshold; it was not based on a moving window. Time below target was evaluated for LDL-C <1.4, <1.8, and <2.6 mmol/L and modeled per 10% higher prior time below target. Both secondary metrics used only LDL-C exposure history accumulated before the interval start.
2.4. Outcome Ascertainment
The study outcome was incident ACS during follow-up, defined using the first recorded ACS diagnosis date in the electronic health-record data. In the available EHR extract, ACS was provided as an administrative diagnosis/date field representing a composite ACS endpoint. Component-level differentiation of ST-elevation myocardial infarction, non-ST-elevation myocardial infarction, and unstable angina, as well as ICD-code position, hospital-confirmation status, and independent adjudication status, was not available. Patients were classified as having incident ACS if the ACS date occurred after baseline LDL-C and on or before 31 March 2024. Patients without ACS during follow-up were administratively censored on 31 March 2024. In the time-updated interval dataset, the ACS event indicator was assigned to the final interval ending at the ACS date, so each patient could contribute no more than one ACS event.
2.5. Covariates
The primary adjustment set included age, sex, hypertension, chronic kidney disease (CKD), HbA1c, duration of T2DM, and calendar year of baseline LDL-C measurement. Exact birth dates were not available. Age at data extraction was treated as age on 31 March 2024; date of birth was estimated from this value, and age was recalculated at baseline, follow-up end, and each interval start. In time-updated Cox models, age at interval start was modeled per 10-year increase. Sex was modeled as male vs. female.
Hypertension and CKD were defined using administrative clinical indicators. For patients with ACS, pre-ACS indicators were preferentially used when available. HbA1c was selected from valid pre-baseline HbA1c measurements within 365 days before baseline LDL-C. Calendar year was defined as the calendar year of the baseline LDL-C measurement and centered at 2018 for model fitting.
Continuous eGFR was not included in the primary adjustment model because the available eGFR values appeared top-coded or censored around 60 mL/min/1.73 m2; the CKD indicator was retained as the renal-status covariate. Nationality was not included in the primary adjustment set because it was not a core confounder for the LDL-C/ACS question and could create sparse-category instability. Thyroid-stimulating hormone and urine albumin ratio were not included as primary covariates because they were not core confounders and had unfavorable missingness or data-quality characteristics.
2.6. Missing Data and Multiple Imputation
Missingness was assessed at the patient level for candidate covariates. HbA1c and T2DM duration were selected for multiple imputation because they were clinically important primary adjustment covariates with incomplete observed data. The imputation approach assumes that, conditional on observed variables included in the imputation model, missing HbA1c and T2DM duration values were plausibly missing at random. In the final analytic cohort, HbA1c was missing in 23,215 patients (21.86%), and T2DM duration was missing in 36,674 patients (34.54%). Complete primary covariates included age, sex, hypertension, CKD, and calendar year of baseline LDL-C measurement.
Multiple imputation by chained equations was performed using predictive mean matching [
13,
14]. Fifty imputed datasets were generated with 20 iterations and 5 donors. The imputation model included the complete primary covariates and clinically relevant auxiliary variables: incident ACS status, follow-up time, log follow-up time, a survival-hazard auxiliary predictor, baseline LDL-C, number of eligible LDL-C measurements, indicator for at least three LDL-C measurements, time-weighted mean LDL-C, final cumulative LDL-C burden above 1.8 mmol/L, final percentage of time below LDL-C 1.8 mmol/L, dyslipidemia, and undated cardiometabolic medication-use flags. The survival-hazard auxiliary predictor was used only to support imputation and was not interpreted clinically.
Incomplete non-target predictors were excluded from the imputation predictor matrix to prevent residual missingness in completed target variables; specifically, continuous eGFR was excluded from the predictor matrix. No single completed dataset was selected for analysis. Models were fitted separately in each of the 50 completed datasets, and estimates were pooled using Rubin’s rules. Integrity audits confirmed that the multiple-imputation object contained 50 imputations and that no residual missingness remained in HbA1c or T2DM duration across the completed datasets.
2.7. Statistical Analysis
Baseline characteristics were summarized overall and by incident ACS status. Continuous variables were reported as medians with interquartile ranges, and categorical variables were reported as counts and percentages. LDL-C measurement patterns and unadjusted event rates were summarized descriptively; inferential analyses used adjusted time-to-event models.
The primary analysis used Cox proportional hazards regression with start–stop follow-up intervals to estimate the association between current time-updated LDL-C category and incident ACS [
15]. The model included current LDL-C category and was adjusted for age at interval start, male sex, hypertension, CKD, HbA1c, T2DM duration at baseline, and calendar year of baseline LDL-C measurement. Robust standard errors were clustered by patient identifier, and Efron’s method was used for tied event times. Results were reported as hazard ratios (HRs) with 95% confidence intervals (CIs).
Key secondary analyses used the same Cox start–stop framework and adjustment set. The cumulative-burden analysis estimated the HR for ACS per 1 mmol/L-year higher cumulative LDL-C burden above each threshold. The time-in-target analysis estimated the HR for ACS per 10% higher prior follow-up time below each LDL-C target. Secondary analyses were interpreted as supportive longitudinal exposure analyses rather than independent treatment-effect estimates.
2.8. Sensitivity Analyses
Sensitivity analyses evaluated the robustness of the primary time-updated LDL-C category model. First, the primary model was repeated after restricting the cohort to patients with at least three eligible LDL-C measurements. Second, 90-day and 180-day landmark analyses were performed to reduce potential reverse-causation bias from LDL-C measurements obtained close to ACS onset. Third, a complete-case analysis was performed using patients with complete data for all primary covariates. Sensitivity analyses used the same LDL-C category definition, adjustment set, robust patient-level clustering, and tie-handling approach as the primary model.
2.9. Software and Reproducibility
Data preparation, longitudinal interval construction, descriptive tables, and figure generation were performed using Python (3.10.15). Multiple imputation and Cox proportional hazards models were performed using R (version 4.4.2). The analysis pipeline generated patient-level cohort files, start–stop interval files, multiple-imputation audit files, pooled model outputs, publication tables, and journal-ready figures.
4. Discussion
In this large longitudinal electronic health-record cohort of patients with T2DM, incident ACS risk was associated with both current and accumulated LDL-C exposure. The primary time-updated analysis showed that current LDL-C 3.4 to <4.9 mmol/L and ≥ 4.9 mmol/L were associated with higher adjusted ACS risk compared with LDL-C < 1.4 mmol/L, whereas intermediate LDL-C categories below 3.4 mmol/L were not clearly different from the reference category after adjustment. The longitudinal exposure analyses strengthened this pattern: cumulative LDL-C burden above prespecified thresholds was consistently associated with higher ACS risk, and greater prior time below LDL-C targets was associated with lower ACS risk.
These findings are clinically important because the unadjusted LDL-C pattern was non-monotonic. Patients who developed ACS were older and had substantially higher prevalence of hypertension and CKD, and their baseline LDL-C was slightly lower than that of patients without ACS. This pattern is plausible in routine care, where lower LDL-C may reflect older age, established comorbidity, treatment exposure, or more intensive monitoring rather than intrinsically lower cardiovascular risk. The time-updated adjusted models therefore provide a more clinically meaningful assessment than a simple baseline LDL-C comparison.
Our findings are consistent with, but distinct from, randomized LDL-C-lowering evidence. The Cholesterol Treatment Trialists’ diabetes meta-analysis showed a 21% proportional reduction in major vascular events per 1 mmol/L LDL-C reduction in people with diabetes, and a large JAMA meta-analysis found that statins and selected non-statin LDL-lowering interventions acting through LDL-receptor pathways produced similar relative reductions per unit of LDL-C lowering [
5,
6]. Our study was observational and should not be interpreted as estimating treatment effects. Rather, it shows that in real-world T2DM care, patients with greater longitudinal LDL-C exposure have higher incident ACS risk, while those spending more time below LDL-C targets have lower risk.
The results also align with emerging evidence that cumulative lipid exposure matters. A pooled cohort study in JAMA Cardiology found that cumulative LDL-C exposure and time-weighted average LDL-C across young adulthood and middle age were associated with future coronary heart disease even after accounting for midlife LDL-C [
10]. More recent work on LDL-C time in target range similarly suggests that the proportion of time spent within LDL-C targets may predict cardiovascular outcomes [
11]. Our study extends this concept to a large T2DM cohort with incident ACS as the outcome, using clinically interpretable LDL-C categories, cumulative burden thresholds, and time-below-target metrics.
The guideline context is direct. ADA recommendations for diabetes and recent ACC/AHA dyslipidemia guidance emphasize risk-based LDL-C targets, including <70 mg/dL (<1.8 mmol/L) for many high-risk primary-prevention patients and <55 mg/dL (<1.4 mmol/L) for secondary-prevention or very-high-risk patients [
7,
8]. The 2023 ESC diabetes guideline similarly uses LDL-C targets linked to cardiovascular risk categories [
9]. Our findings do not revise these thresholds; instead, they support the practical principle that sustained time below target and reduced cumulative LDL-C burden may be important complements to a single LDL-C value.
Several strengths support the credibility of this analysis. The cohort was large, follow-up was longitudinal, and LDL-C exposure was restricted to measurements occurring before ACS, preserving temporal ordering. The start–stop Cox structure allowed LDL-C status to change over time, and secondary analyses captured cumulative burden and prior time below target before each risk interval. Multiple imputation was used for clinically relevant incomplete covariates, and sensitivity analyses were directionally consistent after restriction to patients with at least three LDL-C measurements, landmark exclusion of early events, and complete-case analysis. Important limitations should also be acknowledged. ACS was identified from an administrative EHR diagnosis/date field and was not independently adjudicated; component ACS subtypes, diagnostic coding position, and hospital-confirmation details were not available in the extract. Patients with ACS but no eligible pre-ACS LDL-C were excluded, which was necessary for temporal validity but may limit generalizability to patients with less lipid testing before their event.
Residual confounding is possible because observational EHR data do not fully capture smoking, lifestyle, family history, medication adherence, treatment intensity, or non-PHCC care. Medication-use flags were undated; because timing, intensity, adherence, and treatment changes were unavailable, they were not modeled as time-dependent treatment exposures or primary treatment-effect covariates, leaving potential treatment-related confounding. Surveillance and healthcare-utilization bias may also persist, because patients with more frequent LDL-C testing may differ systematically in comorbidity, treatment intensity, healthcare engagement, and baseline cardiovascular risk; the sensitivity analysis restricted to patients with at least three LDL-C measurements reduces but does not eliminate this concern. The LDL-C <1.4 mmol/L reference category should therefore be interpreted cautiously, as some patients in this group may have had higher baseline cardiovascular burden, intensive treatment exposure, or reverse-risk characteristics not fully captured in routine EHR data.
Continuous eGFR could not be included because the available eGFR data appeared top-coded or censored, so CKD was used as the renal-status covariate. Duration of T2DM depended on the recorded diagnosis date and may not represent the true biological onset of diabetes. HbA1c and T2DM duration were multiply imputed under a missing-at-random assumption conditional on observed predictors in the imputation model; although imputation audits and complete-case analyses were reassuring, missingness, particularly for T2DM duration, remains a potential source of uncertainty. Overall, these findings support a shift from viewing LDL-C control as a single laboratory value toward viewing it as a longitudinal exposure in patients with T2DM. At the health-system level, cumulative LDL-C burden and time below target may be useful quality-improvement metrics for identifying patients with sustained residual coronary risk.