Article Text

Original research
Unscheduled and out-of-hours care for people in their last year of life: a retrospective cohort analysis of national datasets
  1. Bruce Mason1,
  2. Joannes Joseph Kerssens2,
  3. Andrew Stoddart3,
  4. Scott A Murray1,
  5. Sébastien Moine1,4,
  6. Anne M Finucane1,5,
  7. Kirsty Boyd1
  1. 1 Primary Palliative Care Research Group, Usher Institute, University of Edinburgh, Edinburgh, UK
  2. 2 Electronic Data Research and Innovation Service, Public Health Scotland, Edinburgh, UK
  3. 3 Edinburgh Clinical Trials Unit, Usher Institute, University of Edinburgh, Edinburgh, UK
  4. 4 Health Education and Practices Laboratory, University of Paris 13, Bobigny, France
  5. 5 Policy and Research, Marie Curie Hospice, Edinburgh, UK
  1. Correspondence to Professor Scott A Murray; scott.murray{at}


Objectives To analyse patterns of use and costs of unscheduled National Health Service (NHS) services for people in the last year of life.

Design Retrospective cohort analysis of national datasets with application of standard UK costings.

Participants and setting All people who died in Scotland in 2016 aged 18 or older (N=56 407).

Main outcome measures Frequency of use of the five unscheduled NHS services in the last 12 months of life by underlying cause of death, patient demographics, Continuous Unscheduled Pathways (CUPs) followed by patients during each care episode, total NHS and per-patient costs.

Results 53 509 patients (94.9%) had at least one contact with an unscheduled care service during their last year of life (472 360 contacts), with 34.2% in the last month of life. By linking patient contacts during each episode of care, we identified 206 841 CUPs, with 133 980 (64.8%) starting out-of-hours. People with cancer were more likely to contact the NHS telephone advice line (63%) (χ2 (4)=1004, p<0.001) or primary care out-of-hours (62%) (χ2 (4)=1924,p<0.001) and have hospital admissions (88%) (χ2 (4)=2644, p<0.001). People with organ failure (79%) contacted the ambulance service most frequently (χ2 (4)=584, p<0.001). Demographic factors associated with more unscheduled care were older age, social deprivation, living in own home and dying of cancer. People dying with organ failure formed the largest group in the cohort and had the highest NHS costs as a group. The cost of providing services in the community was estimated at 3.9% of total unscheduled care costs despite handling most out-of-hours calls.

Conclusions Over 90% of people used NHS unscheduled care in their last year of life. Different underlying causes of death and demographic factors impacted on initial access and subsequent pathways of care. Managing more unscheduled care episodes in the community has the potential to reduce hospital admissions and overall costs.

  • primary care
  • accident & emergency medicine
  • adult palliative care
  • health services administration & management
  • public health
  • statistics & research methods

This is an open access article distributed in accordance with the Creative Commons Attribution 4.0 Unported (CC BY 4.0) license, which permits others to copy, redistribute, remix, transform and build upon this work for any purpose, provided the original work is properly cited, a link to the licence is given, and indication of whether changes were made. See:

Statistics from

Strengths and limitations of this study

  • Linking death certification codes with service use in the 12 months before death allowed us to analyse the impact of different illnesses on unscheduled care service use.

  • We linked all five unscheduled National Health Service (NHS) services (telephone advice, primary care, ambulances, emergency department and hospital admission) into Continuous Unscheduled Pathways (CUPs) and identified common patterns of unscheduled care for people.

  • This innovative, population-based method provided a broad understanding of how different demographic factors affected use of unscheduled care throughout Scotland.

  • Only one of the datasets, primary care out-of-hours, contained information that could indicate whether a person was identified for palliative care.

  • Costs were calculated using weighted averages and were therefore approximate.


