Sidebar

What does TypeError: Cannot find function setNode in object RXA|0|1|20130701|... mean?

0 votes
388 views
asked Jul 5, 2013 by rich-c-2789 (16,180 points)
What does TypeError: Cannot find function setNode in object RXA|0|1|20130701|... mean?

1 Answer

+1 vote
 
Best answer

This error is caused by not converting string representations of a segment to an HL7 message model using qie.parseHL7String.  For example:

var segment = 'RXA|0|1|20130701|...' ;
segment.setNode('RXA-1', '2');

Note that the above "segment" variable is just a string.  Before calling getNode or setNode etc. it needs to be converted to an hl7 message using: qie.parseHL7String like:

var segment = qie.parseHL7String('RXA|0|1|20130701|...');
segment.setNode('RXA-1', '2');

answered Jul 5, 2013 by rich-c-2789 (16,180 points)
edited Jul 5, 2013 by sam-s-1510
...