source: WorldVistAEHR/trunk/r/SURGERY-SR/SROAC.m@ 810

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

initial load of WorldVistAEHR

File size: 1.9 KB
RevLine 
[613]1SROAC ;B'HAM ISC/MAM - NON-CARDIAC COMPLICATIONS ; 4 MAR 1992 7:55 am
2 ;;3.0; Surgery ;;24 Jun 93
3 S SRSOUT=0,DFN=$P(^SRF(SRTN,0),"^") D DEM^VADPT S SRANAME=$P(VADM(1),"^")_" ("_VA("PID")_")"
4START Q:SRSOUT K SRAO,SRA D ^SROACS
5ASK W !!,"Select Postoperative Complication: " R X:DTIME I '$T!("^"[X) G END
6 I '$D(SRAO(X)),(X'?1N1":"1N),(X'="A"),(X'="NONE") D HELP G:SRSOUT END G START
7 I X?1N1":"1N S Y=$P(X,":"),Z=$P(X,":",2) I Y<1!(Z>6)!(Y>Z) D HELP G:SRSOUT END G START
8 I X="NONE" K DR,DIE S DA=SRTN,DIE=130,DR="[SRA-NOCOMP]" D ^DIE G START
9 W @IOF,!,SRANAME,! F MOE=1:1:80 W "-"
10 I X="A" S X="1:6"
11 W !! I X?1N1":"1N D RANGE G START
12 I $D(SRAO(X)),+X=X S EMILY=X D ^SROAC2 G START
13 I $D(SRAO(X)) K DR,DIE S DA=SRTN,DR=$P(SRAO(X),"^",2)_"T",DIE=130 D ^DIE K DR G START
14END Q
15HELP W @IOF,!!!!,"Enter the number, number/letter combination, or range of numbers you want to",!,"edit. Examples of proper responses are listed below."
16 W !!,"1. Enter 'A' to update all complications.",!!,"2. Enter a number (1-6) to update the complications in that group. (For",!," example, enter '5' to update all cardiac complications)"
17 W !!,"3. Enter a number/letter combination to update a specific complication. (To ",!," update Acute Renal Failure, enter '3B')"
18 W !!,"4. Enter a range of numbers (1-6) separated by a ':' to enter a range of",!," complications. (For example, enter '2:4' to enter all respiratory, urinary",!," tract, and CNS complications)"
19 W !!,"5. Enter 'NONE' to enter 'NO' for all complications."
20 W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1
21 Q
22RANGE ; range of numbers
23 S SHEMP=$P(X,":"),CURLEY=$P(X,":",2) F EMILY=SHEMP:1:CURLEY Q:SRSOUT D ^SROAC2
24 Q
25RET Q:SRSOUT W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1 Q
26 I X["?" W !!,"Enter <RET> to re-display all complication information, or '^' to return to",!,"the previous menu." G RET
27 Q
Note: See TracBrowser for help on using the repository browser.