Women referred for medium secure inpatient care: a population study over a six-year period