Rising demand for unscheduled care is a major burden and causes pressure on healthcare systems internationally, both in and out-of-hours. Unscheduled care is unplanned and demand-led and free at point of access. In the UK, it includes five National Health Service (NHS) services: telephone advice, primary care services, ambulance services, emergency department (ED) and acute hospital admission. ED targets were unmet throughout the UK prior to the impact of COVID-19. Unplanned hospital admissions in the UK increased by 28% from 2010 to 2019, while elective admissions rose by 25% during the same time period.1 Contributory factors include an ageing population with multiple health conditions, public expectations, instructions to seek urgent care for suspected strokes or heart attacks, and less support in the community at weekends and overnight.2 Much unscheduled care is used by people in their last year of life who are known to have significant health-related suffering and unmet palliative care needs.3

Early integration of a palliative approach as a component of chronic disease management is strongly recommended for people with advanced illnesses in all care settings.4 5 Palliative care is a core component of universal health coverage and its people-centred ethos and focus on quality of life and death should be considered at every opportunity.6 Services should be designed to respond to the typical trajectories of declining health of patients with all progressive illnesses, including social and psychological factors.7 8 Palliative care includes proactive care planning which reduces burdensome interventions of low benefit, and helps avoid some unwarranted hospital admissions. However, palliative care integration into unscheduled care services has proven particularly challenging.9 10

National datasets can be used to monitor and improve care. They have underutilised potential to improve end-of-life care.11–15 In Scotland, death registry data, and activity data from hospitals, the ambulance service and out-of-hours primary care services are collected routinely. These national datasets contain a unique identifier—the Community Health Index (CHI). We set out to link these data to analyse patterns of unscheduled care services use and costs by underlying cause of death and patient demographics.


We linked three datasets. The National Records of Scotland (NRS) deaths dataset was used to identify all adults (aged 18+) who died in Scotland in 2016. From this dataset, we extracted underlying cause of death and usual place of residence. From the General Acute Inpatient and Day Case—Scottish Morbidity Record (SMR01), we extracted all unscheduled hospital activity for the last 12 months life for the cohort. Third, we extracted data from the Scottish Unscheduled Care Datamart (UCD) covering four unscheduled care services: the telephone advice line (NHS24), primary care out-of-hours (PCOOH), the Scottish Ambulance Service (SAS) and emergency department (ED) attendances.16 The UCD does not include in-hours, unscheduled primary care.

The ICD codes (V.2010) for underlying cause of death extracted from the NRS dataset were classified into five groups: cancer, organ failure, frailty/progressive neurological conditions, various other causes and external causes.17 People in the first three groups were considered potentially to have had palliative care needs during their last year of life. Details of this coding allocation had been agreed previously by an expert international panel18 (see online supplemental table 1).

Supplemental material

Postcodes of usual place of residence were extracted from the NRS dataset. We used the Scottish Index of Multiple Deprivation (SIMD 2016) to infer quintiles of deprivation.19 Rurality was based on the Scottish Government Urban-Rural Classification as applied to the postcodes.20

In order to understand how multiple services were accessed during a single healthcare episode, we used Continuous Unscheduled Pathways (CUPs) as defined in the Scottish unscheduled care datamart. A CUP is a linked set of contacts with one or more unscheduled care services.16 Each CUP represents a single patient journey. The frequencies of the different types of CUP were tabulated to identify key patterns. We categorised a CUP as ‘out-of-hours’ if it started at weekends, on public holidays or on weeknights from 18:00 to 08:00. There is no limit to the duration of each CUP so a CUP could start out-of-hours but end during the in-hours period and vice versa. Therefore, only the start date and time of the CUP was used to categorise it.

In the Unscheduled Care Dataset, each service component of a CUP is assigned a code letter:

  • N=NHS 24.

  • O=Primary care out-of-hours.

  • S=Scottish Ambulance Service.

  • E=Emergency department.

  • A=Acute hospital admission.

Linking these codes in chronological order gives the pathway its name. For example, ‘NSE’ represents a call to NHS 24 (N), followed by an ambulance service contact (S), then an emergency department attendance (E).

Statistical analysis

