It's a code solution only at the moment.
I think it might be worth you trying to explain your requirements in terms that do not presume the solution.
Something along the lines of...
I have data that looks like this.........
I need to create records that look like this......