Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PSOREJP1

PSOREJP1.m

Go to the documentation of this file.
PSOREJP1 ;BIRM/MFR - Third Party Reject Display Screen ;04/29/05
 ;;7.0;OUTPATIENT PHARMACY;**148,247,260,281,287,289,290,358,359,385,403,421,427,448,478,482,512,562,648,702,704**;DEC 1997;Build 16
 ; Reference to File 9002313.93 - BPS NCPDP REJECT CODES in ICR #4720
 ; Reference to File 9002313.21 - BPS NCPDP PROFESSIONAL SERVICE CODE in ICR #4712
 ; Reference to File 9002313.22 - BPS NCPDP RESULT OF SERVICE CODE in ICR #4713
 ; Reference to File 9002313.23 - BPS NCPDP REASON FOR SERVICE CODE in ICR #4714
 ; Reference to File 9002313.25 - BPS NCPDP SUBMISSION CLARIFICATION CODE in ICR #5064
 ; Reference to File 9002313.26 - BPS NCPDP PRIOR AUTHORIZATION TYPE CODE in ICR #5585 
 ; Reference to DURRESP^BPSNCPD3 in ICR #4560
 ; Reference to ^BPSVRX in ICR #5723
 ; Reference to $$BBILL^BPSBUTL,$$RESUBMIT^BPSBUTL in ICR #4719
 ;
 ;
EN(RX,REJ,CHANGE) ; Entry point
 ;
 N FILL,LASTLN,PSOCODE,PSOTRIC
 S FILL=+$$GET1^DIQ(52.25,REJ_","_RX,5)
 S PSOTRIC=$$TRIC(RX,FILL),PSOCODE=$$GET1^DIQ(52.25,REJ_","_RX,.01)
 I $$CLOSED(RX,REJ) D EN^VALM("PSO REJECT DISPLAY - RESOLVED")
 I '$$CLOSED(RX,REJ)&(PSOTRIC) D EN^VALM("PSO REJECT TRICARE")
 I '$$CLOSED(RX,REJ)&('PSOTRIC) D EN^VALM("PSO REJECT DISPLAY")
 D FULL^VALM1
 Q
 ;
HDR ; Builds the Header section
 N LINE1,LINE2,PTINFO,X
 S VALMHDR(1)=$$DVINFO^PSOREJU2(RX,FILL,1)
 S PTINFO=$$PTINFO^PSOREJU2(RX,1)
 S VALMHDR(2)=$P(PTINFO,U,1)
 S VALMHDR(3)=$P(PTINFO,U,2)
 S VALMHDR(4)=$$RXINFO^PSOREJP3(RX,FILL,1)
 S VALMHDR(5)=$$RXINFO^PSOREJP3(RX,FILL,2,REJ)
 Q
 ;
TRIC(RX,RFL,PSOTRIC) ; Return 1 for TRICARE, 2 for CHAMPVA or 0 (zero) for not TRICARE or CHAMPVA
 I '$D(RFL) S RFL=$$LSTRFL^PSOBPSU1(RX)
 S PSOTRIC=$S(RFL=0&($$GET1^DIQ(52,RX_",",85,"I")="T"):1,$$GET1^DIQ(52.1,RFL_","_RX_",",85,"I")="T":1,RFL=0&($$GET1^DIQ(52,RX_",",85,"I")="C"):2,$$GET1^DIQ(52.1,RFL_","_RX_",",85,"I")="C":2,1:0)
 Q PSOTRIC
 ;
ELIGDISP(RX,RFL) ; Return either CHAMPVA or TRICARE for display
 ; purposes, or null if neither
 N PSOELIG
 S PSOELIG=$$TRIC(RX,RFL)
 Q $S(PSOELIG=1:"TRICARE",PSOELIG=2:"CHAMPVA",1:"")
 ;
ELIGTCV(RX,RFL,CAPS) ; Return either CHAMPVA, TRICARE, or Veteran/VETERAN for eligibility display
 ; if CAPS=1 then return "Veteran" in all caps
 ; Note if the requested refill has been deleted, then the message "N/A - Fill Deleted" will be returned
 N PSOELIG,VET,DELMSG
 S DELMSG="N/A - Fill Deleted"
 S PSOELIG=$$TRIC(RX,RFL),VET="Veteran" I $G(CAPS) S VET="VETERAN"
 I RFL>0,'$D(^PSRX(RX,1,RFL,0)) S PSOELIG=3
 Q $S(PSOELIG=1:"TRICARE",PSOELIG=2:"CHAMPVA",PSOELIG=3:DELMSG,1:VET)
 ;
