Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ORQORB

ORQORB.m

Go to the documentation of this file.
  1. ORQORB ; slc/CLA - Functions which return OE/RR Notification information ;12/15/97
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**6,173,190,215**;Dec 17, 1997
  1. Q
  1. LIST(Y) ;return list of notifications from Notification File [#100.9]
  1. ; RETURN IEN^NAME^URGENCY
  1. N I,J,V
  1. S I=1
  1. 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
  1. Q
  1. LISTON(Y,USER) ;return notifications the user has turned On or OFF
  1. ; RETURN NOTIF IEN^NOTIF NAME^ON/OFF FLAG
  1. N I,J,V,Z,FLAG
  1. S I=1,FLAG=""
  1. 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
  1. .S Z=0,Z=$O(^ORD(100.9,"E",V,USER,Z))
  1. .I Z>0 S FLAG="ON"
  1. .E S FLAG="OFF"
  1. .S Y(I)=V_"^"_J_"^"_FLAG,I=I+1
  1. Q
  1. URGENCY(ORY,ORN) ;return urgency for the notification passed
  1. N ORSRV
  1. S ORSRV=$G(^VA(200,DUZ,5)) I +ORSRV>0 S ORSRV=$P(ORSRV,U)
  1. S ORY=$$GET^XPAR("USR^SRV.`"_$G(ORSRV)_"^DIV^SYS^PKG","ORB URGENCY",ORN,"I")
  1. Q
  1. URGLIST(ORY) ;return list of notification urgencies
  1. N ORSRV,ORN,ORU
  1. S ORN=0 F S ORN=$O(^ORD(100.9,ORN)) Q:+$G(ORN)<1 D
  1. .S ORSRV=$G(^VA(200,DUZ,5)) I +ORSRV>0 S ORSRV=$P(ORSRV,U)
  1. .S ORU=$$GET^XPAR("USR^SRV.`"_$G(ORSRV)_"^DIV^SYS^PKG","ORB URGENCY",ORN,"I")
  1. .S ORY(ORN)=ORU
  1. Q
  1. SORT(ORY) ;return notification sort method for user/division/system/pkg
  1. S ORY=$$GET^XPAR("USR^DIV^SYS^PKG","ORB SORT METHOD",1,"I")
  1. Q
  1. REMLIST(ORY) ;return list of notification remove without processing values
  1. N ORN,ORU
  1. S ORN=0 F S ORN=$O(^ORD(100.9,ORN)) Q:+$G(ORN)<1 D
  1. .S ORU=$$GET^XPAR("SYS","ORB REMOVE",ORN,"I")
  1. .S ORY(ORN)=ORU
  1. Q
  1. REMNONOR(ORY) ;return list of non-or alerts that can be removed without processing
  1. N ORD,ORA
  1. D GETLST^XPAR(.ORD,"ALL","ORB REMOVE NON-OR","I")
  1. Q:+$G(ORD)<1
  1. S ORA="" F S ORA=$O(ORD(ORA)) Q:ORA="" D
  1. .I ORD(ORA)=1 S ORY(ORA)=""
  1. Q