Jurris.COM

Chapter 1. County Jails of California Penal Code >> Title 4. >> Part 3. >> Chapter 1.

The common jails in the several counties of this state are kept by the sheriffs of the counties in which they are respectively situated, and are used as follows: 1. For the detention of persons committed in order to secure their attendance as witnesses in criminal cases; 2. For the detention of persons charged with crime and committed for trial; 3. For the confinement of persons committed for contempt, or upon civil process, or by other authority of law; 4. For the confinement of persons sentenced to imprisonment therein upon a conviction for crime. 5. For the confinement of persons pursuant to subdivision (b) of Section 3454 for a violation of the terms and conditions of their postrelease community supervision.
Notwithstanding any other provision of law, the sheriff of any county may transfer prisoners committed to any jail of the county to any industrial road camp maintained by the county.
Each county jail must contain a sufficient number of rooms to allow all persons belonging to either one of the following classes to be confined separately and distinctly from persons belonging to either of the other classes: 1. Persons committed on criminal process and detained for trial; 2. Persons already convicted of crime and held under sentence; 3. Persons detained as witnesses or held under civil process, or under an order imposing punishment for a contempt.
(a) No law enforcement or correctional official shall give, offer, or promise to give any monetary payment in excess of fifty dollars ($50) in return for an in-custody informant's testimony in any criminal proceeding. Nothing contained herein shall prohibit payments incidental to the informant's testimony such as expenses incurred for witness or immediate family relocation, lodging, housing, meals, phone calls, travel, or witness fees authorized by law, provided those payments are supported by appropriate documentation demonstrating that the money was used for the purposes for which it was given.
  (b) No law enforcement agency and no in-custody informant acting as an agent for the agency, may take some action, beyond merely listening to statements of a defendant, that is deliberately designed to elicit incriminating remarks.
  (c) As used in this section, an "in-custody informant" means a person described in subdivision (a) of Section 1127a.
(a) Persons committed on criminal process and detained for trial, persons convicted and under sentence, and persons committed upon civil process, shall not be kept or put in the same room, nor shall male and female prisoners, except husband and wife, sleep, dress or undress, bathe, or perform eliminatory functions in the same room. However, persons committed on criminal process and detained for trial may be kept or put in the same room with persons convicted and under sentence for the purpose of participating in supervised activities and for the purpose of housing, provided, that the housing occurs as a result of a classification procedure that is based upon objective criteria, including consideration of criminal sophistication, seriousness of crime charged, presence or absence of assaultive behavior, age, and other criteria that will provide for the safety of the prisoners and staff.
  (b) Inmates who are held pending civil process under the sexually violent predator laws shall be held in administrative segregation. For purposes of this subdivision, administrative segregation means separate and secure housing that does not involve any deprivation of privileges other than what is necessary to protect the inmates and staff. Consistent with Section 1610, to the extent possible, the person shall continue in his or her course of treatment, if any. An alleged sexually violent predator held pending civil process may waive placement in secure housing by petitioning the court for a waiver. In order to grant the waiver, the court must find that the waiver is voluntary and intelligent, and that granting the waiver would not interfere with any treatment programming for the person requesting the waiver. A person granted a waiver shall be placed with inmates charged with similar offenses or with similar criminal histories, based on the objective criteria set forth in subdivision (a).
  (c) Nothing in this section shall be construed to impose any requirement upon a county to confine male and female prisoners in the same or an adjoining facility or impose any duty upon a county to establish or maintain programs which involve the joint participation of male and female prisoners.
Whenever any weapon or other personal property is taken from an arrested person, it shall be the duty of the desk clerk or other proper officer of any city, county or city and county jail, to which such person is committed for detention, to give a receipt to such person without delay for the property taken.
A prisoner committed to the county jail for examination, or upon conviction for a public offense, must be actually confined in the jail until legally discharged; and if the prisoner is permitted to go at large out of the jail, except by virtue of a legal order or process, it is an escape; provided, however, that during the pendency of a criminal proceeding, the court before which said proceeding is pending may make a legal order, good cause appearing therefor, for the removal of the prisoner from the county jail in custody of the sheriff. In courts where there is a marshal, the marshal shall maintain custody of such prisoner while the prisoner is in the court facility pursuant to such court order. The superior court of the county may make a legal order, good cause appearing therefor, for the removal of prisoners confined in the county jail, after conviction, in the custody of the sheriff. If facilities are no longer available in the county jail due to crowded conditions, a sheriff may transfer a person committed to the county jail upon conviction for a public offense to facilities which are available in the city jail, as provided for in Section 4004.5.
(a) A city may furnish facilities to be used for holding prisoners held for examination or during trial without cost to the county or upon such terms as may be agreed upon by the governing body of the city and the board of supervisors, and the marshal may keep the prisoners in their custody in the city jail.
  (b) A city may furnish facilities to be used for holding persons convicted of a public offense who have been transferred from the county jail by the sheriff due to crowded conditions upon those terms as may be agreed upon by the governing body of the city and the board of supervisors. The agreed terms may indicate that the facilities are to be provided free of charge to the county.
(a) Except as provided in subdivision (b), the sheriff shall receive, and keep in the county jail, any prisoner committed thereto by process or order issued under the authority of the United States, until he or she is discharged according to law, as if he or she had been committed under process issued under the authority of this state; provision being made by the United States for the support of the prisoner.
  (b) The sheriff shall receive, and keep in the county jail, any prisoner committed thereto by process or order issued under the authority of the United States, until he or she is discharged according to law, as if he or she had been committed under process issued under the authority of this state, but only if the sheriff determines that adequate space in appropriate detention areas currently exists for this purpose. Provision shall be made by the United States for the support of the prisoner. This subdivision shall apply only in counties where a facility operated by the United States Bureau of Prisons exists within 200 miles of the county seat.
A sheriff, to whose custody a prisoner is committed as provided in the last section, is answerable for his safekeeping in the courts of the United States, according to the laws thereof.
(a) Notwithstanding any other provision of law, a county board of supervisors or city council may enter into a contract with the federal government, or any department or agency thereof, to manage, control, and operate a federal prison located within the boundaries of that county or city.
  (b) If a city or county enters into a contract pursuant to subdivision (a), the sheriff or chief of police, as appropriate, shall have sole and exclusive authority to keep the prison and the prisoners in it.
  (c) If a city or county enters into a contract pursuant to subdivision (a), the employees working in the prison shall be employees of, and under the authority of, the sheriff or chief of police, as appropriate.
When there is no jail in the county, or when the jail becomes unfit or unsafe for the confinement of prisoners, the judge of the superior court may, by a written order filed with the clerk of the court, designate the jail of a contiguous county for the confinement of any prisoner of his or her county, and may at any time modify or vacate the order. When there are reasonable grounds to believe that a prisoner may be forcibly removed from a county jail, the sheriff may remove the prisoner to any California state prison for safekeeping and it is the duty of the warden of the prison to accept and detain the prisoner in his or her custody until his or her removal is ordered by the superior court of the county from which he or she was delivered. Immediately upon receiving the prisoner the warden shall advise the Director of Corrections of that fact in writing. When a county prisoner requires medical treatment necessitating hospitalization which cannot be provided at the county jail or county hospital because of lack of adequate detention facilities, and when the prisoner also presents a serious custodial problem because of his or her past or present behavior, the judge of the superior court may, on the request of the county sheriff and with the consent of the Director of Corrections, designate by written order the nearest state prison or correctional facility which would be able to provide the necessary medical treatment and secure confinement of the prisoner. The written order of the judge shall be filed with the clerk of the court. The court shall immediately calendar the matter for a hearing to determine whether the order shall continue or be rescinded. The hearing shall be held within 48 hours of the initial order or the next judicial day, whichever occurs later. The prisoner shall not be transferred to the state prison or correctional facility prior to the hearing, except upon a determination by the physician responsible for the prisoner's health care that a medical emergency exists which requires the transfer of the prisoner to the state prison or correctional facility prior to the hearing. The prisoner shall be entitled to be present at the hearing and to be represented by counsel. The prisoner may waive his or her right to this hearing in writing at any time. If the prisoner waives his or her right to the hearing, the county sheriff shall notify the prisoner's attorney of the transfer within 48 hours, or the next business day, whichever is later. The court may modify or vacate the order at any time. The rate of compensation for the prisoner's medical treatment and confinement within a California state prison or correctional facility shall be established by the Department of Corrections, and shall be charged against the county making the request. When there are reasonable grounds to believe that there is a prisoner in a county jail who is likely to be a threat to other persons in the facility or who is likely to cause substantial damage to the facility, the judge of the superior court may, on the request of the county sheriff and with the consent of the Director of Corrections, designate by written order the nearest state prison or correctional facility which would be able to secure confinement of the prisoner, subject to space available. The written order of the judge must be filed with the clerk of the court. The court shall immediately calendar the matter for a hearing to determine whether the order shall continue or be rescinded. The hearing shall be held within 48 hours of the initial order or the next judicial day, whichever occurs later. The prisoner shall be entitled to be present at the hearing and to be represented by counsel. The court may modify or vacate that order at any time. The rate of compensation for the prisoner's confinement within a California state prison or correctional facility shall be established by the Department of Corrections and shall be charged against the county making the request.
A copy of the appointment, certified by the clerk of the court, must be served on the sheriff or keeper of the jail designated, who must receive into the jail all prisoners authorized to be confined therein, pursuant to Section 4007, and who is responsible for the safekeeping of the persons so committed, in the same manner and to the same extent as if the sheriff or keeper of the jail were sheriff of the county for whose use the jail is designated, and with respect to the persons so committed the sheriff or keeper of the jail is deemed the sheriff of the county from which they were removed.
When a jail is erected in a county for the use of which the designation was made, or its jail is rendered fit and safe for the confinement of prisoners, the judge of the superior court of that county must, by a written revocation, filed with the clerk of the court, declare that the necessity for the designation has ceased, and that it is revoked.
The clerk of the court must immediately serve a copy of the revocation upon the sheriff of the county, who must thereupon remove the prisoners to the jail of the county from which the removal was had.
(a) When it is made to appear to any judge by affidavit of the sheriff or other official in charge of county correctional facilities or district attorney and oral testimony that a prisoner confined in any city or county jail within the jurisdiction of the court requires medical or surgical treatment necessitating hospitalization, which treatment cannot be furnished or supplied at such city or county jail, the court in its discretion may order the removal of such person or persons from such city or county jail to the county hospital in such county; provided, if there is no county hospital in such county, then to any hospital designated by such court; and it shall be the duty of the sheriff or other official in charge of county correctional facilities to maintain the necessary guards, who may be private security guards, for the safekeeping of such prisoner, the expense of which shall be a charge against the county.
  (b) The cost of such medical services and such hospital care and treatment shall be charged against the county subject to subdivisions (c) and (d), in the case of a prisoner in or taken from the county jail, or against the city in the case of a prisoner in or taken from the city jail, and the city or county may recover the same by appropriate action from the person so served or cared for, or any person or agency responsible for his care and maintenance. If the prisoner is in the county jail under contract with a city or under some other arrangement with the city to keep the city prisoner in the county jail, then the city shall be charged, subject to subdivisions (c) and (d), for the prisoner's care and maintenance with the same right of recovery against any responsible person or any other agency.
  (c) When such prisoner is poor and indigent the cost of such medical services and such hospital care and treatment shall, in the case of persons removed from the city jail be paid out of the general fund of such city, and in the case of persons removed from the county jail to a hospital other than a county hospital, such cost shall be paid out of the general fund of such county or city and county. In the case of city jail prisoners removed to the county hospital, the cost of such hospital care and treatment to be paid by the city to the county, shall be the rate per day fixed by the board of supervisors of such county. Such board of supervisors may, but need not, fix different rates for different classes of patients, or for different wards, and any and all such rates may be changed by such board of supervisors at any time, but shall at all times approximate as nearly as may be, the average actual cost to the county of such hospital care and treatment either in such wards or for such classes of patients or otherwise.
  (d) In the event such prisoner is financially able to pay for his care, support and maintenance, the medical superintendent of such hospital other than a county hospital may, with the approval of such judge, enter into a special agreement with such person, or with his relatives or friends, for his care, support, maintenance, and other hospital expenses. Any prisoner may decline such care or treatment and provide other care and treatment for himself at his own expense.
