I live in San Francisco but am familiar with Denmark where it's relatively straightforward for a physician to involuntarily commit someone for ~a month at a time and the state to extend it in six month increments. To contrast, LPS in California limits involuntary holds to 72 hours and makes it very hard to hold anyone longer than that even despite recent reforms.