Towards a smart medical home