(a) Notwithstanding Section 29602 of the Government Code and any other provisions of this chapter, a county, city or the Department of the Youth Authority is authorized to make claim for and recovery of the costs of necessary hospital, medical, surgical, dental, or optometric care rendered to any prisoner confined in a county or city jail or any juvenile confined in a detention facility, who would otherwise be entitled to that care under the Medi-Cal Act (Chapter 7 (commencing with Section 14000) Part 3, Division 9, of the Welfare and Institutions Code), and who is eligible for that care on the first day of confinement or detention, to the extent that federal financial participation is available, or under the provisions of any private program or policy for that care, and the county, city or the Department of the Youth Authority shall be liable only for the costs of that care as cannot be recovered pursuant to this section. No person who is eligible for Medi-Cal shall be eligible for benefits under the provisions of this section, and no county or city or the Department of the Youth Authority is authorized to make a claim for any recovery of costs for services for that person, unless federal financial participation is available for all or part of the costs of providing services to that person under the Medi-Cal Act. Notwithstanding any other provision of law, any county or city making a claim pursuant to this section and under the Medi-Cal Act shall reimburse the Health Care Deposit Fund for the state costs of paying those medical claims. Funds allocated to the county from the County Health Services Fund pursuant to Part 4.5 (commencing with Section 16700) of Division 9 of the Welfare and Institutions Code may be utilized by the county or city to make that reimbursement.
  (b) Notwithstanding Section 29602 of the Government Code and any other provisions of this chapter, to the extent that recovery of costs of necessary hospital, medical, surgical, dental, or optometric care are not accomplished under subdivision (a), a county, city, or the Department of the Youth Authority is authorized to make claim for and recover from a prisoner or a person legally responsible for a prisoner's care and maintenance the costs of necessary hospital, medical, surgical, dental, or optometric care rendered to any prisoner confined in a county or city jail, or any juvenile confined in a detention facility, where the prisoner or the person legally responsible for the prisoner's care and maintenance is financially able to pay for the prisoner's care, support, and maintenance. Nothing in this subdivision shall be construed to authorize a city, a county, or the Department of the Youth Authority to make a claim against a spouse of a prisoner.
  (c) Necessary hospital, medical, dental, or optometric care, as used in this section, does not include care rendered with respect to an injury occurring during confinement in a county or city jail or juvenile detention facility, nor does it include any care or testing mandated by law.
  (d) Subdivisions (b) and (c) shall apply only where there has been a determination of the present ability of the prisoner or responsible third party to pay all or a portion of the cost of necessary hospital, medical, surgical, dental, or optometric care. The person legally responsible for the prisoner's care shall provide a financial disclosure statement, executed under penalty of perjury, based on his or her past year's income tax return, to the Department of the Youth Authority. The city, county, or Department of the Youth Authority may request that the prisoner appear before a designated hearing officer for an inquiry into the ability of the prisoner or responsible third party to pay all or part of the cost of the care provided.
  (e) Notice of this request shall be provided to the prisoner or responsible third party, which shall contain the following:
  (1) A statement of the cost of the care provided to the prisoner.
  (2) The prisoner's or responsible third party's procedural rights under this section.
  (3) The time limit within which the prisoner or responsible third party may respond.
  (4) A warning that if the prisoner or responsible third party fails to appear before, or respond to, the designated officer, the officer may petition the court for an order requiring him or her to make payment of the full cost of the care provided to the prisoner.
  (f) At the hearing, the prisoner or responsible third party shall be entitled to, but shall not be limited to, all of the following rights:
  (1) The right to be heard in person.
  (2) The right to present witnesses and documentary evidence.
  (3) The right to confront and cross-examine adverse witnesses.
  (4) The right to have adverse evidence disclosed to him or her.
  (5) The right to a written statement of the findings of the designated hearing officer.
  (g) If the hearing officer determines that the prisoner or responsible third party has the present ability to pay all or a part of the cost, the officer shall set the amount to be reimbursed, and shall petition the court to order the prisoner or responsible third party to pay the sum to the city, county, or state, in the manner in which it finds reasonable and compatible to the prisoner's or responsible third party's financial ability. The court's order shall be enforceable in the manner provided for money judgments in a civil action under the Code of Civil Procedure.
  (h) At any time prior to satisfaction of the judgment rendered according to the terms of this section, a prisoner or responsible third party against whom a judgment has been rendered, may petition the rendering court for a modification of the previous judgment on the grounds of a change of circumstance with regard to his or her ability to pay the judgment. The prisoner or responsible third party shall be advised of this right at the time the original judgment is rendered.
  (i) As used in this section, "ability to pay" means the overall capacity of the prisoner or responsible third party to reimburse the costs, or a portion of the costs, of the care provided to the prisoner, and shall include, but not be limited to, all of the following:
  (1) The prisoner's or responsible third party's present financial position.
  (2) The prisoner's or responsible third party's discernible future financial position.
  (3) The likelihood that the prisoner or responsible third party will be able to obtain employment in the future.
  (4) Any other factor or factors which may bear upon the prisoner's or responsible third party's financial position.
(a) Notwithstanding Section 4011.1, a sheriff, chief or director of corrections, or chief of police is authorized to charge a fee in the amount of three dollars ($3) for each inmate-initiated medical visit of an inmate confined in a county or city jail.
  (b) The fee shall be charged to the inmate's personal account at the facility. If the inmate has no money in his or her personal account, there shall be no charge for the medical visit.
  (c) An inmate shall not be denied medical care because of a lack of funds in his or her personal account at the facility.
  (d) The medical provider may waive the fee for any inmate-initiated treatment and shall waive the fee in any life-threatening or emergency situation, defined as those health services required for alleviation of severe pain or for immediate diagnosis and treatment of unforeseen medical conditions that if not immediately diagnosed and treated could lead to disability or death.
  (e) Followup medical visits at the direction of the medical staff shall not be charged to the inmate.
  (f) All moneys received by a sheriff, chief or director of corrections, or chief of police pursuant to this section shall be transferred to the county or city general fund.
