A drug delivery system is disclosed. The drug delivery system includes a recognitive polymeric hydrogel through which a drug is delivered by contacting biological tissue. The recognitive polymeric hydrogel is formed by using a bio-template, which is a drug or is structurally similar to the drug, functionalized monomers, preferably having complexing sites, and cross-linking monomers, which are copolymerized using a suitable initiator. The complexing sites of the recognitive polymeric hydrogel that is formed preferably mimics receptor sites of a target biological tissue, biological recognition, or biological mechanism of action. The system in accordance with an embodiment of the intention is a contact lens for delivering a drug through contact with an eye.