Are Care Gaps Coding Gaps? Measuring Guideline Adherence When Eligibility Is Misrecorded

Health systems judge themselves by "care gaps": the share of patients who qualify for a proven treatment but do not receive it. These gaps are almost always computed from billing codes. A patient counts as eligible for kidney- and heart-protective diabetes drugs only if someone billed a heart failure or kidney disease code. Billing codes, however, are recorded for reimbursement, not biology. Chronic secondary conditions are often left off the bill. Patients who see clinicians more often pile up more codes whether or not they are sicker. So the same forces that drive prescribing, namely visit intensity and how many conditions a patient has, also decide who appears eligible in the first place. If that is true, some well-publicized care gaps, and the disparities reported inside them, may partly be artifacts of coding.

We propose to measure guideline adherence with eligibility treated as an unknown quantity to be estimated, not a fact read off the bill. The method has three parts. Phenome-wide probabilistic phenotyping, borrowed from the methods used to scan genetic variants across all diseases, gives each patient a probability of being eligible. A small chart-reviewed validation sample calibrates those probabilities. Multiple imputation then carries the remaining uncertainty into adherence rates, disparity estimates, and a causal estimate of what the gap costs patients. The test case is a published finding that may be a coding artifact: the "inverse care gradient" in organ-protective diabetes therapy.

The finding we want to test

Suliman et al. used a hospital FHIR data lake to study 19,684 patients with type 2 diabetes and heart, vascular, or kidney disease. Using ICD-10 codes, medication codes, and labs, they found that guideline-adherent use of SGLT2 inhibitors or GLP-1 receptor agonists rose from 10.2% to 48.7% between 2019 and 2024. Women had lower odds of adherent treatment (OR 0.76). Adherence was lowest in patients coded with kidney disease alone (32.5%) and highest in those with all three comorbidities (63.9%). This paper motivates the proposal, because it is exactly the kind of gap measurement that takes codes at face value. The misclassification literature supplies the reason for doubt. Secondary chronic conditions are routinely omitted from bills during unrelated hospitalizations (Feng et al.). Complications are under-recorded on death certificates (Guan et al.). Common chronic diseases get lumped into generic or wrong codes (Abend et al.). Registries lack codes for appropriate conservative care, so watchful waiting is counted as no care (Ward et al.).

This kind of bias can push estimates in either direction. Suppose heart failure is under-coded in lightly followed patients. Then the "kidney disease alone" group contains hidden multimorbid patients, and the gradient could be smaller or larger than reported, depending on who those hidden patients are and whether they were treated. The sex disparity could also partly reflect who receives which codes. Nobody in the literature we have has checked.

Core claim

Care-gap estimates built from billing codes suffer from differential misclassification of eligibility. Differential means coding accuracy varies with healthcare use and multimorbidity, which are the same variables the gap is stratified on. This kind of error can create, hide, or reverse subgroup disparities rather than simply diluting them toward zero. Ordinary sensitivity analyses that assume one fixed error rate cannot detect it.

We claim that this bias can be estimated and corrected at scale. The approach combines probabilistic phenotypes that explicitly adjust for healthcare use with a validation sample of a few hundred to a thousand charts, sampled across levels of use. We will also test whether the corrected gap changes the substantive conclusions: the size of the inverse gradient, the sex odds ratio, and the estimated harm of non-treatment.

Research program

The first component builds the eligibility model. We reuse the approach of MAP. For each phenotype, MAP fits an unsupervised mixture of count models over ICD codes and disease mentions extracted from clinical notes, adjusts for note count as a measure of healthcare use, and returns a probability of disease. Across 16 phenotypes it reached an average AUC of 0.943, matching manual feature curation and improving on ICD codes alone by 0.062.

We extend MAP in two ways. It currently considers only patients who already carry at least one ICD code, so the never-billed are invisible to it. We add lab trajectories (repeated eGFR, natriuretic peptides where present, HbA1c) and medication histories as additional channels, which lets us reach patients with no code at all. We also stop treating healthcare use as a nuisance to adjust away. Instead we model coding sensitivity as an explicit function of prior visit intensity. This turns the differential error into a quantity we estimate rather than an assumption.

The second component is a stratified validation sample. Clinicians will review charts for heart failure, atherosclerotic cardiovascular disease, and chronic kidney disease. The sample is oversampled in the lowest third of healthcare use and among women, where we expect coding behavior to differ most. We size it at 750–1,000 patients. That is the range at which Shepherd et al. found their time-discretized multiple imputation method began to beat analysis of the validated records alone.

Their method validates a subsample, models true values given recorded ones, and imputes the rest. They showed that one misrecorded date can corrupt cohort inclusion, baseline covariates, and the outcome at once. In their HIV cohort, 41% of treatment start dates and 13% of inclusion decisions were wrong, and the hazard ratio moved from 0.60 under validated data to 0.74 under naive data. We reuse their imputation approach, conditioning on the MAP-style probabilities. The imputed outputs are eligibility status and eligibility onset date, because a misdated onset shifts who counts as untreated in a given calendar year.

