5.  The applicant was born in 1964 and lives in Dubna, Moscow Region. 6.  On 4 February 2003 she was charged with contempt of court and criminally insulting the presiding judge and parties at a hearing on 22 December 2002 in which she had acted as a defendant’s representative. 7.  An outpatient forensic psychiatric examination of the applicant was ordered in the course of the pre-trial investigation. On 2 July 2003 she was apprehended and taken to a psychiatric facility for examination. On 3 July 2003 she was examined by a panel of psychiatrists, who concluded that her clinical state was unclear and that no answers could be given concerning her mental health state. She was released, the panel recommending a placement in the State Academic Centre for Social and Forensic Psychiatry in Moscow (Государственный научный центр социальной и судебной психиатрии им. В.П. Сербского) (“the Forensic Psychiatry Centre”) for an inpatient forensic psychiatric examination. 8.  On 27 October 2003 the Dmitrov Town Court of the Moscow Region (Димитровский городской суд Московской области) (“the Town Court”), having considered the applicant’s complaint of unlawful apprehension and deprivation of liberty between 2 and 3 July 2003, ruled in her favour. The court reasoned that the detention had been unlawful, since the sanction for the crime she was suspected of did not provide for any form of deprivation of liberty. The applicant did not initiate any further proceedings in this regard. 9.  On 4 November 2003 the prosecution made an application for the court to order an involuntary forensic psychiatric examination of the applicant at the Forensic Psychiatry Centre. 10.  On the same day the Town Court granted the prosecutor’s application. The relevant part of its order reads:
“By virtue of paragraph 1 of Article 203 of the Code of Criminal Procedure, a defendant may be placed in a psychiatric hospital if a forensic psychiatric examination requires his assessment in the hospital.
... the court considers that it should allow the application by the investigator, Ms D., to place [the applicant] in [the Forensic Psychiatry Centre] for a forensic psychiatric evaluation, because [the applicant] is in need of such a hospital examination.” 11.  The applicant and her representative did not attend the hearing, because they had not been summoned to it. However, both the prosecutor and the investigator attended and made oral submissions. 12.  On an unspecified date the applicant appealed, complaining, inter alia, that she had not been given an opportunity to present her case to the Town Court. 13.  Between 25 December 2003 and 5 April 2004 the applicant applied to adjourn her appeal hearing five times. Her application was granted on each occasion. On 29 December 2003 during the appeal hearing in a separate set of proceedings she accused the judges of criminal conspiracy and attempted murder. 14.  On 15 January 2004 the applicant was also charged with criminal slander of certain judges during the hearing of 29 December 2003. The proceedings in respect of the two criminal cases were joined. 15.  On 9 April 2004 the applicant was apprehended by the authorities and transferred to the Forensic Psychiatry Centre. On 13 April 2004 a panel of psychiatrists issued a report, concluding that the applicant suffered from “paranoid personality development”, and that she had not been able to understand or control her actions during the events of 22 December 2002 (contempt of court) and 29 December 2003 (criminal slander). The report further stated that she presented a danger to others and therefore needed compulsory treatment in a psychiatric facility. On the same day the applicant was released. 16.  Two weeks later on 27 April 2004 the Moscow Regional Court (Московский областной суд) (“the Regional Court”) held a hearing on the applicant’s appeal against the the Town Court’s decision of 4 November 2003 authorising psychiatric examination, and rejected it. As regards the applicant’s complaint about the hearing taking place in her absence, the Regional Court noted that Article 165 of the Code of Criminal Procedure provided for ex parte hearings where there was judicial authorisation of investigative actions, including internment in a psychiatric facility for forensic examination (as set out in Article 203 of the Code). 17.  On 14 September 2004 the Moscow City Court (Московский городской суд) (“the City Court”) adopted decisions in two sets of criminal proceedings against the applicant. The first decision terminated the criminal proceedings relating to the contempt of court charges in respect of the events of 22 December 2002. The applicant’s statements, while offensive, were found to have been lacking the degree of insult requisite for incurring criminal liability. In the second decision, the City Court established the principal facts of the events of 29 December 2003. Concluding that the applicant had acted in a state of insanity, it terminated the criminal proceedings against her and ordered her to undergo compulsory medical treatment in a psychiatric facility. It relied on the findings and recommendations of the Forensic Psychiatry Centre’s report of 13 April 2004 in its reasoning. 18.  On 22 December 2004 the Supreme Court of the Russian Federation upheld the lower court’s decisions. 19.  It appears from the parties’ submissions that the applicant was not detained and did not receive any treatment pursuant to the City Court’s order until 2006. 20.  On 23 March 2006 the applicant was involuntarily admitted to Moscow Regional Psychiatric Hospital no. 14 (Московская областная психиатрическая больница № 14) for compulsory psychiatric treatment. 21.  On 16 May 2006 a panel of hospital psychiatrists concluded that the applicant’s mental health had improved and she no longer posed a danger to society. On the same day an application to discharge the hospital order and discontinue the compulsory treatment was sent to the Town Court. 22.  On 22 May 2006 the Town Court scheduled the hearing of the application for the next day. However, it was adjourned until 2 June 2006, because the applicant’s representative failed to appear and additional medical records and statements had to be obtained. Two subsequent hearings were adjourned following applications by the applicant’s representatives. 23.  On 10 July 2006 the Town Court ordered the applicant’s compulsory treatment to be discontinued. Her representative lodged an appeal, arguing that the proceedings should have been discontinued from the very beginning, and that the applicant should have been released, since there had been no need for any compulsory treatment. On 31 August 2006 the Regional Court dismissed the appeal and upheld the lower court’s decision. 24.  The applicant was released from hospital on 15 August 2006.