source: FOIAVistA/trunk/r/TEXT_INTEGRATION_UTILITIES-GMRP-TIU/TIULP2.m@ 1397

Last change on this file since 1397 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.5 KB
Line 
1TIULP2 ;SLC/JER - Functions determining privilege continued ;11/15/2006
2 ;;1.0;TEXT INTEGRATION UTILITIES;**215**;Jun 20, 1997;Build 6
3ISSURG(TIUDA) ;GET 8925.1 IEN
4 NEW TIUY
5 D ISSURG^TIUSROI(.TIUY,+$G(^TIU(8925,+TIUDA,0)))
6 Q TIUY
7SURGNOK(TIUDA) ;SEE IF IT IS AN NIR OR AR
8 N TIUY,TIUS0,TIUSNAME
9 S TIUY=0
10 G SURGEX:'$L(TIUDA)
11 G SURGEX:'$D(^TIU(8925,+TIUDA,0))
12 S TIUS0=+$G(^TIU(8925,+TIUDA,0))
13 G SURGEX:'$L(TIUS0)
14 S TIUSNAME=$$PNAME^TIULC1(+TIUS0)
15 G SURGEX:'$L(TIUSNAME)
16 I TIUSNAME["NURSE INTRAOPERATIVE REPORT" S TIUY=1 G SURGEX
17 I TIUSNAME["ANESTHESIA REPORT" S TIUY=1 G SURGEX
18SURGEX Q TIUY
19ACTION(TIUACTW) ;CHECK ACTION
20 NEW TIUY S TIUY=0
21 I (($G(TIUACTW)["DELETE RECORD")!($G(TIUACTW)["AMENDMENT")!($G(TIUACTW)["EDIT RECORD")!($G(TIUACTW)["ADDEND")) S TIUY=1 G ACTEX
22ACTEX Q TIUY
23SURMSG(TIUACTW) ;SET SURGERY ERROR MSG
24 NEW TIUY,TIUDOC S TIUDOC=""
25 I TIUACTW["DELETE" S TIUDOC="DELETE"
26 I TIUACTW["EDIT" S TIUDOC="EDIT"
27 I ((TIUACTW["ADDEND")!(TIUACTW["AMEND")) S TIUDOC="CREATE AN ADDENDUM FOR"
28 S TIUY="You must use the Surgery Package to "_TIUDOC_" this Document"
29 Q TIUY
30IDMSG(TIUMSG) ;SET DELETE ID MSG
31 S TIUMSG="You may NOT delete this parent ID note. It has child ID notes attached. "
32 S TIUMSG=TIUMSG_"If you need to delete this note you must first detach the Child from the Parent note."
33 I $G(XQY0)["OR CPRS GUI CHART" D ;DBIA 3356
34 . S TIUMSG=TIUMSG_" Select Action/Detach from Interdisciplinary note to accomplish this."
35 E S TIUMSG=TIUMSG_" Select the Child note from the LM screen, then select Interdiscipl'ry Note."
36 Q
Note: See TracBrowser for help on using the repository browser.