Whenever it appears to a sheriff or jailer that a prisoner in a county jail or a city jail under his charge is in need of immediate medical or hospital care, and that the health and welfare of the prisoner will be injuriously affected unless he is forthwith removed to a hospital, the sheriff or jailer may authorize the immediate removal of the prisoner under guard to a hospital, without first obtaining a court order as provided in Section 4011. In any such case, however, if the condition of the prisoner prevents his return to the jail within 48 hours from the time of his removal, the sheriff or jailer shall apply to a judge of the superior court for an order authorizing the continued absence of the prisoner from the jail in the manner provided in Section 4011. The provisions of Section 4011 governing the cost of medical and hospital care of prisoners and the liability therefor, shall apply to the cost of, and the liability for, medical or hospital care of prisoners removed from jail pursuant to this section.
In any case in which it appears to the person in charge of a county jail, city jail, or juvenile detention facility, or to any judge of a court in the county in which the jail or juvenile detention facility is located, that a person in custody in that jail or juvenile detention facility may be mentally disordered, he or she may cause the prisoner to be taken to a facility for 72-hour treatment and evaluation pursuant to Section 5150 of the Welfare and Institutions Code and he or she shall inform the facility in writing, which shall be confidential, of the reasons that the person is being taken to the facility. The local mental health director or his or her designee may examine the prisoner prior to transfer to a facility for treatment and evaluation. Upon transfer to a facility, Article 1 (commencing with Section 5150), Article 4 (commencing with Section 5250), Article 4.5 (commencing with Section 5260), Article 5 (commencing with Section 5275), Article 6 (commencing with Section 5300), and Article 7 (commencing with Section 5325) of Chapter 2 and Chapter 3 (commencing with Section 5350) of Part 1 of Division 5 of the Welfare and Institutions Code shall apply to the prisoner. Where the court causes the prisoner to be transferred to a 72-hour facility, the court shall forthwith notify the local mental health director or his or her designee, the prosecuting attorney, and counsel for the prisoner in the criminal or juvenile proceedings about that transfer. Where the person in charge of the jail or juvenile detention facility causes the transfer of the prisoner to a 72-hour facility the person shall immediately notify the local mental health director or his or her designee and each court within the county where the prisoner has a pending proceeding about the transfer. Upon notification by the person in charge of the jail or juvenile detention facility the court shall forthwith notify counsel for the prisoner and the prosecuting attorney in the criminal or juvenile proceedings about that transfer. If a prisoner is detained in, or remanded to, a facility pursuant to those articles of the Welfare and Institutions Code, the facility shall transmit a report, which shall be confidential, to the person in charge of the jail or juvenile detention facility or judge of the court who caused the prisoner to be taken to the facility and to the local mental health director or his or her designee, concerning the condition of the prisoner. A new report shall be transmitted at the end of each period of confinement provided for in those articles, upon conversion to voluntary status, and upon filing of temporary letters of conservatorship. A prisoner who has been transferred to an inpatient facility pursuant to this section may convert to voluntary inpatient status without obtaining the consent of the court, the person in charge of the jail or juvenile detention facilty, or the local mental health director. At the beginning of that conversion to voluntary status, the person in charge of the facility shall transmit a report to the person in charge of the jail or juvenile detention facility or judge of the court who caused the prisoner to be taken to the facility, counsel for the prisoner, prosecuting attorney, and local mental health director or his or her designee. If the prisoner is detained in, or remanded to, a facility pursuant to those articles of the Welfare and Institutions Code, the time passed in the facility shall count as part of the prisoner's sentence. When the prisoner is detained in, or remanded to, the facility, the person in charge of the jail or juvenile detention facility shall advise the professional person in charge of the facility of the expiration date of the prisoner's sentence. If the prisoner is to be released from the facility before the expiration date, the professional person in charge shall notify the local mental health director or his or her designee, counsel for the prisoner, the prosecuting attorney, and the person in charge of the jail or juvenile detention facility, who shall send for, take, and receive the prisoner back into the jail or juvenile detention facility. A defendant, either charged with or convicted of a criminal offense, or a minor alleged to be within the jurisdiction of the juvenile court, may be concurrently subject to the Lanterman-Petris-Short Act (Part 1 (commencing with Section 5000) of Division 5 of the Welfare and Institutions Code). If a prisoner is detained in a facility pursuant to those articles of the Welfare and Institutions Code and if the person in charge of the facility determines that arraignment or trial would be detrimental to the well-being of the prisoner, the time spent in the facility shall not be computed in any statutory time requirements for arraignment or trial in any pending criminal or juvenile proceedings. Otherwise, this section shall not affect any statutory time requirements for arraignment or trial in any pending criminal or juvenile proceedings. For purposes of this section, the term "juvenile detention facility" includes any state, county, or private home or institution in which wards or dependent children of the juvenile court or persons awaiting a hearing before the juvenile court are detained.
Notwithstanding the provisions of Sections 4011 and 4011.5, when it appears that the prisoner in need of medical or surgical treatment necessitating hospitalization or in need of medical or hospital care was arrested for, charged with, or convicted of an offense constituting a misdemeanor, the court in proceedings under Section 4011 or the sheriff or jailer in action taken under Section 4011.5 may direct that the guard be removed from the prisoner while he or she is in the hospital. If that direction is given, any prisoner who knowingly escapes or attempts to escape from that hospital shall upon conviction thereof be guilty of a misdemeanor and punishable by imprisonment for not to exceed one year in the county jail if the escape or attempt to escape was not by force or violence. However, if the escape is by force or violence the prisoner shall be guilty of a felony and punishable by imprisonment pursuant to subdivision (h) of Section 1170, or in the county jail for not exceeding one year; provided, that when that second term of imprisonment is to be served in the county jail it shall commence from the time that prisoner would otherwise be discharged from that jail.
A person in custody who has been charged with or convicted of a criminal offense may make voluntary application for inpatient or outpatient mental health services in accordance with Section 5003 of the Welfare and Institutions Code. If such services require absence from the jail premises, consent from the person in charge of the jail or from any judge of a court in the county in which the jail is located, and from the director of the county mental health program in which services are to be rendered, shall be obtained. The local mental health director or his designee may examine the prisoner prior to the transfer from the jail. Where the court approves voluntary treatment for a jail inmate for whom criminal proceedings are pending, the court shall forthwith notify counsel for the prisoner and the prosecuting attorney about such approval. Where the person in charge of the jail approves voluntary treatment for a prisoner for whom criminal proceedings are pending, the person in charge of the jail shall immediately notify each court within the county where the prisoner has a pending proceeding about such approval; upon notification by the jailer the court shall forthwith notify the prosecuting attorney and counsel for the prisoner in the criminal proceedings about such transfer. If the prisoner voluntarily obtains treatment in a facility or is placed on outpatient treatment pursuant to Section 5003 of the Welfare and Institutions Code, the time passed therein shall count as part of the prisoner's sentence. When the prisoner is permitted absence from the jail for voluntary treatment, the person in charge of the jail shall advise the professional person in charge of the facility of the expiration date of the prisoner's sentence. If the prisoner is to be released from the facility before such expiration date, the professional person in charge shall notify the local mental health director or his designee, counsel for the prisoner, the prosecuting attorney, and the person in charge of the jail, who shall send for, take, and receive the prisoner back into the jail. A denial of an application for voluntary mental health services shall be reviewable only by mandamus.
Notwithstanding the provisions of Sections 4011 and 4011.5, when it appears that the prisoner in need of medical or surgical treatment necessitating hospitalization or in need of medical or hospital care was arrested for, charged with, or convicted of an offense constituting a felony, the court in proceedings under Section 4011 or the sheriff or jailer in action taken under Section 4011. 5 may direct that the guard be removed from the prisoner while he is in the hospital, if it reasonably appears that the prisoner is physically unable to effectuate an escape or the prisoner does not constitute a danger to life or property.
(a) It is the intent of the Legislature in enacting this section to provide county sheriffs, chiefs of police, and directors or administrators of local detention facilities with an incentive to not engage in practices designed to avoid payment of legitimate health care costs for the treatment or examination of persons lawfully in their custody, and to promptly pay those costs as requested by the provider of services. Further, it is the intent of the Legislature to encourage county sheriffs, chiefs of police, and directors or administrators of local detention facilities to bargain in good faith when negotiating a service contract with hospitals providing health care services.
  (b) Notwithstanding any other law, a county sheriff, police chief, or other public agency that contracts for health care services, may contract with providers of health care services for care to local law enforcement patients. Hospitals that do not contract for health care services with the county sheriff, police chief, or other public agency shall provide health care services to local law enforcement patients at a rate equal to 110 percent of the hospital's actual costs according to the most recent Hospital Annual Financial Data report issued by the Office of Statewide Health Planning and Development, as calculated using a cost-to-charge ratio, or, for claims that have not previously been paid or otherwise determined by local law enforcement, according to the most recently approved cost-to-charge ratio from the Medicare Program. The hospital, with the approval of the county sheriff, police chief, or other public agency responsible for providing health care services to local law enforcement patients, may choose the most appropriate cost-to-charge ratio and shall provide notice to the county sheriff, police chief, or other public agency, as applicable, of any change. If the hospital uses the cost-to-charge ratio from the Medicare Program, the hospital shall attach supporting Medicare documentation and an expected payment calculation to the claim. If a claim does not contain the supporting Medicare documentation and expected payment calculation, or if, within 60 days of the hospital's request for approval to use the cost-to-charge ratio from the Medicare Program, approval is not granted by the county sheriff, police chief, or other public agency responsible for providing health care services to local law enforcement patients, the Office of Statewide Health Planning and Development cost-to-charge ratio shall be used to calculate the payment.
  (c) A county sheriff or police chief shall not request the release of an inmate from custody for the purpose of allowing the inmate to seek medical care at a hospital, and then immediately rearrest the same individual upon discharge from the hospital, unless the hospital determines this action would enable it to bill and collect from a third-party payment source.
  (d) The California Hospital Association, the University of California, the California State Sheriffs' Association, and the California Police Chiefs Association shall, immediately upon enactment of this section, convene the Inmate Health Care and Medical Provider Fair Pricing Working Group. The working group shall consist of at least six members from the California Hospital Association and the University of California, and six members from the California State Sheriffs' Association and the California Police Chiefs Association. Each organization should give great weight and consideration to appointing members of the working group with diverse geographic and demographic interests. The working group shall meet as needed to identify and resolve industry issues that create fiscal barriers to timely and affordable inmate health care. In addition, the working group shall address issues, including, but not limited to, inmates being admitted for care and later rearrested and any other fiscal barriers to hospitals being able to enter into fair market contracts with public agencies. To the extent that the rate provisions of this statute result in a disproportionate share of local law enforcement patients being treated at any one hospital or system of hospitals, the working group shall address this issue. No reimbursement is required under this provision.
  (e) This section does not require or encourage a hospital or public agency to replace any existing arrangements that any city police chief, county sheriff, or other public agency that contracts for health care services for local law enforcement patients has with health care providers.
  (f) An entity that provides ambulance or any other emergency or nonemergency response service to a sheriff or police chief, and that does not contract with their departments for that service, shall be reimbursed for the service at the rate established by Medicare. Neither the sheriff nor the police chief shall reimburse a provider of any of these services that his or her department has not contracted with at a rate that exceeds the provider's reasonable and allowable costs, regardless of whether the provider is located within or outside of California.
  (g) For the purposes of this section, "reasonable and allowable costs" shall be defined in accordance with Part 413 of Title 42 of the Code of Federal Regulations and federal Centers for Medicare and Medicaid Services Publication Numbers 15-1 and 15-2.
  (h) For purposes of this section, in those counties in which the sheriff does not administer a jail facility, a director or administrator of a local department of corrections established pursuant to Section 23013 of the Government Code is the person who may contract for services provided to jail inmates in the facilities he or she administers in those counties.
