Data Availability
All analysis was carried out in the Grampian Data Safe Haven (project ID: DaSH477) on pseudonymised individual-level data. Per Scottish Safe Haven Charter, only aggregate data can be released from the Grampian Data Safe Haven for publication, but all individual-level data will be archived for 5 years on project completion and may be accessed by application to the Grampian Data Safe Haven (email dash{at}abdn.ac.uk) on condition that appropriate project approvals were secured. Following the archiving period this data will be deleted. Data analysis and figure generation was conducted using R (version 4.0.3) in RStudio (version 1.4.1103). All relevant analysis code files and summary data are available in the supplementary materials and are hosted on the project GitHub repository (https://github.com/AbdnCHDS/NDL_prescribing_referrals_paper).