Posted on

Linking routinely collected social work, education, and health data to enable monitoring of the health and healthcare of school aged children in state care looked after children in Scotland: a national demonstration project University of Edinburgh Research Explorer

Linking routinely collected social work, education, and health data to enable monitoring of the health and healthcare of school aged children in state care looked after children in Scotland: a national demonstration project University of Edinburgh Research Explorer

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.

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 the original document 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.

Linking routinely collected social work

SHAP dependence plots, which illustrate the relationship between a feature’s value and its contribution to predicted risk, revealed a smooth, monotonic increase in risk with advancing age (Fig. 3c, top). Notably, for care plan initiation (1-year), the health condition domain dominated more strongly relative to other domains than observed for hospital admission or mortality. Each point represents one prediction instance, with higher values on the vertical axis indicating greater contribution to predicted risk. C SHAP dependence plots show how predicted risk changes as individual feature values increase.

Linking routinely collected social work

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.

To assess whether the calibrated fixed-horizon risk scores remained informative under this setting, we first fitted cause-specific Cox models using the calibrated predicted risk score as the exposure. We additionally performed a fold-internal feature-selection sensitivity analysis for the 1-year XGBoost models, with details provided in Supplementary Fig. Notably, measures related to care plan duration were among the most influential predictors for mortality at the individual feature level, exhibiting a consistent negative association with predicted risk. Importantly, these associations do not imply that service use itself increases risk; rather, they likely reflect escalating care needs, instability, or unmet support requirements that prompt repeated contact with health and social care services.

Linking routinely collected social work

This allowed each individual to contribute multiple prediction instances 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.

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.

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.