Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables |  Marked Items  | All
Print Page as PDF
Routine: BPSOSQ4

Package: E Claims Management Engine

Routine: BPSOSQ4


Information

BPSOSQ4 ;BHAM ISC/FCS/DRS/DLF - Process responses ;12/7/07 15:48

Source Information

Source file <BPSOSQ4.m>

Call Graph

Call Graph

Call Graph Total: 10

Package Total Call Graph
E Claims Management Engine 6 LOG^BPSOSL  (TASK,TASKAT)^BPSOSQA  $$IGNORE^BPSOSQF  SETSTAT^BPSOSU  ADDMESS^BPSSCRLG  ($$FILLFLDS,$$GETPLN59)^BPSUTIL2  
VA FileMan 3 FILE^DICN  ^DIE  ^DIK  
Kernel 1 ($$FMADD,$$FMTE,$$NOW)^XLFDT  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 6

Package Total Caller Graph
E Claims Management Engine 6 BPSBCKJ  BPSOS57  BPSOS6M  BPSOSQ2  BPSOSQL  BPSOSUC  

Entry Points

Name Comments DBIA/ICR reference
PAID(IEN59) ;quick query to see if it's paid
RESPINFO(IEN59,DST) ;EP - BPSOS6M
; quick way to get all the response info for a given BPS Transaction
; IMPORTANT!! Do not change spelling, case, wording, or spacing!!!
; If a reversal was attempted, it complicates things.
; fills DST array as follows:
; DST("HDR")=Response Status (header)
; DST("RSP")=Response Status (transaction)
; This could be: "Payable", "Rejected", "Accepted", "Captured",
; "Duplicate", or "null"
; DST("REJ",0)=count of reject codes
; DST("REJ",n)=each reject code
; DST("MSG")=message with the response
; All of these are defined, even if originals were '$D.
; The external forms are returned.
RESP500(RESP,FMT) ;EP - BPSOS57,BPSOSUC
; returns the response header status
RESP1000(RESP,POS,FMT) ;EP - BPSOSUC
; returns the transaction response status
; Note! Could be DP or DC for duplicates
REJCOUNT(RESP,POS,FMT) ; returns rejection count
REJCODE(RESP,POS,N,FMT) ; returns Nth rejection code
; if FMT="E", returns code:text
RESPMSG(RESP,POS) ; response message - additional text from insurer
NOW() ;
REJSLEEP(BPSRESP,BPSPOS,IEN59) ;
; Check if the insurer should be asleep based on the reject codes
; Input
; BPSRESP - BPS Response IEN
; BPSPOS - Multiple IEN
; IEN59 - BPS TRANSACTION IEN
; Return
; 1 if the insurer should go to sleep
; 0 if the insurer should not go to sleep
ADDSLEEP(IEN59) ;
; Adds a payer (if not already there) to the Asleep file
; Input
; IEN59 - BPS TRANSACTION IEN
; Return
; 0 - No BPS Asleep Payer record created
; BPS Asleep Payer IEN
INCSLEEP(IEN59) ; called from BPSOSQL
; INCSLEEP - Increment sleep time for this insurer
; Input
; IEN59 - BPS TRANSACTION IEN
; Return
; 0 - Awake now
; 1 - Still asleep
SETSLEEP(IEN59,BPSIEN15,MSG) ;
; Put transaction to sleep
; Input
; IEN59 - BPS Transaction IEN
; BPSIEN15 - BPS Asleep Payer IEN
; MSG - Message used for Log
CLRSLEEP(GRPLAN,IEN59) ;EP - BPSOSQL
; Clear insurer sleeping condition
; Input:
; GRPLAN - Group Insurance Plan IEN
; IEN59 - BPS Transaction IEN

External References

