Foundations of Health Informatics and AI in Medicine