It's awful that the dementia patient didn't have access to her structured care when arriving home. Obviously nothing can be done in hindsight but it's my understanding that this type of situation is why patients can refuse discharge because it would be unsafe for them. I believe it's the only reason that is allowed for discharge refusal.
If money were no object in providing care, I would hope that respect for every person's belief could be accommodated in a way that had no impact on others. I dislike the thought of anyone feeling distressed in hospital because it hasn't been possible to accommodate respect for their belief in their care.
I even extend this to side room provision for people who identify as transgender whose belief means they don't want to be on a ward with others of their sex and where the law now makes it very clear that they can't be on a single-sex ward with members of the opposite sex (we can't inside anyone's head so have no objective way of differentiating between someone who has a genuinely held belief that they have a "gendered soul", that differs from their sex, and someone who is feigning this belief). The same argument could be said of trans-identifying people self-excluding from hospital care if requests to respect their belief are not accommodated. Obviously some will continue to self-exclude even if they get a side room because what they really want is to be on a ward with the opposite sex.
For clarity, I'm well aware that trans-identifying people often demand full compliance with their belief (e.g. no "misgendering"), not just accommodating the fact that they hold it (e.g. being offered a side room in the legally appropriate single-sex ward). Thankfully people with religious beliefs don't do that in the UK - as it says above, burning apostates of the "right" denomination of a religion is now in the past.
Hospitals' first priorities are medical need and safety. Accommodating needs that are based on beliefs would ideally be possible too but must always be secondary where there are resource limitations. For example, it would be inappropriate for a dementia patient's discharge (with home care arranged at a fixed time) to be prioritised lower than someone whose belief means they can't travel in a car after sunset - if the resource limitations meant that a prioritisation decision was necessary.
Although this is a side conversation from the main thread, it does highlight the complexity in establishing the difference between having a respect for someone's belief versus being asked (expected) to comply with a tenet of that belief.