VistA Analysis » VistA Reference » RPCs » TIU FIELD LIST ADD

TIU FIELD LIST ADD

Takes in the XML string, in the format XMLSET(1)=” " and merges them with the global ^TMP("TIUFLDXML",$J). If the subscript is 1,then it KILLs the global before it merges. This routine is used so verylarge lists of fields can be processed without many calls to the database.

Properties

Property Value
Label XFLDLD
MUMPS Implementation TIUSRVF1
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
XMLSET LIST     Input in the format of XMLSET(1)="<FIELD NAME="12345">"
XMLIN LIST      

MUMPS Method Description

Property Value
Method XFLDLD^TIUSRVF1
Method Comment RESETS/UPDATES THE TMP("TIUFLDXML",$J) GLOBAL
Input Parameters IN
First Comment
WITH THE STRING PASSED IN "IN".  IF THE 1ST LINE IS SUBSCRIPTED
AS 1, THE PROGRAM CLEARS THE TMP GLOBAL FIRST. RETURNS "1" IF
THIS CALL WAS SUCCESSFUL, "0" OTHERWISE.
Code
 N X
S X=0
S X=$O(IN(X))
I +X=1 K ^TMP("TIUFLDXML",$J)
M ^TMP("TIUFLDXML",$J)=IN
S RESULT(1)=1

CPRS

File Type Description
Pascal File Templates/rTemplates.pas


Document generated on August 31st 2022, 2:55:43 pm