source: WorldVistAEHR/trunk/r/SURGERY-SR/SROSNR.m@ 1311

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

initial load of WorldVistAEHR

File size: 1.6 KB
Line 
1SROSNR ;B'HAM ISC/MAM - SCRUB NURSE REPORT ; [ 09/22/98 11:36 AM ]
2 ;;3.0; Surgery ;**77,50**;24 Jun 93
3 S SRSOUT=0,SRINST=SRSITE("SITE")
4ALL W @IOF,!,"Scrub Nurse Staffing Report",!!,"Do you want the report for all nurses ? YES// " R SRYN:DTIME I '$T!(SRYN["^") S SRSOUT=1 G END
5 S SRYN=$E(SRYN) S:SRYN="" SRYN="Y"
6 I "YyNn"'[SRYN W !!,"Enter RETURN to print the Scrub Nurse Staffing Report for all nurses, or 'NO'",!,"to select a specific person.",!!,"Press RETURN to continue " R X:DTIME G ALL
7 S SRALL=$S("Yy"[SRYN:1,1:0) I SRALL S NURSE="" G DATE
8 W ! K DIC S DIC=200,DIC(0)="QEAMZ",DIC("A")="Print the Report for which Scrub Nurse ? " D ^DIC I Y<0 S SRSOUT=1 G END
9 S NURSE=+Y,NURSE("NAME")=$P(Y(0),"^")
10DATE D DATE^SROUTL(.SRSD,.SRED,.SRSOUT) G:SRSOUT END
11 S SRSD1=$E(SRSD,4,5)_"/"_$E(SRSD,6,7)_"/"_$E(SRSD,2,3)
12 S SRED1=$E(SRED,4,5)_"/"_$E(SRED,6,7)_"/"_$E(SRED,2,3)
13 K %ZIS,IOP,IO("Q"),POP S %ZIS="QM",%ZIS("A")="Print the Report on which Device: " W !!,"This report is designed to use a 132 column format.",! D ^%ZIS I POP S SRSOUT=1 G END
14 I $D(IO("Q")) K IO("Q") S ZTDESC="SCRUB NURSE STAFFING REPORT",ZTRTN="BEG^SROSNR",(ZTSAVE("SRALL"),ZTSAVE("SRINST"),ZTSAVE("SRSD*"),ZTSAVE("SRED*"),ZTSAVE("NURSE*"),ZTSAVE("SRSITE*"))="" D ^%ZTLOAD G END
15BEG N SRFRTO S Y=DT X ^DD("DD") S SRPRINT="DATE PRINTED: "_Y S Y=SRSD X ^DD("DD") S SRFRTO="FROM: "_Y_" TO: ",Y=SRED X ^DD("DD") S SRFRTO=SRFRTO_Y
16 I SRALL D BEG^SROSNR1 G END
17 D BEG^SROSNR2
18END ;
19 I $E(IOST)="P" W @IOF S SRSOUT=1
20 I 'SRSOUT W !!,"Press RETURN to continue " R X:DTIME
21 I $D(ZTQUEUED) K ^TMP("SR",$J) Q:$G(ZTSTOP) S ZTREQ="@" Q
22 D ^SRSKILL K SRTN D ^%ZISC W @IOF
23 Q
Note: See TracBrowser for help on using the repository browser.