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

RCP345.m

Go to the documentation of this file.
  1. RCP345 ;AITC/CJE,hrubovcak - ePayment Lockbox Post-Installation Processing ;22 Jan 2019 14:32:31
  1. ;;4.5;Accounts Receivable;**345**;Mar 20, 1995;Build 34
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. Q
  1. ;
  1. POST ;
  1. D AUTO1
  1. ;
  1. D BMES^XPDUTL("Creating index on CARC Auto-Decrease No Pay (#344.62)")
  1. S DIK="^RCY(344.62,",DIK(1)=".08^ACTVN" D ENALL^DIK
  1. ;
  1. D RXADDF ; Populate defaults for Pharmacy Auto-Decrease
  1. EFT ;
  1. S ZTRTN="EFT3446^"_$T(+0),ZTDESC="Add EFT Payer/TIN to 344.6",ZTIO="",ZTDTH=$H
  1. D ^%ZTLOAD
  1. D MES^XPDUTL($S($G(ZTSK):"Task# "_ZTSK_" queued, to add EFTs to 344.6",1:"Unable to queue EFT 344.6 task."))
  1. ;
  1. D BMES^XPDUTL("Fixing ERA numbers...")
  1. D FIX3444
  1. ;
  1. D BMES^XPDUTL("PRCA*4.5*345 post-installation finished "_$$HTE^XLFDT($H))
  1. Q
  1. ;
  1. AUTO1 ; Populate default values for 1st party auto-decrease
  1. N FDA,IEN3501,J,RCLIST
  1. D BMES^XPDUTL("Populate default values for 1st party auto-decrease (#342)")
  1. S FDA(342,"1,",.14)=0
  1. S FDA(342,"1,",.15)=0
  1. D FILE^DIE("","FDA")
  1. ;
  1. S RCLIST(1)="DG FEE SERVICE (OPT) NEW"
  1. S RCLIST(2)="DG OPT COPAY NEW"
  1. ; S RCLIST(3)="PSO NSC RX COPAY NEW"
  1. ; S RCLIST(4)="PSO SC RX COPAY NEW"
  1. S RCLIST(3)="CC (OPT) NEW"
  1. ;
  1. K ^RC(342,1,14)
  1. S J=0 F S J=$O(RCLIST(J)) Q:'J D ;
  1. . S IEN3501=$O(^IBE(350.1,"B",RCLIST(J),0))
  1. . I IEN3501 D ;
  1. . . K FDA,IENS
  1. . . S FDA(342.014,"+1,1,",.01)=IEN3501
  1. . . S FDA(342.014,"+1,1,",.02)=1
  1. . . D UPDATE^DIE("","FDA")
  1. Q
  1. ;
  1. RXADDF ; Populate defaults for Pharmacy Auto-Decrease
  1. N FDA
  1. S FDA(344.61,"1,",1.02)=0
  1. S FDA(344.61,"1,",1.03)=5
  1. S FDA(344.61,"1,",1.04)=100
  1. D FILE^DIE("","FDA")
  1. Q
  1. ;
  1. EFT3446 ; Add EFT Payer/TINs to payer exclusion file
  1. N ID,IEN,NAME,RET
  1. S IEN=0
  1. F S IEN=$O(^RCY(344.31,IEN)) Q:'IEN D ;
  1. . S NAME=$$GET1^DIQ(344.31,IEN_",",.02)
  1. . S ID=$$GET1^DIQ(344.31,IEN_",",.03)
  1. . I NAME=""!(ID="") Q
  1. . I '$D(^RCY(344.6,"CPID",NAME,ID)) S RET=$$PAYRINIT^RCDPESP(IEN,344.31)
  1. Q
  1. ;
  1. FIX3444 ; Repair Internal Entry Numbers in 344.4 where IEN is not equal to .01
  1. N IEN,ENTRY
  1. S IEN=0
  1. F S IEN=$O(^RCY(344.4,IEN)) Q:'IEN D ;
  1. . S ENTRY=$P($G(^RCY(344.4,IEN,0)),"^",1)
  1. . I 'ENTRY Q
  1. . I ENTRY'=IEN D ;
  1. . . N FDA
  1. . . S FDA(344.4,IEN_",",.01)=IEN
  1. . . D FILE^DIE("","FDA")
  1. Q