Wireless capsule endoscope for targeted drug delivery