Smart medical devices and their surgical implantation for use in resource-constrained settings