(a) (1) The board of supervisors in each county, in consultation with the county sheriff, may designate an entity or entities to assist county jail inmates with submitting an application for a health insurance affordability program consistent with federal requirements.
  (2) The board of supervisors shall not designate the county sheriff as an entity to assist with submitting an application for a health insurance affordability program for county jail inmates unless the county sheriff agrees to perform this function.
  (3) If the board of supervisors designates a community-based organization as an entity to assist with submitting an application for a health insurance affordability program for county jail inmates, the designation shall be subject to approval by the jail administrator or his or her designee.
  (b) The jail administrator, or his or her designee, may coordinate with an entity designated pursuant to subdivision (a).
  (c) Consistent with federal law, a county jail inmate who is currently enrolled in the Medi-Cal program shall remain eligible for, and shall not be terminated from, the program due to his or her detention unless required by federal law, he or she becomes otherwise ineligible, or the inmate's suspension of benefits has ended pursuant to Section 14011.10 of the Welfare and Institutions Code.
  (d) Notwithstanding any other state law, and only to the extent federal law allows and federal financial participation is available, an entity designated pursuant to subdivision (a) is authorized to act on behalf of a county jail inmate for the purpose of applying for, or determinations of, Medi-Cal eligibility for acute inpatient hospital services authorized by Section 14053.7 of the Welfare and Institutions Code. An entity designated pursuant to subdivision (a) shall not determine Medi-Cal eligibility or redetermine Medi-Cal eligibility, unless the entity is the county human services agency.
  (e) The fact that an applicant is an inmate shall not, in and of itself, preclude a county human services agency from processing an application for the Medi-Cal program submitted to it by, or on behalf of, that inmate.
  (f) For purposes of this section, "health insurance affordability program" means a program that is one of the following:
  (1) The state's Medi-Cal program under Title XIX of the federal Social Security Act.
  (2) The state's children's health insurance program (CHIP) under Title XXI of the federal Social Security Act.
  (3) A program that makes coverage in a qualified health plan through the California Health Benefit Exchange established pursuant to Section 100500 of the Government Code with advance payment of the premium tax credit established under Section 36B of the Internal Revenue Code available to qualified individuals.
  (4) A program that makes available coverage in a qualified health plan through the California Health Benefit Exchange established pursuant to Section 100500 of the Government Code with cost-sharing reductions established under Section 1402 of the federal Patient Protection and Affordable Care Act (Public Law 111-148) and any subsequent amendments to that act.
  (g) Notwithstanding Chapter 3.5 (commencing with Section 11340) of Part 1 of Division 3 of Title 2 of the Government Code, the department may implement this section by means of all-county letters or similar instructions, without taking regulatory action.
When a pestilence or contagious disease breaks out in or near a jail, and the physician thereof certifies that it is liable to endanger the health of the prisoners, the county judge may, by a written appointment, designate a safe and convenient place in the county, or the jail in a contiguous county, as the place of their confinement. The appointment must be filed in the office of the clerk of the court, and authorize the sheriff to remove the prisoners to the place or jail designated, and there confine them until they can be safely returned to the jail from which they were taken.
(a) A sheriff or jailer upon whom a paper in a judicial proceeding, directed to a prisoner in his or her custody, is served, shall forthwith deliver it to the prisoner, with a note thereon of the time of its service. For a neglect to do so, he or she is liable to the prisoner for all damages occasioned thereby.
  (b) Service directed to a person who is incarcerated within any institution in this state may be served by any person who may lawfully serve process.
The sheriff, when necessary, may, with the assent in writing of the county judge, or in a city, of the mayor thereof, employ a temporary guard for the protection of the county jail, or for the safekeeping of prisoners, the expenses of which are a county charge.
(a) The sheriff shall receive all persons committed to jail by competent authority. The board of supervisors shall provide the sheriff with necessary food, clothing, and bedding, for those prisoners, which shall be of a quality and quantity at least equal to the minimum standards and requirements prescribed by the Board of Corrections for the feeding, clothing, and care of prisoners in all county, city and other local jails and detention facilities. Except as provided in Section 4016, the expenses thereof shall be paid out of the county treasury.
  (b) Nothing in this section shall be construed in a manner that would require the sheriff to receive a person who is in need of immediate medical care until the person has been transported to a hospital or medical facility so that his or her medical needs can be addressed prior to booking into county jail.
  (c) Nothing in this section shall be construed or interpreted in a manner that would impose upon a city or its law enforcement agency any obligation to pay the cost of medical services rendered to any individual in need of immediate medical care who has been arrested by city law enforcement personnel and transported to a hospital or medical facility prior to being delivered to and received at the county jail or other detention facility for booking.
  (d) It is the intent of the Legislature in enacting the act adding this subdivision to ensure that the costs associated with providing medical care to an arrested person are borne by the arrested person's private medical insurance or any other source of medical cost coverage for which the arrested person is eligible.
Whenever a person is committed upon process in a civil action or proceeding, except when the people of this State are a party thereto, the sheriff is not bound to receive such person, unless security is given on the part of the party at whose instance the process is issued, by a deposit of money, to meet the expenses for him of necessary food, clothing, and bedding, or to detain such person any longer than these expenses are provided for. This section does not apply to cases where a party is committed as a punishment for disobedience to the mandates, process, writs, or orders of court.
A city or county shall be reimbursed by the Department of Corrections and Rehabilitation for costs incurred resulting from the detention of a state prisoner or a person sentenced or referred to the state prison when the detention meets any of the following conditions:
  (a) (1) The detention results from a new commitment, or a referral pursuant to Section 1203.03, once the abstract of judgment has been completed, the department's intake control unit has been notified by the county that the prisoner is ready to be transported pursuant to Section 1216, and the department is unable to accept delivery of the prisoner. The reimbursement shall be provided for each day starting on the day following the fifth working day after the date of notification by the county, if the prisoner remains ready to be delivered and the department is unable to receive the prisoner. If a county delivers or attempts to deliver a person to the department without the prior notification required by this paragraph, the date of the delivery or attempted delivery shall be recognized as the notification date pursuant to this paragraph. The notification and verification required by the county for prisoners ready to be transported, and reimbursement provided to the county for prisoners that the department is unable to receive, shall be made pursuant to procedures established by the department.
  (2) A city or county shall be reimbursed by the department from funds appropriated in Item 5240-001-0001 of the annual Budget Act for costs incurred pursuant to this subdivision.
  (3) The reimbursement required by this section shall be expended for maintenance, upkeep, and improvement of jail conditions, facilities, and services. Before the county is reimbursed by the department, the total amount of all charges against that county authorized by law for services rendered by the department shall be first deducted from the gross amount of reimbursement authorized by this section. The net reimbursement shall be calculated and paid monthly by the department. The department shall withhold all or part of the net reimbursement to a county whose jail facility or facilities do not conform to minimum standards for local detention facilities as authorized by Section 6030 only if the county is failing to make reasonable efforts to correct differences, with consideration given to the resources available for those purposes.
  (4) "Costs incurred resulting from the detention," as used in this section, shall include the same cost factors as are utilized by the Department of Corrections and Rehabilitation in determining the cost of prisoner care in state correctional facilities.
  (b) No city, county, or other jurisdiction may file, and the state may not reimburse, a claim pursuant to this section that is presented to the Department of Corrections and Rehabilitation or to any other agency or department of the state more than six months after the close of the month in which the costs were incurred.
  (c) The changes to this section made by the act that added this subdivision shall be effective on October 1, 2011.
All persons confined in the county jail, industrial farm, road camp, or city jail under a final judgment of imprisonment rendered in a criminal action or proceeding and all persons confined in the county jail, industrial farm, road camp, or city jail as a condition of probation after suspension of imposition of a sentence or suspension of execution of sentence may be required by an order of the board of supervisors or city council to perform labor on the public works or ways in the county or city, respectively, and to engage in the prevention and suppression of forest, brush and grass fires upon lands within the county or city, respectively, or upon lands in adjacent counties where the suppression of fires would afford fire protection to lands within the county. Whenever any such person so in custody shall suffer injuries or death while working in the prevention or suppression of forest, brush or grass fires he shall be considered to be an employee of the county or city, respectively, for the purposes of compensation under the provisions of the Labor Code regarding workmen's compensation and such work shall be performed under the direct supervision of a local, state or federal employee whose duties include fire prevention and suppression work. A regularly employed member of an organized fire department shall not be required to directly supervise more than 20 such persons so in custody. As used in this section, "labor on the public works" includes clerical and menial labor in the county jail, industrial farm, camps maintained for the labor of such persons upon the ways in the county, or city jail.
(a) (1) Except as provided in paragraph (2), any person confined in a county jail, industrial farm, road camp, or city jail who is required or permitted by an order of the board of supervisors or city council to perform work, and any person while performing community service in lieu of a fine or custody or who is assigned to work furlough, may not be employed to perform any function that provides access to personal information of private individuals, including, but not limited to, the following: addresses; telephone numbers; health insurance, taxpayer, school, or employee identification numbers; mothers' maiden names; demand deposit account, debit card, credit card, savings account, or checking account numbers, PINs, or passwords; social security numbers; places of employment; dates of birth; state- or government-issued driver's license or identification numbers; alien registration numbers; government passport numbers; unique biometric data, such as fingerprints, facial scan identifiers, voice prints, retina or iris images, or other similar identifiers; unique electronic identification numbers; address or routing codes; and telecommunication identifying information or access devices.
  (2) Notwithstanding paragraph (1), persons assigned to work furlough programs may be permitted to work in situations that allow them to retain or look at a driver's license or credit card for no longer than the period of time needed to complete an immediate transaction. However, no person assigned to work furlough shall be placed in any position that may require the deposit of a credit card or driver's license as insurance or surety.
  (b) Any person confined in a county jail, industrial farm, road camp, or city jail who has access to any personal information shall disclose that he or she is confined before taking any personal information from anyone.
  (c) This section shall not apply to inmates in employment programs or public service facilities where incidental contact with personal information may occur.
