A Brisbane hospital accused of impairing a patient's memory after more than 140 electric shock treatments has been taken to court.

The 37-year-old mental health patient, referred to only as Mr S, has received regular electroconvulsive therapy (ECT) at the Prince Charles Hospital for several years.

Mr S has been undergoing treatment in the Prince Charles Hospital for years.

Late that year, he was placed in seclusion for eight consecutive months after punching a staff member, according to court documents.

In a Supreme Court of Queensland bid due for early consideration on Wednesday to block the “extraordinary” treatment, Queensland’s Public Advocate argued his condition had not improved since the shock therapy.