From NHS Scotland Information Services Division yesterday:

In 2018/19, there were 52,436 deaths in Scotland excluding those where an external cause of death was recorded (including falls). For these individuals, 88.1% of their last six months of life was spent either at home or in a community setting, with the remaining 11.9% spent in hospital. This is equivalent to an average of 22 days in hospital in the six months prior to death.

Over the past nine years, the percentage of time spent at home or in a community setting has gradually increased from 85.3% in 2010/11 to 88.1% in 2018/19.

Click to access 2019-10-08-End-of-Life-Summary.pdf

This achievement is of course a consequence of Scotland’s widely recognised healthcare integration strategy. For detail see:

Major success in Scottish Government’s approach to healthcare integration recognised by Royal College