Cal. Health & Safety Code § 11165.4
(a)
(1)
(A)
(c) The duty to consult the CURES database, as described in subdivision (a), does not apply to a health care practitioner in any of the following circumstances:
(1) If a health care practitioner prescribes, orders, or furnishes a controlled substance to be administered to a patient in any of the following facilities or during a transfer between any of the following facilities, or for use while on facility premises:
(4) If a health care practitioner prescribes, orders, administers, or furnishes a controlled substance to a patient as part of the patient’s treatment for a surgical, radiotherapeutic, therapeutic, or diagnostic procedure and the quantity of the controlled substance does not exceed a nonrefillable seven-day supply of the controlled substance to be used in accordance with the directions for use, in any of the following facilities:
(6)
(A) If all of the following circumstances are satisfied:
(d)