Descriptive analyses were undertaken using means and frequency tables. Service use of people with or without unscheduled care contacts were compared using χ2 tests for categorical variables. Multiple logistic regression models analysed multivariate associations between predictor variables (gender, age, marital status, deprivation quintile, cause of death, urban/rural classification and place of residence) and the odds of using a service. All analyses were conducted within the Scottish National Safe Haven by a senior analyst (JJK) after approval by a Scottish Public Benefit and Privacy Panel.

Cost estimations

Standard UK price weighting methodology was applied to estimate the costs of each unscheduled service: see online supplemental table 2 to explain how this was calculated. We did not attribute exact pricing to different forms of inpatient admission or account for differences due to patient demographics; hence,mean population values were applied. These costs are included as broad indicators of differences in scale and should not be interpreted as exact data.

Supplemental material

Patient and public involvement

Representatives from Marie CurieVoices Scotland and a Royal College of General Practitioners Scottish patient group joined the steering group and contributed public–patient perspectives from their own groups throughout the project. Key stakeholders from the unscheduled services and patient group members advised the research team on parameters for analysis, choice of analyses and data interpretation. To understand decision-making and experiences of service users, we conducted focus groups and interviews with patients with advanced illnesses and carers who had used unscheduled services, and with bereaved carers. A final key stakeholder meeting of professionals, policy makers and lay representatives discussed the findings and implications for service development. These data will be reported elsewhere.


Underlying causes of death in the cohort

We extracted records for 56 407 adults who died in Scotland in 2016 and linked records covering the last 12 months of life for each individual in this cohort. The number of people in each disease group was as follows: cancer 28.2%, organ failure 37.7%, frailty/progressive neurological conditions 24.9%, other diseases/various causes 4.0%,and external causes 5.3% (see online supplemental table 3).

Supplemental material

Use of NHS unscheduled care services

The cohort had 472 360 unscheduled care service contacts; 56 407 people (94.9% of the cohort) had at least one contact. Table 1 shows the distribution of unscheduled service use: 50.4% had six or more contacts, and the 5.4% who had 20 or more contacts accounted for 21.5% of all contacts. All unscheduled care services were used increasingly as death approached, with 34.2% occurring in the last month of life (see online supplemental table 4). During that final month, there was a disproportionate rise in primary care out-of-hours workload.

Supplemental material

Table 1

Number (% and cumulative %) of patients (18+) in the last year of life in Scotland (2016) by number of contacts with unscheduled care services (N=56 407)

Table 2 displays the number and percentages of people who contacted the five unscheduled care services during the last 12 months of life by cause of death and demographic factors. Place of residence at death had two categories: those living in a private residence or people living in any institution. The latter were primarily care homes, but also included prisons and hostels. Due to the large sample size, all differences in table 2 were statistically significant (except contacts with NHS24 by deprivation).

Table 2

Number (and percentage) of people who had contacts with NHS telephone advice (NHS24), primary care out-of-hours (PCOOH), Scottish Ambulance Service (SAS), emergency department (ED) and hospital admission for patients (18+) in the last year of life in Scotland (2016) by underlying cause of death, deprivation, place of residence, urban/rural classification (N=56 407)

24-hour telephone advice service (NHS24)

More people dying with frailty (66.0%) or cancer (63.4%) contacted this service than those dying with organ failure (56.0%) (χ2 (4, N=56 407)=1004, p<0.001). People living in institutions (or commonly the staff caring for them) were more likely to contact NHS24 than those living at home: 68.8% vs 58.0% (χ2 (1, N=56 371)=352, p<0.001). People from all deprivation quintiles were about as likely to access NHS24 (χ2 (4, N=56 251)=1.88, p=0.758).

Primary care out-of-hours (PCOOH)

Service use was similar to NHS24, as more people dying with cancer (61.5%) or frailty (61.7%) had contact with this service compared with those with organ failure (45.6%) (χ2 (4, N=56 407)=1924, p<0.001). People living in an institution were substantially more likely to have used this service than those in a private residence: 69.3% vs 50.7% (χ2 (1, N=56 371)=1011, p<0.001). People living in the most deprived quintile were less likely to access PCOOH (46.6%) compared with those from the least deprived quintile (56.9%) (χ2 (4, N=56 251)=442, p<0.001).

