Smart wound patch