VistA Analysis » VistA Reference » RPCs » TIU TEMPLATE SET ITEMS

TIU TEMPLATE SET ITEMS

This RPC will create or update the items for a Group, Class, or Root.

Properties

Property Value
Label SETITEMS
MUMPS Implementation TIUSRVT
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
TIUDA LITERAL   true This is the record number of the Group, Class or Root to which the itemsare to be added or modified.
TIUX LIST   true This is the list of items to be filed for the entry. It should beformatted as follows: TIUX(SEQ)=IEN of the ITEM in the TEMPLATE file (#8927) e.g., TIUX(1)=172TIUX(2)=173TIUX(3)=174 where the values 172, 173, and 174 are valid pointers to Template fileentries.

MUMPS Method Description

Property Value
Method SETITEMS^TIUSRVT
Method Comment Change ITEMs of a group, class, or root
Input Parameters TIUDA, TIUX
First Comment
 Receives:
TIUDA=IEN of TEMPLATE record
TIUX(SEQ)=IEN of item
Returns:
SUCCESS(SEQ)=IEN of item if successful, or
0^ Explanatory message if not
Code
 N TIUI S TIUI=0
D CLRITMS(TIUDA) ; Remove ITEMS
F S TIUI=$O(TIUX(TIUI)) Q:+TIUI'>0 D
. N TIUITEM,TIUSUCC
. S TIUITEM(.01)=TIUI,TIUITEM(.02)=TIUX(TIUI),TIUSUCC=TIUI
. D UPDATE^TIUSRVT1(.TIUSUCC,"""+"_TIUI_","_TIUDA_",""",.TIUITEM)
. S SUCCESS(TIUI)=TIUSUCC

CPRS

File Type Description
Pascal File Templates/rTemplates.pas


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