Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: SRODLT

SRODLT.m

Go to the documentation of this file.
  1. SRODLT ;B'HAM ISC/MAM - REPORT OF DELAY TIME ; [ 04/05/00 2:37 PM ]
  1. ;;3.0; Surgery ;**77,94**;24 Jun 93
  1. S (SRDL,SRSP,SRSOUT)=0 K %DT W @IOF,!,"Report of Delay Time",!
  1. DATE D DATE^SROUTL(.SRSD,.SRED,.SRSOUT) G:SRSOUT END
  1. 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))
  1. REAS 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
  1. S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
  1. I "YyNn"'[SRYN W !!,"Enter RETURN to print this report for all delay reasons, or 'NO' to select",!,"a specific delay reason." G REAS
  1. I "Nn"[SRYN D DELAY I SRSOUT G END
  1. SPEC 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
  1. S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
  1. I "YyNn"'[SRYN W !!,"Enter RETURN to print this report for all surgical specialties, or 'NO' to",!,"select a specific specialty." G SPEC
  1. S SRSS="" I "Nn"[SRYN D SP I SRSOUT G END
  1. DEVICE 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
  1. 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
  1. G ^SRODLT0
  1. Q
  1. END I $E(IOST)'="P",'SRSOUT W !!,"Press RETURN to continue " R X:DTIME
  1. D ^%ZISC W @IOF D ^SRSKILL K SRTN
  1. Q
  1. SP 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
  1. S SRCT=+Y,SRSP(SRCT)=+Y
  1. MORE ; ask for more surgical specialties
  1. 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
  1. Q
  1. DELAY 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
  1. S SRCT=+Y,SRDL(SRCT)=+Y
  1. ADD ; ask for additional delay reasons
  1. 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
  1. Q