Any person who indicates that he subscribes to the art of healing by prayer as practiced by any well recognized religious denomination, the principles of which are opposed to medical treatment, shall not be required to submit to medical treatment unless he, or his parent, guardian or person standing in loco parentis, consents, and shall, if he desires, receive such other treatment permitted under Title 45, chapter nine, of Revised Statutes. Any such person, however, shall be subject to all rules and regulations with reference to quarantine and isolation in case of contagious or infectious diseases and subject to physical restraint in case of emergency or violence.
N.J.S. § 30:4A-12