source: FOIAVistA/trunk/r/LAB_SERVICE-LR-LS/LRCAPMR2.m@ 811

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

initial load of FOIAVistA 6/30/08 version

File size: 2.3 KB
Line 
1LRCAPMR2 ;DALISC/J0 - WKLD STATS REPORT - COMMENTS PRINT ; 4/9/93
2 ;;5.2;LAB SERVICE;**201**;Sep 27, 1994
3 ;
4ASKCOM ;lrcm
5 R !!,"PRINT THE COMMENT PAGES? NO//",LRCM:DTIME
6 I '$T!(LRCM=U) S LREND=1 Q
7 I LRCM["?" W !,"Do you want to print comments? YES or NO.",! G ASKCOM
8 S LRCM=$S($E(LRCM,1)="Y"!($E(LRCM,1)="y"):1,1:0) W !
9 Q
10COMM ;Called from LRCAPMA2,LRCAPML2,LRRP8C
11 Q:'+$G(LRCM)
12 N LRDAT,LRCC,LRGCN,LRCCN,LRDCN,LRCONT
13 D GENCOM Q:LREND
14 D CAPCOM Q:LREND
15 D DATCOM
16 Q
17GENCOM ;
18 N LRHDR,LRHDR3
19 S LRGCN=0
20 S LRGCN=$O(^TMP("LR",$J,"GCOM",LRGCN))
21 Q:'LRGCN ;no general comments
22 S LRHDR="GENERAL WORKLOAD COMMENTS"
23 S LRHDR3="[Includes all workload data in date range]"
24 D HDR^LRCAPU
25 S LRGCN=0
26 F S LRGCN=$O(^TMP("LR",$J,"GCOM",LRGCN)) Q:('LRGCN)!(LREND) D
27 . S LRCOMM=$G(^TMP("LR",$J,"GCOM",LRGCN))
28 . I $Y+6'<IOSL D NPG^LRCAPU Q:LREND
29 . W !,LRCOMM,!
30 D:$E(IOST,1,2)="C-" PAUSE^LRCAPU Q:LREND W @IOF
31 Q
32CAPCOM ;
33 N LRHDR,LRHDR3
34 S LRCAPNAM=""
35 S LRCAPNAM=$O(^TMP("LR",$J,"CCOM",LRCAPNAM))
36 Q:LRCAPNAM="" ;no wkld code comments
37 S LRHDR="WORKLOAD COMMENTS by WKLD CODE"
38 S LRHDR3="[Includes all workload data in date range]"
39 D HDR^LRCAPU
40 S LRCAPNAM=""
41 F S LRCAPNAM=$O(^TMP("LR",$J,"CCOM",LRCAPNAM)) Q:(LRCAPNAM="")!(LREND) D
42 . S LRCAPNUM=$G(^TMP("LR",$J,"CCOM",LRCAPNAM,0))
43 . W !!,LRCAPNUM,?15,LRCAPNAM,!
44 . S LRCCN=0
45 . F S LRCCN=$O(^TMP("LR",$J,"CCOM",LRCAPNAM,LRCCN)) Q:('LRCCN)!(LREND) D
46 . . S LRCOMM=$G(^TMP("LR",$J,"CCOM",LRCAPNAM,LRCCN))
47 . . I $Y+6'<IOSL D
48 . . . D NPG^LRCAPU
49 . . . Q:LREND
50 . . . W !!,LRCAPNUM,?15,LRCAPNAM," (cont.)",!
51 . . Q:LREND
52 . . W LRCOMM,!
53 . W $E(LRDSHS,1,80),!
54 D:$E(IOST,1,2)="C-" PAUSE^LRCAPU Q:LREND W @IOF
55 Q
56DATCOM ;
57 N LRDATE,LRHDR,LRHDR3
58 S LRDAT=0
59 S LRDAT=$O(^TMP("LR",$J,"DCOM",LRDAT))
60 Q:'LRDAT ;no date comments
61 S LRHDR="WORKLOAD COMMENTS by DATE"
62 S LRHDR3="[Includes all workload data in date range]"
63 D HDR^LRCAPU
64 S LRDAT=0
65 F S LRDAT=$O(^TMP("LR",$J,"DCOM",LRDAT)) Q:('LRDAT)!(LREND) D
66 . S LRDATE=$$FMTE^XLFDT(LRDAT,"1D")
67 . W !!,LRDATE,!
68 . S LRDCN=0
69 . F S LRDCN=$O(^TMP("LR",$J,"DCOM",LRDAT,LRDCN)) Q:('LRDCN)!(LREND) D
70 . . S LRCOMM=$G(^TMP("LR",$J,"DCOM",LRDAT,LRDCN))
71 . . I $Y+6'<IOSL D
72 . . . D NPG^LRCAPU
73 . . . Q:LREND
74 . . . W !!,LRDATE," (cont.)",!
75 . . Q:LREND
76 . . W LRCOMM,!
77 . W $E(LRDSHS,1,80),!
78 D:$E(IOST,1,2)="C-" PAUSE^LRCAPU Q:LREND W @IOF
79 Q
Note: See TracBrowser for help on using the repository browser.