Not sure I understand entirely where you're coming from but will assume you mean is there any work done purely within a prison setting for those with dementia etc. Those with dementia would be transferred to an alternative health / dementia care facility. Once mental health conditions have been established or diagnosed, the person concerned is no longer suitable to be held within a prison environment and must by law be transferred to a hospital or similar health / clinical setting for long-term treatment.