BPSTEST1 ;OAK/ELZ - ECME TESTING TOOL ;11/15/07  09:55
 ;;1.0;E CLAIMS MGMT ENGINE;**6,7,8,10,11,15,19,20,22,26**;JUN 2004;Build 24
 ;;Per VA Directive 6402, this routine should not be modified.
 ;
 Q
 ;
 ; Overview
 ; ========
 ;
 ; When a production instance of VistA sends a claim, the claim is
 ; sent to FSC and then to the clearinghouse, which sends the claim to
 ; the appropriate payer.  The payer's response is returned to the
 ; clearinghouse and then to FSC, who returns the response to the site
 ; which sent the claim.
 ;
 ; When a non-production instance of VistA sends a claim, it goes to FSC
 ; and then to the clearinghouse test bed.  Because the claim is flagged
 ; as being a test claim, the clearinghouse does not send the claim to a
 ; payer.  The clearinghouse returns to FSC a boiler-plate response,
 ; indicating the claim was accepted and paid.  FSC returns the response
 ; to the non-production instance of VistA which sent the claim.  A non-
 ; production instance of VistA includes any account used by a
 ; development team for development and testing of new enhancements.
 ;
 ; The ECME Testing Tool (^BPSTEST) allows users in a non-production
 ; VistA to override some of the fields on the default response returned
 ; by the clearinghouse.  The Testing Tool does not affect the outgoing
 ; claim data.  The purpose of the Testing Tool is to facilitate testing
 ; by allowing the user to manipulate the default response returned by
 ; the clearinghouse when sending test claims.
 ;
 ; The Testing Tool does not ever run on production VistAs, only on non-
 ; production instances of VistA.
 ;
 ; Invoking the Testing Tool
 ; =========================
 ;
 ; Two things must be true in order for the Testing Tool to be invoked:
 ; The system must not be a production system (i.e.  $$PROD^XUPROD must
 ; be false); and the field PAYER RESPONSE TEST MODE on the file BPS
 ; SETUP must be set to 1/On.  The Testing Tool may not be invoked from
 ; a production system, and on non-production accounts, the PAYER
 ; RESPONSE TEST MODE fields must be set to 1/On to make use of the
 ; Testing Tool.
 ;
 ; While test/mirror accounts at production sites are non-production
 ; systems, the Testing Tool will never be used in these systems since
 ; the field PAYER RESPONSE TEST MODE will never be set to 1/On.  These
 ; accounts generally do not have ePharmacy communication set up with
 ; FSC, so they will never send test claims.
 ;
 ; Using the Testing Tool
 ; ======================
 ;
 ; There are several VistA menu options and actions that can initiate
 ; the submission of a claim.  If the process is a foreground process,
 ; then just before the building and sending of the claim, the user is
 ; given the option of entering response overrides (if the system is a
 ; non-production system, and the PAYER RESPONSE TEST MODE field is set
 ; to 1/On).  The user may also enter response overrides for an
 ; Eligibility transaction or a Reversal.
 ;
 ; The Testing Tool does allow for overrides to be entered for a claim
 ; which will be submitted in the background.  The menu option BPS
 ; SELECT OVERRIDES allows the user to enter overrides which will then
 ; be applied to the incoming claim response when the claim is submitted
 ; in the background (such as CMOP or auto-reversal).  This menu option
 ; does not exist in production systems.
 ;
 ; The claim submission code will call the subroutine GETOVER^BPSTEST,
 ; which will indicate to the user that payer overrides are enabled at
 ; that site.  The system will prompt the user "Do you want to enter
 ; overrides for this request?".  If the user enters "No", then they
 ; will not receive any further prompts related to the Testing Tool.  No
 ; values on the incoming response will be overridden with any user-
 ; entered values.  If the user enters "Yes", then the system will allow
 ; the user to enter override values for a variety of fields, for
 ; example:  Response (rejected, paid, duplicate, stranded), Total
 ; Amount Paid, Copay Amount, Ingredient Cost Paid, Next Available Fill
 ; Date, Payer ID Qualifier, etc.
 ;
 ; When the incoming claim response comes in, the system parses the
 ; values and stores them in the file BPS RESPONSES.  (Data fields may
 ; also be stored on the REJECT INFO sub-file of the PRESCRIPTIONS
 ; file.) If the system is a non-production system, and the PAYER
 ; RESPONSE TEST MODE field is set to 1/On, then the subroutine PARSE^
 ; BPSECMPS will call SETOVER^BPSTEST.  If any overrides had been
 ; entered for the claim esponse, those values will override the values
 ; received from the clearinghouse on the claim response.
 ;
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HBPSTEST1   4738     printed  Sep 23, 2025@19:29:42                                                                                                                                                                                                    Page 2
BPSTEST1  ;OAK/ELZ - ECME TESTING TOOL ;11/15/07  09:55
 +1       ;;1.0;E CLAIMS MGMT ENGINE;**6,7,8,10,11,15,19,20,22,26**;JUN 2004;Build 24
 +2       ;;Per VA Directive 6402, this routine should not be modified.
 +3       ;
 +4        QUIT 
 +5       ;
 +6       ; Overview
 +7       ; ========
 +8       ;
 +9       ; When a production instance of VistA sends a claim, the claim is
 +10      ; sent to FSC and then to the clearinghouse, which sends the claim to
 +11      ; the appropriate payer.  The payer's response is returned to the
 +12      ; clearinghouse and then to FSC, who returns the response to the site
 +13      ; which sent the claim.
 +14      ;
 +15      ; When a non-production instance of VistA sends a claim, it goes to FSC
 +16      ; and then to the clearinghouse test bed.  Because the claim is flagged
 +17      ; as being a test claim, the clearinghouse does not send the claim to a
 +18      ; payer.  The clearinghouse returns to FSC a boiler-plate response,
 +19      ; indicating the claim was accepted and paid.  FSC returns the response
 +20      ; to the non-production instance of VistA which sent the claim.  A non-
 +21      ; production instance of VistA includes any account used by a
 +22      ; development team for development and testing of new enhancements.
 +23      ;
 +24      ; The ECME Testing Tool (^BPSTEST) allows users in a non-production
 +25      ; VistA to override some of the fields on the default response returned
 +26      ; by the clearinghouse.  The Testing Tool does not affect the outgoing
 +27      ; claim data.  The purpose of the Testing Tool is to facilitate testing
 +28      ; by allowing the user to manipulate the default response returned by
 +29      ; the clearinghouse when sending test claims.
 +30      ;
 +31      ; The Testing Tool does not ever run on production VistAs, only on non-
 +32      ; production instances of VistA.
 +33      ;
 +34      ; Invoking the Testing Tool
 +35      ; =========================
 +36      ;
 +37      ; Two things must be true in order for the Testing Tool to be invoked:
 +38      ; The system must not be a production system (i.e.  $$PROD^XUPROD must
 +39      ; be false); and the field PAYER RESPONSE TEST MODE on the file BPS
 +40      ; SETUP must be set to 1/On.  The Testing Tool may not be invoked from
 +41      ; a production system, and on non-production accounts, the PAYER
 +42      ; RESPONSE TEST MODE fields must be set to 1/On to make use of the
 +43      ; Testing Tool.
 +44      ;
 +45      ; While test/mirror accounts at production sites are non-production
 +46      ; systems, the Testing Tool will never be used in these systems since
 +47      ; the field PAYER RESPONSE TEST MODE will never be set to 1/On.  These
 +48      ; accounts generally do not have ePharmacy communication set up with
 +49      ; FSC, so they will never send test claims.
 +50      ;
 +51      ; Using the Testing Tool
 +52      ; ======================
 +53      ;
 +54      ; There are several VistA menu options and actions that can initiate
 +55      ; the submission of a claim.  If the process is a foreground process,
 +56      ; then just before the building and sending of the claim, the user is
 +57      ; given the option of entering response overrides (if the system is a
 +58      ; non-production system, and the PAYER RESPONSE TEST MODE field is set
 +59      ; to 1/On).  The user may also enter response overrides for an
 +60      ; Eligibility transaction or a Reversal.
 +61      ;
 +62      ; The Testing Tool does allow for overrides to be entered for a claim
 +63      ; which will be submitted in the background.  The menu option BPS
 +64      ; SELECT OVERRIDES allows the user to enter overrides which will then
 +65      ; be applied to the incoming claim response when the claim is submitted
 +66      ; in the background (such as CMOP or auto-reversal).  This menu option
 +67      ; does not exist in production systems.
 +68      ;
 +69      ; The claim submission code will call the subroutine GETOVER^BPSTEST,
 +70      ; which will indicate to the user that payer overrides are enabled at
 +71      ; that site.  The system will prompt the user "Do you want to enter
 +72      ; overrides for this request?".  If the user enters "No", then they
 +73      ; will not receive any further prompts related to the Testing Tool.  No
 +74      ; values on the incoming response will be overridden with any user-
 +75      ; entered values.  If the user enters "Yes", then the system will allow
 +76      ; the user to enter override values for a variety of fields, for
 +77      ; example:  Response (rejected, paid, duplicate, stranded), Total
 +78      ; Amount Paid, Copay Amount, Ingredient Cost Paid, Next Available Fill
 +79      ; Date, Payer ID Qualifier, etc.
 +80      ;
 +81      ; When the incoming claim response comes in, the system parses the
 +82      ; values and stores them in the file BPS RESPONSES.  (Data fields may
 +83      ; also be stored on the REJECT INFO sub-file of the PRESCRIPTIONS
 +84      ; file.) If the system is a non-production system, and the PAYER
 +85      ; RESPONSE TEST MODE field is set to 1/On, then the subroutine PARSE^
 +86      ; BPSECMPS will call SETOVER^BPSTEST.  If any overrides had been
 +87      ; entered for the claim esponse, those values will override the values
 +88      ; received from the clearinghouse on the claim response.
 +89      ;