Validation per checker digit, similar to CPF, is not possible. As already mentioned in the comments, CRM is only a sequential number.
Some time ago, I had made the query through the portal. I navigated to a URL:
http://portal.cfm.org.br/index.php?medicosNome=mario&medicosUF=ES&medicosCRM=&medicosSituacao=&medicosTipoInscricao=&medicosEspecialidade=&medicosAreaAtuacao=&captcha=wg76pm&buscaEfetuada=true&option=com_medicos#buscaMedicos
And went through the table of results (in html). However, now they put a Captcha. Still it is possible to do this process, but since there was no demand, I also did not waste time with it.
As you mentioned in the comments also, tried to use the http://www.consultacrm.com.br/index/api
but is limited to 100 consultations.
I would do this:
Create the interface for the Crm query, and let the user enter the API key, then you get 100 queries per user. In its interface, you can direct the user to the registration page and key generation, facilitating the process.
Saw the Consultation CRM?
– vinibrsl
@vnbrs vi yes, it offers 100 free consultations, which will not meet my demand.
– Gabriel Rodrigues
Friend, the Regional Council of Medicine provides this service so that public and private institutions can verify if a doctor is really a doctor or is falsifying his record. If they offer a free Webservice you should ask them directly.
– Celso Lívero
@Celsolvero I asked at http://portal.cfm.org.br/ but did not answer...
– Gabriel Rodrigues
the CRM query, will not bring you only if it is valid or will not bring you the name, profession, and status (valid / expired / invalid) so they charge. try again, they must think you want all this information, see if there is not only how to validate if the number is correct.
– Celso Lívero
look, I looked for a friend of mine who is a doctor by his name on http://www.cremesp.org.br/ (CRM - SP) and from what I saw in his number there is no digit checker, IE, it is only a self-aincrement ID in a database printed on a small card
– Celso Lívero