source: WorldVistAEHR/trunk/r/SURGERY-SR/SROAR.m@ 1259

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

initial load of WorldVistAEHR

File size: 1.9 KB
Line 
1SROAR ;B'HAM ISC/MAM - ANNUAL REPORT OF SURGICAL PROCEDURES ; [ 09/22/98 11:28 AM ]
2 ;;3.0; Surgery ;**77,50**;24 Jun 93
3BEG S SRSOUT=0
4 W @IOF,!,"Annual Report of Surgical Procedures"
5DATE D DATE^SROUTL(.SDATE,.EDATE,.SRSOUT) G:SRSOUT END
6ALL W !!,"Do you want to print the Annual Report of Surgical Procedures for all",!,"Surgical Specialties ? 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 if you want to print the report for all specialties, or 'NO'",!,"to select a specific Surgical Specialty.",!!,"Press RETURN to continue " R X:DTIME G ALL
9 S SRSS="ALL" I "Nn"[SRYN W !! K DIC S DIC("S")="I '$P(^(0),""^"",3)",DIC=137.45,DIC(0)="QEAMZ",DIC("A")="Print the Annual Report for which Specialty ? " D ^DIC S:Y<0 SRSOUT=1 G:Y<0 END S SRSS=+Y
10 W !!,"This report is designed to use a 132 column format, and must be run",!,"on a printer.",!!
11PTR K IOP,%ZIS,POP,IO("Q") S %ZIS("A")="Select Printer: ",%ZIS="QM" D ^%ZIS I POP S SRSOUT=1 G END
12 I $E(IOST)'="P" W !!,"This report must be run on a printer. Please select another device.",! D PRESS G:SRSOUT END D ^%ZISC W @IOF G PTR
13 I $D(IO("Q")) K IO("Q") S ZTRTN="EN^SROAR",(ZTSAVE("SDATE"),ZTSAVE("EDATE"),ZTSAVE("SRSS"),ZTSAVE("SRSITE*"))="",ZTDESC="ANNUAL REPORT OF SURGICAL PROCEDURES" D ^%ZTLOAD G END
14EN U IO N SRFRTO S Y=SDATE X ^DD("DD") S SRFRTO="FROM: "_Y_" TO: ",Y=EDATE X ^DD("DD") S SRFRTO=SRFRTO_Y,Y=DT X ^DD("DD") S SRPRINT="DATE PRINTED: "_Y
15 S SDATE1=SDATE-.0001,EDATE1=EDATE+.9999,SRINST=SRSITE("SITE"),SRHALT=0,SRSOUT=1 I SRSS="ALL" D ^SROAR1 G END
16 D ^SROAR2
17END W ! I 'SRSOUT,$E(IOST)'="P" W !!,"Press RETURN to continue " R X:DTIME
18 W:$E(IOST)="P" @IOF I $D(ZTQUEUED) K ^TMP("SR",$J) Q:$G(ZTSTOP) S ZTREQ="@" Q
19 D ^%ZISC W @IOF K SRTN D ^SRSKILL
20 Q
21PRESS W ! K DIR S DIR("A")=" Press RETURN to continue or '^' to quit. ",DIR(0)="FOA" D ^DIR I $D(DTOUT)!$D(DUOUT) S SRSOUT=1
22 Q
Note: See TracBrowser for help on using the repository browser.