A mother shall not be prosecuted for violating Code Section 16-5-70, 16-12-1, or 19-10-1 because of the act of leaving her newborn child in the physical custody of an employee, agent, or member of the staff of a medical facility, fire station, or police station who is on duty, whether there in a paid or volunteer position, provided that the newborn child is no more than 30 days old and the mother shows proof of her identity, if willing, to the person with whom the newborn is left and provides her name and address, if willing.