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

BPS21PRE.m

Go to the documentation of this file.
  1. BPS21PRE ;AITC/CKB - Pre-installroutine for BPS*1*21 ;2/21/2017
  1. ;;1.0;E CLAIMS MGMT ENGINE;**21**;JUN 2004;Build 28
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. ; MCCF EDI TAS ePharmacy Iteration 1 - BPS*1*21 patch pre-install
  1. Q
  1. ;
  1. EN ; Entry Point for pre-install
  1. D MES^XPDUTL(" Starting pre-install for BPS*1*21")
  1. ;
  1. ; Update descriptions in the BPS NCPDP FIELD DEF file #9002313.91
  1. D FIELDS
  1. ;
  1. ; Update Reject codes in BPS NCPDP REJECT CODES file #9002313.93
  1. D REJECTS
  1. ;
  1. EX ; Exit point
  1. D MES^XPDUTL(" Finished pre-install of BPS*1*21")
  1. Q
  1. ;
  1. FIELDS ; Update Fields Defs with new descriptions
  1. N LINE,DATA,NUM,NAME,DA,DIE,DR,CNT
  1. D MES^XPDUTL(" - Updating BPS NCPDP FIELD DEFS")
  1. S CNT=0
  1. F LINE=1:1 S DATA=$P($T(NFLDS+LINE),";;",2,99) Q:DATA="" D
  1. . S DIE=9002313.91,NUM=$P(DATA,";",1)
  1. . S DA=$O(^BPSF(DIE,"B",NUM,""))
  1. . I 'DA D MES^XPDUTL(" - No IEN found for entry "_NUM) Q
  1. . S NAME=$P(DATA,";",2),DR=".03////^S X=NAME",CNT=CNT+1
  1. . D ^DIE
  1. D MES^XPDUTL(" - "_CNT_" entries updated")
  1. D MES^XPDUTL(" - Done with BPS NCPDP FIELD DEFS")
  1. D MES^XPDUTL(" ")
  1. Q
  1. ;
  1. NFLDS ; Updated field names
  1. ;;409;INGREDIENT COST SUBMITTED
  1. ;;431;OTHER PAYER AMOUNT PAID
  1. ;;433;PATIENT PAID AMOUNT SUBMITTED
  1. ;;579;ASSOC RX/SERVICE PROV ID QUAL
  1. ;;580;ASSOC RX/SERVICE PROVIDER ID
  1. ;;581;ASSOC RX/SERVICE REF NUM QUAL
  1. ;;582;ASSOC RX/SERVICE FILL NUMBER
  1. ;
  1. ;
  1. REJECTS ; Update Reject Codes with new explanations
  1. N LINE,DATA,NUM,NAME,DA,DIE,DR,CNT
  1. D MES^XPDUTL(" - Updating BPS NCPDP REJECT CODES")
  1. S CNT=0
  1. F LINE=1:1 S DATA=$P($T(NRJCT+LINE),";;",2,99) Q:DATA="" D
  1. . S DIE=9002313.93,NUM=$P(DATA,";",1)
  1. . S DA=$O(^BPSF(DIE,"B",NUM,""))
  1. . I 'DA D MES^XPDUTL(" - No IEN found for entry "_NUM) Q
  1. . S NAME=$P(DATA,";",2),DR=".02////^S X=NAME",CNT=CNT+1
  1. . D ^DIE
  1. D MES^XPDUTL(" - "_CNT_" entries updated")
  1. D MES^XPDUTL(" - Done with BPS NCPDP REJECT CODES")
  1. D MES^XPDUTL(" ")
  1. Q
  1. ;
  1. NRJCT ; Updated reject explanations
  1. ;;280;Prior Authorization ID Submitted is not used for this Transaction Code
  1. ;;EV;M/I Prior Authorization ID Submitted
  1. ;;N7;Use Prior Authorization ID Provided During Transition Period
  1. ;;N8;Use Prior Authorization ID Provided For Emergency Fill
  1. ;;N9;Use Prior Authorization ID Provided For Level of Care Change
  1. ;;635;Employer Country Code Value Not Supported
  1. ;;637;Entity Country Code Value Not Supported
  1. ;;638;Facility Country Code Value Not Supported
  1. ;;639;Patient ID Associated Country Code Value Not Supported
  1. ;;640;Pay to Country Code Value Not Supported