Identifier 10002 is not appropriate for validation scheme Luhn CheckDigit Validator

Hi,

I have a problem creating the patient via rest api, I want to use the same type of identifier by default as openmrs but through the rest api it is mandatory to send the value.

The service returns this error

There is a way to use the service without sending the identifier field so that the webservice module creates it automatically?

Does it help if you first make a REST call to get an automatically generated identifier?

POST to a url like: /openmrs/ws/rest/v1/idgen/identifiersource/691eed12-c0f1-11e2-94be-8c13b969e334/identifier

With a body like: {"comment":"some comment"}