An adaptive drug-releasing contact lens for personalized treatment of ocular infections and injuries.