The handwritten doctor’s order was just eight words long, but it solved a problem for Dundee Manor, a nursing home in rural South Carolina struggling to handle a new resident with severe dementia.