In any case in which a person is confined to a city or county jail for a definite period of time for contempt pursuant to an action or proceeding other than a criminal action or proceeding, all of the provisions of law authorizing, requiring, or otherwise relating to, the performance of labor or work by persons sentenced to such facilities for like periods of time under a judgment of imprisonment, or a fine and imprisonment until the fine is paid or as a condition of probation after suspension of imposition of a sentence or suspension of execution of sentence, in a criminal action or proceeding, shall apply. Nothing in this section shall be construed to authorize the confinement of any prisoner contrary to the provisions of Section 4001.
The board of supervisors making such order may prescribe and enforce the rules and regulations under which such labor is to be performed; and provide clothing of such a distinctive character for said prisoners as such board, in its discretion, may deem proper.
Subject to the availability of adequate state funding for these purposes, the sheriff of each county shall provide inmates who have been sentenced for drug-related offenses with information about behavior that places a person at high risk for contracting the human immunodeficiency virus (HIV), and about the prevention of the transmission of acquired immune deficiency syndrome (AIDS). Each county sheriff or the chief county probation officer shall provide all inmates who have been sentenced for drug-related offenses, who are within one month of release, or who have been placed on probation, with information about behavior that places a person at high risk for contracting HIV, about the prevention of the transmission of AIDS, and about agencies and facilities that provide testing, counseling, medical, and support services for AIDS victims. Information about AIDS prevention shall be solicited by each county sheriff or chief county probation officer from the State Department of Health Services, the county health officer, or local agencies providing services to persons with AIDS. The Director of Health Services, or his or her designee, shall approve protocols pertaining to the information to be disseminated under this section.
The sheriff or other official in charge of county correctional facilities may, subject to the approval of the board of supervisors, provide for the vocational training and rehabilitation of prisoners confined in the county jail, or any county industrial farm or county or joint county road camp. The sheriff or other official in charge of county correctional facilities may, subject to such approval, enter into an agreement with the governing board of any school district maintaining secondary schools, for the maintenance, by the district, for such prisoners, of adult education classes conducted pursuant to the Education Code.
The sheriff of the county may authorize the temporary removal under custody or temporary release without custody of any inmate of the county jail, honor farm, or other detention facility for family emergencies or for purposes preparatory to his return to the community, if the sheriff concludes that such inmate is a fit subject therefor. Any such temporary removal shall not be for a period of more than three days. When an inmate is released for purposes preparatory to his return to the community, the sheriff may require the inmate to reimburse the county, in whole or in part, for expenses incurred by the county in connection therewith.
(a) The provisions of this section shall apply in all of the following cases:
  (1) When a prisoner is confined in or committed to a county jail, industrial farm, or road camp, or any city jail, industrial farm, or road camp, including all days of custody from the date of arrest to the date on which the serving of the sentence commences, under a judgment of imprisonment, or a fine and imprisonment until the fine is paid in a criminal action or proceeding.
  (2) When a prisoner is confined in or committed to the county jail, industrial farm, or road camp or any city jail, industrial farm, or road camp as a condition of probation after suspension of imposition of a sentence or suspension of execution of sentence, in a criminal action or proceeding.
  (3) When a prisoner is confined in or committed to the county jail, industrial farm, or road camp or any city jail, industrial farm, or road camp for a definite period of time for contempt pursuant to a proceeding, other than a criminal action or proceeding.
  (4) When a prisoner is confined in a county jail, industrial farm, or road camp, or a city jail, industrial farm, or road camp following arrest and prior to the imposition of sentence for a felony conviction.
  (5) When a prisoner is confined in a county jail, industrial farm, or road camp, or a city jail, industrial farm, or road camp as part of custodial sanction imposed following a violation of postrelease community supervision or parole.
  (6) When a prisoner is confined in a county jail, industrial farm, or road camp, or a city jail, industrial farm, or road camp as a result of a sentence imposed pursuant to subdivision (h) of Section 1170.
  (7) When a prisoner participates in a program pursuant to Section 1203.016 or Section 4024.2. Except for prisoners who have already been deemed eligible to receive credits for participation in a program pursuant to Section 1203.016 prior to January 1, 2015, this paragraph shall apply prospectively.
  (b) Subject to the provisions of subdivision (d), for each four-day period in which a prisoner is confined in or committed to a facility as specified in this section, one day shall be deducted from his or her period of confinement unless it appears by the record that the prisoner has refused to satisfactorily perform labor as assigned by the sheriff, chief of police, or superintendent of an industrial farm or road camp.
  (c) For each four-day period in which a prisoner is confined in or committed to a facility as specified in this section, one day shall be deducted from his or her period of confinement unless it appears by the record that the prisoner has not satisfactorily complied with the reasonable rules and regulations established by the sheriff, chief of police, or superintendent of an industrial farm or road camp.
  (d) This section does not require the sheriff, chief of police, or superintendent of an industrial farm or road camp to assign labor to a prisoner if it appears from the record that the prisoner has refused to satisfactorily perform labor as assigned or that the prisoner has not satisfactorily complied with the reasonable rules and regulations of the sheriff, chief of police, or superintendent of any industrial farm or road camp.
  (e) A deduction shall not be made under this section unless the person is committed for a period of four days or longer.
  (f) It is the intent of the Legislature that if all days are earned under this section, a term of four days will be deemed to have been served for every two days spent in actual custody.
  (g) The changes in this section as enacted by the act that added this subdivision shall apply to prisoners who are confined to a county jail, city jail, industrial farm, or road camp for a crime committed on or after the effective date of that act.
  (h) The changes to this section enacted by the act that added this subdivision shall apply prospectively and shall apply to prisoners who are confined to a county jail, city jail, industrial farm, or road camp for a crime committed on or after October 1, 2011. Any days earned by a prisoner prior to October 1, 2011, shall be calculated at the rate required by the prior law.
  (i) This section shall not apply, and no credits may be earned, for periods of flash incarceration imposed pursuant to Section 3000.08 or 3454.
(a) Notwithstanding any other law, the sheriff or county director of corrections may, at his or her discretion, award additional time credits to any inmate sentenced to the county jail who participates in an in-custody work or job training program other than those specified in Section 4019.2, and who is eligible to receive one day of credit for every one day of incarceration pursuant to Section 4019. The sheriff or county director of corrections may instead award one and one-half days of credit for every one day of incarceration while satisfactorily participating in work or job training subject to this section.
  (b) As used in this section, a work or job training program includes, but is not limited to, any inmate working on an industrial farm or industrial road camp as authorized in Section 4101, an environmental improvement and preservation program, or projects such as forest and brush fire prevention, forest, brush, and watershed management, fish and game management, soil conservation, and forest and watershed revegetation.
(a) Notwithstanding any other law, any inmate sentenced to county jail assigned to a conservation camp by a sheriff and who is eligible to earn one day of credit for every one day of incarceration pursuant to Section 4019 shall instead earn two days of credit for every one day of service.
  (b) Notwithstanding any other law, any inmate who has completed training for assignment to a conservation camp or to a state or county facility as an inmate firefighter or who is assigned to a county or state correctional institution as an inmate firefighter and who is eligible to earn one day of credit for every one day of incarceration pursuant to Section 4019 shall instead earn two days of credit for every one day served in that assignment or after completing that training.
  (c) In addition to credits granted pursuant to subdivision (a) or (b), inmates who have successfully completed training for firefighter assignments shall receive a credit reduction from his or her term of confinement.
  (d) The credits authorized in subdivisions (b) and (c) shall only apply to inmates who are eligible after October 1, 2011.
The board of supervisors may provide that each prisoner confined in or committed to a county jail shall be credited with a sum not to exceed two dollars ($2) for each eight hours of work done by him in such county jail.
(a) (1) In addition to credit awarded pursuant to Section 4019, a sheriff or county director of corrections may also award a prisoner program credit reductions from his or her term of confinement as provided in this section. A sheriff or county director of corrections who elects to participate in this credit reduction program shall create guidelines that provide for credit reductions for inmates who successfully complete specific program performance objectives for approved rehabilitative programming, including, but not limited to, credit reduction of not less than one week to credit reduction of not more than six weeks for each performance milestone.
  (2) Guidelines adopted by a sheriff or county director of corrections pursuant to this subdivision shall specify the credit reductions applicable to distinct objectives in a schedule of graduated program performance objectives concluding with the successful completion of an in-custody rehabilitation program. Upon adopting the guidelines, the sheriff or county director of corrections shall thereafter calculate and award credit reductions authorized by this section. A prisoner may not have his or her term of imprisonment reduced by more than six weeks for credits awarded pursuant to this section during any 12-month period of continuous confinement.
  (b) Program credit is a privilege, not a right. Prisoners shall have a reasonable opportunity to participate in program credit qualifying assignments in a manner consistent with institutional security, available resources, and guidelines set forth by the sheriff or county director of corrections.
  (c) As used in this section, "approved rehabilitation programming" shall include, but is not limited to, academic programs, vocational programs, vocational training, substance abuse programs, and core programs such as anger management and social life skills.
  (d) Credits awarded pursuant to this section may be forfeited pursuant to the provisions of Section 4019. Inmates shall not be eligible for program credits that result in an inmate being overdue for release.
  (e) This section shall only apply to inmates sentenced to county jail pursuant to subdivision (h) of Section 1170.
(a) "Kangaroo court" as used in this section means a mock court conducted by any prisoner or group of prisoners for the purpose of inflicting punishment upon any fellow prisoner in any prison, jail, jail camp, or other place of detention.
  (b) "Sanitary committee" means a committee of prisoners formed ostensibly for the purpose of enforcing institutional sanitation but actually used for the purpose of inflicting punishment on any fellow prisoner, or group of prisoners in any prison, jail, jail camp, or other place of detention.
  (c) It is unlawful for any sheriff, deputy sheriff, police officer, warden or keeper of a jail to delegate to any prisoner or group of prisoners, authority to exercise the right of punishment over any other prisoner or group of prisoners in any county or city prison, jail, jail camp, or other place of detention at which any person charged with or convicted of crime is detained.
  (d) It is unlawful for any sheriff, deputy sheriff, police officer, warden or keeper of a jail to knowingly permit any prisoner or group of prisoners to assume authority over any other prisoner or group of prisoners by the operation of "kangaroo courts" or "sanitary committees."
  (e) Every public official in charge of a prison, jail or other place of detention shall keep a record of all disciplinary infractions and punishment administered therefor.
  (f) This section shall not prevent the use of skilled inmates, under adequate and proper supervision and guidance of jailers or other employed personnel, as instructors of other inmates in the performance of assigned work, if that relationship does not include the exercise of disciplinary authority.
Whenever the board of health of any city or county, or the board of supervisors of any county, or the county physician of any county of this State, presents, or causes to be presented to the sheriff, or other officer having charge of any county jail or prison in any county or city, in this State, a certificate, or order, in writing, to the effect that it is by them, or him, considered necessary for the purpose of protecting the public health, or to prevent the introduction or spreading of disease, or to protect or improve the health of criminals under sentence, that the hair of any criminal or criminals be cut, such sheriff, or other officer, must cut, or cause to be cut, the hair of any such person or persons in his charge convicted of a misdemeanor and sentenced to a longer term of imprisonment than 15 days, to a uniform length of one and one-half inches from the scalp of such person or persons so imprisoned.
In every county having a population of more than 275,000, there shall be a female deputy sheriff in charge of female prisoners. The sheriff of the county shall appoint the female deputy sheriff in charge of female prisoners.
The duties and powers of the female deputy sheriff or other suitable woman assigned to jail duty shall be as follows:
  (a) She shall have free access at all reasonable times to the immediate presence of all female prisoners in the county jail to which she is assigned, including the right of personal visitation and conversation with them, and in all cases of searching the persons of female prisoners in such jail, the female deputy sheriff shall make such search;
  (b) The female deputy sheriff or other suitable woman shall by example, advice, and admonition employ her best abilities to secure and promote the health, welfare, and reformation of all such prisoners.
