VistA Analysis » VistA Reference » RPCs » TIU DELETE RECORD

TIU DELETE RECORD

Deletes TIU Document records…Evaluates authorization.

Properties

Property Value
Label DELETE
MUMPS Implementation TIUSRVP
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
TIUDA LITERAL   true Record number of TIU Document to be deleted.
TIURSN LITERAL   true This optional parameter specifies the reason for deletion (i.e., PrivacyAct, or Administrative Action). It only needs to be passed if the document has already been signed, and the user is still authorized to delete therecord.

MUMPS Method Description

Property Value
Method DELETE^TIUSRVP
Method Comment delete document
Input Parameters TIUDA, TIURSN, OVRRIDE
Code
 N TIUDEL,TIUD0 S ERR=0
I '+$G(OVRRIDE) D Q:+$G(TIUDEL)'>0
. S TIUDEL=$$CANDO^TIULP(TIUDA,"DELETE RECORD")
. I TIUDEL'>0 S ERR="89250003^"_$$EZBLD^DIALOG(89250003)
S TIUD0=$G(^TIU(8925,+TIUDA,0))
I +$P(TIUD0,U,5)'<6 D Q
. S TIURSN=$G(TIURSN,"A")
. D DELTEXT^TIURB2(TIUDA,TIURSN)
D DIK^TIURB2(TIUDA)
D DELAUDIT^TIUEDI1(TIUDA)

CPRS

File Type Description
Pascal File rDCSumm.pas
Pascal File rTIU.pas


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