Auto generate (match else create) a new ID

Good morning

We are building a Carer Card Request service. The aim is to allow users to complete an online form to register for an Adult Carer Card.

We would like to autogenerate a Carer ID for applicants, and we would also like to configure it to look for the applicant (by name and address) to establish that they do not already have a Carer ID (for example if they are looking to renew the card, or replace a lost card).

What would you recommend as optimal configuration to:

  1. Allocate an ID to an applicant on first contact
  2. Store the ID against the applicant record
  3. Match or create an ID based on whether or not the applicant already has an ID allocated

NB Applicants will not necessarily be signing in using a portal so we won’t always be matching to citizen hub details

Thanks
Nicky

I think you’d need to do this in code studio to do the match else create part. You’d probably want a cs.search to try and find duplicate applicants, though that in itself could be tricky depending on what options you have to uniquely identify an applicant (presumably first name, last name, address?). There might need to be a degree of human intervention in verifying no duplicates. After that it shouldn’t be overly difficult to allocate IDs using either the auto-reference data type or a bit of code. If you create a new data type for the ID property you can set it to be unique which should ensure no duplicates.

1 Like