No officer, deputy, jailer, keeper, guard, or person having charge or control of any such county jail shall refuse the duly appointed and qualified female deputy sheriff thereof, or other suitable woman having the care of female prisoners, free access at all reasonable times to the immediate presence of all female prisoners therein, including the right of visitation and conversation with them, or in such jail allow the searching of the person of a female prisoner to be made except by the female deputy sheriff of such jail or other suitable woman, or obstruct the performance by the female deputy sheriff, or other suitable woman, of her official duties.
(a) Whenever any female prisoner or prisoners are confined in any local detention facility in the state there shall be an appropriately trained female custodial person assigned, available, and accessible for the supervision of the female prisoners.
  (b) It shall be unlawful for any officer, station officer, jailer, or custodial personnel to search the person of any prisoner of the opposite sex, or to enter into the room or cell occupied by any prisoner of the opposite sex, except in the company of an employee of the same sex as the prisoner. Except as provided herein, the provisions of this subdivision shall not be applied to discriminate against any employee by prohibiting appointment or work assignment on the basis of the sex of the employee. As used in this subdivision "station officer" means an unarmed civilian employee who assists a peace officer in the processing of persons who have been arrested and who performs duties including, but not limited to, booking and fingerprinting and maintaining custody and control of persons who have been arrested. As used in this subdivision, "employee" means a deputy sheriff, correctional officer, custodial officer, medical staff person or designated civilian employee whose duties may include, but are not limited to, maintaining custody and control of persons who have been arrested or sentenced, or both.
Whenever by the terms of this code, or of any other law of the state, it is provided that a prisoner shall be confined in any county jail, such provision shall be construed to authorize any prisoner convicted of a misdemeanor to be confined, with the consent of the city, in any city jail in the judicial district in which the offense was committed, and as to such prisoner so confined in such city jail, the designations, county jail and city jail shall be interchangeable, and in such case the obligations to which the county is liable in case of confinement in a county jail, shall become liabilities of the city where such prisoner is confined in a city jail.
Whenever the daily average of more than 100 persons are confined in any county or city jail there shall be available at all times a duly licensed and practicing physician for the care and treatment of all persons confined therein. Such daily average shall be determined by the number of persons confined in such jails during the last fiscal year. For county jails, such physician shall be designated by the sheriff. The salary of such physician shall be fixed by the supervisors of the county and shall be paid out of the same fund of the county as other claims against the county for salaries are paid. For city jails, such physician shall be designated and his salary fixed by the council of the city and shall be paid out of the general fund of such city. Any prisoner may decline such care or treatment and provide other care or treatment for himself at his own expense. In the event a prisoner elects to decline treatment by the county or city jail physician and to provide medical treatment at his own expense, the sheriff or chief of police may have him removed from the county or city jail to a privately owned and operated medical facility or hospital located in the county approved by a judge of the superior court for such treatment. The prisoner shall be liable for the costs incurred by the county or city in providing the necessary custody and security of the prisoner only to the extent that such costs exceed the costs which would have been incurred by the county or city in providing such custody and security if it had provided treatment for him. The prisoner shall at all times remain in the location specified by the court and at no time be permitted to be housed or detained at any facility other than that designated.
(a) Any female confined in any local detention facility shall upon her request be allowed to continued to use materials necessary for (1) personal hygiene with regard to her menstrual cycle and reproductive system and (2) birth control measures as prescribed by her physician.
  (b) Each and every female confined in any local detention facility shall be furnished by the county with information and education regarding the availability of family planning services.
  (c) Family planning services shall be offered to each and every woman inmate at least 60 days prior to a scheduled release date. Upon request any woman inmate shall be furnished by the county with the services of a licensed physician or she shall be furnished by the county or by any other agency which contracts with the county with services necessary to meet her family planning needs at the time of her release.
  (d) For the purposes of this section, "local detention facility" means any city, county, or regional facility used for the confinement of any female prisoner for more than 24 hours.
Any female prisoner in any local detention facility shall have the right to summon and receive the services of any physician and surgeon of her choice in order to determine whether she is pregnant. The superintendent of such facility may adopt reasonable rules and regulations with regard to the conduct of examinations to effectuate such determination. If the prisoner is found to be pregnant, she is entitled to a determination of the extent of the medical services needed by her and to the receipt of such services from the physician and surgeon of her choice. Any expenses occasioned by the services of a physician and surgeon whose services are not provided by the facility shall be borne by the prisoner. For the purposes of this section, "local detention facility" means any city, county, or regional facility used for the confinement of any female prisoner for more than 24 hours. Any physician providing services pursuant to this section shall possess a current, valid, and unrevoked certificate to engage in the practice of medicine issued pursuant to Chapter 5 (commencing with Section 2000) of Division 2 of the Business and Professions Code. The rights provided for prisoners by this section shall be posted in at least one conspicuous place to which all female prisoners have access.
(a) The sheriff may discharge any prisoner from the county jail at such time on the last day such prisoner may be confined as the sheriff shall consider to be in the best interests of the prisoner.
  (b) (1) Upon completion of a sentence served by a prisoner or the release of a prisoner ordered by the court to be effected the same day, including prisoners who are released on their own recognizance, have their charges dismissed by the court, are acquitted by a jury, are cited and released on a misdemeanor charge, have posted bail, or have the charges against them dropped by the prosecutor, the sheriff may offer a voluntary program to the prisoner that would allow that prisoner to stay in the custody facility for up to 16 additional hours or until normal business hours, whichever is shorter, in order to offer the prisoner the ability to be discharged to a treatment center or during daytime hours. The prisoner may revoke his or her consent and be discharged as soon as possible and practicable.
  (2) This subdivision does not prevent the early release of prisoners as otherwise allowed by law or allow jails to retain prisoners any longer than otherwise required by law without the prisoner's express written consent.
  (3) Offering this voluntary program is an act of discretion within the meaning of Section 820.2 of the Government Code.
  (4) If a prisoner has posted bail and elects to participate in this program, he or she shall notify the bail agent as soon as possible and practicable of his or her decision to participate.
  (5) A sheriff offering this program shall, whenever possible, allow the prisoner volunteering to participate in the program to make a telephone call to either arrange for transportation, or to notify the bail agent pursuant to paragraph (4), or both.
(a) The sheriff, chief of police, or any other person responsible for a county or city jail may apply to the presiding judge of the superior court to receive general authorization for a period of 30 days to release inmates pursuant to the provisions of this section.
  (b) Whenever, after being authorized by a court pursuant to subdivision (a), the actual inmate count exceeds the actual bed capacity of a county or city jail, the sheriff, chief of police, or other person responsible for such county or city jail may accelerate the release, discharge, or expiration of sentence date of sentenced inmates up to a maximum of 30 days.
  (c) The total number of inmates released pursuant to this section shall not exceed a number necessary to balance the inmate count and actual bed capacity.
  (d) Inmates closest to their normal release, discharge, or expiration of sentence date shall be given accelerated release priority.
  (e) The number of days that release, discharge, or expiration of sentence is accelerated shall in no case exceed 10 percent of the particular inmate's original sentence, prior to the application thereto of any other credits or benefits authorized by law.
(a) Notwithstanding any other law, the board of supervisors of any county may authorize the sheriff or other official in charge of county correctional facilities to offer a voluntary program under which any person committed to the facility may participate in a work release program pursuant to criteria described in subdivision (b), in which one day of participation will be in lieu of one day of confinement.
  (b) The criteria for a work release program are the following:
  (1) The work release program shall consist of any of the following:
  (A) Manual labor to improve or maintain levees or public facilities, including, but not limited to, streets, parks, and schools.
  (B) Manual labor in support of nonprofit organizations, as approved by the sheriff or other official in charge of the correctional facilities. As a condition of assigning participants of a work release program to perform manual labor in support of nonprofit organizations pursuant to this section, the board of supervisors shall obtain workers' compensation insurance which shall be adequate to cover work-related injuries incurred by those participants, in accordance with Section 3363.5 of the Labor Code.
  (C) Performance of graffiti cleanup for local governmental entities, including participation in a graffiti abatement program as defined in subdivision (f) of Section 594, as approved by the sheriff or other official in charge of the correctional facilities.
  (D) Performance of weed and rubbish abatement on public and private property pursuant to Chapter 13 (commencing with Section 39501) of Part 2 of Division 3 of Title 4 of the Government Code, or Part 5 (commencing with Section 14875) or Part 6 (commencing with Section 14930) of Division 12 of the Health and Safety Code, as approved by the sheriff or other official in charge of the correctional facilities.
  (E) Performance of house repairs or yard services for senior citizens and the performance of repairs to senior centers through contact with local senior service organizations, as approved by the sheriff or other official in charge of the correctional facilities. Where a work release participant has been assigned to this task, the sheriff or other official shall agree upon in advance with the senior service organization about the type of services to be rendered by the participant and the extent of contact permitted between the recipients of these services and the participant.
  (F) Any person who is not able to perform manual labor as specified in this paragraph because of a medical condition, physical disability, or age, may participate in a work release program involving any other type of public sector work that is designated and approved by the sheriff or other official in charge of county correctional facilities.
  (2) The sheriff or other official may permit a participant in a work release program to receive work release credit for documented participation in educational programs, vocational programs, substance abuse programs, life skills programs, or parenting programs. Participation in these programs shall be considered in lieu of performing labor in a work release program, with eight work-related hours to equal one day of custody credit.
  (3) The work release program shall be under the direction of a responsible person appointed by the sheriff or other official in charge.
  (4) The hours of labor to be performed pursuant to this section shall be uniform for all persons committed to a facility in a county and may be determined by the sheriff or other official in charge of county correctional facilities, and each day shall be a minimum of 8 and a maximum of 10 hours, in accordance with the normal working hours of county employees assigned to supervise the programs. However, reasonable accommodation may be made for participation in a program under paragraph (2). As used in this section, "nonprofit organizations" means organizations established or operated for the benefit of the public or in support of a significant public interest, as set forth in Section 501(c)(3) of the Internal Revenue Code. Organizations established or operated for the primary purpose of benefiting their own memberships are excluded.
  (c) The board of supervisors may prescribe reasonable rules and regulations under which a work release program is operated and may provide that participants wear clothing of a distinctive character while performing the work. As a condition of participating in a work release program, a person shall give his or her promise to appear for work or assigned activity by signing a notice to appear before the sheriff or at the education, vocational, or substance abuse program at a time and place specified in the notice and shall sign an agreement that the sheriff may immediately retake the person into custody to serve the balance of his or her sentence if the person fails to appear for the program at the time and place agreed to, does not perform the work or activity assigned, or for any other reason is no longer a fit subject for release under this section. A copy of the notice shall be delivered to the person and a copy shall be retained by the sheriff. Any person who willfully violates his or her written promise to appear at the time and place specified in the notice is guilty of a misdemeanor. Whenever a peace officer has reasonable cause to believe the person has failed to appear at the time and place specified in the notice or fails to appear or work at the time and place agreed to or has failed to perform the work assigned, the peace officer may, without a warrant, retake the person into custody, or the court may issue an arrest warrant for the retaking of the person into custody, to complete the remainder of the original sentence. A peace officer may not retake a person into custody under this subdivision, without a warrant for arrest, unless the officer has a written order to do so, signed by the sheriff or other person in charge of the program, that describes with particularity the person to be retaken.
  (d) This section does not require the sheriff or other official in charge to assign a person to a program pursuant to this section if it appears from the record that the person has refused to satisfactorily perform as assigned or has not satisfactorily complied with the reasonable rules and regulations governing the assignment or any other order of the court. A person shall be eligible for work release under this section only if the sheriff or other official in charge concludes that the person is a fit subject therefor.
  (e) The board of supervisors may prescribe a program administrative fee, not to exceed the pro rata cost of administration, to be paid by each person according to his or her ability to pay.
