opensrp / opensrp-server-core

OpenSRP Server Core Module
Other
7 stars 6 forks source link

Create Identifier Type Domain, Mybatis Objects, Repository and Service #197

Open githengi opened 4 years ago

githengi commented 4 years ago

Mandatory Fields

ndegwamartin commented 4 years ago

We need a field maybe named _regex_format_ whose value is optional. This will be used to define the pattern of numbers that can be generated by the particular source.

The regex is a string type of format *"^[A-Za-z0-9_-]$"** which represents a string with all letters and numbers as an example

I think we can change the blacklisted field above to be this instead as it will not only be used for black listing but rather for defining the unique identifier sequences that are allowed (and as a consequence preventing/blacklisting those that are not allowed)