| 1 | SROAO ;B'HAM ISC/MAM - OUTCOMES ; [ 01/29/01 9:22 AM ]
|
---|
| 2 | ;;3.0; Surgery ;**100**;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 SRSOUT=0,DFN=$P(^SRF(SRTN,0),"^") D DEM^VADPT S SRANAME=$P(VADM(1),"^")_" ("_VA("PID")_")"
|
---|
| 5 | START G:SRSOUT END D ^SROAOSET
|
---|
| 6 | ASK W !!,"Select Postoperative Outcome: " R X:DTIME I '$T!(X["^") G END
|
---|
| 7 | I X="" G END
|
---|
| 8 | I '$D(SRAO(X)),(X'?1N1":"1N),(X'="A") D HELP G:SRSOUT END G START
|
---|
| 9 | I X?1N1":"1N S Y=$P(X,":"),Z=$P(X,":",2) I Y<1!(Z>3)!(Y>Z) D HELP G:SRSOUT END G START
|
---|
| 10 | W @IOF,!,SRANAME,! F MOE=1:1:80 W "-"
|
---|
| 11 | I X="A" S X="1:3"
|
---|
| 12 | I X?1N1":"1N W !! D RANGE G START
|
---|
| 13 | I $D(SRAO(X)),+X=X S EMILY=X D G START
|
---|
| 14 | .I $$LOCK^SROUTL(SRTN) W:X<6 !! D ONE,UNLOCK^SROUTL(SRTN)
|
---|
| 15 | END W @IOF D ^SRSKILL
|
---|
| 16 | Q
|
---|
| 17 | HELP W @IOF,!!!!,"Enter the number, number/letter combination, or range of numbers you want to",!,"edit. Examples of proper responses are listed below."
|
---|
| 18 | W !!,"1. Enter 'A' to update all outcome information.",!!,"2. Enter a number (1-3) to update an individual outcome element. (For",!," example, enter '1' to update all postoperative diagnosis)"
|
---|
| 19 | W !!,"3. Enter a range of numbers (1-3) separated by a ':' to enter a range of",!," outcomes. (For example, enter '1:3' to enter postoperative diagnosis,",!," length of postoperative stay, and 30 day postoperative status)"
|
---|
| 20 | W !!,"Press <RET> to continue, or '^' to quit " R X:DTIME I '$T!(X["^") S SRSOUT=1
|
---|
| 21 | Q
|
---|
| 22 | RANGE ; range of numbers
|
---|
| 23 | I $$LOCK^SROUTL(SRTN) D D UNLOCK^SROUTL(SRTN)
|
---|
| 24 | .S SHEMP=$P(X,":"),CURLEY=$P(X,":",2) F EMILY=SHEMP:1:CURLEY Q:SRSOUT D ONE
|
---|
| 25 | Q
|
---|
| 26 | ONE ; edit one item
|
---|
| 27 | K DR,DA,DIE S DR=$P(SRAO(EMILY),"^",2)_"T",DA=SRTN,DIE=130 D ^DIE K DR,DA
|
---|
| 28 | Q
|
---|