source: WorldVistAEHR/trunk/r/SURGERY-SR/SROANP1.m@ 1259

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

initial load of WorldVistAEHR

File size: 2.1 KB
Line 
1SROANP1 ;B'HAM ISC/MAM - LIST OF ANESTHETIC PROCEDURES ; [ 09/22/98 11:28 AM ]
2 ;;3.0; Surgery ;**77,50**;24 Jun 93
3EN ;
4 S (SRF,SRFLG,SRSOUT)=0 W @IOF,!,"List of Anesthetic Procedures"
5 D DATE^SROUTL(.SRSD,.SRED,.SRSOUT) G:SRSOUT END
6ASK W @IOF,!,"Print List of Anesthetic Procedures for",!!,"1. O.R. Surgical Procedures.",!,"2. Non-O.R. Procedures.",!,"3. Both O.R. Surgical Procedures and Non-O.R. Procedures."
7 W !!,"Select Number: 1// " R X:DTIME I '$T!(X["^") G END
8 S:X="" X=1 I X>3!(X<1)!(X'?.N) D HELP G:SRSOUT END G ASK
9 S SRFLG=X
10 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
11 I $D(IO("Q")) K IO("Q") S ZTDESC="LIST OF ANESTHETIC PROCEDURES",ZTRTN="EN1^SROANP1",(ZTSAVE("SRED"),ZTSAVE("SRSD"),ZTSAVE("SRFLG"),ZTSAVE("SRSITE*"))="" D ^%ZTLOAD G END
12EN1 D BEG^SROANP
13END W:$E(IOST)="P" @IOF I $D(ZTQUEUED) Q:$G(ZTSTOP) S ZTREQ="@" Q
14 I 'SRF,$E(IOST)'="P" W !!,"Press RETURN to continue " R X:DTIME
15 D ^SRSKILL K SRTN D ^%ZISC W @IOF
16 Q
17HELP W !!,"Enter '1' or press <RET> to print the List of Anesthetic Procedures",!,"performed in the OR with a surgical procedure. Enter '2' to print the"
18 W !,"List of Anesthetic Procedures performed as or with a Non-OR Procedure.",!,"Enter '3' to print the List of Anesthetic Procedures including both of",!,"the above categories of procedures."
19 W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1
20 Q
21HDR I $D(ZTQUEUED) D ^SROSTOP I SRHALT S SRF=1 Q
22 W:$Y @IOF W !,?(132-$L(SRINST)\2),SRINST,?120,"PAGE: "_PAGE,!,?58,"SURGICAL SERVICE",?100,"REVIEWED BY:",!,?51,"LIST OF ANESTHETIC PROCEDURES",?100,"DATE REVIEWED:"
23 W !,$S(SRFLG=1:"O.R. SURGICAL PROCEDURES",SRFLG=2:"NON-O.R. PROCEDURES",1:"O.R. SURGICAL AND NON-O.R. PROCEDURES"),?(132-$L(SRFRTO)\2),SRFRTO,?100,SRPRINT
24 W !!,?2,"DATE",?18,"PATIENT",?45,"PRINCIPAL DIAGNOSIS",?97,"PRIN ANESTHETIST",?117,"START TIME",!,?2,"CASE #",?20,"ID#",?45,"PROCEDURE(S)",?97,"ANESTH TECHNIQUE",?118,"END TIME"
25 W !,?17,"ASA CLASS",?97,"ANESTH AGENT",?118,"ELAPSED",! F LINE=1:1:IOM W "="
26 S PAGE=PAGE+1
27 Q
Note: See TracBrowser for help on using the repository browser.