Asylums Were Never Built to House Patients — The Building Was the Treatment

Were asylums originally designed simply to confine patients—or was the architecture itself considered part of the treatment?