› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › OBX 5 issue
Show us the input.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
PID|||M000001043^||TREE^OAK^||19500101|M||2^|||||||||888-88-7777||||||||||||
PV1||I|8NOR^82201^1^||||BACBRU01^Bruce^R^|NO-REF02*^Referring^Doctor^|BURROB01^Burdge^Robert^E^||||||||BACBRU01^Bruce^R^||H00000015560^||||||||||||||||||||||||||||||||||
ORC|RE||5|
OBR||VASC20070323-0003^|5|ARTERIAL^ARTERIAL^|||20070404145422|||||||||BACBRU01^Bacon&&^Bruce^R^|||||2|20070328103331|||C|||||||BACBRU01&Bacon&Bruce&R&&&&&&^||||||||||||||
OBX|1|FT||1|Emageon~900 Walnut Ridge Drive, Hartland, WI 53029~Phone: (800) 332-4466 Fax: (262) 367-0717~
The OBX-5 field is a repeating field in this message.
You will need to iterate over the field.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
As for PATHCOPY of the entire field, if you address just the field with no modifiers it should copy the entire field.
For example:
PATHCOPY 0(0)OBX.#5 -> 0(0)OBX.#5
should copy all iterations
But
PATHCOPY 0(0)OBX.#5(0) -> 0(0)OBX(0).#5 will only copt the first iteration
If you want to get rid of the iterationas altogether use an iterate as Jim said and append each iteration to OBX(0).#5. Or, you could use a simple pre-xlate tcl proc in the route and just remove the iteration characters from the field or replace them with blanks using a string map command. Either method should be a relatively simple operation
using
type: field
basis: 0(0)OBX.00573
Variable: %f1
Pathcopy
0(0).OBX.00573 -> 0(0).OBX.00561
i know i need to put the variable in the copy some where
but where
0(0).OBX.00561(%f1)
If I am remembering from level1 class there is an implyed (0) at the end of the field number for repetitions.
0(0).OBX.00573(%f1) -> 0(0).OBX.00561(%f1)
Thanks to all for the help