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

SROSUR1.m

Go to the documentation of this file.
  1. SROSUR1 ;B'HAM ISC/MAM - SURGEON STAFFING REPORT ; [ 09/22/98 11:36 AM ]
  1. ;;3.0; Surgery ;**77,50**;24 Jun 93
  1. EN ; entry point
  1. W @IOF,!,"Surgeon Staffing Report",!
  1. D DATE^SROUTL(.SRSD,.SRED,.SRQ) G:SRQ END
  1. S SRINST=SRSITE("SITE")
  1. ALL ; print for one surgeon or all
  1. 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
  1. 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
  1. I "Yy"[X G ^SROSUR2
  1. 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
  1. 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
  1. G EN1^SROSUR
  1. END W ! D ^SRSKILL K SRTN D ^%ZISC W @IOF
  1. Q
  1. OTHER ; set ^TMP for other assistants
  1. 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)=""
  1. Q