source: WorldVistAEHR/trunk/r/SURGERY-SR/SRONOR6.m@ 1211

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

initial load of WorldVistAEHR

File size: 1.4 KB
Line 
1SRONOR6 ;B'HAM ISC/MAM - REPORT OF NON-O.R. PROCEDURES ; [ 07/27/98 2:33 PM ]
2 ;;3.0; Surgery ;**50**;24 Jun 93
3ALL W @IOF,!,"Do you want to print the report for all Locations ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRSOUT=1 G END
4 S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
5 I "Yy"[SRYN S SRLOC="ALL" G DEVICE
6 I "Nn"'[SRYN W !!,"Enter RETURN to print the report for all locations, or 'NO'",!,"to select a specific location.",!!,"Press RETURN to continue " R X:DTIME G ALL
7 W !! K DIC S DIC=44,DIC(0)="QEAMZ",DIC("A")="Print the Report for which location ? " D ^DIC K DIC I Y<0 S SRSOUT=1 G END
8 S SRLOC=+Y,SRLOCN=$P(Y(0),"^")
9DEVICE W ! K IOP,%ZIS,POP,IO("Q") S %ZIS="QM",%ZIS("A")="Print the report on which Device: " W !!,"This report is designed to use a 132 column format.",! D ^%ZIS I POP S SRSOUT=1 G END
10 I $D(IO("Q")) K IO("Q") S ZTDESC="REPORT OF NON-O.R. PROCEDURES",ZTRTN="EN^SRONOR6",(ZTSAVE("SRSD"),ZTSAVE("SRED"),ZTSAVE("SRINST"),ZTSAVE("SRLOC*"),ZTSAVE("SRSITE*"))="" D ^%ZTLOAD G END
11EN ; entry when queued
12 U IO N SRFRTO S Y=SRSD X ^DD("DD") S SRFRTO="FROM: "_Y_" TO: ",Y=SRED X ^DD("DD") S SRFRTO=SRFRTO_Y
13 S SRSD=SRSD-.0001,SRED=SRED+.9999
14 I SRLOC="ALL" D ^SRONOR7 G END
15 D ^SRONOR8
16END W:$E(IOST)="P" @IOF I $D(ZTQUEUED) K ^TMP("SR",$J) Q:$G(ZTSTOP) S ZTREQ="@" Q
17 I 'SRSOUT,$E(IOST)'="P" W !!,"Press RETURN to continue " R X:DTIME
18 D ^%ZISC,^SRSKILL W @IOF
19 Q
Note: See TracBrowser for help on using the repository browser.