source: FOIAVistA/tag/r/SURGERY-SR/SRSDIS1.m@ 1683

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

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1SRSDIS1 ;B'HAM ISC/MAM - DISPLAY ONE ROOM ; [ 09/29/03 10:23 AM ]
2 ;;3.0; Surgery ;**100**;24 Jun 93
3PICK W @IOF,!!,"Display of Available Operating Room Time",!!,"1. Display Availability (12:00 AM - 12:00 PM)",!,"2. Display Availability (06:00 AM - 08:00 PM)",!,"3. Display Availability (12:00 PM - 12:00 AM)"
4 W !!,"Select Number: 2// " R X:DTIME I '$T!(X["^") S SRSOUT=1 Q
5 S:X="" X=2 I X<1!(X>3) D HELP G PICK
6 S SRDTYPE=X D HDR
7 S SRDT=SRSDATE F SRDAZE=0:1:14 S X1=SRDT,X2=SRDAZE D C^%DTC S SRSDATE=X,SRDATE=$E(X,4,5)_"-"_$E(X,6,7)_"-"_$E(X,2,3)_" " D LINE
8 Q
9HDR W @IOF,!!,"Operating Room: "_SROOM,?25,$S(SRDTYPE=2:" (6:00 AM - 8:00 PM)",SRDTYPE=1:" (12:00 AM - 12:00 PM)",1:" (12:00 PM - 12:00 AM)"),!!,"DATE "
10 I SRDTYPE=2 W " 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20" Q
11 I SRDTYPE=1 W " 12 1 2 3 4 5 6 7 8 9 10 11 12" Q
12 W " 12 13 14 15 16 17 18 19 20 21 22 23 24"
13 Q
14LINE ; display graph for each room
15 I '$D(^SRS(SROR,"S",SRSDATE,1)) D GRAPH
16 S START=$S(SRDTYPE=2:41,SRDTYPE=1:11,1:71),END=$S(SRDTYPE=2:111,SRDTYPE=1:71,1:500)
17 W !,SRDATE,$E(^SRS(SROR,"S",SRSDATE,1),START,END)
18 Q
19GRAPH ; set graph in ^SRS
20 S ^SRS(SROR,"S",SRSDATE,0)=SRSDATE,^SRS(SROR,"SS",SRSDATE,0)=SRSDATE
21 S X=$E(SRSDATE,4,5)_"-"_$E(SRSDATE,6,7)_"-"_$E(SRSDATE,2,3)
22 S ^SRS(SROR,"S",SRSDATE,1)=X_" |____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|____|",^SRS(SROR,"SS",SRSDATE,1)=^SRS(SROR,"S",SRSDATE,1)
23 D ^SRSBLOK
24 Q
25HELP W !!,"Enter the number corresponding to portion of the display graph of available",!,"operating room time that you want to view. If you want to view the room"
26 W !,"between the hours of 6:00 AM and 8:00 PM, enter '2'. A display of available",!,"operating room time will then appear on your screen."
27 W !!,"Press <RET> to continue " R X:DTIME
28 Q
Note: See TracBrowser for help on using the repository browser.