For the love of god where is the testing ..
This should be simple
1. create a set of birthdays since 1938
2. run date selection routine
3. check output matches known result.
Of course they say its an "Algo" issue because that makes it sound clever and all modern like, when it is a simple coding error which has been known about since dot.
I hope the contractor who coded this pays NHS compensation