Sidebar

How can I make a field in every OBX segment one thing?

0 votes
255 views
asked Jul 6, 2020 by adam-d-5091 (320 points)
For example I have two OBX segements and would like to make the ValueType TX, currrently I am using:

message.setNode("OBX-2", 'TX');

 

That seems to only change the first one.

1 Answer

+1 vote
 
Best answer
You can find different HL7 operations from the Code Wizard drop down. In this case the one you want is the setAllNodes.

 

message.setAllNodes('OBX-2', 'TX');
answered Jul 6, 2020 by michael-h-5027 (14,350 points)
selected Jul 6, 2020 by adam-d-5091
...