Scottish Ambulance Service

People who died from organ failure used this service (78.9%) more than those with cancer (72.8%) or frailty (67.8%) (χ2 (4, N=56 407)=584, p<0.001). People living at home were much more likely to phone the ambulance service than those in an institution (77.2% vs 55.7%) (χ2 (1, N=56 371)=1725, p<0.001). People in the most deprived quintile accessed help from the ambulance service more often (77.2%) than people in the least deprived (69.5%) (χ2 (4, N=56 251)=266, p<0.001).

Emergency department

People who died from organ failure used this service (65.2%) more than those with cancer or frailty (χ2 (4, N=56 407)=190, p<0.001), just as they did with the ambulance service. People living in institutions were less likely to visit an emergency department than those living at home (46.7% v 65.6%) (χ2 (1, N=56 371)=1250, p<0.001). Those from the most deprived quintile were more likely to attend an emergency department (67.3%) compared with people in the least deprived quintile (58.4%) (χ2 (4, N=56 251)=386, p<0.001).

Acute hospital admission

More people who died from cancer had at least one acute hospital admission (88.3%) compared with those with organ failure (73.2%) or frailty (66.4%) (χ2 (4, N=56 407)=2644, p<0.001). People living at home were much more likely to be admitted to hospital (79.3%) than those living in an institution (50.6%) (χ2 (1, N=56 371)=3043, p<0.001). People in the most deprived quintile were admitted more often (76.4%) than people in the least deprived (.72.7%) (χ2 (4, N=56 251)=134, p<0.001).

Patterns of use across unscheduled care services

Logistic regression modelling included the clinical, socioeconomic and location variables from table 2 plus age, gender and marital status (table 3). The OR for contacts with NHS24 was higher for women than men (adjusted OR 1.17, 95% CI 1.12 to 1.21). People aged 65–84 (adjusted OR 1.68, 95% CI 1.58 to 1.78) and those aged 85 or over (adjusted OR 1.67, 95% CI 1.56 to 1.79) had higher ORs for acute hospital admission compared with people aged 18–64. Comparing the three main groups of causes of death, the odds of people with cancer having a PCOOH contact in their last year of life was much greater than for people dying with organ failure (adjusted OR 2.08, 95% CI 1.99 to 2.17). After controlling for demographic and location variables, individuals with cancer had a higher risk of an acute admission than people with organ failure (adjusted OR 2.56, 95% CI 2.28 to 2.86). Overall, people living at home used more unscheduled care services than those in institutions. This was particularly the case for acute hospital admissions (adjusted OR 3.39, 95% CI 3.21 to 3.57).

Table 3

Adjusted OR and 95% CIs for the probability of contacts with: NHS telephone advice (NHS24), primary care out-of-hours (PCOOH), Scottish Ambulance Service (SAS), emergency department (ED) and hospital admission (HA) for patients (18+) in their last year of their life (N=56 112)*

People in the most deprived quintile tended to use the three unscheduled care services that are not community based more than those in the least deprived quintile. This was especially so for ambulance services (adjusted OR 1.42, 95% CI 1.33 to 1.51). Those living in urban areas used more of all the services except PCOOH than people from rural areas overall.

Use of continuous unscheduled pathways (CUPs)

Linking the serial use of the unscheduled service contacts into CUPs enabled us to delineate common sequences and patterns of service use. Table 4 shows the 20 most common CUPs according to when they started; in-hours or out-of-hours. NHS24 and the ambulance service were the most common initial access points. The most common end points were PCOOH and hospital admission (figure 1). Over half the ambulance calls led to an acute hospital admission (60.0%). Conversely, 50.6% of initial calls to NHS24 were dealt with in the community by PCOOH.

Table 4

