PSOORRNW ;BIR/SAB-finish OP renew orders from OE/RR ;29-May-2012 15:01;PLS
;;7.0;OUTPATIENT PHARMACY;**11,27,51,46,71,94,130,131,146,1003,1006,1008,1009,206,225,1015**;DEC 1997;Build 62
;External reference to ^PSDRUG supported by DBIA 221
;External reference to ^PS(50.607 supported by DBIA 2221
;External reference to ^PS(51.2 supported by DBIA 2226
;External references PSOL and PSOUL^PSSLOCK supported by DBIA 2789
; Modified - IHS/CIA/PLS - 03/30/05 - Added line PSOORRNW+44
; IHS/MSC/PLS - 09/17/07 - Added clinical indicator support
; 06/30/10 - Added Last fill date information
; 09/27/10 - Added pause prompt to +18
S PSORENXX=$P($G(OR0),"^",21),PSOFROM="NEW" K PRC,PHI
I $G(PSORENXX) D PSOL^PSSLOCK(PSORENXX) I '$G(PSOMSG) D K DIR,PSOMSG W ! S DIR("A")="Press Return to continue",DIR(0)="E" D ^DIR K DIR W ! Q
.I $P($G(PSOMSG),"^",2)'="" W $C(7),!!,$P(PSOMSG,"^",2) Q
.W $C(7),!!,"Another person is editing Rx "_$P($G(^PSRX(PSORENXX,0)),"^")
K PSOMSG N OI,VALMCNT K POERR("DFLG") D FULL^VALM1 S (PSORX("DFLG"),PSORENW("DFLG"))=0,(PSORNW("FILL DATE"),PSORENW("FILL DATE"))=DT
S Y=DT X ^DD("DD") S PSORX("FILL DATE")=Y K Y
;
I $G(ORD),+$P($G(^PS(52.41,+ORD,0)),"^",23)=1 D Q:$D(DIRUT)!'Y D EN1^ORCFLAG(+$P($G(^PS(52.41,ORD,0)),"^")) H 1
. K DIRUT,DUOUT,DTOUT,DIR
. S DIR("A",1)="This Renewal Request is flagged. In order to process it"
. S DIR("A",2)="you must unflag it first."
. S DIR("A",3)=""
. S DIR(0)="Y",DIR("A")="Unflag Renewal Request",DIR("B")="NO"
. W ! D ^DIR I $D(DIRUT)!'Y S VALMBCK="Q"
I $G(ORD),+$P($G(^PS(52.41,+ORD,0)),"^",23)=1 Q
;IHS/MSC/PLS - 06/30/10 - Next two lines modified
W !!,"Now Renewing Rx # "_$P(^PSRX($P(OR0,"^",21),0),"^")_" Drug: "_$P($G(^PSDRUG($P(^PSRX($P(OR0,"^",21),0),"^",6),0)),"^") ;,! H 2
W !,"Patient: "_$$GET1^DIQ(2,$P(^PSRX(PSORENXX,0),U,2),.01)_" HRN: "_$$HRN^AUPNPAT($P(^PSRX(PSORENXX,0),U,2),$$GET1^DIQ(59,+$P($G(^PSRX(PSORENXX,2)),U,9),100,"I"))_" LFDT: "_$$FMTE^XLFDT(+$G(^PSRX(PSORENXX,3)),"5Z"),! H 2
I $P($G(^PSRX($P(OR0,"^",21),"OR1")),"^",4) D D PROCESSX^PSORENW0 D UL Q
.W !!,"Cannot Renew Rx # "_$P(^PSRX($P(OR0,"^",21),0),"^"),!," Drug: "_$P($G(^PSDRUG($P(^PSRX($P(OR0,"^",21),0),"^",6),0)),"^")_"."
.W !,"This Rx has already been RENEWED ("_$P(^PSRX($P(^PSRX($P(OR0,"^",21),"OR1"),"^",4),0),"^")_").",!
.S ACOM="Duplicate Renewal Request. Order rejected by Pharmacy.",PSONOOR="D" D DE^PSOORFI2 K ACOM,POERR("COMM"),POERR("PLACER"),POERR("STAT")
I '$G(PSOTPBFG) D DSPL^PSOTPCAN(ORD)
S (PSORX("PROVIDER NAME"),PSORENW("PROVIDER NAME"))=$P(^VA(200,$P(OR0,"^",5),0),"^"),PSORENW("NOO")=$P(OR0,"^",7)
S PSORENW("PROVIDER")=$P(OR0,"^",5),PSORENW("MAIL/WINDOW")=$S($P(OR0,"^",17)="M":"M",1:"W")
;I $O(^PSRX($P(OR0,"^",21),"PRC",0)) F I=0:0 S I=$O(^PSRX($P(OR0,"^",21),"PRC",I)) Q:'I S PRC(I)=^PSRX($P(OR0,"^",21),"PRC",I,0)
K II F I=0:0 S I=$O(^PS(52.41,ORD,1,I)) Q:'I S DOSE=$G(^PS(52.41,ORD,1,I,1)),DOSE1=$G(^(2)) D
.S II=$G(II)+1
.S PSORENW("DOSE",II)=$P(DOSE1,"^"),PSORENW("DOSE ORDERED",II)=$P(DOSE1,"^",2),PSORENW("UNITS",II)=$P(DOSE,"^",9),PSORENW("NOUN",II)=$P(DOSE,"^",5)
.S:$P(DOSE,"^",9) UNITS=$P(^PS(50.607,$P(DOSE,"^",9),0),"^")
.S PSORENW("VERB",II)=$P(DOSE,"^",10),PSORENW("ROUTE",II)=$P(DOSE,"^",8)
.S:$P(DOSE,"^",8) ROUTE=$P(^PS(51.2,$P(DOSE,"^",8),0),"^")
.S PSORENW("SCHEDULE",II)=$P(DOSE,"^"),PSORENW("DURATION",II)=$P(DOSE,"^",2)
.I $P(DOSE,"^",6)]"" S PSORENW("CONJUNCTION",II)=$S($P(DOSE,"^",6)="S":"T",$P(DOSE,"^",6)="X":"X",1:"A")
S PSORENW("ENT")=+$G(II) K II,I
F DR=1:1:PSORENW("ENT") I $G(PSORENW("DURATION",DR))]"" D
.S DUR1=PSORENW("DURATION",DR)
.S PSORENW("DURATION",DR)=$S($E(DUR1,1)'?.N:$E(DUR1,2,99)_$E(DUR1,1),1:DUR1)
D ^PSORENW1,CHECK^PSORENW0 I PSORENW("DFLG") D KLIB^PSORENW1 D PROCESSX^PSORENW0 D UL Q
D FILDATE^PSORENW0,DRUG^PSORENW0 I PSORENW("DFLG")!$G(PSORX("DFLG")) D KLIB^PSORENW1 D PROCESSX^PSORENW0 D UL Q
D RXN^PSORENW0 I PSORENW("DFLG") D KLIB^PSORENW1 D PROCESSX^PSORENW0 D UL Q
D STOP^PSORENW1,INIT^PSORENW3
I $G(PSOORRNW) D
.S PSORENW("ISSUE DATE")=$S(PSORENW("FILL DATE")>DT:DT,PSORENW("FILL DATE")<$E($P(OR0,"^",6),1,7):PSORENW("FILL DATE"),1:$E($P(OR0,"^",6),1,7))
.S PSORENW("# OF REFILLS")=+$P(OR0,"^",11),PSOFDR=1
.S PSORENW("CLERK CODE")=$P(OR0,"^",4),PSORX("CLERK CODE")=$P(^VA(200,$P(OR0,"^",4),0),"^")
;D CHK
S PSOFXRN=0,PSOFXRNX=1
;S PSORENW("CM")=$S($L($$VALUE^ORCSAVE2(+OR0,"CMF")):$$VALUE^ORCSAVE2(+OR0,"CMF"),APSPCMP>1:"Y",1:"N") ; IHS/CIA/PLS - 03/30/05 - Set Chronic Med to dialog value or default value
S PSORENW("CM")=$S($L($$VALUE^ORCSAVE2(+OR0,"CMF")):$$VALUE^ORCSAVE2(+OR0,"CMF"),APSPCMP=2:"Y",APSPCMP=3:"",1:"N") ; IHS/MSC/PLS - 01/28/09 - Added support for no default
S PSORENW("CLININD")=$S($L($$VALUE^ORCSAVE2(+OR0,"CLININD")):$$VALUE^ORCSAVE2(+OR0,"CLININD"),1:"") ;IHS/MSC/PLS - 09/17/07 - Clinical indicator
S PSORENW("CLININD2")=$S($L($$VALUE^ORCSAVE2(+OR0,"CLININD2")):$$VALUE^ORCSAVE2(+OR0,"CLININD2"),1:"") ;IHS/MSC/PLS - 09/17/07 - Clinical indicator
S PSORENW("POE")=$S($G(^PS(52.41,ORD,"POE"))=1:1,'$O(^PSRX($P(OR0,"^",21),6,0)):1,1:"")
S PSORENW("PENDING ORDER")=ORD
D EN^PSOORNE4(.PSORENW) K PSORENW,PSORX("FILL DATE")
I '$G(PSOFXRN) D UL
D KLIB^PSORENW1
K PSOFXRN,PSOFXRNX
Q
CHK ;check for valid # of refills
I $G(PSODRUG("DEA"))]"" D
.S PSOCS=0 K DIR,DIC,PSOX
.F DEA=1:1 Q:$E(PSODRUG("DEA"),DEA)="" I $E(+PSODRUG("DEA"),DEA)>1,$E(+PSODRUG("DEA"),DEA)<6 S $P(PSOCS,"^")=1 S:$E(+PSODRUG("DEA"),DEA)=2 $P(PSOCS,"^",2)=1
.;PSO*7*206
.S PSOMAX=$S(PSOCS:5,1:11) I PSODRUG("DEA")["A"&(PSODRUG("DEA")'["B")!(PSODRUG("DEA")["F")!(PSODRUG("DEA")[1)!(PSODRUG("DEA")[2) S PSOMAX=0
E S PSOMAX=$P(OR0,"^",11)
S RXPT=+$P(PSORENW("RX0"),"^",3) I $G(^PS(53,RXPT,0))]"" D
.S PSORENW("# OF REFILLS")=$S(+$P(OR0,"^",11)>+$P(^PS(53,RXPT,0),"^",4):+$P(^PS(53,RXPT,0),"^",4),1:+$P(OR0,"^",11)),PSOX=+$P(^PS(53,RXPT,0),"^",4)
.S PSORENW("# OF REFILLS")=$S(PSORENW("# OF REFILLS")>PSOMAX:PSOMAX,1:PSORENW("# OF REFILLS"))
.S PSOMAX=$S(PSOMAX>+$P(^PS(53,RXPT,0),"^",4):+$P(^PS(53,RXPT,0),"^",4),1:PSOMAX) K RXPT
E D
. I $G(PSOMAX) S PSORENW("# OF REFILLS")=$S(+$P(OR0,"^",11)>PSOMAX:PSOMAX,1:+$P(OR0,"^",11))
Q
;
EDTPEN ;edit front door renews
N VALMCNT S Y=$P(XQORNOD(0),"=",2) D EDTSEL^PSOORNE4
Q
UL I $G(PSORENXX) D PSOUL^PSSLOCK(PSORENXX)
K PSORENXX
Q
PSOORRNW ;BIR/SAB-finish OP renew orders from OE/RR ;29-May-2012 15:01;PLS
+1 ;;7.0;OUTPATIENT PHARMACY;**11,27,51,46,71,94,130,131,146,1003,1006,1008,1009,206,225,1015**;DEC 1997;Build 62
+2 ;External reference to ^PSDRUG supported by DBIA 221
+3 ;External reference to ^PS(50.607 supported by DBIA 2221
+4 ;External reference to ^PS(51.2 supported by DBIA 2226
+5 ;External references PSOL and PSOUL^PSSLOCK supported by DBIA 2789
+6 ; Modified - IHS/CIA/PLS - 03/30/05 - Added line PSOORRNW+44
+7 ; IHS/MSC/PLS - 09/17/07 - Added clinical indicator support
+8 ; 06/30/10 - Added Last fill date information
+9 ; 09/27/10 - Added pause prompt to +18
+10 SET PSORENXX=$PIECE($GET(OR0),"^",21)
SET PSOFROM="NEW"
KILL PRC,PHI
+11 IF $GET(PSORENXX)
DO PSOL^PSSLOCK(PSORENXX)
IF '$GET(PSOMSG)
Begin DoDot:1
+12 IF $PIECE($GET(PSOMSG),"^",2)'=""
WRITE $CHAR(7),!!,$PIECE(PSOMSG,"^",2)
QUIT
+13 WRITE $CHAR(7),!!,"Another person is editing Rx "_$PIECE($GET(^PSRX(PSORENXX,0)),"^")
End DoDot:1
KILL DIR,PSOMSG
WRITE !
SET DIR("A")="Press Return to continue"
SET DIR(0)="E"
DO ^DIR
KILL DIR
WRITE !
QUIT
+14 KILL PSOMSG
NEW OI,VALMCNT
KILL POERR("DFLG")
DO FULL^VALM1
SET (PSORX("DFLG"),PSORENW("DFLG"))=0
SET (PSORNW("FILL DATE"),PSORENW("FILL DATE"))=DT
+15 SET Y=DT
XECUTE ^DD("DD")
SET PSORX("FILL DATE")=Y
KILL Y
+16 ;
+17 IF $GET(ORD)
IF +$PIECE($GET(^PS(52.41,+ORD,0)),"^",23)=1
Begin DoDot:1
+18 KILL DIRUT,DUOUT,DTOUT,DIR
+19 SET DIR("A",1)="This Renewal Request is flagged. In order to process it"
+20 SET DIR("A",2)="you must unflag it first."
+21 SET DIR("A",3)=""
+22 SET DIR(0)="Y"
SET DIR("A")="Unflag Renewal Request"
SET DIR("B")="NO"
+23 WRITE !
DO ^DIR
IF $DATA(DIRUT)!'Y
SET VALMBCK="Q"
End DoDot:1
IF $DATA(DIRUT)!'Y
QUIT
DO EN1^ORCFLAG(+$PIECE($GET(^PS(52.41,ORD,0)),"^"))
HANG 1
+24 IF $GET(ORD)
IF +$PIECE($GET(^PS(52.41,+ORD,0)),"^",23)=1
QUIT
+25 ;IHS/MSC/PLS - 06/30/10 - Next two lines modified
+26 ;,! H 2
WRITE !!,"Now Renewing Rx # "_$PIECE(^PSRX($PIECE(OR0,"^",21),0),"^")_" Drug: "_$PIECE($GET(^PSDRUG($PIECE(^PSRX($PIECE(OR0,"^",21),0),"^",6),0)),"^")
+27 WRITE !,"Patient: "_$$GET1^DIQ(2,$PIECE(^PSRX(PSORENXX,0),U,2),.01)_" HRN: "_$$HRN^AUPNPAT($PIECE(^PSRX(PSORENXX,0),U,2),$$GET1^DIQ(59,+$PIECE($GET(^PSRX(PSORENXX,2)),U,9),100,"I"))_" LFDT: "_$$FMTE^XLFDT(+$GET(^PSRX(PSORENXX,3)),"5Z"),!
HANG 2
+28 IF $PIECE($GET(^PSRX($PIECE(OR0,"^",21),"OR1")),"^",4)
Begin DoDot:1
+29 WRITE !!,"Cannot Renew Rx # "_$PIECE(^PSRX($PIECE(OR0,"^",21),0),"^"),!," Drug: "_$PIECE($GET(^PSDRUG($PIECE(^PSRX($PIECE(OR0,"^",21),0),"^",6),0)),"^")_"."
+30 WRITE !,"This Rx has already been RENEWED ("_$PIECE(^PSRX($PIECE(^PSRX($PIECE(OR0,"^",21),"OR1"),"^",4),0),"^")_").",!
+31 SET ACOM="Duplicate Renewal Request. Order rejected by Pharmacy."
SET PSONOOR="D"
DO DE^PSOORFI2
KILL ACOM,POERR("COMM"),POERR("PLACER"),POERR("STAT")
End DoDot:1
DO PROCESSX^PSORENW0
DO UL
QUIT
+32 IF '$GET(PSOTPBFG)
DO DSPL^PSOTPCAN(ORD)
+33 SET (PSORX("PROVIDER NAME"),PSORENW("PROVIDER NAME"))=$PIECE(^VA(200,$PIECE(OR0,"^",5),0),"^")
SET PSORENW("NOO")=$PIECE(OR0,"^",7)
+34 SET PSORENW("PROVIDER")=$PIECE(OR0,"^",5)
SET PSORENW("MAIL/WINDOW")=$SELECT($PIECE(OR0,"^",17)="M":"M",1:"W")
+35 ;I $O(^PSRX($P(OR0,"^",21),"PRC",0)) F I=0:0 S I=$O(^PSRX($P(OR0,"^",21),"PRC",I)) Q:'I S PRC(I)=^PSRX($P(OR0,"^",21),"PRC",I,0)
+36 KILL II
FOR I=0:0
SET I=$ORDER(^PS(52.41,ORD,1,I))
IF 'I
QUIT
SET DOSE=$GET(^PS(52.41,ORD,1,I,1))
SET DOSE1=$GET(^(2))
Begin DoDot:1
+37 SET II=$GET(II)+1
+38 SET PSORENW("DOSE",II)=$PIECE(DOSE1,"^")
SET PSORENW("DOSE ORDERED",II)=$PIECE(DOSE1,"^",2)
SET PSORENW("UNITS",II)=$PIECE(DOSE,"^",9)
SET PSORENW("NOUN",II)=$PIECE(DOSE,"^",5)
+39 IF $PIECE(DOSE,"^",9)
SET UNITS=$PIECE(^PS(50.607,$PIECE(DOSE,"^",9),0),"^")
+40 SET PSORENW("VERB",II)=$PIECE(DOSE,"^",10)
SET PSORENW("ROUTE",II)=$PIECE(DOSE,"^",8)
+41 IF $PIECE(DOSE,"^",8)
SET ROUTE=$PIECE(^PS(51.2,$PIECE(DOSE,"^",8),0),"^")
+42 SET PSORENW("SCHEDULE",II)=$PIECE(DOSE,"^")
SET PSORENW("DURATION",II)=$PIECE(DOSE,"^",2)
+43 IF $PIECE(DOSE,"^",6)]""
SET PSORENW("CONJUNCTION",II)=$SELECT($PIECE(DOSE,"^",6)="S":"T",$PIECE(DOSE,"^",6)="X":"X",1:"A")
End DoDot:1
+44 SET PSORENW("ENT")=+$GET(II)
KILL II,I
+45 FOR DR=1:1:PSORENW("ENT")
IF $GET(PSORENW("DURATION",DR))]""
Begin DoDot:1
+46 SET DUR1=PSORENW("DURATION",DR)
+47 SET PSORENW("DURATION",DR)=$SELECT($EXTRACT(DUR1,1)'?.N:$EXTRACT(DUR1,2,99)_$EXTRACT(DUR1,1),1:DUR1)
End DoDot:1
+48 DO ^PSORENW1
DO CHECK^PSORENW0
IF PSORENW("DFLG")
DO KLIB^PSORENW1
DO PROCESSX^PSORENW0
DO UL
QUIT
+49 DO FILDATE^PSORENW0
DO DRUG^PSORENW0
IF PSORENW("DFLG")!$GET(PSORX("DFLG"))
DO KLIB^PSORENW1
DO PROCESSX^PSORENW0
DO UL
QUIT
+50 DO RXN^PSORENW0
IF PSORENW("DFLG")
DO KLIB^PSORENW1
DO PROCESSX^PSORENW0
DO UL
QUIT
+51 DO STOP^PSORENW1
DO INIT^PSORENW3
+52 IF $GET(PSOORRNW)
Begin DoDot:1
+53 SET PSORENW("ISSUE DATE")=$SELECT(PSORENW("FILL DATE")>DT:DT,PSORENW("FILL DATE")<$EXTRACT($PIECE(OR0,"^",6),1,7):PSORENW("FILL DATE"),1:$EXTRACT($PIECE(OR0,"^",6),1,7))
+54 SET PSORENW("# OF REFILLS")=+$PIECE(OR0,"^",11)
SET PSOFDR=1
+55 SET PSORENW("CLERK CODE")=$PIECE(OR0,"^",4)
SET PSORX("CLERK CODE")=$PIECE(^VA(200,$PIECE(OR0,"^",4),0),"^")
End DoDot:1
+56 ;D CHK
+57 SET PSOFXRN=0
SET PSOFXRNX=1
+58 ;S PSORENW("CM")=$S($L($$VALUE^ORCSAVE2(+OR0,"CMF")):$$VALUE^ORCSAVE2(+OR0,"CMF"),APSPCMP>1:"Y",1:"N") ; IHS/CIA/PLS - 03/30/05 - Set Chronic Med to dialog value or default value
+59 ; IHS/MSC/PLS - 01/28/09 - Added support for no default
SET PSORENW("CM")=$SELECT($LENGTH($$VALUE^ORCSAVE2(+OR0,"CMF")):$$VALUE^ORCSAVE2(+OR0,"CMF"),APSPCMP=2:"Y",APSPCMP=3:"",1:"N")
+60 ;IHS/MSC/PLS - 09/17/07 - Clinical indicator
SET PSORENW("CLININD")=$SELECT($LENGTH($$VALUE^ORCSAVE2(+OR0,"CLININD")):$$VALUE^ORCSAVE2(+OR0,"CLININD"),1:"")
+61 ;IHS/MSC/PLS - 09/17/07 - Clinical indicator
SET PSORENW("CLININD2")=$SELECT($LENGTH($$VALUE^ORCSAVE2(+OR0,"CLININD2")):$$VALUE^ORCSAVE2(+OR0,"CLININD2"),1:"")
+62 SET PSORENW("POE")=$SELECT($GET(^PS(52.41,ORD,"POE"))=1:1,'$ORDER(^PSRX($PIECE(OR0,"^",21),6,0)):1,1:"")
+63 SET PSORENW("PENDING ORDER")=ORD
+64 DO EN^PSOORNE4(.PSORENW)
KILL PSORENW,PSORX("FILL DATE")
+65 IF '$GET(PSOFXRN)
DO UL
+66 DO KLIB^PSORENW1
+67 KILL PSOFXRN,PSOFXRNX
+68 QUIT
CHK ;check for valid # of refills
+1 IF $GET(PSODRUG("DEA"))]""
Begin DoDot:1
+2 SET PSOCS=0
KILL DIR,DIC,PSOX
+3 FOR DEA=1:1
IF $EXTRACT(PSODRUG("DEA"),DEA)=""
QUIT
IF $EXTRACT(+PSODRUG("DEA"),DEA)>1
IF $EXTRACT(+PSODRUG("DEA"),DEA)<6
SET $PIECE(PSOCS,"^")=1
IF $EXTRACT(+PSODRUG("DEA"),DEA)=2
SET $PIECE(PSOCS,"^",2)=1
+4 ;PSO*7*206
+5 SET PSOMAX=$SELECT(PSOCS:5,1:11)
IF PSODRUG("DEA")["A"&(PSODRUG("DEA")'["B")!(PSODRUG("DEA")["F")!(PSODRUG("DEA")[1)!(PSODRUG("DEA")[2)
SET PSOMAX=0
End DoDot:1
+6 IF '$TEST
SET PSOMAX=$PIECE(OR0,"^",11)
+7 SET RXPT=+$PIECE(PSORENW("RX0"),"^",3)
IF $GET(^PS(53,RXPT,0))]""
Begin DoDot:1
+8 SET PSORENW("# OF REFILLS")=$SELECT(+$PIECE(OR0,"^",11)>+$PIECE(^PS(53,RXPT,0),"^",4):+$PIECE(^PS(53,RXPT,0),"^",4),1:+$PIECE(OR0,"^",11))
SET PSOX=+$PIECE(^PS(53,RXPT,0),"^",4)
+9 SET PSORENW("# OF REFILLS")=$SELECT(PSORENW("# OF REFILLS")>PSOMAX:PSOMAX,1:PSORENW("# OF REFILLS"))
+10 SET PSOMAX=$SELECT(PSOMAX>+$PIECE(^PS(53,RXPT,0),"^",4):+$PIECE(^PS(53,RXPT,0),"^",4),1:PSOMAX)
KILL RXPT
End DoDot:1
+11 IF '$TEST
Begin DoDot:1
+12 IF $GET(PSOMAX)
SET PSORENW("# OF REFILLS")=$SELECT(+$PIECE(OR0,"^",11)>PSOMAX:PSOMAX,1:+$PIECE(OR0,"^",11))
End DoDot:1
+13 QUIT
+14 ;
EDTPEN ;edit front door renews
+1 NEW VALMCNT
SET Y=$PIECE(XQORNOD(0),"=",2)
DO EDTSEL^PSOORNE4
+2 QUIT
UL IF $GET(PSORENXX)
DO PSOUL^PSSLOCK(PSORENXX)
+1 KILL PSORENXX
+2 QUIT