PSOORAL ;BHAM-ISC/SAB - activity log list ;08/23/17 20:19
;;7.0;OUTPATIENT PHARMACY;**148,281,441**;DEC 1997;Build 208
EN ; -- main entry point for PSO LM ACTIVITY LOGS
D EN^VALM("PSO LM ACTIVITY LOGS")
Q
;
HDR ; -- header code
D HDR^PSOLMUTL
Q
;
INIT ; -- init variables and list array
I $G(PS)="VIEW"!($G(PS)="DELETE")!($G(PS)="REJECT")!($G(PS)="REJECTMP") D
.I ST<12,$P(RX2,"^",6)<DT S ST=11
.S VALM("TITLE")="Rx View "_"("_$P("Error^Active^Non-Verified^Refill^Hold^Non-Verified^Suspended^^^^^Done^Expired^Discontinued^Deleted^Discontinued^Discontinued (Edit)^Provider Hold^","^",ST+2)_")"
.I ST=0,$G(^PSRX(RXN,"PARK")) S VALM("TITLE")="Rx View (ACTIVE/PARKED)" ;441 PAPI
S VALMCNT=PSOAL
Q
;
HELP ; -- help code
S X="?" D DISP^XQORM1 W !!
Q
;
EXIT ; -- exit code
S VALMBCK="Q" Q
;
EXPND ; -- expand code
Q
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPSOORAL 862 printed Dec 13, 2024@02:31:42 Page 2
PSOORAL ;BHAM-ISC/SAB - activity log list ;08/23/17 20:19
+1 ;;7.0;OUTPATIENT PHARMACY;**148,281,441**;DEC 1997;Build 208
EN ; -- main entry point for PSO LM ACTIVITY LOGS
+1 DO EN^VALM("PSO LM ACTIVITY LOGS")
+2 QUIT
+3 ;
HDR ; -- header code
+1 DO HDR^PSOLMUTL
+2 QUIT
+3 ;
INIT ; -- init variables and list array
+1 IF $GET(PS)="VIEW"!($GET(PS)="DELETE")!($GET(PS)="REJECT")!($GET(PS)="REJECTMP")
Begin DoDot:1
+2 IF ST<12
IF $PIECE(RX2,"^",6)<DT
SET ST=11
+3 SET VALM("TITLE")="Rx View "_"("_$PIECE("Error^Active^Non-Verified^Refill^Hold^Non-Verified^Suspended^^^^^Done^Expired^Discontinued^Deleted^Discontinued^Discontinued (Edit)^Provider Hold^","^",ST+2)_")"
+4 ;441 PAPI
IF ST=0
IF $GET(^PSRX(RXN,"PARK"))
SET VALM("TITLE")="Rx View (ACTIVE/PARKED)"
End DoDot:1
+5 SET VALMCNT=PSOAL
+6 QUIT
+7 ;
HELP ; -- help code
+1 SET X="?"
DO DISP^XQORM1
WRITE !!
+2 QUIT
+3 ;
EXIT ; -- exit code
+1 SET VALMBCK="Q"
QUIT
+2 ;
EXPND ; -- expand code
+1 QUIT
+2 ;