source: WorldVistAEHR/trunk/r/SURGERY-SR/SROACCR.m@ 1036

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

initial load of WorldVistAEHR

File size: 2.2 KB
Line 
1SROACCR ;B'HAM ISC/MAM - CARDIAC COMPLICATON DATA ; 5 MAR 1992 10:00 am
2 ;;3.0; Surgery ;;24 Jun 93
3 I '$D(SRTN) W !!,"A Surgery Risk Assessment must be selected prior to using this option.",!!,"Press <RET> to continue " R X:DTIME G END
4 S SRACLR=0,SRSOUT=0,DFN=$P(^SRF(SRTN,0),"^") D DEM^VADPT S SRANAME=$P(VADM(1),"^")_" ("_VA("PID")_")"
5START D:SRACLR RET G:SRSOUT END S SRACLR=0 K SRA,SRAO D ^SROACRC
6ASK W !!,"Select Complication Information to Edit: " R X:DTIME I '$T!("^"[X) G END
7 S:X="a" X="A" I '$D(SRAO(X)),(X'?.N1":".N),(X'="A"),(X'="NONE") D HELP G:SRSOUT END G START
8 I X="NONE" K DR S DIE=130,DA=SRTN,DR="[SRISK-CCOMP]" D ^DIE K DR,DIE,DA G START
9 I X="A" S X=1
10 I X?.N1":".N S Y=$E(X),Z=$P(X,":",2) I Y<1!(Z>13)!(Y>Z) D HELP G:SRSOUT END G START
11 W @IOF,!,SRANAME,! F MOE=1:1:80 W "-"
12 I X?.N1":".N D RANGE G START
13 I $D(SRAO(X)) S EMILY=X W !! D ONE G START
14END W @IOF D ^SRSKILL
15 Q
16HELP W @IOF,!!!!,"Enter the number or range of numbers you want to edit. Examples of proper",!,"responses are listed below."
17 W !!,"1. Enter 'A' to update all information.",!!,"2. Enter a number (1-14) to update the information in that field. (For",!," example, enter '7' to update Mediastinitis)"
18 W !!,"3. Enter a range of numbers (1-14) separated by a ':' to enter a range of",!," information. (For example, enter '3:5' to update Preoperative MI,",!," Endocarditis, and Renal Failure Requiring Dialysis)"
19 W !!,"4. Enter 'NONE' to answer all complications as 'NO'"
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 W !! K NOGO S SHEMP=$P(X,":"),CURLEY=$P(X,":",2) F EMILY=SHEMP:1:CURLEY Q:SRSOUT!($D(NOGO)) D ONE
24 Q
25ONE ; edit one item
26 I EMILY>1 D NOGO Q
27 K DR,DIE S DA=SRTN,DR=$P(SRAO(EMILY),"^",2)_"T",DIE=130 D ^DIE K DR I $D(Y) S SRSOUT=1
28 Q
29RET Q:SRSOUT W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1 Q
30 Q
31NOGO ; no updates to complications
32 W @IOF,!,"You cannot update any fields within this option except 'Operative Death (Y/N)'.",!!,"The complication information must be entered using the options within the",!,"Complications Menu found on your main Surgery Risk Assessment menu."
33 W !!,"Press RETURN to continue " R X:DTIME
34 S NOGO=1
35 Q
Note: See TracBrowser for help on using the repository browser.