in Nottinghamshire. Also, a number of private-sector medium secure units sell their beds exclusively to the NHS, as not enough secure beds are available in the NHS system. Forensic psychiatrists often also do prison inreach work, in which they go into prisons and assess and treat people suspected of having mental disorders; much of the day-to-day work of these psychiatrists comprises care of very seriously mentally ill patients, especially those with schizophrenia. Some units also treat people with severe personality disorder or learning disabilities. The areas of assessment for courts are also somewhat different in Britain, because of differing mental health law. Fitness to plead and mental state at the time of the offence are indeed issues given consideration, but the mental state at the time of trial is also a major issue, and this assessment most commonly leads to the use of mental health legislation to detain people in hospitals, as opposed to their getting a prison sentence. Learning-disabled offenders who are a continuing risk to others may be detained in learning-disability hospitals (or specialised community-based units with a similar regimen, as the hospitals have mostly been closed). This includes those who commit serious crimes of violence, including sexual violence, and fire-setting. They would be cared for by learning disability psychiatrists and registered learning disability nurses. Some psychiatrists doing this work have dual training in learning disability and forensic psychiatry or learning disability and adolescent psychiatry. Some nurses would have training in mental health, also. Court work (medicolegal work) is generally undertaken as private work by psychiatrists (most often forensic psychiatrists), as well as forensic and clinical psychologists, who usually also work within the NHS. This work is generally funded by the Legal Services Commission (used to be called Legal Aid). Canada Criminal law framework In Canada, certain credentialed medical practitioners may, at their discretion, make state-sanctioned investigations into and diagnosis of mental illness. Appropriate use of the DSM-IV-TR is discussed in its section entitled "Use of the DSM-IV-TR in Forensic Settings". Concerns have been expressed that the Canadian criminal justice system discriminates based on DSM IV diagnosis within the context of Part XX of the Criminal Code. This part sets out provisions for, among other things, court ordered attempts at "treatment" before individuals receive a trial as described in section 672.58 of the Criminal Code. Also provided for are court ordered "psychiatric assessments". Critics have also expressed concerns