Well yes, Keats had Tuberculosis, so he would die coughing up blood "Haemoptysis".
My Dad had lung cancer and as it was very,very close to a major artery ,inoperable .We were warned that as it grew and invaded this blood vessel he would haemorrhage profusely and it would be most distressing , most of all for him. It is arguable whether the Haemoptysis would be the cause of death or the cancer being the cause of the Haemoptysis would be the cause of death. On his death cert it says Carcinoma Bronchus.Mercifully he had a massive heart attack before the haemorrhaging started. There is no mention of that on the death cert as a heart attack often happens in cancer patients as their condition deteriorates .In Dad`s case it was a mercy and I have known it happen to friends in the later stages of cancer.
Things have improved such a lot ,all this was 37 years ago and in no way comparable with the wonderful treatment available today .
Viktoria.