New legislation coming into effect July 15 will allow optometrists to prescribe and administer drugs to people with certain eye conditions.