source: WorldVistAEHR/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGSTAT.m@ 1093

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

initial load of WorldVistAEHR

File size: 3.5 KB
RevLine 
[613]1DGSTAT ;ALB/MRL - ADT SYSTEM STATUS DISPLAY ; 03/12/2004
2 ;;5.3;Registration;**75,151,568**;Aug 13, 1993
3 ;
4 ; modified for K8, 12/7/95; mli
5 ;
6EN ; main entry point
7 I $$VERSION^XPDUTL("XU")<8 W !,"You must have KERNEL version 8.0 or higher to run this option!" G Q
8 S ^UTILITY("DG",$J,"ST")=""
9 S DGUSER=$P($G(^VA(200,+DUZ,.1)),"^",4),DGNOW=$$NOW^XLFDT()
10 W @IOF,!,$$GREETING(),$S(DGUSER]"":" "_DGUSER,1:""),". Welcome to MAS, VERSION ",$$VERSION^XPDUTL("REGISTRATION"),!
11 F I=1:1:40 W "= "
12 F I=334,345 S X=$O(^DGAM(I,"ALST",0)) I X W !,"AMIS ",I S DGX=$X D L W "Last run for month of ",$$DATE(X,1) ; amis 334,345
13 S X=$P($P($G(^DG(43,1,"AMIS")),"^",6),"'",2)
14 W !,"AMIS 401-420 Reports" S DGX=$X D L W "Last run for month of ",$$DATE(X,1) ; amis 400s
15 S X=$G(^DG(43,1,"GLS"))
16 W !,"Auto Recalculation" S DGX=$X D L W "Last run ",$$DATE(X,7)," on CPU ",$P(X,"^",8) ; auto recalc
17 S X=$$SCHED("DG G&L RECALCULATION AUTO")
18 W ! D L W "Scheduled for ",$S(X:$$DATE(X,1),1:"(not currently scheduled)")
19 I X<DGNOW D
20 . N DIQUIET ; uced to silence echo of date in %dt
21 . S DIQUIET=1
22 . W ! D L W "Rescheduled to run at 9 p.m."
23 . D RESCH^XUTMOPT("DG G&L RECALCULATION AUTO",DT_.2100,,,"L")
24 W !,"Embosser Option from Registration" S DGX=$X D L W "Is turned ",$$ONOFF(28) ; emboss on/off
25 W !,"Gains & Losses (G&L)" S DGX=$X D L W "Last run ",$$DATE($G(^DG(43,1,"GLS")),11) ; g&l
26 W !,"HINQ Option from Registration" S DGX=$X D L W "Is turned ",$$ONOFF(27) ; hinq at reg
27 W !,"RUG-II Background Job" S DGX=$X D L W "Last run ",$$DATE($G(^DG(43,1,"RUG")),1) ; rug bgj
28 S X=$$LAST^DGSDUTL,X=$G(^SDD(409.65,+X,0)) ; appt stat upd
29 W !,"Appointment Status Update" S DGX=$X D L W "Last run ",$$DATE(X,5)
30 W ! D L W "Updated appointments for ",$$DATE(X,1)
31 W ! D L W "Scheduled for " S X=$$SCHED("SDAM BACKGROUND JOB") W $S(X:$$UP^XLFSTR($$FMTE^XLFDT(X)),1:"(not currently scheduled)")
32 W !,"IRT Background Job" S DGX=$X D L W "Last run ",$$DATE($G(^DG(43,1,"IRT")),1) ; irt bgj
33 W ! D L W "Scheduled for " S X=$$SCHED("DGJ IRT UPDATE (Background)") W $S(X:$$UP^XLFSTR($$FMTE^XLFDT(X)),1:"(not currently scheduled)")
34 I $D(^%ZOSF("UCI")) X ^("UCI") W !!,"YOU ARE PRESENTLY ON CPU ",Y,!
35Q W ! I $D(DUZ("AUTO")),DUZ("AUTO") R "Press RETURN to continue: ",X:DTIME
36 K %DT,%H,DA,DGRE,DGUSER,DGVERS,DGX,DIE,DR,I,DGNOW,X,Y Q
37 ;
38ONOFF(PIECE) ; return ON or OFF
39 ; input - piece of 0 node of file 43 wanted
40 ; output - ON or OFF
41 ;
42 Q $S($P($G(^DG(43,1,0)),"^",PIECE):"ON",1:"OFF")
43 ;
44DATE(NODE,PIECE) ; return appropriate date
45 ; input - NODE as node of data
46 ; PIECE as piece of node to convert
47 ; output - date in external format
48 ;
49 Q $$UP^XLFSTR($$FMTE^XLFDT($P(NODE,"^",PIECE)))
50 ;
51SHOW I $S('$D(^DG(43,1,0)):1,'$P(^(0),"^",34):1,$D(^UTILITY("DG",$J,"ST")):1,1:0) Q
52 G EN
53 ;
54L ; write line of dots
55 ;
56 W ?DGX+1 F I=1:1:(36-(DGX+1)) W "."
57 W " "
58 Q
59 ;
60GREETING() ; randomize greeting
61 N X,%H
62 S X=$P("Hello^Hi There^Good ^Hello There^Hi","^",$R(5)+1)
63 I X["Good" S %H=$P($H,",",2),X=X_$S(%H<43200:"Morning",%H<61200:"Afternoon",1:"Evening")
64 Q X
65 ;
66SCHED(OPTION) ; sent back time time for queued process
67 ; input - OPTION as name of option
68 ; output - date currently queued (external format)
69 N I,IEN,X
70 S (I,X)=0,IEN=$$LKOPT^XPDMENU(OPTION)
71 F S I=$O(^DIC(19.2,"B",IEN,I)) Q:'I S X=$P($G(^DIC(19.2,+I,0)),"^",2) Q:X>$$NOW^XLFDT()
72 Q X
Note: See TracBrowser for help on using the repository browser.