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

SROCAN.m

Go to the documentation of this file.
  1. SROCAN ;B'HAM ISC/MAM - REPORT OF CANCELLATIONS; [ 04/06/00 9:54 AM ]
  1. ;;3.0; Surgery ;**77,94**;24 Jun 93
  1. EN S (SRSOUT,SRSP)=0
  1. W @IOF,!,"Report of Cancellations",!!,"NOTE: This report contains all cancelled cases, including those that were",!," cancelled after the patient had entered the operating room. Aborted "
  1. W !," cases are identified by an '*' next to the procedure name.",!
  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. SPEC W !!!,"Do you want to print the report 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. I "Nn"[SRYN D SP I SRSOUT G END
  1. DEVICE 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 G:POP END
  1. I $D(IO("Q")) K IO("Q") S ZTDESC="REPORT OF CANCELLATIONS",ZTRTN="EN1^SROCAN",(ZTSAVE("SRSD"),ZTSAVE("SRED"),ZTSAVE("SRINST"),ZTSAVE("SRINSTP"),ZTSAVE("SRSP*"))="" D ^%ZTLOAD G END
  1. EN1 G ^SROCAN0
  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 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. END I 'SRSOUT W !!,"Press RETURN to continue " R X:DTIME
  1. D ^SRSKILL,^%ZISC W @IOF
  1. Q