Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

While registering participant, user can enter unique ID per patient which might be different based on location. For example, SSN in U.S, Medicare number in AU etc.

In most cases, the UID per location has a specific format. If administrator wants to set pattern so that the format is validated, it can be achieved in OpenSpecimen using settings.

Login as a super admin and follow the steps to set the pattern to validate SSN field:

  1. Go to home page and click on ‘Settings’ card
  2. Click on ‘Biospecimen’ module and view the property ‘UID Pattern’
  3. Click on the property ‘UID Pattern’ and enter the pattern in the ‘New Value’ field to validate SSN. Click on ‘Update’. This will make sure user always enters the SSN in the format specified.


E.g. Pattern for US SSN format: ^(?!000|666)[0-8][0-9]{2}-(?!00)[0-9]{2}-(?!0000)[0-9]{4}$

This pattern will validate that the SSN should be of format AAA-GG-SSSS:

  • AAA is 3 digits number, the first digit should be between 0 to 8 followed by 2 digits between 0 to 9 (should not be 000 or 666)

  • GG are any 2 digits between 0 to 9 (should not be 00)

  • SSSS are any 4 digits between 0 to 9 (should not be 0000)

                     

  • No labels