Replacing a 30 year old clinical trials system built in Delphi using claude code