source: WorldVistAEHR/trunk/r/SURGERY-SR/SROSUR1.m@ 1211

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

initial load of WorldVistAEHR

File size: 1.2 KB
Line 
1SROSUR1 ;B'HAM ISC/MAM - SURGEON STAFFING REPORT ; [ 09/22/98 11:36 AM ]
2 ;;3.0; Surgery ;**77,50**;24 Jun 93
3EN ; entry point
4 W @IOF,!,"Surgeon Staffing Report",!
5 D DATE^SROUTL(.SRSD,.SRED,.SRQ) G:SRQ END
6 S SRINST=SRSITE("SITE")
7ALL ; print for one surgeon or all
8 W !!,"Do you want to print this report for an individual surgeon ? YES// " R X:DTIME S:'$T X="^" S:X="" X="Y" I "^"[X G END
9 S X=$E(X) I "YyNn"'[X W !!,"Enter RETURN if you would like to print the report for a specific surgeon, or",!,"'NO' to print the report for all surgeons." G ALL
10 I "Yy"[X G ^SROSUR2
11 W ! K IOP,%ZIS,POP,IO("Q") S %ZIS("A")="Print the Report on which Device: ",%ZIS="QM" W !!,"This report is designed to use a 132 column format.",! D ^%ZIS G:POP END
12 I $D(IO("Q")) K IO("Q") S ZTDESC="SURGEON STAFFING REPORT",ZTRTN="EN1^SROSUR",(ZTSAVE("SRED"),ZTSAVE("SRSD"),ZTSAVE("SRINST"),ZTSAVE("SRSITE*"))="" D ^%ZTLOAD G END
13 G EN1^SROSUR
14END W ! D ^SRSKILL K SRTN D ^%ZISC W @IOF
15 Q
16OTHER ; set ^TMP for other assistants
17 S SROTH=0 F I=0:0 S SROTH=$O(^SRF(SRTN,28,SROTH)) Q:'SROTH S SROTHER=^SRF(SRTN,28,SROTH,0),SROTHER=$P(^VA(200,SROTHER,0),"^"),^TMP("SRO",$J,SROTHER,"OTH",DATE,SRTN)=""
18 Q
Note: See TracBrowser for help on using the repository browser.