source: FOIAVistA/tag/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORQORB.m@ 636

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

initial load of FOIAVistA 6/30/08 version

File size: 1.7 KB
Line 
1ORQORB ; slc/CLA - Functions which return OE/RR Notification information ;12/15/97
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**6,173,190,215**;Dec 17, 1997
3 Q
4LIST(Y) ;return list of notifications from Notification File [#100.9]
5 ; RETURN IEN^NAME^URGENCY
6 N I,J,V
7 S I=1
8 S J=0 F S J=$O(^ORD(100.9,"B",J)) Q:J="" S V=0,V=$O(^ORD(100.9,"B",J,V)) S Y(I)=V_"^"_J_"^"_^ORD(100.9,V,3),I=I+1
9 Q
10LISTON(Y,USER) ;return notifications the user has turned On or OFF
11 ; RETURN NOTIF IEN^NOTIF NAME^ON/OFF FLAG
12 N I,J,V,Z,FLAG
13 S I=1,FLAG=""
14 S J=0 F S J=$O(^ORD(100.9,"B",J)) Q:J="" S V=0,V=$O(^ORD(100.9,"B",J,V)) D
15 .S Z=0,Z=$O(^ORD(100.9,"E",V,USER,Z))
16 .I Z>0 S FLAG="ON"
17 .E S FLAG="OFF"
18 .S Y(I)=V_"^"_J_"^"_FLAG,I=I+1
19 Q
20URGENCY(ORY,ORN) ;return urgency for the notification passed
21 N ORSRV
22 S ORSRV=$G(^VA(200,DUZ,5)) I +ORSRV>0 S ORSRV=$P(ORSRV,U)
23 S ORY=$$GET^XPAR("USR^SRV.`"_$G(ORSRV)_"^DIV^SYS^PKG","ORB URGENCY",ORN,"I")
24 Q
25URGLIST(ORY) ;return list of notification urgencies
26 N ORSRV,ORN,ORU
27 S ORN=0 F S ORN=$O(^ORD(100.9,ORN)) Q:+$G(ORN)<1 D
28 .S ORSRV=$G(^VA(200,DUZ,5)) I +ORSRV>0 S ORSRV=$P(ORSRV,U)
29 .S ORU=$$GET^XPAR("USR^SRV.`"_$G(ORSRV)_"^DIV^SYS^PKG","ORB URGENCY",ORN,"I")
30 .S ORY(ORN)=ORU
31 Q
32SORT(ORY) ;return notification sort method for user/division/system/pkg
33 S ORY=$$GET^XPAR("USR^DIV^SYS^PKG","ORB SORT METHOD",1,"I")
34 Q
35REMLIST(ORY) ;return list of notification remove without processing values
36 N ORN,ORU
37 S ORN=0 F S ORN=$O(^ORD(100.9,ORN)) Q:+$G(ORN)<1 D
38 .S ORU=$$GET^XPAR("SYS","ORB REMOVE",ORN,"I")
39 .S ORY(ORN)=ORU
40 Q
41REMNONOR(ORY) ;return list of non-or alerts that can be removed without processing
42 N ORD,ORA
43 D GETLST^XPAR(.ORD,"ALL","ORB REMOVE NON-OR","I")
44 Q:+$G(ORD)<1
45 S ORA="" F S ORA=$O(ORD(ORA)) Q:ORA="" D
46 .I ORD(ORA)=1 S ORY(ORA)=""
47 Q
Note: See TracBrowser for help on using the repository browser.