I have several OBR segments all with different OBR-4 values.
I need to replace what is in the OBR-4.1 for every OBR with OBR.4.2 (but only the text that is contained within a set of brackets if the brackets exst).
IE:
OBR|1||1909160461|CBC^CBC, WITH DIFFERENTIAL [M10047]
OBR|1||1909160461|URIC^URIC ACID [M10162]
RESULT:
OBR|1||1909160461|M10047^CBC, WITH DIFFERENTIAL [M10047]
OBR|1||1909160461|M10162^URIC ACID [M10162]