INIT ; Builds the Body section
 N DATA,LINE
 I '$D(FILL) S FILL=+$$GET1^DIQ(52.25,REJ_","_RX,5)   ; PSO*7*448 obtain fill# from 52.25 subfile if not defined
 I '$$CLOSED(RX,REJ) S VALM("TITLE")="Reject Information ("_$$ELIGTCV(RX,FILL)_")"
 I $$CLOSED(RX,REJ) S VALM("TITLE")="Reject Information (RESOLVED)"
 F I=1:1:$G(LASTLN) D RESTORE^VALM10(I)
 K ^TMP("PSOREJP1",$J) S VALMCNT=0,LINE=0
 D GET^PSOREJU2(RX,FILL,.DATA,REJ,1)
 D REJ                   ; Display the REJECT Information
 D OTH                   ; Display the Other Rejects Information
 D COM^PSOREJP3          ; Display the Comment
 D INS                   ; Display the Insurance Information
 D CLS                   ; Display the Resolution Information
 S VALMCNT=LINE
 Q
 ;
REJ ; Reject Information
 N PFLDT,PSOADD,PSOCOB,PSOECME,PSOET,PSONAF,PSOTXT,TREJ,TYPE
 ;
 ; Display 'RESUBMISSION' where 'BACK-BILL' currently displays if the
 ; claim was resubmitted from the ECME User Screen.  To facilitate
 ; this, the function $$RESUBMIT^BPSBUTL was created.
 ;
 S PSOTXT=""
 S PSOCOB=$G(DATA(REJ,"COB")),PSOCOB=$S(PSOCOB="SECONDARY":2,PSOCOB="TERTIARY":3,1:1)
 I $$BBILL^BPSBUTL(RX,FILL,PSOCOB) S PSOTXT=" BACK-BILL"
 E  I $$RESUBMIT^BPSBUTL(RX,FILL,PSOCOB) S PSOTXT=" RESUBMISSION"  ; IA 4719.
 D SETLN("REJECT Information ("_$$ELIGTCV(RX,FILL)_") "_PSOTXT,1,1)
 ;
 S PSOECME=$$STATUS^PSOBPSUT(RX,FILL,PSOCOB)
 I PSOECME="E PAYABLE" D
 . D SETLN("Reject Received: ",,,18)
 . D SETLN("Reject Type    : ",,,18)
 . D SETLN("Reject Status  : ** E PAYABLE **",,,18)
 . I DATA(REJ,"PAYER MESSAGE")["Not ECME Billable" S DATA(REJ,"PAYER MESSAGE")=""
 . Q
 E  D
 . I $G(DATA(REJ,"CODE"))=79 S TYPE="79 - REFILL TOO SOON"
 . E  S TYPE=DATA(REJ,"CODE")_" - "_$$EXP(DATA(REJ,"CODE"))
 . I $L(TYPE)>62 S TYPE=$E(TYPE,1,59)_"..."
 . D SETLN("Reject Received: "_$$FMTE^XLFDT($G(DATA(REJ,"DATE/TIME"))),,,18)
 . D SETLN("Reject Type    : "_TYPE,,,18)
 . ; If TRICARE/CHAMPVA non-billable then reset Status line
 . S PSOET=$$PSOET^PSOREJP3(RX,FILL)
 . I PSOET D SETLN("Status         : NO CLAIM SUBMITTED")
 . I 'PSOET D SETLN("Reject Status  : "_$G(DATA(REJ,"STATUS"))_" - "_PSOECME,,,18)
 . Q
 ;
 ; code moved to PSOREJP5 
 D REJ^PSOREJP5
 Q
 ;
OTH ; Other Rejects Information
 N LST,I,RJC,J,LAST
 S LST=$G(DATA(REJ,"OTHER REJECTS")) I LST="" Q
 D SETLN()
 D SETLN("OTHER REJECTS",1,1)
 F I=1:1:$L(LST,",") S RJC=$P(LST,",",I) D
 . S LAST=1 F J=(I+1):1:$L(LST,",") I $P(LST,",",J)'="" S LAST=0 Q
 . I RJC'="" D SETLN(RJC_" - "_$$EXP(RJC),,$S(LAST:1,1:0),6)
 Q
 ;
INS ; Insurance Information
 D SETLN()
 D SETLN("INSURANCE Information",1,1)
 N PSOINS,PSOINS1,I,PSOBINPCN
 S PSOINS=$G(DATA(REJ,"INSURANCE NAME"))
 F I=1:1:(50-($L(PSOINS)+18)) S PSOINS=PSOINS_" "
 S PSOINS1=$G(DATA(REJ,"COB"))
 I PSOINS1="SECONDARY" S PSOINS=PSOINS_"Coord. Of Benefits: "_PSOINS1
 D SETLN("Insurance      : "_PSOINS,,,18)
 D SETLN("Contact        : "_$G(DATA(REJ,"PLAN CONTACT")),,,18)
 S PSOBINPCN=$G(DATA(REJ,"BIN"))_"/ "_$G(DATA(REJ,"PCN"))
 D SETLN("BIN/ PCN       : "_PSOBINPCN,,,18)
 D SETLN("Group Number   : "_$E($G(DATA(REJ,"GROUP NUMBER")),1,15),,,18)
 D SETLN("Cardholder ID  : "_$E($G(DATA(REJ,"CARDHOLDER ID")),1,20),,1,18)
 Q
 ;
CLS ; Resolution Information
 N X
 I '$$CLOSED(RX,REJ) Q
 D SETLN()
 D SETLN("RESOLUTION Information",1,1)
 D SETLN("Resolved By    : "_$G(DATA(REJ,"CLOSED BY")),,,18)
 D SETLN("Date/Time      : "_$G(DATA(REJ,"CLOSED DATE/TIME")),,,18)
 I $G(DATA(REJ,"CLOSE COMMENTS"))'="" D SET("CLOSE COMMENTS",63)
 I $G(DATA(REJ,"COD1"))'="" D SETLN("Reason for Svc : "_$$OVRX^PSOREJU1(1,$G(DATA(REJ,"COD1"))),,,18)
 I $G(DATA(REJ,"COD2"))'="" D SETLN("Profes. Svc    : "_$$OVRX^PSOREJU1(2,$G(DATA(REJ,"COD2"))),,,18)
 I $G(DATA(REJ,"COD3"))'="" D SETLN("Result of Svc  : "_$$OVRX^PSOREJU1(3,$G(DATA(REJ,"COD3"))),,,18)
 I $G(DATA(REJ,"CLA CODE"))'="" D
 . N CLAPNTR S CLAPNTR=$O(^BPS(9002313.25,"B",DATA(REJ,"CLA CODE"),""))
 . S X=DATA(REJ,"CLA CODE")_" - "_$$GET1^DIQ(9002313.25,CLAPNTR,".02")
 . D SETLN("Clarific. Code : "_X,,,18)
 I $G(DATA(REJ,"PRIOR AUTH TYPE"))'="" D
 . S X=$$GET1^DIQ(52.25,REJ_","_RX,25,"I")_" - "_(DATA(REJ,"PRIOR AUTH TYPE"))
 . D SETLN("Prior Auth.Type: "_X,,,18),SETLN("Prior Auth. #  : "_DATA(REJ,"PRIOR AUTH NUMBER"),,,18)
 D SETLN("Reason         : "_$G(DATA(REJ,"CLOSE REASON")),,1,18)
 Q
 ;
 ;
SET(FIELD,L,UND) ; Sets the lines for fields that require text wrapping
 N TXT,T
 S TXT=DATA(REJ,FIELD) I $L(TXT)'>L D SETLN($$LABEL(FIELD)_TXT,,$S($G(UND):1,1:0),80-L) Q
 F I=1:1 Q:TXT=""  D
 . I I=1 D SETLN($$LABEL(FIELD)_$E(TXT,1,L),,,80-L) S TXT=$E(TXT,L+1,999) Q
 . S T="",$E(T,81-L)=$E(TXT,1,L) D SETLN(T,,$S($E(TXT,L+1,999)=""&$G(UND):1,1:0),80-L) S TXT=$E(TXT,L+1,999)
 Q
 ;
LABEL(FIELD) ; Sets the label for the field
 I FIELD="REASON" Q "Reason Code    : "
 I FIELD="PAYER MESSAGE" Q "Payer Addl Msg : "
 I FIELD="DUR TEXT" Q $S(+$$ISDUR^PSOREJP5(RX,REJ):"+DUR Text      : ",1:"DUR Text       : ")
 I FIELD="CLOSE COMMENTS" Q "Comments       : "
 Q ""
 ;
VIEW ; Rx View hidden action
 N VALMCNT,TITLE
 I $G(PSOBACK) D  Q
 . S VALMSG="Not available through Backdoor!",VALMBCK="R"
 S TITLE=VALM("TITLE")
 ;
 ; DO structure used to avoid losing variables RX,FILL,REJ,LINE,TITLE
 DO
 . N PSOVDA,DA,PS
 . S (PSOVDA,DA)=RX,PS="REJECT"
 . N RX,REJ,FILL,LINE,TITLE
 . D DP^PSORXVW
 ;
 S VALMBCK="R",VALM("TITLE")=TITLE
 Q
 ;
EDT ; Rx Edit hidden action
 N VALMCNT,TITLE
 I $G(PSOBACK) D  Q
 . S VALMSG="Not available through Backdoor!",VALMBCK="R"
 S TITLE=VALM("TITLE")
 ;
 ; DO structure used to avoid losing variables RX,FILL,REJ,LINE,TITLE
 DO
 . N PSOSITE,ORN,PSOPAR,PSOLIST,PSOREJCT
 . S PSOSITE=$$RXSITE^PSOBPSUT(RX,FILL),ORN=RX
 . S PSOPAR=$G(^PS(59,PSOSITE,1)),PSOLIST(1)=ORN_","
 . ; Variable PSOREJCT is used so that EPH^PSORXEDT has the RX 'passed' by this routine
 . S PSOREJCT=RX_U_FILL
 . N RX,REJ,FILL,LINE,TITLE
 . D EPH^PSORXEDT
 ;
 K VALMBCK I $$CLOSED(RX,REJ),$D(PSOSTFLT),PSOSTFLT="U" S CHANGE=1 Q
 S VALMBCK="R",VALM("TITLE")=TITLE
 Q
 ;
OVR ; Override a REJECT action
 N PSOET
 I $$CLOSED(RX,REJ,1) Q
 S PSOET=$$PSOET^PSOREJP3(RX,FILL)
 I PSOET S VALMSG="OVR not allowed for "_$$ELIGDISP(RX,FILL)_" Non-Billable claim.",VALMBCK="R" Q
 N COD1,COD2,COD3
 D FULL^VALM1 W !
 S COD1=$$OVRCOD^PSOREJU1(1,$$GET1^DIQ(52.25,REJ_","_RX,14)) I COD1="^"!(COD1="") S VALMBCK="R" Q
 S COD2=$$OVRCOD^PSOREJU1(2) I COD2="^" S VALMBCK="R" Q
 S COD3=$$OVRCOD^PSOREJU1(3) I COD3="^" S VALMBCK="R" Q
 D OVRDSP^PSOREJU1(COD1_"^"_COD2_"^"_COD3)
 D SEND^PSOREJP3(COD1_"^"_COD2_"^"_COD3,,,PSOET)
 Q
 ;
RES ; Re-submit a claim action
 N PSOET
 I $$CLOSED(RX,REJ,1) Q
 S PSOET=$$PSOET^PSOREJP3(RX,FILL)
 D FULL^VALM1 W !
 D SEND^PSOREJP3(,,,PSOET)
 Q
 ;
CLA ; Submit Clarification Code
 N CLA,PSOET
 I $$CLOSED(RX,REJ,1) Q
 S PSOET=$$PSOET^PSOREJP3(RX,FILL)
 I PSOET S VALMSG="CLA not allowed for "_$$ELIGDISP(RX,FILL)_" Non-Billable claim.",VALMBCK="R" Q
 D FULL^VALM1 W !
 ; Prompt for the Submission Clarification Codes (up to three)
 S CLA=$$CLA^PSOREJU1() I CLA="^"!(CLA="") S VALMBCK="R" Q
 W ! D SEND^PSOREJP3(,CLA,,PSOET)
 Q
 ;
PA ; Submit Prior Authorization
 N PA,PSOET
 I $$CLOSED(RX,REJ,1) Q
 S PSOET=$$PSOET^PSOREJP3(RX,FILL)
 I PSOET S VALMSG="PA not allowed for "_$$ELIGDISP(RX,FILL)_" Non-Billable claim.",VALMBCK="R" Q
 D FULL^VALM1 W !
 ; Prompt for Prior Auth fields
 S PA=$$PA^PSOREJU2() I PA="^" S VALMBCK="R" Q
 W ! D SEND^PSOREJP3(,,PA,PSOET)
 Q
 ;
MP ; Patient Medication Profile
 I $G(PSOBACK) D  Q
 . S VALMSG="Not available through Backdoor!",VALMBCK="R"
 N SITE,PATIENT
 D FULL^VALM1 W !
 S SITE=+$$RXSITE^PSOBPSUT(RX,FILL) S:$G(PSOSITE) SITE=PSOSITE
 S PATIENT=+$$GET1^DIQ(52,RX,2,"I")
 D LST^PSOPMP0(SITE,PATIENT) S VALMBCK="R"
 Q
 ;
EXIT ;
 K ^TMP("PSOREJP1",$J)
 Q
 ;
SETLN(TEXT,REV,UND,HIG) ; Sets a line to be displayed in the Body section
 N X
 S:$G(TEXT)="" $E(TEXT,80)=""
 S:$L(TEXT)>80 TEXT=$E(TEXT,1,80)
 S LINE=LINE+1,^TMP("PSOREJP1",$J,LINE,0)=$G(TEXT)
 ;
 I LINE>$G(LASTLN) D SAVE^VALM10(LINE) S LASTLN=LINE
 ;
 I $G(REV) D  Q
 . D CNTRL^VALM10(LINE,1,$L(TEXT),IORVON,IOINORM)
 . I $G(UND) D CNTRL^VALM10(LINE,$L(TEXT)+1,80,IOUON,IOINORM)
 I $G(UND) D CNTRL^VALM10(LINE,1,80,IOUON,IOINORM)
 I $G(HIG) D
 . D CNTRL^VALM10(LINE,HIG,80,IOINHI_$S($G(UND):IOUON,1:""),IOINORM)
 Q
HELP ;
 Q
 ;
CLOSED(RX,REJ,MSG) ; Returns whether the REJECT is RESOLVED or NOT
 I $$GET1^DIQ(52.25,REJ_","_RX,10,"I") D:$G(MSG)  Q 1
 . S VALMSG="This Reject is marked resolved!",VALMBCK="R" W $C(7)
 Q 0
 ;
REOPN(RX,REJ) ; Returns whether the REJECT was RE-OPENED or NOT
 Q $S($$GET1^DIQ(52.25,REJ_","_RX,23)="":0,1:1)
 ;
EXP(CODE) ; Returns the explanation field (.02) for a reject code
 ;  Input:  (r) CODE - .01 field (Code) value from file 9002313.93
 ; Output: .02 field (Explanation) value from file 9002313.93
 N DIC,X,Y
 S DIC=9002313.93,DIC(0)="Z",X=CODE D ^DIC
 Q $P($G(Y(0)),"^",2)
 ;
OUT(RX) ; Supported call by outside PROTOCOLs to act on specific REJECTs
 N I,RFL,DATA,REJ,PSOBACK,VALMCNT,RXN
 I '$D(^XUSEC("PSORPH",DUZ)) D  Q
 . S VALMSG="PSORPH key required to use the REJ action.",VALMBCK="R"
 I $G(PS)="REJECT" D
 . S VALMSG="REJ action is not available at this point.",VALMBCK="R"
 S PSOBACK=1
 S (RFL,I)=0 F I=1:1 Q:'$D(^PSRX(RX,1,I))  S RFL=I
 S X=$$FIND^PSOREJUT(RX,RFL,.DATA,,1) S REJ=$O(DATA(""))
 I '$G(REJ) S VALMSG="Invalid selection!",VALMBCK="R" Q
 D EN(RX,REJ) S VALMBCK="R"
 Q
 ;
SMA ; Submit multiple actions
 N CLA,I,OVR,OVRSTR,PA,REJIEN,DUR,RSC,DURIEN,REQ,RSUB,PSOET
 I $$CLOSED(RX,REJ,1) Q
 S PSOET=$$PSOET^PSOREJP3(RX,FILL)
 I PSOET S VALMSG="SMA not allowed for "_$$ELIGDISP(RX,FILL)_" Non-Billable claim.",VALMBCK="R" Q
 D FULL^VALM1 W !
 S DURIEN=$P($G(^PSRX(RX,"REJ",REJ,0)),U,11)
 D DURRESP^BPSNCPD3(DURIEN,.DUR) ; Reference to BPSNCPD3 supported by IA 4560
 ;
 ; Prompt for Prior Auth fields
 S PA=$$PA^PSOREJU2
 I PA="^" S VALMBCK="R" Q  ;User terminated or did not answer
 ;
 ; Prompt for submission clarification codes (up to three)
 W !
 S CLA=$$CLA^PSOREJU1
 I CLA="^" S VALMBCK="R" Q  ;User terminated or did not answer
 ;
 ; Check if DUR Overrides required - PSO*7*421
 S REQ=$$REQ I REQ="^" S VALMBCK="R" Q
 ;
 ; Prompt for DUR Overrides (up to 3) - option to delete default added - PSO*7*421
 S OVRSTR="",OVR=""
 I REQ S REJIEN=0 F RSUB=1:1:3 D  Q:OVR="^"!(OVR="")!(OVR="@")  S $P(OVRSTR,"~",RSUB)=OVR
 . I REJIEN]"" S REJIEN=$O(DUR(1,"DUR PPS",REJIEN))
 . S RSC="" I +REJIEN S RSC=$P($G(DUR(1,"DUR PPS",REJIEN,"REASON FOR SERVICE CODE"))," ",1)
 . S OVR=$$SMAOVR^PSOREJU1(RSC,RSUB)
 I OVR="^" S VALMBCK="R" Q  ;User exited or timed-out
 ;
 W !!,?6,"RECAP:"
 W !,?6,"Prior Authorization Type       : ",$P(PA,"^"),"  ",$$DSC^PSOREJU1(9002313.26,$P(PA,"^"),.02)
 W !,?6,"Prior Authorization Number     : ",$P(PA,"^",2)
 W !,?6,"Submission Clarification Code 1: ",$P(CLA,"~",1),"  ",$$DSC^PSOREJU1(9002313.25,$P(CLA,"~",1),.02)
 I $P(CLA,"~",2)]"" W !,?6,"Submission Clarification Code 2: ",$P(CLA,"~",2),"  ",$$DSC^PSOREJU1(9002313.25,$P(CLA,"~",2),.02)
 I $P(CLA,"~",3)]"" W !,?6,"Submission Clarification Code 3: ",$P(CLA,"~",3),"  ",$$DSC^PSOREJU1(9002313.25,$P(CLA,"~",3),.02)
 W !,?6,"Reason for Service Code 1      : ",$P($P(OVRSTR,"~",1),U,1),"  ",$$DSC^PSOREJU1(9002313.23,$P($P(OVRSTR,"~",1),U,1),1)
 W !,?6,"Professional Service Code 1    : ",$P($P(OVRSTR,"~",1),U,2),"  ",$$DSC^PSOREJU1(9002313.21,$P($P(OVRSTR,"~",1),U,2),1)
 W !,?6,"Result of Service Code 1       : ",$P($P(OVRSTR,"~",1),U,3),"  ",$$DSC^PSOREJU1(9002313.22,$P($P(OVRSTR,"~",1),U,3),1)
 I $P($P(OVRSTR,"~",2),U,1)]"" W !,?6,"Reason for Service Code 2      : ",$P($P(OVRSTR,"~",2),U,1),"  ",$$DSC^PSOREJU1(9002313.23,$P($P(OVRSTR,"~",2),U,1),1)
 I $P($P(OVRSTR,"~",2),U,2)]"" W !,?6,"Professional Service Code 2    : ",$P($P(OVRSTR,"~",2),U,2),"  ",$$DSC^PSOREJU1(9002313.21,$P($P(OVRSTR,"~",2),U,2),1)
 I $P($P(OVRSTR,"~",2),U,3)]"" W !,?6,"Result of Service Code 2       : ",$P($P(OVRSTR,"~",2),U,3),"  ",$$DSC^PSOREJU1(9002313.22,$P($P(OVRSTR,"~",2),U,3),1)
 I $P($P(OVRSTR,"~",3),U,1)]"" W !,?6,"Reason for Service Code 3      : ",$P($P(OVRSTR,"~",3),U,1),"  ",$$DSC^PSOREJU1(9002313.23,$P($P(OVRSTR,"~",3),U,1),1)
 I $P($P(OVRSTR,"~",3),U,2)]"" W !,?6,"Professional Service Code 3    : ",$P($P(OVRSTR,"~",3),U,2),"  ",$$DSC^PSOREJU1(9002313.21,$P($P(OVRSTR,"~",3),U,2),1)
 I $P($P(OVRSTR,"~",3),U,3)]"" W !,?6,"Result of Service Code 3       : ",$P($P(OVRSTR,"~",3),U,3),"  ",$$DSC^PSOREJU1(9002313.22,$P($P(OVRSTR,"~",3),U,3),1)
 W !
 D SEND^PSOREJP3(OVRSTR,CLA,PA,PSOET)
 Q
 ;