Twenty most frequent Continuous Unscheduled Pathways (CUPs) by in-hours or out-of-hours start time for patients (18+) in the last year of life in Scotland in 2016 (N=56 407)

Figure 1

Start and end points of all continuous unscheduled pathways (CUPs)

Differences in frequencies and types of CUP by start time

We differentiated between CUPs that started out-of-hours or in-hours to look at implications for improving out-of-hours care as well as unscheduled care in general. We identified 206 841 continuous unscheduled pathways, of which 133 980 (64.8%) started out-of-hours, 28.1% in-hours and 7.1% unknown (mostly due to lack of a time stamp on acute hospital admissions). Contacts with NHS24 and PCOOH were much more frequent for out-of-hours CUPs. Data on the proportion of contacts with each service that occurred during out-of-hours CUPs were as follows: NHS24 93.1%, PCOOH 94.7%, ambulance service 37.7% and emergency department 44.4%.

Table 4 shows data that allow a detailed understanding of how patients typically move through the services night and day. Only 16.7% of out-of-hours CUPs started with an ambulance call, while 73.2% started with an NHS24 or PCOOH contact. Similarly, most out-of-hours CUPs ended in primary care: 9.6% with telephone advice from NHS24% and 46.7% with PCOOH. Much fewer out-of-hours CUPs resulted in an acute hospital admission (27.5%) or emergency department attendance (8.2%). In contrast, the six most common CUPs which started in-hours comprised episodes consisting of ambulance calls, emergency department visits and acute hospital admissions, and these accounted for 74.2% of all CUPs which started in-hours. GP in-hours care is not included in the UCD so was not available.


The mean number of contacts, per patient costs and total NHS costs for the five unscheduled care services in the last year of life are listed by underlying causes of death and deprivation status in table 5. People with organ failure formed the largest group and had the highest total NHS costs as a group due to use of ambulance and hospital services. Those with frailty incurred the least unscheduled NHS care costs, being managed more in the community. The total cost of unscheduled NHS care in Scotland for people in their last year of life was nearly £190 million, of which only 3.9% was for provision of primary care services.

Table 5

Mean number of contacts and costs of NHS telephone advice (NHS24), primary care out-of-hours (PCOOH), Scottish Ambulance Service (SAS), emergency department (ED) and hospital admissions for patients (18+) in the last year of life in Scotland (2016) by cause of death and deprivation status (=56 407)

The total mean per-patient costs of unscheduled care in the last year of life were greatest for those with cancer (£4083), followed by organ failure (£3429) and frailty (£2654). Unscheduled per-patient costs for people in the most deprived quintile were 18.8% higher than those from the least deprived but their PCOOH costs per capita were 30.6% lower.


Principal findings

We found that 94.9% of people had unscheduled care contacts during their last year of life. They had a median of five contacts, with 5.1% making 20 or more, and 34.2% of all contacts occurring during the final month of life. We identified three groups of patients by underlying cause of death with different patterns of unscheduled care service use that were clinically and statistically significant. People with cancer had more unscheduled admissions than people with non-cancer diagnoses and the highest per-patient costs. People who died with frailty were most likely to have unscheduled care that was managed fully in the community. People with organ failure used most ambulance services, and as a group accounted for the greatest number of acute hospital admissions overall. People from the most deprived quintile used significantly less PCOOH than those from the least deprived but they accessed the other four unscheduled services more. The total cost of service use by people in the most deprived quintile was almost double that of those in the least deprived, due to the greater numbers of people dying in this group and their higher use of secondary care services. NHS24 and PCOOH services together accounted for less than 4% of total NHS unscheduled care costs.

Strengths and limitations of the study


This innovative approach to studying population use of interconnected, unscheduled care services provided a broad understanding of how different illnesses and demographic factors affected use of unscheduled care. Linking all five unscheduled NHS services together into patient pathways (CUPs) allowed common patterns of unscheduled care to be identified and quantified. Studying the unscheduled care service pathways of people in their last year of life throughout Scotland enabled us to analyse the unscheduled care provided for a whole population which has rising numbers of people with unidentified palliative care needs.3 Understanding the perspectives and choices made by people and their families seeking unscheduled care is equally important and was the qualitative data component of our overall study (to be reported elsewhere).


