source: FOIAVistA/tag/r/SURGERY-SR/SRODLT.m@ 628

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

initial load of FOIAVistA 6/30/08 version

File size: 2.2 KB
Line 
1SRODLT ;B'HAM ISC/MAM - REPORT OF DELAY TIME ; [ 04/05/00 2:37 PM ]
2 ;;3.0; Surgery ;**77,94**;24 Jun 93
3 S (SRDL,SRSP,SRSOUT)=0 K %DT W @IOF,!,"Report of Delay Time",!
4DATE D DATE^SROUTL(.SRSD,.SRED,.SRSOUT) G:SRSOUT END
5 N SRINSTP S SRINST=$$INST^SROUTL0() G:SRINST="^" END S SRINSTP=$P(SRINST,U),SRINST=$S(SRINST["ALL DIVISIONS":SRINST,1:$P(SRINST,U,2))
6REAS W !!!,"Do you want to print the Report of Delay Time for all delay reasons ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRSOUT=1 G END
7 S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
8 I "YyNn"'[SRYN W !!,"Enter RETURN to print this report for all delay reasons, or 'NO' to select",!,"a specific delay reason." G REAS
9 I "Nn"[SRYN D DELAY I SRSOUT G END
10SPEC W !!!,"Do you want to print the Report of Delayed Operations for all Surgical",!,"Specialties ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRSOUT=1 G END
11 S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
12 I "YyNn"'[SRYN W !!,"Enter RETURN to print this report for all surgical specialties, or 'NO' to",!,"select a specific specialty." G SPEC
13 S SRSS="" I "Nn"[SRYN D SP I SRSOUT G END
14DEVICE W ! K %ZIS,IOP,IO("Q"),POP S %ZIS="Q",%ZIS("A")="Print the Report on which Device ? " D ^%ZIS I POP S SRSOUT=1 G END
15 I $D(IO("Q")) K IO("Q") S ZTRTN="SRODLT0",ZTDESC="Report of Delay Times",(ZTSAVE("SRSD"),ZTSAVE("SRED"),ZTSAVE("SRINST"),ZTSAVE("SRINSTP"),ZTSAVE("SRSP*"),ZTSAVE("SRDL*"))="" D ^%ZTLOAD G END
16 G ^SRODLT0
17 Q
18END I $E(IOST)'="P",'SRSOUT W !!,"Press RETURN to continue " R X:DTIME
19 D ^%ZISC W @IOF D ^SRSKILL K SRTN
20 Q
21SP W !! S SRSP=1 K DIC S DIC("S")="I '$P(^(0),""^"",3)",DIC=137.45,DIC(0)="QEAMZ",DIC("A")="Print the Report of Delay Times for which Specialty ? " D ^DIC I Y<0 S SRSOUT=1 Q
22 S SRCT=+Y,SRSP(SRCT)=+Y
23MORE ; ask for more surgical specialties
24 K DIC S DIC("S")="I '$P(^(0),""^"",3)",DIC=137.45,DIC(0)="QEAMZ",DIC("A")="Select An Additional Specialty: " D ^DIC I Y>0 S SRCT=+Y,SRSP(SRCT)=+Y G MORE
25 Q
26DELAY W !! S SRDL=1 K DIC S DIC=132.4,DIC(0)="QEAMZ",DIC("A")="Print the report for which Delay Reason ? " D ^DIC I Y<0 S SRSOUT=1 Q
27 S SRCT=+Y,SRDL(SRCT)=+Y
28ADD ; ask for additional delay reasons
29 K DIC S DIC=132.4,DIC(0)="QEAMZ",DIC("A")="Select An Additional Delay Reason: " D ^DIC I Y>0 S SRCT=+Y,SRDL(SRCT)=+Y G ADD
30 Q
Note: See TracBrowser for help on using the repository browser.