VistA-WorldVistAEHR/r/HINQ-DVB--DVBA--DVBE--DVBC/DVBHUTL1.m

25 lines
1.3 KiB
Mathematica

DVBHUTL1 ;ALB/JLU;General utility routine;1/10/94
;;V4.0;HINQ;**15,20**;03/25/92
;
POW ;this subroutine is to figure out the BIRLS pow indicator. a 'c' is
;checked for because of old unconverted VBA data.
;
K DVBPOWD
S Y=$E(X,5,10)
I $E(X,1,1)="C",+$E(X,2,4)<30 S DVBPOWD="1 to 29 days"
I $E(X,1,1)="C",+$E(X,2,4)>29 S DVBPOWD="30 days or greater"
I '$D(DVBPOWD) DO
.N A
.F A=1:1:4 S DVBPOWD=+$E(X,A,4) Q:DVBPOWD
.I DVBPOWD S DVBPOWD=DVBPOWD_" days "
.E K DVBPOWD
.Q
Q
CLEAN ;this subroutine is used to kill the variables that would have
;be killed if the mail message parameter was turned on for
;the alerts
K DVBCHECK,DVBADR,DVBZIP,DVBAAHB,DVBCN,DVBDXPCT,DVBFL,DVBBAS,DVBP(1),DVBP(2),DVBP(3),DVBP(4),DVBP(5),DVBP(6),DVBVET,DVBDIA,DVBCHI,DVBRTYPE,DVBRTYP,DVBEI,DVBCI,DVBCPS,DVBSPNAM,DVBSPDOB,DVBCHILD,DVBDOB,V,DVBDXX,DVBHOLD,DVBEINC
K DVBSSA,DVBRETT,DVBRETO,DVBOINC,DVBNMREC,DVBSRC,DVBSVCN,DVBEODN,DVBRADN,DVBPNAM,DVBSN,DVBCSVC,DVBPOA,DVBRAD,DVBEOD,DVBPOWD,DVBTOTAS,DVBASVC,DVBNAM,DVBSNSVC,DVBPOW,DVBBOS,DVBADRLN,DVBVNA,DVBRMA,DVBSPENC,DVBSPSSA,DVBSPRET
K DVBSPETD,DVBSPINC,Y,DVBDXNO,DVBDX,DVBPT,DVBPTI,DVBFIDCU,DVBNAM,DVBSSN,DVBDIV,DVBREQST,DVBOTM,DVBNETER,DVBREQUE,DVBCHNO,DVBCTN,DVBIXMZ,DVBNAME,DVBMON,DVBERR1,DVBSTATS,DVBWIT,DVBAD,DVBBDF,DVBDBE,DVBREF,DVBFUT,DVBINC,DVBBIR,DVBCAP
Q