Commit 94ac81d
committed
(fix) Add regex anchors to SSN identifier format validation
The regex for the SSN identifier format was missing the anchors (^ and $),
which caused the validation to fail for identifiers that did not exactly
match the required format of one uppercase letter, followed by a dash and
exactly 7 digits (e.g., "A-0010902"). Without these anchors, the pattern
could match invalid formats like "X-A-1234567-Y" (extra characters), or
"A-123456789" (too many digits), leading to potential data quality issues.
This PR adds start and end anchors to ensure the identifier strictly follows
the required format. It also updates the regex description to be more
descriptive and accurate.1 parent 4c1b880 commit 94ac81d
File tree
1 file changed
+1
-1
lines changed- configuration/backend_configuration/patientidentifiertypes
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
0 commit comments