(a) Notwithstanding any other law, the board of supervisors of any county in which the average daily inmate population is 90 percent of the county's correctional system's mandated capacity may authorize the sheriff or other official in charge of county correctional facilities to operate a program under which any person committed to the facility is required to participate in a work release program pursuant to criteria described in subdivision (b) of Section 4024.2. Participants in this work release program shall receive any sentence reduction credits that they would have received had they served their sentences in a county correctional facility. Priority for participation in the work release program shall be given to inmates who volunteer to participate in the program.
  (b) For purposes of this section, all of the following definitions apply:
  (1) "County correctional system's mandated capacity" means the total capacity of all jails and other correctional facilities for the permanent housing of adult inmates within the county.
  (2) "Mandated capacity" of any facility is the capacity for that facility as established by court order or the facility's rated capacity as established by the Board of Corrections, whichever is less.
  (3) "Average daily jail population" is the average total number of inmates incarcerated within the county jail system computed on an annual basis.
  (c) (1) The board of supervisors may prescribe reasonable rules and regulations under which a work release program authorized under this section is operated and may provide that participants wear clothing of a distinctive character while performing the work. A person shall be advised by written notice to appear before the sheriff or at the educational, vocational, or substance abuse program at a time and place specified in the notice and shall sign an acknowledgement that the sheriff may immediately retake the person into custody to serve the balance of his or her sentence if the person fails to appear for the program at the time and place designated in the notice, does not perform the work or activity assigned, or for any other reason is no longer a fit subject for release under this section. A copy of the notice and acknowledgement shall be delivered to the person and a copy shall be retained by the sheriff.
  (2) Any person who willfully fails to appear at the time and place specified in the notice is guilty of a misdemeanor.
  (3) Whenever a peace officer has reasonable cause to believe the person has failed to appear at the time and place specified in the notice or fails to appear or work at the time and place agreed to or has failed to perform the work assigned, the peace officer may, without a warrant, retake the person into custody, or the court may issue an arrest warrant for the retaking of the person into custody, to complete the remainder of the original sentence. A peace officer may not retake a person into custody under this subdivision, without a warrant for arrest, unless the officer has a written order to do so, signed by the sheriff or other person in charge of the work release program, that describes with particularity the person to be retaken.
  (d) Nothing in this section shall be construed to require the sheriff or other official in charge to assign a person to a work release program pursuant to this section if it appears from the record that the person has refused to perform satisfactorily as assigned or has not satisfactorily complied with the reasonable rules and regulations governing the assignment or any other order of the court.
  (e) A person shall be eligible for work release under this section only if the sheriff or other official in charge concludes that the person is a fit subject therefor.
  (f) The board of supervisors may prescribe a program administrative fee, not to exceed the pro rata cost of administration, to be paid by each person according to his or her ability to pay.
(a) The board of supervisors of each county, with the concurrence of the county sheriff before implementation, and the city council of each city, with the concurrence of the chief of police before implementation, may establish a notification procedure to provide notice of the release of any person incarcerated at, or arrested and released on bail from, a local detention facility under its jurisdiction to victims of crime who have requested to be so notified. A county or city and two or more counties or cities jointly may contract with a private entity to implement this procedure.
  (b) Notwithstanding any other law, the sheriff, chief of police, or other official in charge of a local detention facility shall make available to any private entity under contract pursuant to subdivision (a) all information necessary to implement the notification procedure in a timely manner. The private entity under contract shall be responsible for retrieving the information and notifying the requester through computer or telephonic means and, if unable to notify the person requesting the information by these means, shall send written notification by mail.
  (c) The sheriff, chief of police, or other official in charge of a local detention facility shall work cooperatively with law enforcement agencies within the county or city and local victim centers established under Section 13835 to implement the program.
  (d) As used in this section, "local detention facility" means a facility specified in subdivision (a) or (b) of Section 6031.4.
  (e) Notwithstanding any other provision of law, no public or private officer, employee, or entity may be held liable for any action or duty undertaken pursuant to this section.
(a) The sheriff of each county may establish, maintain and operate a store in connection with the county jail and for this purpose may purchase confectionery, tobacco and tobacco users' supplies, postage and writing materials, and toilet articles and supplies and sell these goods, articles, and supplies for cash to inmates in the jail.
  (b) The sale prices of the articles offered for sale at the store shall be fixed by the sheriff. Any profit shall be deposited in an inmate welfare fund to be kept in the treasury of the county.
  (c) There shall also be deposited in the inmate welfare fund 10 percent of all gross sales of inmate hobbycraft.
  (d) There shall be deposited in the inmate welfare fund any money, refund, rebate, or commission received from a telephone company or pay telephone provider when the money, refund, rebate, or commission is attributable to the use of pay telephones which are primarily used by inmates while incarcerated.
  (e) The money and property deposited in the inmate welfare fund shall be expended by the sheriff primarily for the benefit, education, and welfare of the inmates confined within the jail. Any funds that are not needed for the welfare of the inmates may be expended for the maintenance of county jail facilities. Maintenance of county jail facilities may include, but is not limited to, the salary and benefits of personnel used in the programs to benefit the inmates, including, but not limited to, education, drug and alcohol treatment, welfare, library, accounting, and other programs deemed appropriate by the sheriff. Inmate welfare funds shall not be used to pay required county expenses of confining inmates in a local detention system, such as meals, clothing, housing, or medical services or expenses, except that inmate welfare funds may be used to augment those required county expenses as determined by the sheriff to be in the best interests of inmates. An itemized report of these expenditures shall be submitted annually to the board of supervisors.
  (f) The operation of a store within any other county adult detention facility which is not under the jurisdiction of the sheriff shall be governed by the provisions of this section, except that the board of supervisors shall designate the proper county official to exercise the duties otherwise allocated in this section to the sheriff.
  (g) The operation of a store within any city adult detention facility shall be governed by the provisions of this section, except that city officials shall assume the respective duties otherwise outlined in this section for county officials.
  (h) The treasurer may, pursuant to Article 1 (commencing with Section 53600), or Article 2 (commencing with Section 53630) of Chapter 4 of Part 1 of Division 2 of Title 5 of the Government Code, deposit, invest, or reinvest any part of the inmate welfare fund, in excess of that which the treasurer deems necessary for immediate use. The interest or increment accruing on these funds shall be deposited in the inmate welfare fund.
  (i) The sheriff may expend money from the inmate welfare fund to provide indigent inmates, prior to release from the county jail or any other adult detention facility under the jurisdiction of the sheriff, with essential clothing and transportation expenses within the county or, at the discretion of the sheriff, transportation to the inmate's county of residence, if the county is within the state or within 500 miles from the county of incarceration. This subdivision does not authorize expenditure of money from the inmate welfare fund for the transfer of any inmate to the custody of any other law enforcement official or jurisdiction.