VRX ; View ePharmacy Prescription - invoked from the Reject Information screen
 N BPSVRX
 K ^TMP("BPSVRX1-PSO VIEW RX",$J,"PSOHDR")
 D FULL^VALM1
 ;
 ; save the current header display
 M ^TMP("BPSVRX1-PSO VIEW RX",$J,"PSOHDR")=^TMP("PSOHDR",$J)
 ;
 S BPSVRX("RXIEN")=$G(RX)
 S BPSVRX("FILL#")=$G(FILL)
 D ^BPSVRX    ; DBIA #5723
 ;
 ; restore the header display
 I '$D(^TMP("PSOHDR",$J)) M ^TMP("PSOHDR",$J)=^TMP("BPSVRX1-PSO VIEW RX",$J,"PSOHDR")
 ;
 S VALMBCK="R"
 K ^TMP("BPSVRX1-PSO VIEW RX",$J,"PSOHDR")
 Q
 ;
VER ; View ePharmacy Prescription - invoked from the Rx view hidden action of Medication Profile
 N BPSVRX
 K ^TMP("BPSVRX-PSO VIEW RX",$J)
 D FULL^VALM1
 ;
 ; save the current PSO Rx display array and header
 M ^TMP("BPSVRX-PSO VIEW RX",$J,"PSOHDR")=^TMP("PSOHDR",$J)
 M ^TMP("BPSVRX-PSO VIEW RX",$J,"PSOAL")=^TMP("PSOAL",$J)
 ;
 S BPSVRX("RXIEN")=$G(RXN)    ; Rx ien ptr file 52
 D ^BPSVRX    ; DBIA #5723
 ;
 ; restore the PSO Rx display array and header upon return
 I '$D(^TMP("PSOHDR",$J)) M ^TMP("PSOHDR",$J)=^TMP("BPSVRX-PSO VIEW RX",$J,"PSOHDR")
 I '$D(^TMP("PSOAL",$J)) M ^TMP("PSOAL",$J)=^TMP("BPSVRX-PSO VIEW RX",$J,"PSOAL")
 ;
 S VALMBCK="R"
 K ^TMP("BPSVRX-PSO VIEW RX",$J)
 Q
 ;
REQ() ;Prompt if DUR Rejects are required
 N DIR,DTOUT,DTOUT,DIRUT,DIROUT,X,Y
 S DIR("?")="Enter No if Reason Codes are not required. Enter Yes to proceed and enter up to 3 sets of override Reason Codes. To delete default Reason Codes, enter ""@""."
 S DIR("A")="Enter DUR codes",DIR(0)="Y",DIR("B")="YES" W ! D ^DIR
 I $D(DIRUT)!$D(DIROUT) Q "^" ;User exited or timed-out
 Q Y