(a) No one shall violate Section 26-15-3.2, and no one shall be required to report under Chapter 14 of this title, the exposing of an unborn child to any of the following:
(1) A prescription medication if the responsible person was the mother of the unborn child, and she was, or there is a good faith belief that she was, taking that medication pursuant to a lawful prescription.
(2) A non-prescription FDA approved medication or substance if the responsible person was the mother of the unborn child, and she was, or there is a good faith belief that she was, taking that medication or substance as directed or recommended by a physician or a health care provider acting within the authorized scope of his or her license.
(b) No one shall be criminally liable under any Alabama law for the assistance or conduct of exposing the unborn child to a medication or substance if his or her assistance or conduct is allowed or accepted under subsection (a).