I think they record it if you showed symptoms before you died . My mates dad died in a care home had everything you can think of dementia , heart condition nearly 90 in the end he was down as a covid death as showed symptoms
if you recall the poor young girl who died early on 13 (?) was said to die of covid even though she had heart failure , on the basis she had a cough before her death ( that may have been overturned though )
The main point is there are many of people being recorded as covid deaths when they had very serious long term conditions and unfortunately this just sadly finishes them off
it’s the underlying health condition category when they report the deaths so it is categorised as such in reality but it still counts in our raw death data