hospitalhas the meaning given in section 108(1) of the National Health Service (Scotland) Act 1978, • “judicial office” means— (a) the office of judge of any court, (b) the office of member of any tribunal, (c) any other office, or appointment, consisting of functions of a judicial nature, • “prison” means a prison or young offenders institution that is under the general superintendence of the Scottish Ministers under the Prisons (Scotland) Act 1989 and includes any contracted out prison within the meaning of section 106(4) of the Criminal Justice and Public Order Act 1994, • “prisoner” means a person committed to prison for trial, safe custody, punishment or otherwise, • “shared lives agreement” means an agreement entered into between a person carrying on a shared lives scheme and an individual for the provision, by that individual, of personal care to a protected adult together with, where necessary, accommodation in the individual's home, • “shared lives carer” means an individual who, under the terms of a shared lives agreement, provides, or intends to provide, personal care for protected adults together with, where necessary, accommodation in the individual's home, • “share