source: FOIAVistA/trunk/r/SURGERY-SR/SROREQ.m@ 1094

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

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1SROREQ ;BIR/MAM - REQUEST FOR A DAY (LONG FORM) ; [ 12/09/99 11:54 AM ]
2 ;;3.0; Surgery ;**92**;24 Jun 93
3SPEC W @IOF,!,"Do you want the requests for all surgical specialties ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRSOUT=1 G END
4 S SRYN=$E(SRYN) I SRYN="" S SRYN="Y"
5 I "YyNn"'[SRYN W !!,"Enter 'YES' to print the requests for all surgical specialties, or 'NO'",!,"to select a specific specialty.",!!,"Press RETURN to continue " R X:DTIME G SPEC
6 I "Yy"[SRYN S (SRSS,SRSNM)="ALL" G ZIS
7 W ! K DIC S DIC("S")="I '$P(^(0),""^"",3)",DIC=137.45,DIC(0)="QEAMZ",DIC("A")="Print Requests for which Surgical Specialty ? " D ^DIC I Y<0 S SRSOUT=1 G END
8 S SRSS=+Y,SRSNM=$P(Y(0),"^")
9ZIS W ! K IOP,%ZIS,POP,IO("Q") S %ZIS="Q",%ZIS("A")="Print the Requests on which Device: " D ^%ZIS I POP S SRSOUT=1 G END
10 I $D(IO("Q")) K IO("Q") S ZTDESC="OPERATION REQUESTS",(ZTSAVE("SRSS"),ZTSAVE("SRSNM"),ZTSAVE("SRSDATE"),ZTSAVE("SRSITE*"))="",ZTRTN=$S(SRSS="ALL":"BEG^SROREQ1",1:"BEG^SROREQ2") D ^%ZTLOAD G END
11 I SRSS="ALL" G ^SROREQ1
12 G BEG^SROREQ2
13END W ! D ^%ZISC W @IOF K SRTN D ^SRSKILL
14 Q
15HDR ; print heading
16 I $D(ZTQUEUED) D ^SROSTOP I SRHALT S SRSOUT=1 Q
17 W:$Y @IOF W ! F LINE=1:1:80 W "="
18 W !,"OPERATION REQUESTS FOR "_SRSNM,!,"ON "_SRSDT S SRHDR=1
19 Q
Note: See TracBrowser for help on using the repository browser.