SRONOR6 ;B'HAM ISC/MAM - REPORT OF NON-O.R. PROCEDURES ; [ 07/27/98 2:33 PM ]
;;3.0; Surgery ;**50**;24 Jun 93
ALL W @IOF,!,"Do you want to print the report for all Locations ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRSOUT=1 G END
S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
I "Yy"[SRYN S SRLOC="ALL" G DEVICE
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
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
S SRLOC=+Y,SRLOCN=$P(Y(0),"^")
DEVICE 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
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
EN ; entry when queued
U IO N SRFRTO S Y=SRSD X ^DD("DD") S SRFRTO="FROM: "_Y_" TO: ",Y=SRED X ^DD("DD") S SRFRTO=SRFRTO_Y
S SRSD=SRSD-.0001,SRED=SRED+.9999
I SRLOC="ALL" D ^SRONOR7 G END
D ^SRONOR8
END W:$E(IOST)="P" @IOF I $D(ZTQUEUED) K ^TMP("SR",$J) Q:$G(ZTSTOP) S ZTREQ="@" Q
I 'SRSOUT,$E(IOST)'="P" W !!,"Press RETURN to continue " R X:DTIME
D ^%ZISC,^SRSKILL W @IOF
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSRONOR6 1405 printed Dec 13, 2024@02:44:26 Page 2
SRONOR6 ;B'HAM ISC/MAM - REPORT OF NON-O.R. PROCEDURES ; [ 07/27/98 2:33 PM ]
+1 ;;3.0; Surgery ;**50**;24 Jun 93
ALL WRITE @IOF,!,"Do you want to print the report for all Locations ? YES// "
READ SRYN:DTIME
IF '$TEST!(SRYN["^")
SET SRSOUT=1
GOTO END
+1 SET SRYN=$EXTRACT(SRYN)
if SRYN=""
SET SRYN="Y"
+2 IF "Yy"[SRYN
SET SRLOC="ALL"
GOTO DEVICE
+3 IF "Nn"'[SRYN
WRITE !!,"Enter RETURN to print the report for all locations, or 'NO'",!,"to select a specific location.",!!,"Press RETURN to continue "
READ X:DTIME
GOTO ALL
+4 WRITE !!
KILL DIC
SET DIC=44
SET DIC(0)="QEAMZ"
SET DIC("A")="Print the Report for which location ? "
DO ^DIC
KILL DIC
IF Y<0
SET SRSOUT=1
GOTO END
+5 SET SRLOC=+Y
SET SRLOCN=$PIECE(Y(0),"^")
DEVICE WRITE !
KILL IOP,%ZIS,POP,IO("Q")
SET %ZIS="QM"
SET %ZIS("A")="Print the report on which Device: "
WRITE !!,"This report is designed to use a 132 column format.",!
DO ^%ZIS
IF POP
SET SRSOUT=1
GOTO END
+1 IF $DATA(IO("Q"))
KILL IO("Q")
SET ZTDESC="REPORT OF NON-O.R. PROCEDURES"
SET ZTRTN="EN^SRONOR6"
SET (ZTSAVE("SRSD"),ZTSAVE("SRED"),ZTSAVE("SRINST"),ZTSAVE("SRLOC*"),ZTSAVE("SRSITE*"))=""
DO ^%ZTLOAD
GOTO END
EN ; entry when queued
+1 USE IO
NEW SRFRTO
SET Y=SRSD
XECUTE ^DD("DD")
SET SRFRTO="FROM: "_Y_" TO: "
SET Y=SRED
XECUTE ^DD("DD")
SET SRFRTO=SRFRTO_Y
+2 SET SRSD=SRSD-.0001
SET SRED=SRED+.9999
+3 IF SRLOC="ALL"
DO ^SRONOR7
GOTO END
+4 DO ^SRONOR8
END if $EXTRACT(IOST)="P"
WRITE @IOF
IF $DATA(ZTQUEUED)
KILL ^TMP("SR",$JOB)
if $GET(ZTSTOP)
QUIT
SET ZTREQ="@"
QUIT
+1 IF 'SRSOUT
IF $EXTRACT(IOST)'="P"
WRITE !!,"Press RETURN to continue "
READ X:DTIME
+2 DO ^%ZISC
DO ^SRSKILL
WRITE @IOF
+3 QUIT