The courts will often have a report prepared by the probation service on the offender and their background. If the defendant is ill, the court may ask for a medical report. These reports are considered with other factors when deciding what sentence to impose.