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  | All
Print Page as PDF
Routine: BPSECMPS

Package: E Claims Management Engine

Routine: BPSECMPS


Information

BPSECMPS ;BHAM ISC/FCS/DRS - Parse Claim Response ;3/10/08 12:31

Source Information

Source file <BPSECMPS.m>

Call Graph

Call Graph

Call Graph Total: 6

Package Total Call Graph
E Claims Management Engine 3 (IBSEND,PROCADM,PROCBEN,PROCDUR,PROCOTH)^BPSECMP2  $$NOWFM^BPSOSU1  ($$CHECK,SETOVER)^BPSTEST  
VA FileMan 2 (UPDATE,WP)^DIE  FDA^DILF  
Kernel 1 $$TRIM^XLFSTR  

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: 2

Package Total Caller Graph
E Claims Management Engine 2 BPSECMC2  BPSOSH2  

Entry Points

Name Comments DBIA/ICR reference
PARSE(RREC,CLAIMIEN,IEN59,TRANTYPE) ;
; Parse the response from the payer and file it in the BPS Response record
; Incoming Parameters:
; RREC - HL7 message
; CLAIMIEN - IEN of the BPS Claim file
; IEN59 - IEN of the BPS Transaction file
; TRANTYPE - Transaction Type (B1-Billing Request, B2-Reversal, E1-Eligibility)
; Return value:
; RESPIEN - IEN of the BPS Response file
TRANSMSN ;This subroutine will work through the transmission level information
TRANSACT ;This subroutine will work through the transaction level information
PARSEH ; parse the header record, required on all responses, and is fixed length
; It's the only record that is fixed length.
PARSETM ; parse the variable portions of the transmission
PARSETN ; parse the transaction level segments
GETNUM(FIELD) ; function, return field number for a field I
; use BPS NCPDP FIELD DEFS (#9002313.91) "D" cross ref for lookup
; field number is used to store the data in the correct field in BPS RESPONSES (#9002313.03)
VNUM(FLDNUM) ;function, returns VistA FileMan field number
PROCRESP ; add data to RESPONSES SUB-FIELD (#9002313.0301)
PROCREJ ; add data to REJECT CODE SUB-FIELD (#9002313.03511)
PROCAPP ; APPROVED MESSAGE CODE SUB-FIELD (#9002313.301548)
PROCPPR ; PREFERRED PRODUCT REPEATING SUB-FIELD (#9002313.1301)
PROCCOB ; OTHER PAYER ID MLTPL SUB-FIELD (#9002313.035501)
PROCINT ; INTERMEDIARY REPEATING SUB-FIELD (#9002313.032052)
PROCQLIM ; QUANTITY LIMIT PER SPECIFIC TIME PERIOD REPEATING SUB-FIELD (# 9002313.032087)
PROCDSLM ; DAYS SUPPLY LIMIT PER SPECIFIC TIME PERIOD REPEATING SUB-FIELD (# 9002313.032091)
RAW(RESPIEN,RREC) ; store raw data received from the payer
; pass in the response IEN (9002313.03) and the raw data to be stored.

External References

Name Field # of Occurrence
IBSEND^BPSECMP2 PARSE+47
PROCADM^BPSECMP2 PARSE+35
PROCBEN^BPSECMP2 PARSE+34
PROCDUR^BPSECMP2 PARSE+36
PROCOTH^BPSECMP2 PARSE+33
$$NOWFM^BPSOSU1 PARSEH+4
$$CHECK^BPSTEST PARSE+24
SETOVER^BPSTEST PARSE+24
UPDATE^DIE PARSE+26, PROCRESP+17, PROCREJ+10, PROCAPP+8, PROCPPR+10, PROCCOB+10, PROCINT+10, PROCQLIM+10, PROCDSLM+10
WP^DIE RAW+5
FDA^DILF PARSEH+3, PARSEH+4, PARSEH+5, PARSEH+6, PARSEH+7, PARSEH+9, PARSEH+10, PARSEH+11, PARSEH+12, PARSETM+10
PROCRESP+9, PROCRESP+15, PROCREJ+9, PROCAPP+7, PROCPPR+8, PROCPPR+9, PROCCOB+8, PROCCOB+9, PROCINT+8, PROCINT+9
PROCQLIM+8, PROCQLIM+9, PROCDSLM+8, PROCDSLM+9
$$TRIM^XLFSTR PROCREJ+7

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^BPSR - [#9002313.03] WP^DIE

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^BPSF(9002313.91 - [#9002313.91] GETNUM+8, GETNUM+9, VNUM+2, VNUM+3
^TMP($J RAW+3!, RAW+4*, RAW+6!

Label References

Name Line Occurrences
$$GETNUM PARSETM+7, PARSETN+57
$$VNUM PARSETN+61
PARSEH TRANSMSN+9
PARSETM TRANSMSN+19
PARSETN TRANSACT+13
PROCAPP PARSE+30
PROCCOB PARSE+32
PROCDSLM PARSE+39
PROCINT PARSE+37
PROCPPR PARSE+31
PROCQLIM PARSE+38
PROCREJ PARSE+29
PROCRESP PARSE+28
RAW PARSE+48
TRANSACT PARSE+20
TRANSMSN PARSE+19

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
CKRPT PARSETN+11~, PARSETN+63*, PARSETN+64, PARSETN+66
CLAIMIEN PARSE~, PARSE+14, PARSE+47, PARSEH+3
CNT RAW+2~, RAW+4*
FDAIEN PARSE+10~
FDAIEN( PROCRESP+9, PROCRESP+15, PROCREJ+9, PROCAPP+7, PROCPPR+8, PROCPPR+9, PROCCOB+8, PROCCOB+9, PROCINT+8, PROCINT+9
PROCQLIM+8, PROCQLIM+9, PROCDSLM+8, PROCDSLM+9
FDAIEN(1 PARSE+42
FDAIEN03 PARSE+10~
FDAIEN03( PROCREJ+9, PROCAPP+7, PROCPPR+8, PROCPPR+9, PROCCOB+8, PROCCOB+9, PROCINT+8, PROCINT+9, PROCQLIM+8, PROCQLIM+9
PROCDSLM+8, PROCDSLM+9
FDAT032052 PROCINT+4~
FDAT032087 PROCQLIM+4~
FDAT032091 PROCDSLM+4~
FDAT1301 PROCPPR+4~
FDAT1548 PROCAPP+3~
FDAT3511 PROCREJ+3~
FDAT35501 PROCCOB+4~
FDATA PARSE+10~, PARSE+24
FDATA( PARSETN+68*, PARSETN+70*, PROCRESP+6*, PROCRESP+7*, PROCRESP+11, PROCRESP+12, PROCRESP+14*, PROCRESP+15, PROCREJ+1, PROCREJ+5
PROCREJ+6, PROCREJ+7, PROCAPP+1, PROCAPP+6, PROCAPP+7, PROCPPR+2, PROCPPR+7, PROCPPR+9, PROCCOB+2, PROCCOB+7
PROCCOB+9, PROCINT+2, PROCINT+7, PROCINT+9, PROCQLIM+2, PROCQLIM+7, PROCQLIM+9, PROCDSLM+2, PROCDSLM+7, PROCDSLM+9
FDATA03 PROCRESP+2~
FIELD PARSETM+2~, PARSETM+4, PARSETM+5*, PARSETM+6, PARSETM+7, PARSETM+9*, PARSETM+10, PARSETN+11~, PARSETN+54, PARSETN+55*
PARSETN+56, PARSETN+57, PARSETN+68, PARSETN+70, GETNUM~, GETNUM+5, PROCRESP+2~, PROCRESP+10*, PROCRESP+11*, PROCRESP+12
PROCRESP+14, PROCRESP+15
FILE PARSE+10~, PARSE+18*, PARSEH+3, PARSEH+4, PARSEH+5, PARSEH+6, PARSEH+7, PARSEH+9, PARSEH+10, PARSEH+11
PARSEH+12, PARSETM+10, PROCRESP+2~, PROCRESP+4*, PROCRESP+9, PROCRESP+15, PROCREJ+3~, PROCREJ+5*, PROCREJ+9, PROCAPP+3~
PROCAPP+5*, PROCAPP+7, PROCPPR+4~, PROCPPR+6*, PROCPPR+8, PROCPPR+9, PROCCOB+4~, PROCCOB+6*, PROCCOB+8, PROCCOB+9
PROCINT+4~, PROCINT+6*, PROCINT+8, PROCINT+9, PROCQLIM+4~, PROCQLIM+6*, PROCQLIM+8, PROCQLIM+9, PROCDSLM+4~, PROCDSLM+6*
PROCDSLM+8, PROCDSLM+9
FLDID GETNUM+4~, GETNUM+5*, GETNUM+6, GETNUM+8
FLDIEN GETNUM+4~, GETNUM+8*, GETNUM+9, VNUM+1~, VNUM+2*, VNUM+3
FLDNUM PARSETM+2~, PARSETM+7*, PARSETM+8, PARSETM+10, PARSETN+11~, PARSETN+57*, PARSETN+58, PARSETN+59, PARSETN+61, PARSETN+63
, GETNUM+4~, GETNUM+5*, GETNUM+6, GETNUM+9*, GETNUM+10, VNUM~, VNUM+2, VNUM+3*, VNUM+4, PROCRESP+2~
PROCRESP+9*, PROCREJ+3~, PROCREJ+9*, PROCAPP+3~, PROCAPP+7*, PROCPPR+4~, PROCPPR+8*, PROCPPR+9*, PROCCOB+4~, PROCCOB+8*
PROCCOB+9*, PROCINT+4~, PROCINT+8*, PROCINT+9*, PROCQLIM+4~, PROCQLIM+8*, PROCQLIM+9*, PROCDSLM+4~, PROCDSLM+8*, PROCDSLM+9*
FS PARSE+10~, PARSE+17*, TRANSMSN+16, PARSETM+5, PARSETN+14, PARSETN+55
GRP TRANSACT+2~, TRANSACT+5*, TRANSACT+6
GRPCNT PARSETN+11~, PARSETN+19*, PARSETN+24*, PARSETN+29*, PARSETN+34*, PARSETN+39*, PARSETN+44*, PARSETN+49*, PARSETN+66*, PARSETN+68
GRPFLDS PARSETN+11~, PARSETN+19*, PARSETN+25*, PARSETN+30*, PARSETN+35*, PARSETN+40*, PARSETN+45*, PARSETN+50*, PARSETN+66
GS PARSE+10~, PARSE+17*, TRANSMSN+5, TRANSACT+6
IEN59 PARSE~, PARSE+24
MEDN TRANSACT+2~, TRANSACT+3*, TRANSACT+8*, PARSETN+68, PARSETN+70
NNDX PROCREJ+3~, PROCREJ+5*, PROCREJ+6*, PROCREJ+7, PROCREJ+9, PROCAPP+3~, PROCAPP+5*, PROCAPP+6*, PROCAPP+7, PROCPPR+4~
PROCPPR+6*, PROCPPR+7*, PROCPPR+8, PROCPPR+9, PROCCOB+4~, PROCCOB+6*, PROCCOB+7*, PROCCOB+8, PROCCOB+9, PROCINT+4~
PROCINT+6*, PROCINT+7*, PROCINT+8, PROCINT+9, PROCQLIM+4~, PROCQLIM+6*, PROCQLIM+7*, PROCQLIM+8, PROCQLIM+9, PROCDSLM+4~
PROCDSLM+6*, PROCDSLM+7*, PROCDSLM+8, PROCDSLM+9
NUMREJS PROCREJ+3~, PROCREJ+5*
PC PARSETM+2~, PARSETM+4*, PARSETM+5, PARSETN+11~, PARSETN+54*, PARSETN+55
REJCODE PROCREJ+3~, PROCREJ+7*, PROCREJ+8*, PROCREJ+9
REPEAT PARSETN+11~, PARSETN+62*, PARSETN+64*, PARSETN+68, PARSETN+70
RESPIEN PARSE+42*, PARSE+47, PARSE+48, PARSE+50, RAW~, RAW+5
RHEADER TRANSMSN+2~, TRANSMSN+8*, PARSEH+5, PARSEH+6, PARSEH+7, PARSEH+8, PARSEH+9, PARSEH+10, PARSEH+11, PARSEH+12
ROOT PARSE+10~, PARSE+18*, PARSEH+3, PARSEH+4, PARSEH+5, PARSEH+6, PARSEH+7, PARSEH+9, PARSEH+10, PARSEH+11
PARSEH+12, PARSETM+10, PROCRESP+2~, PROCRESP+4*, PROCRESP+9, PROCRESP+15, PROCREJ+3~, PROCREJ+5*, PROCREJ+9, PROCAPP+3~
PROCAPP+5*, PROCAPP+7, PROCPPR+4~, PROCPPR+6*, PROCPPR+8, PROCPPR+9, PROCCOB+4~, PROCCOB+6*, PROCCOB+8, PROCCOB+9
PROCINT+4~, PROCINT+6*, PROCINT+8, PROCINT+9, PROCQLIM+4~, PROCQLIM+6*, PROCQLIM+8, PROCQLIM+9, PROCDSLM+4~, PROCDSLM+6*
PROCDSLM+8, PROCDSLM+9
RPTFLD PARSETN+11~, PARSETN+13*, PARSETN+23*, PARSETN+28*, PARSETN+33*, PARSETN+38*, PARSETN+43*, PARSETN+48*, PARSETN+64
RREC PARSE~, PARSE+13, PARSE+48, TRANSMSN+5, TRANSACT+6, RAW~, RAW+4
RTRAN TRANSACT+2~, TRANSACT+5, TRANSACT+6*, TRANSACT+7, TRANSACT+11
RTRANM TRANSMSN+2~, TRANSMSN+5*, TRANSMSN+8, TRANSMSN+14
SEG TRANSMSN+2~, TRANSMSN+13*, TRANSMSN+14, TRANSACT+2~, TRANSACT+10*, TRANSACT+11
SEGFID TRANSMSN+18*, TRANSMSN+19, PARSETN+11~, PARSETN+18*, PARSETN+22, PARSETN+27, PARSETN+32, PARSETN+37, PARSETN+42, PARSETN+47
SEGID TRANSMSN+2~, TRANSMSN+16*, TRANSMSN+17, TRANSMSN+18, PARSETN+11~, PARSETN+14*, PARSETN+15, PARSETN+16, PARSETN+18
SEGMENT TRANSMSN+2~, TRANSMSN+14*, TRANSMSN+15, TRANSMSN+16, TRANSACT+2~, TRANSACT+10, TRANSACT+11*, TRANSACT+12, PARSETM+5, PARSETN+14
PARSETN+55
SS PARSE+10~, PARSE+17*, TRANSMSN+8, TRANSMSN+14, TRANSACT+11
TRANSACT PARSE+10~, PARSE+27*, PROCRESP+6, PROCRESP+7, PROCRESP+9, PROCRESP+11, PROCRESP+12, PROCRESP+14, PROCRESP+15, PROCREJ+1
PROCREJ+5, PROCREJ+6, PROCREJ+7, PROCREJ+9, PROCAPP+1, PROCAPP+6, PROCAPP+7, PROCPPR+2, PROCPPR+7, PROCPPR+8
PROCPPR+9, PROCCOB+2, PROCCOB+7, PROCCOB+8, PROCCOB+9, PROCINT+2, PROCINT+7, PROCINT+8, PROCINT+9, PROCQLIM+2
PROCQLIM+7, PROCQLIM+8, PROCQLIM+9, PROCDSLM+2, PROCDSLM+7, PROCDSLM+8, PROCDSLM+9
TRANSCNT PARSE+10~, PARSE+27, PARSEH+8*
TRANTYPE PARSE~, PARSE+24
U GETNUM+9, VNUM+3
VNUM PARSETN+11~, PARSETN+59*, PARSETN+61*, PARSETN+68, PARSETN+70
X RAW+2~, RAW+4*
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  | All