Name Field # of Occurrence
LOG^BPSOSL INCSLEEP+34, INCSLEEP+50, SETSLEEP+17, CLRSLEEP+14, CLRSLEEP+22
TASK^BPSOSQA CLRSLEEP+25
TASKAT^BPSOSQA INCSLEEP+53
$$IGNORE^BPSOSQF REJSLEEP+26
SETSTAT^BPSOSU SETSLEEP+15
ADDMESS^BPSSCRLG RESPMSG+9
$$FILLFLDS^BPSUTIL2 INCSLEEP+38, INCSLEEP+39
$$GETPLN59^BPSUTIL2 REJSLEEP+25, ADDSLEEP+12, INCSLEEP+13
FILE^DICN ADDSLEEP+19
^DIE INCSLEEP+49, SETSLEEP+12, CLRSLEEP+21
^DIK CLRSLEEP+17
$$FMADD^XLFDT INCSLEEP+37, INCSLEEP+53
$$FMTE^XLFDT INCSLEEP+42
$$NOW^XLFDT NOW+1, INCSLEEP+37

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^BPS(9002313.15 - [#9002313.15] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^BPS(9002313.15 - [#9002313.15] ADDSLEEP+15, INCSLEEP+16, INCSLEEP+21, INCSLEEP+32, CLRSLEEP+10
^BPS(9002313.99 - [#9002313.99] REJSLEEP+18, INCSLEEP+28
^BPSF(9002313.93 - [#9002313.93] REJCODE+5, REJCODE+6
^BPSR - [#9002313.03] RESP500+2, RESP1000+3, REJCOUNT+1, REJCODE+2, RESPMSG+6, REJSLEEP+29, REJSLEEP+30, REJSLEEP+31, REJSLEEP+35
^BPST - [#9002313.59] RESPINFO+14, RESPINFO+16, RESPINFO+17, RESPINFO+19, REJSLEEP+22
^BPST("ASL" INCSLEEP+47, SETSLEEP+12, CLRSLEEP+20

Label References

Name Line Occurrences
$$ADDSLEEP INCSLEEP+17
$$REJCODE RESPINFO+25
$$REJCOUNT RESPINFO+23
$$RESP1000 RESPINFO+22
$$RESP500 RESPINFO+21
$$RESPMSG RESPINFO+26
RESPINFO PAID+1
SETSLEEP INCSLEEP+24, INCSLEEP+43

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ADDMESS RESPMSG+8~, RESPMSG+9
ADDMESS( RESPMSG+10
BPSIEN15 INCSLEEP+9~, INCSLEEP+16*, INCSLEEP+17*, INCSLEEP+18, INCSLEEP+21, INCSLEEP+24, INCSLEEP+32, INCSLEEP+38, INCSLEEP+39, INCSLEEP+43
, INCSLEEP+47, SETSLEEP~, SETSLEEP+8, SETSLEEP+12, CLRSLEEP+7~, CLRSLEEP+10*, CLRSLEEP+11, CLRSLEEP+17, CLRSLEEP+20
BPSPARAM INCSLEEP+9~, INCSLEEP+28*, INCSLEEP+29, INCSLEEP+33, INCSLEEP+37
BPSPOS REJSLEEP~, REJSLEEP+14, REJSLEEP+29, REJSLEEP+30, REJSLEEP+31, REJSLEEP+35
BPSRESP REJSLEEP~, REJSLEEP+13, REJSLEEP+29, REJSLEEP+30, REJSLEEP+31, REJSLEEP+35
BPSRET REJSLEEP+10~, REJSLEEP+34*, REJSLEEP+35*, REJSLEEP+37
BPSRETRY INCSLEEP+9~, INCSLEEP+37*, INCSLEEP+39, INCSLEEP+42, INCSLEEP+53
BPSSITE REJSLEEP+10~, REJSLEEP+18*, REJSLEEP+19
CODE REJCODE+2~*, REJCODE+3*, REJCODE+4, REJCODE+5, REJCODE+6*, REJCODE+7*, REJCODE+8
DA INCSLEEP+10~, INCSLEEP+49*, SETSLEEP+9~, SETSLEEP+12*, CLRSLEEP+7~, CLRSLEEP+17*, CLRSLEEP+21*
DIC ADDSLEEP+9~, ADDSLEEP+17*
DIC("DR" ADDSLEEP+18*
DIC(0 ADDSLEEP+17*
DIE INCSLEEP+10~, INCSLEEP+49*, SETSLEEP+9~, SETSLEEP+12*, CLRSLEEP+7~, CLRSLEEP+21*
DIK CLRSLEEP+7~, CLRSLEEP+17*
DO ADDSLEEP+9~
DR INCSLEEP+10~, INCSLEEP+49*, SETSLEEP+9~, SETSLEEP+12*, CLRSLEEP+7~, CLRSLEEP+21*
DST RESPINFO~
DST("HDR" RESPINFO+21*, RESPINFO+29
DST("MSG" RESPINFO+26*
DST("REJ" RESPINFO+23*, RESPINFO+24, RESPINFO+25*
DST("RSP" RESPINFO+22*, RESPINFO+28, RESPINFO+29*
DTOUT ADDSLEEP+9~, INCSLEEP+10~, SETSLEEP+9~, CLRSLEEP+7~
DUOUT ADDSLEEP+9~
ECME RESPINFO+19~
FMT RESPINFO+20~*, RESPINFO+21, RESPINFO+22, RESPINFO+23, RESPINFO+25, RESP500~, RESP500+3, RESP1000~, RESP1000+4, REJCOUNT~
, REJCODE~, REJCODE+4
GRPLAN REJSLEEP+10~, REJSLEEP+25*, REJSLEEP+26, ADDSLEEP+9~, ADDSLEEP+12*, ADDSLEEP+15, ADDSLEEP+17, INCSLEEP+9~, INCSLEEP+13*, INCSLEEP+16
, INCSLEEP+43, CLRSLEEP~, CLRSLEEP+6, CLRSLEEP+10, CLRSLEEP+14
I RESPINFO+25~*
IEN59 PAID~, PAID+1, RESPINFO~, RESPINFO+14, RESPINFO+16, RESPINFO+17, RESPINFO+19, REJSLEEP~, REJSLEEP+15, REJSLEEP+22
, REJSLEEP+25, ADDSLEEP~, ADDSLEEP+8, ADDSLEEP+12, INCSLEEP~, INCSLEEP+8, INCSLEEP+13, INCSLEEP+17, INCSLEEP+24, INCSLEEP+34
, INCSLEEP+43, SETSLEEP~, SETSLEEP+7, SETSLEEP+12, SETSLEEP+15, SETSLEEP+17, CLRSLEEP~, CLRSLEEP+14
IEN59T INCSLEEP+9~, INCSLEEP+47*, INCSLEEP+48, INCSLEEP+49, INCSLEEP+50, CLRSLEEP+7~, CLRSLEEP+20*, CLRSLEEP+21, CLRSLEEP+22
MSG RESPMSG+4~, RESPMSG+5*, RESPMSG+6*, RESPMSG+7, RESPMSG+10*, RESPMSG+11, INCSLEEP+42*, INCSLEEP+43, SETSLEEP~, SETSLEEP+16*
, SETSLEEP+17
N REJCODE~, REJCODE+2, RESPMSG+8~, RESPMSG+10*
POS RESPINFO+19*, RESPINFO+22, RESPINFO+23, RESPINFO+25, RESPINFO+26, RESP1000~, RESP1000+3, REJCOUNT~, REJCOUNT+1, REJCODE~
, REJCODE+2, RESPMSG~, RESPMSG+3*, RESPMSG+9
PROBER INCSLEEP+9~, INCSLEEP+21*, INCSLEEP+24, INCSLEEP+48
REJCD REJSLEEP+10~, REJSLEEP+35*
RESP RESPINFO+15~, RESPINFO+16*, RESPINFO+17*, RESPINFO+18, RESPINFO+21, RESPINFO+22, RESPINFO+23, RESPINFO+25, RESPINFO+26, RESP500~
, RESP500+2, RESP1000~, RESP1000+3, REJCOUNT~, REJCOUNT+1, REJCODE~, REJCODE+2, RESPMSG~, RESPMSG+2, RESPMSG+6
, RESPMSG+9
RETCNT INCSLEEP+9~, INCSLEEP+32*, INCSLEEP+33, INCSLEEP+38, INCSLEEP+42
REVERSAL RESPINFO+14~*, RESPINFO+16, RESPINFO+28
TMP PAID+1~
TMP("RSP" PAID+1, PAID+2
U RESPINFO+16, RESPINFO+17, RESPINFO+19, RESP500+2, RESP1000+3, REJCOUNT+1, REJCODE+2, REJCODE+6, REJSLEEP+22, INCSLEEP+21
, INCSLEEP+32, INCSLEEP+43, CLRSLEEP+14
X PAID+2~*, PAID+3, RESP500+2~*, RESP500+3, RESP500+4*, RESP500+5*, RESP500+6, RESP1000+3~*, RESP1000+4, RESP1000+5*
, RESP1000+11*, RESP1000+12, REJCODE+5~*, REJCODE+6, ADDSLEEP+9~, ADDSLEEP+17*
Y ADDSLEEP+9~, ADDSLEEP+21

Marked Items

Name Field # of Occurrence
$T( INCSLEEP+24, INCSLEEP+34, INCSLEEP+43, INCSLEEP+50, SETSLEEP+16, CLRSLEEP+14, CLRSLEEP+22
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables |  Marked Items  | All