source: FOIAVistA/trunk/r/LAB_SERVICE-LR-LS/LRACM.m@ 1783

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

initial load of FOIAVistA 6/30/08 version

File size: 2.4 KB
Line 
1LRACM ;SLC/DCM - MENU FOR CUMULATIVE REPORTS ;2/19/91 10:11 ;
2 ;;5.2;LAB SERVICE;;Sep 27, 1994
3 Q
4LRAC W ?25,"Kill now taking place!!!",$C(7) K ^LAC("LRAC"),^LAC("LGOT") S ^LAC("LRAC",0)="CUMULATIVE^64.7P" D DEL^LRACM4 Q
5LRKILL W !?25,"Kill under way!!!",$C(7) K ^LAC("LRKILL") Q
6LOC D A^LRACM1 D:LRNOT MSG D L,END Q
7L D ASK^LRACM1,LOCA^LRWU Q:X[U S LRNM=0,LRRE=1
8 I '$D(^LRO(69,LRDT,1,"AR",LRLLOC)) W !?7,"SORRY, NO DATA FOR LOCATION ",LRLLOC G L
9 I 'LRDT W !!,$C(7),"NO PREVIOUS RUN DEFINED",! Q
10 K IO("Q") S %ZIS="QM" D ^%ZIS Q:POP I $D(IO("Q")) K IO("Q") S ZTRTN="LOC1^LRACM",ZTSAVE("DT")="",ZTSAVE("LR*")="",ZTSAVE("DUZ")="",ZTSAVE("U")="" D ^%ZTLOAD D ^%ZISC K ZTRTN,ZTIO,ZTDESC,ZTSAVE,ZTSK Q
11 U IO
12LOC1 D LOAD S LRIDT=0,LRTRUE=1,LRDFN=0
13 D LRLTR^LRAC1
14 S LRRE=0 D ^%ZISC D END Q
15DIC R !,"Select HOSPITAL LOCATION NAME: ",X:DTIME Q:'$T!(X[U)!($L(X)>20)!(X'?.ANP) S LRLLOC=X,LRYDT=DT,DIC=44,DIC(0)="EMOQ" D ^DIC Q:Y<1!(X["?") S LRLLOC=$S($L($P(^SC(+Y,0),U,2)):$P(^(0),U,2),1:$P(^(0),U,1)) K DIC,DIC(0)
16 Q
17EN ;
18KILL W !,"I will initialize various portions of the Lab cumulative package.",!,"Continue only if you want to start over with the cumulative.",!
19 R !!,"Do you want to continue? N// ",X:120 Q:X'["Y" W !!,"O.K.",!!
20 D LRAC,LRKILL R !!,"Initialize all page numbers? Y// ",X:120 D:X'["N" LPG^LRACM2 K DIC,%DT Q
21LOAD ;from LRACM3
22 S:$D(ZTQUEUED) ZTREQ="@"
23 Q
24MSG ;from LRACM1, LRACM3
25 S IOP="HOME" D STA^LRACK
26 W !!,$C(7),"THE CUMULATIVE APPARENTLY HAS NOT FINISHED.",!,"Do NOT try to reprint reports that have not finished printing!",!,"TO MANUALLY RUN/RESTART CUMULATIVE USE THE OPTION LRAC MANUAL."
27 R !!,"Press any key to continue: ",X:DTIME K IOP Q
28END ;from LRACM1, LRACM2, LRACM3, LRACSUM
29 K ^TMP($J),LRCALE,LRADD,LRAMT,LRCTR,LRCTRR,LRDOC,LRDT,LRDT1,LRFALT,LRFD1,LRFDE,LRFED,LRFFLG,LRGRM,LRIF,LRIOZERO,LRKL,LRLTR,LROUT,LRIN,LRSDT,LREDT,LRI,LRX,LRF,LRL,LRDIS,LRACT,LRAG,LRAN,LRBDT,LRCL,LRCW,LRCL,LRDFN,LRD,LRDPF
30 K LRIV,LRMYC,LRNOT,LRNUM,LRNX,LRNXSW,LRPAR,LRPG2,LRPPT,LRSET,LRSIC,LRSS,LRTBC,LRWRDVEW,LRXDT,LRXLR,LRYDT,LRRPTN,LRFD,LRFDT,LRFFDT,LRFMT,LRFN,LRFULL,LRHI,LRIDT,LRII,LRIIDT,LRIL,LRINN,LRJS,LRLFDT,LRLLOC,LRLNS,LRLO,LRLOHI,LRMH
31 K ^TMP($J,"TM"),LRMHN,LRMU,LRMULT,LRNM,LRNOFL,LRNON,LRNP,LROFDT,LROFMT,LRPG,LRPL,LRSH,LRSHD,LRSHN,LRSPM,LRSPM1,LRSUB,LRTAB,LRTD,LRTF,LRTIM,LRTLOC,LRTM,LRTNN,LRTOPP,LRTOT,LRTS,LRTST,LRTSTS,LRTSTVAL,LRTT,LRUDT,LRVDT,LRVIDT,LRWRD
32 K LRG,LRYESCOM,LRPERM,LRBOT,LRCDT,LRDP,LRVAR,LRNP,PNM,SEX,SSN,Z Q
Note: See TracBrowser for help on using the repository browser.