1. An implantable multi-purpose sensor array, comprising: a flexible substrate adapted for implantation in the tissue of the patient; an array of sensors arranged on said substrate; and switches incorporated into said flexible substrate, said switches arranged between adjacent sensors so as to selectively connect respective adjacent sensors to each other so as to enable the effective size, configuration and number of sensors to be dynamically changed.