Migration of a legacy pharmacy program