The structure and scope of unscheduled care services in Scotland influenced how those services were used so comparisons with different countries and healthcare systems will need care. Lack of national data for in-hours, unscheduled primary care was limiting. Some CUPs recorded as out-of-hours may have started with an undocumented, urgent primary care contact in-hours. Timing of acute hospital admissions is not recorded so could not be separated by starting point. Costs were calculated using weighted averages and were therefore approximate. We acknowledge limitations in relying on ICD-10 recorded diagnoses. We had intended to look for evidence that patients had been identified for palliative care. Unfortunately, only the primary care out-of-hours dataset had a palliative care code or recorded access to the Scottish electronic care plan (Key Information Summary) used by primary care teams to coordinate palliative and anticipatory care planning.21 This meant it was impossible to estimate the full extent of proactive care planning or palliative care provision by NHS unscheduled care services.

Comparison with other studies

Most studies of unscheduled care have focused on individual services and specific diseases, notably emergency departments and patients with cancer, and have suggested that only 30%–35% of people with cancer use unscheduled care in the last year of life.9 22 However, a recent study in one Scottish region reported that 78% of people dying from cancer had unscheduled care provided by emergency departments and/or PCOOH in their last year of life.23 Our findings, integrating all five NHS unscheduled care services, found that 94.9% of people who died in Scotland received unscheduled care in their last year of life. By using population data along with specific service use data, we have highlighted the extent and diversity of unscheduled care pathways. Our logistic regression models identified differences in unscheduled care by deprivation quintile for each of the three main illness groups, not just for the population with cancer, and correlates with other evidence around the relationship between socioeconomic status and use of emergency services.9 11 13

Meaning of the study and implications for clinicians and policy makers

Many more people seek unscheduled and out-of-hours care in their last year of life than was recognised previously. There were common patterns associated with different underlying illnesses, deprivation status and place of residence. Knowledge of how these groups of patients respond to urgent care needs may help community and hospital services find ways to respond more effectively and potentially could reduce demand for costly services. Primary care teams, social care managers and hospital teams can identify frequent or unusual patterns of contacts with unscheduled care and use these to trigger new or updated care planning. Such care planning communicated to unscheduled care services routinely via primary care managed electronic care coordination systems has been linked with fewer hospital admissions and deaths in Scotland.21 24 In London, the ‘Coordinate my Care’ system uploads and shares urgent care plans entered by primary care, ambulance and hospital services thereby reducing hospital admissions, and electronic care planning systems are evolving in other parts of England.10 25 The UK ReSPECT process partners with patients and families to make emergency treatment and care plans that can help guide unscheduled care and reduce unwarranted admissions.26 Key aspects are early identification of people at risk of deteriorating health, proactive care planning and a readily accessible electronic care coordination system that can be read and updated by any professional responsible for a person’s care.

Improving the ability of unscheduled primary care services to manage people in the community is likely to be highly cost-effective as well as supporting people’s choice to remain at home towards the end of life. Emergency departments are already employing more primary care clinicians to enhance prehospital triage and ambulance crews are providing more care at home, where appropriate, instead of transferring patients to hospital.27 Interventions in the community by NHS 24, PCOOH and ambulance services have potential to provide high- value low-cost care.

Further research

Unscheduled care of the whole population merits ongoing research using population-level data, encompassing all community and hospital settings both in-hours and out-of-hours. Improving the scope and quality of data collected routinely can facilitate research into the needs of people who are high service users and stand to benefit from better coordinated care.5 6 28 Specifically, research to understand specific differences in care pathways and service use is important, such as why people with cancer have more urgent hospital admissions than others and why people with organ failure call the ambulance service relatively frequently. Our data also provide a baseline that can be used in studies to evaluate changes in the use of unscheduled services during the coronavirus pandemic, when the demand for hospital-based unscheduled care dipped sharply.