The sheriff or other officer in charge of a county or city jail may provide for the manufacture of small articles of handiwork by prisoners out of raw materials purchased by the prisoners with their own funds or funds borrowed from the inmate welfare fund, which articles may be sold to the public at the county or city jails, in public buildings, at fairs, or on property operated by nonprofit associations. County- or city-owned property shall not be sold or given to prisoners for use under this section, except as expressly permitted by this section. The sheriff or other officer in charge shall comply with subdivision (c) of Section 4025 and provide that the balance of the sale price of the articles be deposited to the account of the prisoner manufacturing the article after repaying the inmate welfare fund any amount borrowed.
It is the intention of the Legislature that all prisoners confined in local detention facilities shall be afforded reasonable opportunities to exercise religious freedom. As used in this section "local detention facility" means any city, county, or regional facility used for the confinement of prisoners for more than 24 hours.
No condition or restriction upon the obtaining of an abortion by a female detained in any local detention facility, pursuant to the Therapeutic Abortion Act (Article 2 (commencing with Section 123400) of Chapter 2 of Part 2 of Division 106 of the Health and Safety Code), other than those contained in that act, shall be imposed. Females found to be pregnant and desiring abortions shall be permitted to determine their eligibility for an abortion pursuant to law, and if determined to be eligible, shall be permitted to obtain an abortion. For the purposes of this section, "local detention facility" means any city, county, or regional facility used for the confinement of any female person for more than 24 hours. The rights provided for females by this section shall be posted in at least one conspicuous place to which all female prisoners have access.
(a) Whenever within any county adult detention facility or part of any county detention facility used for the confinement of adults, not including any city jail, any facility, including but not limited to any room or cell, vocational training facility, recreation area, rest area, dining room, store, or facility for the exercise of religious freedom, is provided for use by any prisoner for any purpose, a separate facility of equal quality, or separate use of the same facility, or joint use of the same facility where appropriate, shall be provided for prisoners of the opposite sex for such purpose.
  (b) Whenever within any county adult detention facility or part of any county detention facility used for the confinement of adults, not including any city jail, any program, service or privilege, including but not limited to any general or vocational education, physical education or recreation, work furlough program, psychological counseling, work within the institution, visiting privileges, or medical treatment, is provided for any prisoner, such a program, service or privilege of equal quality shall be provided for prisoners of the opposite sex, except when the proportion of prisoners of one sex is so small that the cost of providing any program, service or privilege described in this subdivision, other than medical treatment or health maintenance, for such prisoners would not be justified in relation to the reduction in the level of any other program, service or privilege that would result from the diversion of funds for such purpose.
  (c) Nothing in this section shall require the establishment of any facility for the use of, or the making available of any program, service or privilege to, any prisoner. Nothing in this section shall require any facility, program, service or privilege established or available prior or subsequent to January 1, 1975, to be made available to any particular male or female prisoner or number of such prisoners, except that any type of facility, program, service or privilege which is made accessible or available to all male or female prisoners in any class defined by subdivisions 1, 2, and 3 of Section 4001 shall be made accessible or available to all prisoners of the opposite sex in such class as provided in subdivisions (a) and (b), and any criterion other than the sex of the prisoner which is used for the selection of a particular prisoner or group of prisoners to have, or to have access to, any facility, program, service or privilege shall be equally applied to the selection of all prisoners, regardless of sex.
  (d) Every county shall comply with subdivisions (a), (b), and (c) by January 1, 1979. Such compliance shall not be required unless the Legislature provides funds to assist in the accomplishment of such compliance. Every county shall report to the Legislature by January 1, 1976, as to whether such compliance can be accomplished, and stating the reasons why it cannot be accomplished if that be the case.
  (e) Whenever within any county adult detention facility or part of any county detention facility used for the confinement of adults, not including any city jail, an inpatient psychiatric facility designated by the county mental health director to treat patients under Division 5 (commencing with Section 5000) and Division 6 (commencing with Section 6000) of the Welfare and Institutions Code, is provided for prisoners of one sex who may not depart from the detention facility for treatment elsewhere, and where the proportion of prisoners of the opposite sex requiring the same type of treatment is so small that the cost of providing a separate program of equal quality would not be justified in relation to the reduction in the level of another program, service, or privilege that would result from the diversion of funds for such purpose, the above designated mental health treatment program may treat prisoners of both sexes if each of the following conditions is met:
  (1) The program is one that would be considered suitable for the treatment of patients of both sexes if it were located in a psychiatric treatment facility devoted to evaluation and treatment under Division 5 (commencing with Section 5000) and Division 6 (commencing with Section 6000) of the Welfare and Institutions Code for patients who are not prisoners.
  (2) A female deputy sheriff or other suitable woman assigned to jail duty is assigned to the treatment program in accordance with Sections 4020.4, 4020.7, 4020.8, and 4021 of this code. Notwithstanding the provisions of Section 4020.4 of this code, in a county of any size, the sheriff may designate a female member of the mental health treatment staff for this assignment.
(a) (1) The Legislature finds and declares that law enforcement policies and practices for conducting strip or body cavity searches of detained persons vary widely throughout California. Consequently, some people have been arbitrarily subjected to unnecessary strip and body cavity searches after arrests for minor misdemeanor and infraction offenses. Some present search practices violate state and federal constitutional rights to privacy and freedom from unreasonable searches and seizures.
  (2) It is the intent of the Legislature in enacting this section to protect the state and federal constitutional rights of the people of California by establishing a statewide policy strictly limiting strip and body cavity searches.
  (b) The provisions of this section shall apply only to prearraignment detainees arrested for infraction or misdemeanor offenses and to any minor detained prior to a detention hearing on the grounds that he or she is a person described in Section 300, 601, or 602 of the Welfare and Institutions Code alleged to have committed a misdemeanor or infraction offense. The provisions of this section shall not apply to a person in the custody of the Secretary of the Department of Corrections and Rehabilitation or the Director of the Division of Juvenile Justice in the Department of Corrections and Rehabilitation.
  (c) As used in this section the following definitions shall apply:
  (1) "Body cavity" only means the stomach or rectal cavity of a person, and vagina of a female person.
  (2) "Physical body cavity search" means physical intrusion into a body cavity for the purpose of discovering any object concealed in the body cavity.
  (3) "Strip search" means a search which requires a person to remove or arrange some or all of his or her clothing so as to permit a visual inspection of the underclothing, breasts, buttocks, or genitalia of such person.
  (4) "Visual body cavity search" means visual inspection of a body cavity.
  (d) Notwithstanding any other law, including Section 40304.5 of the Vehicle Code, when a person is arrested and taken into custody, that person may be subjected to patdown searches, metal detector searches, and thorough clothing searches in order to discover and retrieve concealed weapons and contraband substances prior to being placed in a booking cell.
  (e) A person arrested and held in custody on a misdemeanor or infraction offense, except those involving weapons, controlled substances, or violence, or a minor detained prior to a detention hearing on the grounds that he or she is a person described in Section 300, 601 or 602 of the Welfare and Institutions Code, except for those minors alleged to have committed felonies or offenses involving weapons, controlled substances, or violence, shall not be subjected to a strip search or visual body cavity search prior to placement in the general jail population, unless a peace officer has determined there is reasonable suspicion, based on specific and articulable facts, to believe that person is concealing a weapon or contraband, and a strip search will result in the discovery of the weapon or contraband. A strip search or visual body cavity search, or both, shall not be conducted without the prior written authorization of the supervising officer on duty. The authorization shall include the specific and articulable facts and circumstances upon which the reasonable suspicion determination was made by the supervisor.
  (f) (1) Except pursuant to the provisions of paragraph (2), a person arrested and held in custody on a misdemeanor or infraction offense not involving weapons, controlled substances, or violence, shall not be confined in the general jail population unless all of the following are true:
  (A) The person is not cited and released.
  (B) The person is not released on his or her own recognizance pursuant to Article 9 (commencing with Section 1318) of Chapter 1 of Title 10 of Part 2.
  (C) The person is not able to post bail within a reasonable time, not less than three hours.
  (2) A person shall not be housed in the general jail population prior to release pursuant to the provisions of paragraph (1) unless a documented emergency exists and there is no reasonable alternative to that placement. The person shall be placed in the general population only upon prior written authorization documenting the specific facts and circumstances of the emergency. The written authorization shall be signed by the uniformed supervisor of the facility or by a uniformed watch commander. A person confined in the general jail population pursuant to paragraph (1) shall retain all rights to release on citation, his or her own recognizance, or bail that were preempted as a consequence of the emergency.
  (g) A person arrested on a misdemeanor or infraction offense, or a minor described in subdivision (b), shall not be subjected to a physical body cavity search except under the authority of a search warrant issued by a magistrate specifically authorizing the physical body cavity search.
  (h) A copy of the prior written authorization required by subdivisions (e) and (f) and the search warrant required by subdivision (g) shall be placed in the agency's records and made available, on request, to the person searched or his or her authorized representative. With regard to a strip search or visual or physical body cavity search, the time, date, and place of the search, the name and sex of the person conducting the search, and a statement of the results of the search, including a list of items removed from the person searched, shall be recorded in the agency's records and made available, upon request, to the person searched or his or her authorized representative.
  (i) Persons conducting a strip search or a visual body cavity search shall not touch the breasts, buttocks, or genitalia of the person being searched.
  (j) A physical body cavity search shall be conducted under sanitary conditions, and only by a physician, nurse practitioner, registered nurse, licensed vocational nurse, or emergency medical technician Level II licensed to practice in this state. A physician engaged in providing health care to detainees and inmates of the facility may conduct physical body cavity searches.
  (k) A person conducting or otherwise present or within sight of the inmate during a strip search or visual or physical body cavity search shall be of the same sex as the person being searched, except for physicians or licensed medical personnel.
  (l) All strip, visual, and physical body cavity searches shall be conducted in an area of privacy so that the search cannot be observed by persons not participating in the search. Persons are considered to be participating in the search if their official duties relative to search procedure require them to be present at the time the search is conducted.
  (m) A person who knowingly and willfully authorizes or conducts a strip search or visual or physical body cavity search in violation of this section is guilty of a misdemeanor.
  (n) Nothing in this section shall be construed as limiting the common law or statutory rights of a person regarding an action for damages or injunctive relief, or as precluding the prosecution under another law of a peace officer or other person who has violated this section.
  (o) Any person who suffers damage or harm as a result of a violation of this section may bring a civil action to recover actual damages, or one thousand dollars ($1,000), whichever is greater. In addition, the court may, in its discretion, award punitive damages, equitable relief as it deems necessary and proper, and costs, including reasonable attorney's fees.
(a) This section applies to all minors detained in a juvenile detention center on the grounds that he or she is a person described in Section 300, 601, or 602 of the Welfare and Institutions Code, and all minors adjudged a ward of the court and held in a juvenile detention center on the grounds he or she is a person described in Section 300, 601, or 602 of the Welfare and Institutions Code.
  (b) Persons conducting a strip search or a visual body cavity search shall not touch the breasts, buttocks, or genitalia of the person being searched.
  (c) A physical body cavity search shall be conducted under sanitary conditions, and only by a physician, nurse practitioner, registered nurse, licensed vocational nurse, or emergency medical technician Level II licensed to practice in this state. A physician engaged in providing health care to detainees, wards, and inmates of the facility may conduct physical body cavity searches.
  (d) A person conducting or otherwise present or within sight of the inmate during a strip search or visual or physical body cavity search shall be of the same sex as the person being searched, except for physicians or licensed medical personnel.
  (e) All strip searches and visual and physical body cavity searches shall be conducted in an area of privacy so that the search cannot be observed by persons not participating in the search. Persons are considered to be participating in the search if their official duties relative to search procedure require them to be present at the time the search is conducted.
  (f) A person who knowingly and willfully authorizes or conducts a strip searches and visual or physical body cavity search in violation of this section is guilty of a misdemeanor.
  (g) Nothing in this section shall be construed as limiting the common law or statutory rights of a person regarding an action for damages or injunctive relief, or as precluding the prosecution under another law of a peace officer or other person who has violated this section.
  (h) Any person who suffers damage or harm as a result of a violation of this section may bring a civil action to recover actual damages, or one thousand dollars ($1,000), whichever is greater. In addition, the court may, in its discretion, award punitive damages, equitable relief as it deems necessary and proper, and costs, including reasonable attorney's fees.
  (i) This section does not limit the protections granted by Section 4030 to individuals described in subdivision (b) of that section.