1 | SROACAR1 ;BIR/MAM - OPEATIVE DATA ; [ 09/20/00 12:55 PM ]
|
---|
2 | ;;3.0; Surgery ;**125**;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 D ^SROAUTL
|
---|
5 | START D:SRACLR RET G:SRSOUT END S SRACLR=0 K SRA,SRAO D ^SROACR2
|
---|
6 | ASK W !,"Select Operative 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") D HELP G:SRSOUT END G START
|
---|
8 | I X="A" S X="1:12"
|
---|
9 | I X?.N1":".N S Y=$E(X),Z=$P(X,":",2) I Y<1!(Z>12)!(Y>Z) D HELP G:SRSOUT END G START
|
---|
10 | D HDR^SROAUTL
|
---|
11 | I X?.N1":".N D RANGE G START
|
---|
12 | I $D(SRAO(X)),+X=X S EMILY=X W ! D ONE G START
|
---|
13 | I $D(SRAO(X)) W ! S EMILY=X D ONE G START
|
---|
14 | END W @IOF D ^SRSKILL
|
---|
15 | Q
|
---|
16 | HELP 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-12) to update the information in that field. (For",!," example, enter '9' to update Valve Repair.)"
|
---|
18 | W !!,"3. Enter a range of numbers (1-12) separated by a ':' to enter a range of",!," information. (For example, enter '6:8' to enter Other tumor resection",!," , Cardiac transplant, and Other CT procedures.)"
|
---|
19 | D RET
|
---|
20 | Q
|
---|
21 | RANGE ; range of numbers
|
---|
22 | W ! S SHEMP=$P(X,":"),CURLEY=$P(X,":",2) F EMILY=SHEMP:1:CURLEY Q:SRSOUT D ONE
|
---|
23 | Q
|
---|
24 | ONE ; edit one item
|
---|
25 | K DR,DIE S DA=SRTN,DR=$P(SRAO(EMILY),"^",2)_"T",DIE=130 D ^DIE K DR I $D(Y) S SRSOUT=1
|
---|
26 | I 'SRSOUT,EMILY=12!(EMILY=13) D OK
|
---|
27 | Q
|
---|
28 | OK N SRISCH,SRCPB S X=$G(^SRF(SRTN,206)),SRISCH=$P(X,"^",36),SRCPB=$P(X,"^",37)
|
---|
29 | I SRISCH,SRCPB,SRISCH>SRCPB W !!," *** NOTE: Ischemic Time is greater than CPB Time!! Please check. ***",! D RET W !
|
---|
30 | Q
|
---|
31 | RET Q:SRSOUT W ! K DIR S DIR(0)="E" D ^DIR K DIR I $D(DTOUT)!$D(DUOUT) S SRSOUT=1
|
---|
32 | Q
|
---|