If doctors determine treatment can be helpful, insurance (or the government) might pay for services, whether inpatient out outpatient. Our county corporation counsel (the civil equivalent of a DA) would try to help the patient and families by filing Wisconsin "Chapter 51" rather than "55" petitions - the former for those requiring civil commitment for a potentially treatable disorder that is essentially causing danger to self or others, the latter when it isnt treatable and the danger to self/others is more a protective placement. 51s or their equivalent in other states are 6 months but renewable (placement either in a facility or home), 55s indefinite since the condition isnt or likely to improve.
The distinction can be important for insurance coverage (and sometimes placement locations). The argument for the 51s, even in Alzheimer or other incurable dementia cases was basically "The primary disorder of Alzheimers (or the neurological damage from the stroke) may or may not be treatable, but the secondary disorder of a psychosis (or a "mood disorder," etc) is treatable and the treatment with psychotropic meds can potentially alleviate dangerousness."
I am now retired and havent done these 51 vs 55 examinations for several years, and Wisconsin has altered the law to reduce the diagnostic ju-jitsu i(or sophistry) involved. But I would check with the local county corporation counsel (as well as the hospital psychiatrist) to see if they feel the a Ch. 51-like civil commitment - ie that the behavioral symptoms associated with the stroke can possibly be improved- is worth pursuing. If so, they or the family can file a legal petition and get the professional evaluations and court process started, which can cost the family little or nothing since the professional examinations and legal representation are required and court-ordered. .