source: WorldVistAEHR/trunk/r/SURGERY-SR/SROAT0T.m@ 824

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

initial load of WorldVistAEHR

File size: 1.2 KB
RevLine 
[613]1SROAT0T ;B'HAM ISC/MAM - ATTENDING SURGEON CUMULATIVE ; [ 05/11/04 2:33 PM ]
2 ;;3.0; Surgery ;**50,129**;24 Jun 93
3 I SRBOTH D PAGE I SRSOUT Q
4 D HDR Q:SRSOUT W !!,?1,"TOTAL CASES",?16,"ATTENDING CODE",!,?1,"-----------",?16,"--------------"
5 S (HDR,CODE)="" F S CODE=$O(^TMP("SRTOT",$J,CODE)) Q:CODE="" D PRINT
6 W !!,?1,$J(^TMP("SRTOT",$J),6),?16,"TOTAL CASES FROM "_$E(SRSD,4,5)_"/"_$E(SRSD,6,7)_"/"_$E(SRSD,2,3)_" TO "_$E(SRED,4,5)_"/"_$E(SRED,6,7)_"/"_$E(SRED,2,3)
7 Q
8PRINT I 'CODE S SRCODE="ATTENDING CODE NOT ENTERED"
9 I CODE S Y=CODE,C=$P(^DD(130,.166,0),"^",2) D Y^DIQ S SRCODE=Y
10 W !,?1,$J(^TMP("SRTOT",$J,CODE),6),?16,SRCODE
11 Q
12HDR ; print heading
13 I $D(ZTQUEUED) D ^SROSTOP I SRHALT S SRSOUT=1 Q
14 I +$Y W @IOF
15 W !,?(80-$L(SRINST)\2),SRINST,!,?32,"SURGICAL SERVICE",!,?22,"ATTENDING SURGEON CUMULATIVE REPORT"
16 W !,?(80-$L(SRFRTO)\2),SRFRTO
17 I $E(IOST)="P" W !,?30,SRPRINT,!!,?8,"REVIEWED BY: ",?53,"DATE REVIEWED: "
18 W ! F LINE=1:1:80 W "="
19 W !!,?(80-$L(SRATT)\2),SRATT,!,?(80-$L(SRATT)\2),SRATT1
20 Q
21PAGE S X="" I $E(IOST)'="P" W !!,"Press RETURN to continue, or '^' to quit: " R X:DTIME I '$T!(X["^") S SRSOUT=1 Q
22 I X["?" W !!,"Enter RETURN to continue printing the report, or '^' to exit from this option." G PAGE
23 Q
Note: See TracBrowser for help on using the repository browser.