Interventions to encourage a palliative care approach in each of the five out-of-hours services, as well as care coordination throughout the unscheduled pathways are recommended.29 An evaluation of telephone advice services including emergency social care, community nurse telephone support such as the Gold Line, specialist palliative care support lines, and from charities offering help for people with specific illnesses is indicated to scope provision of unscheduled care in the community further.29 Research into the contribution of specialist palliative care out-of-hours, which has not been included in this study, and interventions to coordinate care between settings at the end of life are also needed.29


The extent of unscheduled care delivered to people in their last year of life is significantly greater and more varied than reported previously. People with diverse urgent care needs are accessing these services at high levels, particularly in their final month of life. More should be done to take account of underlying illness trajectories and social determinants of health, including better public understanding of how to access the right care in timely and effective ways. Systematic approaches to care planning combined with effective recording and sharing of key information, including a palliative care code where appropriate, is vital and should be recorded in routine healthcare datasets.


The authors acknowledge the support of National Services Scotland for their involvement in obtaining approvals, provisioning and data linkage. We also thank Bruce Guthrie and Sarah Mills for commenting on a draft of this paper.


Supplementary materials


  • Twitter @Deleriad, @scottamurrayed, @A_Finucane

  • Collaborators Primary Palliative Care Out-of-hours Project Steering Group: Marilyn Kendall, senior researcher; Sheonad Laidlaw, general practitioner; Emma Carduff, honorary research fellow and Marie Curie research lead; Erna Haraldsdottir, senior lecturer; Sir Lewis Ritchie, Scottish Government advisor; Sian Tucker, NHS24 national lead; Marie Fallon, professor of palliative medicine; Jeremy Keen, consultant in palliative medicine; Stella Macpherson and Lorna Moussa, patient and public involvement representatives.

  • Contributors Contributor and guarantor information: BM, SAM, SM, AF, AS and KB designed the study (along with members of the steering group acknowledged above); JJK and AS linked and analysed the data, SM allocated illness trajectories to all decedents; and AF conducted literature reviews. All contributors discussed the findings and contributed to writing the drafts and the final paper. The contributors met with the steering group regularly to design and guide the overall study and to integrate patient and carer perspectives. SAM and KB are the guarantors. The corresponding author attests that all listed authors meet authorship criteria and that no others meeting the criteria have been omitted.

  • Funding Combined grant MCRGS-07-16-37 from Marie Curie and the Chief Scientist Office Scotland.

  • Competing interests No support from any additional organisations for the submitted work; no financial relationships with any organisations that might have an interest in the submitted work in the previous three years; no other relationships or activities that could appear to have influenced the submitted work.

  • Patient consent for publication Not required.

  • Ethics approval Permission to access and link data from the Scottish Public Benefit and Privacy Panel for health and social care, ref 1516-0483 and approval from SE Scotland Research Ethics committee 2 reference 17/SS/0127 were gained.

  • Provenance and peer review Not commissioned; externally peer reviewed.

  • Data availability statement Data are available upon reasonable request. More information may be available from the corresponding author.

  • Supplemental material This content has been supplied by the author(s). It has not been vetted by BMJ Publishing Group Limited (BMJ) and may not have been peer-reviewed. Any opinions or recommendations discussed are solely those of the author(s) and are not endorsed by BMJ. BMJ disclaims all liability and responsibility arising from any reliance placed on the content. Where the content includes any translated material, BMJ does not warrant the accuracy and reliability of the translations (including but not limited to local regulations, clinical guidelines, terminology, drug names and drug dosages), and is not responsible for any error and/or omissions arising from translation and adaptation or otherwise.

Request Permissions

If you wish to reuse any or all of this article please use the link below which will take you to the Copyright Clearance Center’s RightsLink service. You will be able to get a quick price and instant permission to reuse the content in many different ways.