I’m not sure if you can pathcopy from a segment-based repetition to a group based repetition.
If you don’t need the extra NTE segments after the OBX (hoping you don’t, since they don’t exist in your input variant), try modifying your output variant to look like this:
MSH
PID
[PV1]
[ORC]
OBR
[{NTE}]
{OBX}
Rob Abbott
Cloverleaf Emeritus