- SROCAN ;B'HAM ISC/MAM - REPORT OF CANCELLATIONS; [ 04/06/00 9:54 AM ]
- ;;3.0; Surgery ;**77,94**;24 Jun 93
- EN S (SRSOUT,SRSP)=0
- 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 "
- W !," cases are identified by an '*' next to the procedure name.",!
- DATE D DATE^SROUTL(.SRSD,.SRED,.SRSOUT) G:SRSOUT END
- 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))
- 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
- S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
- I "YyNn"'[SRYN W !!,"Enter RETURN to print this report for all surgical specialties, or 'NO' to",!,"select a specific specialty." G SPEC
- I "Nn"[SRYN D SP I SRSOUT G END
- 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
- 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
- EN1 G ^SROCAN0
- Q
- 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
- S SRCT=+Y,SRSP(SRCT)=+Y
- MORE ; ask for more surgical specialties
- 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
- Q
- END I 'SRSOUT W !!,"Press RETURN to continue " R X:DTIME
- D ^SRSKILL,^%ZISC W @IOF
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HSROCAN 1788 printed Feb 19, 2025@00:08:59 Page 2
- SROCAN ;B'HAM ISC/MAM - REPORT OF CANCELLATIONS; [ 04/06/00 9:54 AM ]
- +1 ;;3.0; Surgery ;**77,94**;24 Jun 93
- EN SET (SRSOUT,SRSP)=0
- +1 WRITE @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 "
- +2 WRITE !," cases are identified by an '*' next to the procedure name.",!
- DATE DO DATE^SROUTL(.SRSD,.SRED,.SRSOUT)
- if SRSOUT
- GOTO END
- +1 NEW SRINSTP
- SET SRINST=$$INST^SROUTL0()
- if SRINST="^"
- GOTO END
- SET SRINSTP=$PIECE(SRINST,U)
- SET SRINST=$SELECT(SRINST["ALL DIVISIONS":SRINST,1:$PIECE(SRINST,U,2))
- SPEC WRITE !!!,"Do you want to print the report for all Surgical Specialties ? YES// "
- READ SRYN:DTIME
- IF '$TEST!(SRYN["^")
- SET SRSOUT=1
- GOTO END
- +1 SET SRYN=$EXTRACT(SRYN)
- if SRYN=""
- SET SRYN="Y"
- +2 IF "YyNn"'[SRYN
- WRITE !!,"Enter RETURN to print this report for all surgical specialties, or 'NO' to",!,"select a specific specialty."
- GOTO SPEC
- +3 IF "Nn"[SRYN
- DO SP
- IF SRSOUT
- GOTO END
- DEVICE 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
- GOTO END
- +1 IF $DATA(IO("Q"))
- KILL IO("Q")
- SET ZTDESC="REPORT OF CANCELLATIONS"
- SET ZTRTN="EN1^SROCAN"
- SET (ZTSAVE("SRSD"),ZTSAVE("SRED"),ZTSAVE("SRINST"),ZTSAVE("SRINSTP"),ZTSAVE("SRSP*"))=""
- DO ^%ZTLOAD
- GOTO END
- EN1 GOTO ^SROCAN0
- +1 QUIT
- SP WRITE !!
- SET SRSP=1
- KILL DIC
- SET DIC("S")="I '$P(^(0),""^"",3)"
- SET DIC=137.45
- SET DIC(0)="QEAMZ"
- SET DIC("A")="Print the report for which Specialty ? "
- DO ^DIC
- IF Y<0
- SET SRSOUT=1
- QUIT
- +1 SET SRCT=+Y
- SET SRSP(SRCT)=+Y
- MORE ; ask for more surgical specialties
- +1 KILL DIC
- SET DIC("S")="I '$P(^(0),""^"",3)"
- SET DIC=137.45
- SET DIC(0)="QEAMZ"
- SET DIC("A")="Select An Additional Specialty: "
- DO ^DIC
- IF Y>0
- SET SRCT=+Y
- SET SRSP(SRCT)=+Y
- GOTO MORE
- +2 QUIT
- END IF 'SRSOUT
- WRITE !!,"Press RETURN to continue "
- READ X:DTIME
- +1 DO ^SRSKILL
- DO ^%ZISC
- WRITE @IOF
- +2 QUIT