however it also means a separate room in a hospital for a sick patient , or a minor under the care and control of a guardian appointed by a court of law , or an enclosed wall of a fortress or castle .