The Connected Patient: How IoT and Wearable Medical Devices Enable Smart Healthcare