Patient Identifier Validation not working properly

Hello Team,

Patient Identifier Validation is not working properly on Bahmni EMR registration page.

While creating any new additional patient identifier, validation changes are not getting reflected.

Validations like:

  • min length
  • max length
  • suffix
  • base character value
  • auto generation

Eg. Even if “Min Length” is set as 4 and “Max Length” is set as 12 for the identifier,on UI the identifier field accepts any number of characters.

Also even if “Base Character Set” validation is set to only numbers, it accepts alphabetical characters.

In Auto-Generation Options if “Manual Entry Enabled?” option is selected, identifier is auto generated when the form is saved.

Even if form is saved without entering any value in the identifier field, an auto generated ID is saved against that form.

Please suggest the steps, if I am missing anything to configure.


For achieving above scenario we can configure the “Patient Identifier Type” with following steps:

  • Go to openmrs (login as superman)

  • Navigate to Manage Identifier Types.

  • Click on “Add Patient Identifier type” and fill the details like the following screenshot (i.e. Aadhar Card).

  • Copy the UUID of Aadhar Card Patient Identifier type

  • Navigate to Advanced Settings in that add UUID to bahmni.extraPatientIdentifierTypes

  • Then you can check if you achieved your validation scenario.

1 Like

Thanks @rajasijaywant I am now able to put validations for identifier with above scenario.