Cal. Bus. & Prof. Code § 688
(b)
(3) A pharmacy, pharmacist, or other practitioner authorized under California law to dispense or furnish a prescription pursuant to Section 4040 may decline to dispense or furnish an electronic data transmission prescription submitted via a software that fails to meet any of the following:
(e) Subdivision (d) shall not apply to any of the following:
(4)
(A) The prescription is issued in a hospital emergency department or urgent care clinic and one or more of the following conditions are present:
(11)
(A) The prescriber registers with the California State Board of Pharmacy in a manner and format determined by the board, stating that they meet one or more of the following criteria:
(g)
(1) A pharmacy that receives an electronic data transmission prescription from a prescribing health care practitioner who has issued the prescription but has not dispensed the medication to the patient shall, at the request of the patient or a person authorized to make a request on behalf of the patient, immediately transfer or forward the electronic data transmission prescription to an alternative pharmacy designated by the requester, unless one of the following applies: