 While in custody, prisoners are afforded the opportunity to attend various classes that can earn credit towards a high school diploma.The San Francisco Sheriff's Office provides patrol and law enforcement services to San Francisco General Hospital and Laguna Honda Hospital in an agreement with the Department of Public Health.In 2004 the San Francisco Sheriff's Office absorbed the personnel and police functions of the Institutional Police Department (IPD).