Every person who possesses any intoxicating liquor in or on any public hospital or sanatorium providing for the treatment of tuberculosis or within the boundaries of the grounds belonging thereto is guilty of a misdemeanor. This section shall not prohibit (a) the possession of any intoxicating liquor used for medicinal purposes when issued pursuant to a written order of a physician licensed to practice medicine under the laws of the State of California, (b) the possession of any intoxicating liquor by personnel for his or her own use who resides at the hospital or sanatorium or on the grounds thereof, (c) the possession of any intoxicating liquor used by a minister of the gospel or priest or rabbi in a religious sacrament or ceremony or (d) the service of wine to a patient as part of the hospital’s regular menu or bill of fare if the patient is located in a portion of the premises wholly separate and isolated from patients receiving treatment for tuberculosis.