There has been talk about this pretty much since CNNs got good at object recognition ~2012.
But healthcare is a rather conservative industry (for good reason) so it has taken a while to build confidence in the technology and get regulatory approval.
Yeah - I don't recall which company (maybe johnson & johnson) it was but my aunt worked for one that produced a portable machine that used a camera to check moles and used some sort of algorithm to give a predicted score. This was 20ish years ago. I remember she brought it to my grandparents and we had fun checking everyones moles for the day.
But healthcare is a rather conservative industry (for good reason) so it has taken a while to build confidence in the technology and get regulatory approval.