The third component propagates the correction into two estimates. The descriptive one is adherence by year, sex, and comorbidity pattern, re-estimated across imputations. The causal one asks what non-adherence does to patients. Here we follow Doutreligne et al., who emulate a target randomized trial and estimate effects with augmented inverse propensity weighting (AIPW). AIPW is a "doubly robust" estimator that stays consistent if either the treatment model or the outcome model is right. On MIMIC-IV it recovered the null result of the ALBIOS trial (OR ~0.93) and showed how poorly chosen time windows create immortal time bias. Like the related Dynamic Survival Transformer, that work assumes eligibility and outcomes are recorded correctly. We emulate a trial of SGLT2 inhibitor initiation among eligible patients, with heart failure hospitalization and kidney decline as outcomes. The emulation is run once with code-defined eligibility and once with imputed eligibility, so that the distortion of the estimated cost of the gap can be measured directly.

The fourth component is a genetic check on differential misclassification that needs no chart review. Germline genotype is fixed at conception, so it cannot be caused by how often someone visits a clinic. In a biobank with genotypes, such as the VA Million Veteran Program, a polygenic risk score for heart failure or kidney disease should relate to true disease the same way regardless of how often the patient is seen. If coding were non-differential, the ratio of the score's association with coded disease to its association with imputed disease would be roughly flat across strata of prior visit intensity. If that ratio drifts, it points to differential coding. This is the PheWAS role in the proposal: the score-test, case-imbalance-calibrated regression machinery reviewed in Scalable and Robust Regression Methods for PheWAS makes the check cheap to run across every phecode, not only the three eligibility conditions.

We are not claiming that genetics should guide prescribing. Nothing in the file tests that, and we do not either. To limit collider bias, we measure visit intensity before the eligibility window and restrict it to non-cardiorenal visits. We then check this genetic diagnostic against the chart-reviewed sample before trusting it anywhere else.

Baselines

The naive reference is the code-based adherence analysis of Suliman et al., reimplemented on our data. Eligibility comes from ICD-10 codes plus their lab rules, and subgroup differences come from multivariable logistic regression. Their reported numbers are 48.7% adherence in 2024, sex OR 0.76, and 32.5% versus 63.9% across the comorbidity gradient. These are the published values we are asking whether to revise. They are not a performance target, because no ground truth exists for them.

The strongest existing phenotyping method is MAP with its reported 0.943 average AUC. We run it with its published configuration on the same patients and notes. Eligibility is set either by thresholding its probability or by weighting each patient by it. If MAP alone recovers chart-reviewed adherence and disparity estimates as well as our full pipeline does, our extensions are not needed.

A third baseline defines eligibility from labs alone, for example two eGFR values below 60 at least 90 days apart for kidney disease.

A fourth baseline is complete-case analysis restricted to the validation sample, as in Shepherd et al. It is unbiased but low-powered.

Two ablations isolate the key ingredient. One removes the modeling of sensitivity as a function of healthcare use, so misclassification is treated as non-differential. The other removes the imputation step and simply plugs in MAP probabilities.

All methods share the same patients, time windows, and covariate set. The validation sample is split so that half calibrates the models and half is held out for scoring. No method sees the held-out labels.

Beating the baselines means two things on the held-out chart-reviewed half. First, lower bias and correct 95% confidence interval coverage for adherence within each subgroup and for the sex odds ratio, compared with naive codes and with MAP alone. Second, narrower intervals than the complete-case analysis. No reported result was found on Lacuna for misclassification-corrected care-gap estimation, so there is no prior number to beat on this exact task.

Why not just…?

Why not just define eligibility from lab values? For kidney disease this may genuinely work as well as our method, and we will report that honestly. The lab baseline exists for exactly that reason. Heart failure and atherosclerotic disease, however, have no routine lab that defines them. The comorbidity gradient depends on those two conditions, so lab-only eligibility cannot settle the question. The held-out chart comparison will show condition by condition where labs are enough.

Why not just use MAP probabilities as they are? MAP adjusts for note count but treats it as a nuisance variable. It also excludes patients who never received a qualifying ICD code, and the never-coded are precisely the patients who could be hiding inside a care gap. The ablation that plugs in MAP probabilities without utilization-dependent sensitivity or imputation tests directly whether these extensions matter. If it ties the full pipeline, we will drop them.

Why not just run a quantitative bias analysis with assumed sensitivity and specificity? Assuming a single error rate builds non-differential misclassification into the analysis. That assumption is exactly what the core claim disputes, and it is the failure mode the misclassification literature flags. Once the validation sample exists, we can use the sensitivities it estimates within each stratum of healthcare use. That version is a fair and much cheaper competitor, and we include it as an additional baseline.

Why not just analyze the chart-reviewed sample? It is unbiased. But Shepherd et al. show that its precision falls behind imputation once the validated sample reaches 750–1,000 records. A care gap stratified by sex and comorbidity pattern needs that precision, because the subgroups are small. The comparison of interval widths will tell us how much precision the extra machinery buys.

Decisive checks

Three results would decide whether the idea holds.

The first is whether the inverse care gradient and the sex odds ratio, re-estimated with imputed eligibility, fall outside the intervals of the naive estimates. If both survive correction, we will report that the published gap is real, which is itself a useful finding for implementation science.

The second is whether the polygenic-score ratio, the genetic diagnostic, agrees in direction with the misclassification measured from charts across strata of healthcare use. If it does, the cheap genetic check can extend misclassification audits to conditions and sites without chart review.

The third is whether the estimated effect of SGLT2 inhibitor initiation from the target trial emulation changes materially when eligibility is corrected. The proposal treats a shift in that effect as the clearest evidence that coding error changes what a health system would conclude from its own care-gap numbers.