PurposePrimary care electronic health records are increasingly used to estimate the occurrence of osteoarthritis (OA). We aimed to estimate the extent and trend over time of underrecording of severe OA patients in UK primary care electronic health records using first primary total hip and knee replacements (THR/TKR) – >90% of which are performed for OA – as the reference population.Patients and methodsWe identified patients with a first primary THR or TKR recorded in the UK Clinical Practice Research Datalink between 2000 and 2015. We then searched for a diagnostic/problem code for OA up to 10 years prior to THR/TKR using 3 definitions: “diagnosed OA (joint-specific),” “diagnosed OA (any joint),” “clinical OA” (diagnosed OA or relevant peripheral joint pain symptom code).ResultsAmong 34,299 THR patients identified, 28.1%, 53.4%, and 74.4% had a prior record of diagnosed OA (hip), diagnosed OA (any), and clinical OA, respectively. Among 47,588 TKR patients, the corresponding figures were, 25.5% (diagnosed OA [knee]), 43.7%, and 74.8%. In the UK Clinical Practice Research Datalink, the proportion of patients with prior recorded OA decreased between 2000 and 2015.ConclusionAn increasing trend of underrecording of OA or joint pain among patients with THR or TKR (severe OA patients) between 2000 and 2015 was identified. An underestimate health care demand could be derived based on consultation incidence and prevalence of OA from electronic health record data that relies on osteoarthritis diagnostic codes. Further studies are warranted to investigate the validity of OA or joint pain recorded in primary care settings, which might be used to correct the consultation incidence and prevalence of OA.