Skip to main content

Linking routinely collected social work and health data to enable monitoring of the health and healthcare of children in state care looked after children in Scotland: a national demonstration project The University of Aberdeen Research Portal

Linking routinely collected social work and health data to enable monitoring of the health and healthcare of children in state care looked after children in Scotland: a national demonstration project The University of Aberdeen Research Portal

In this retrospective study, there was no single predefined “baseline” or “assessment” date for each individual, due to the longitudinal and irregular nature of the social care records. (3) All-Cause Mortality, determined from the recorded year of death in the demographic record. This endpoint therefore represents hospital admissions recorded within the social care dataset, rather than complete ascertainment of all NHS emergency or elective admissions. Individuals were excluded if they were younger than 18 years at their first recorded entry or had demographic-only records.

Linking routinely collected social work

T1 – Linking routinely collected social work and health data to enable monitoring of the health and healthcare of children in state care (‘looked after children’) in Scotland Together, these findings indicate that routinely collected social care records can support repeated risk prediction across multiple outcomes, while also highlighting important differences in predictability between future care needs, hospital admission, and mortality. Anticipating health and care trajectories from routinely collected social care records. Our analysis leverages a diverse array of features derived from the rich longitudinal social care records. At each landmark, the observation window included all historical data recorded up to that time point, which were used for predictor extraction. (2) Hospital Admission, defined as the occurrence of at least one inpatient episode within the prediction horizon, based on admission dates recorded in the available social care records.

The resulting 768-dimensional embeddings were then reduced to 10 principal components using Principal Component Analysis (PCA, based on a training subset each time) to maintain computational efficiency while preserving essential information. These predictors capture various dimensions of patient care, ranging from basic demographics to detailed clinical and service utilisation metrics. After applying instance-level eligibility criteria, 27,590 individuals contributed at least one valid prediction instance, resulting in 291,392 care-plan, 379,118 hospital-admission, and 389,148 mortality prediction instances (Fig. 1b). This approach allowed each individual to contribute multiple time-stamped prediction instances as their social care record accumulated over time. To structure these records for prediction, we adopted a landmark-based dynamic prediction framework, in which predictions were repeatedly generated at predefined time points using all information available up to each prediction date, similar to prior work9,13.

This retrospective analysis leverages a comprehensive dataset of pseudonymised social care records from 30,913 adults in Oxfordshire, UK, spanning 1993–2024. In conclusion, routinely collected social-care records may provide an earlier and complementary signal of vulnerability that can support anticipatory review, resource planning, and coordination across health and social care. Our aim is not to replace clinical frailty assessment or multidisciplinary review, but to test whether routinely collected social-care records provide an earlier and complementary signal of vulnerability in the community21. For each endpoint, individuals were stratified using the endpoint-specific calibrated predicted risk score, with the high-risk group defined as the top 20% of predicted risk and the lower-risk group defined as the remaining 80%.

Linking routinely collected social work

This allowed each individual to contribute multiple prediction instances the page linked here over time, reflecting how their available information changed as their social care record developed. At each interval, information recorded up to that point was used to estimate the risk of care-plan initiation, hospital admission, or death within the following 1, 2, or 3 years. Instead, information accumulates irregularly as people come into contact with social care services over time.

Linking routinely collected social work

C Representative patient-level trajectories for 100 randomly selected individuals, showing the timing of major events from each person’s first recorded contact. Anticipating health and care trajectories from routinely collected social care records In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript. Contributed to analysis and interpretation and revised the manuscript. Contributed to data curation, clinical and service interpretation, and revision of the manuscript.

Linking routinely collected social work

Following the standard cause-specific hazard formulation, the target endpoint was treated as the event of interest and individuals who died before the target endpoint were censored at the time of death. These post hoc analyses were not used for model training, tuning, threshold selection, or optimisation, but were intended to assess whether predicted risks stratified subsequent time-to-event patterns. Similarly, higher frequencies of home support services and repeated care assessments were linked to elevated predicted risk (Fig. 3c, lower panels). This pattern suggests that care plan initiation may be more directly driven by assessed clinical and functional needs, rather than by downstream adverse outcomes such as hospitalisation or death. Calibration analysis of the XGBoost models showed good overall agreement between predicted probabilities and observed event rates across outcomes and time horizons, with modest deviations mainly at higher predicted-risk levels (Fig. 2a–c, right panels). After excluding individuals younger than 18 years at their first recorded entry and those with demographic-only records, the final analytical cohort comprised 27,590 adults.

A Domain-level contributions to model predictions for care plan initiation, hospital admission, and mortality, computed as the normalized sum of absolute SHAP values within each feature domain. For hospital admission and mortality, discrimination increased with longer prediction windows, suggesting that individuals who experienced these events became more separable from those who did not over extended follow-up. Discrimination and calibration analyses for predicting care plan initiation (a), hospital admission (b), and all-cause mortality (c) at 1-, 2-, and 3-year horizons. Across all outcomes and horizons, the models achieved meaningful discrimination, indicating that social care records contain informative signals for future health and care risk. These repeated prediction instances formed the analysis set for the 1-, 2-, and 3-year prediction horizons reported below.

The phenotypes reflect predicted future-event risk among eligible individuals, rather than current care-plan or hospital-admission status at baseline. Individuals with low predicted risk across all three outcomes had the most favourable survival trajectory, whereas those classified as high risk across all three outcomes had the poorest survival. The Kaplan–Meier analysis showed clear separation in subsequent survival across the eight joint risk phenotypes. This analysis was intended as a post-hoc survival stratification analysis, rather than as a competing-risk analysis for care-plan initiation or hospital admission. Individuals were stratified into joint multi-outcome risk phenotypes using their calibrated fixed-horizon predicted risks across the three outcomes. For care-plan initiation, the hazard ratio per one-unit increase in logit predicted risk was 1.39 (95% CI 1.37–1.41) at 1 year, 1.37 (95% CI 1.35–1.39) at 2 years, and 1.38 (95% CI 1.36–1.39) at 3 years.