source: FOIAVistA/tag/r/SURGERY-SR/SROALNO.m@ 1625

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

initial load of FOIAVistA 6/30/08 version

File size: 2.9 KB
Line 
1SROALNO ;B'HAM ISC/MAM - SELECT CASE WITHOUT ASSESS ; 2 MAR 1992 3:35 pm
2 ;;3.0; Surgery ;**104**;24 Jun 93
3 W ! S (SRDT,CNT)=0 F I=0:0 S SRDT=$O(^SRF("ADT",DFN,SRDT)) Q:'SRDT!(SRSOUT) S SROP=0 F I=0:0 S SROP=$O(^SRF("ADT",DFN,SRDT,SROP)) Q:'SROP!($D(SRTN))!(SRSOUT) D LIST
4 I $D(SRTN) Q
5OPT W !!!,"Select Operation: " R X:DTIME I '$T!("^"[X) S SRSOUT=1 G END
6 I '$D(SRCASE(X)) W !!,"Enter the number corresponding to the surgical case for which you will be",!,"creating a surgical risk assessment." G OPT
7 I X=CNT G ^SRONEW
8 S SRTN=+SRCASE(X)
9ENTER ; edit or delete
10 W @IOF,!,?1,VADM(1)_" "_VA("PID"),!!,?1 S SROP=SRTN,SRSDATE=$P(^SRF(SRTN,0),"^",9) D CASE
11 W !!,"1. Enter Information",!,"2. Review Information",!,"3. Delete Surgery Case",!!,"Select Number: 1// " R X:DTIME I '$T!(X["^") S SRSOUT=1 G END
12 S:X="" X=1 I X<1!(X>3)!(X'?.N) D HELP G ENTER
13 I X=3 D ^SROPDEL G END
14 I X=2 D RT K DR S ST="REVIEW" D EN2^SROVAR S Q3("VIEW")="",DR="[SROMEN-OPER]",DA=SRTN,DIE=130 D ^SRCUSS K Q3("VIEW") G END
15 Q
16LIST ; list cases
17 I $P($G(^SRF(SROP,"NON")),"^")="Y" Q
18 S SRSCAN=1 I $D(^SRF(SROP,.2)),$P(^(.2),"^",12)'="" K SRSCAN
19 I $D(SRSCAN),$D(^SRF(SROP,30)),$P(^(30),"^") Q
20 I $D(SRSCAN),$D(^SRF(SROP,31)),$P(^(31),"^",8) Q
21 I $D(^SRF(SROP,37)),$P(^(37),"^") Q
22 I $Y+5>IOSL S SRBACK=0 D SEL^SROPER Q:$D(SRTN)!(SRSOUT) D:'SRBACK HDR I SRBACK S CNT=0,SROP=SRCASE(1)-1,SRDT=$P(SRCASE(1),"^",2) W @IOF,!,?1,VADM(1)_" "_VA("PID"),! Q
23 S CNT=CNT+1,SRSDATE=$P(^SRF(SROP,0),"^",9)
24 W !,CNT_". "
25CASE W $E(SRSDATE,4,5)_"-"_$E(SRSDATE,6,7)_"-"_$E(SRSDATE,2,3)
26 S SROPER=$P(^SRF(SROP,"OP"),"^") I $O(^SRF(SROP,13,0)) S SROTHER=0 F I=0:0 S SROTHER=$O(^SRF(SROP,13,SROTHER)) Q:'SROTHER D OTHER
27 D ^SROP1 K SROPS,MM,MMM S:$L(SROPER)<65 SROPS(1)=SROPER I $L(SROPER)>64 S SROPER=SROPER_" " F M=1:1 D LOOP Q:MMM=""
28 W ?14,SROPS(1) I $D(SROPS(2)) W !,?14,SROPS(2) I $D(SROPS(3)) W !,?14,SROPS(3) W:$D(SROPS(4)) !,?14,SROPS(4)
29 W ! S SRCASE(CNT)=SROP_"^"_SRDT
30 Q
31OTHER ; other operations
32 S SRLONG=1 I $L(SROPER)+$L($P(^SRF(SROP,13,SROTHER,0),"^"))>235 S SRLONG=0,SROTHER=999,SROPERS=" ..."
33 I SRLONG S SROPERS=$P(^SRF(SROP,13,SROTHER,0),"^")
34 S SROPER=SROPER_$S(SROPERS=" ...":SROPERS,1:", "_SROPERS)
35 Q
36LOOP ; break procedures
37 S SROPS(M)="" F LOOP=1:1 S MM=$P(SROPER," "),MMM=$P(SROPER," ",2,200) Q:MMM="" Q:$L(SROPS(M))+$L(MM)'<65 S SROPS(M)=SROPS(M)_MM_" ",SROPER=MMM
38 Q
39END K SRTN D ^SRSKILL W @IOF
40 Q
41HELP W !!,"Enter RETURN or '1' to enter or edit information contained within one of the",!,"options found under the Operations Menu. If you want to display a two screen",!,"overview of this case, enter '2'."
42 W " To delete this case from your records,",!,"enter '3'. Please note that deleting a case will remove EVERYTHING pertaining",!,"to this operative procedure.",!
43 W !!,"Press RETURN to continue " R X:DTIME
44 Q
45RT ; start RT logging
46 I $D(XRTL) S XRTN="SROP" D T0^%ZOSV
47 Q
48HDR ; print heading
49 W @IOF,!,?1,VADM(1)_" "_VA("PID")
50 Q
Note: See TracBrowser for help on using the repository browser.