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

PRCAP378.m

Go to the documentation of this file.
  1. PRCAP378 ;EDE/SAB - PRCA*4.5*378 POST INSTALL;02/11/21
  1. ;;4.5;Accounts Receivable;**378**;Mar 20, 1995;Build 54
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. Q
  1. ;
  1. EN ; entry point
  1. D BMES^XPDUTL(" >> Start of the Post-Installation routine for PRCA*4.5*378")
  1. D UPCAT
  1. D UPDPAR
  1. D UPDAUTO
  1. D UPDBILL
  1. D BMES^XPDUTL(" >> End of the Post-Installation routine for PRCA*4.5*378")
  1. Q
  1. ;
  1. UPCAT ; update field 1.06 in the AR Category file for "NURSING HOME PROCEEDS" category
  1. N CAT,FDA
  1. D MES^XPDUTL("Updating ELIG FOR RPP field for 'NURSING HOME PROCEEDS' AR Category ... ")
  1. S CAT=+$O(^PRCA(430.2,"B","NURSING HOME PROCEEDS","")) Q:CAT'>0
  1. S FDA(430.2,CAT_",",1.06)=0
  1. D FILE^DIE("","FDA")
  1. D MES^XPDUTL(" Done.")
  1. Q
  1. ;
  1. UPDPAR ; update field .16 in the AR SITE PARAMETER file
  1. N CAT,FDA
  1. D MES^XPDUTL("Updating METRICS RETENTION DAYS field in the AR SITE PARAMETER file ... ")
  1. S FDA(342,"1,",.16)=180
  1. D FILE^DIE("","FDA")
  1. D MES^XPDUTL(" Done.")
  1. Q
  1. ;
  1. UPDAUTO ;Update the Auto Add Field to set all active plans to Yes
  1. ;
  1. N RCI,RCDATA,RCSTAT ; RPP variables
  1. N X,Y,DIE,DA,DR,DTOUT ; ^DIE variables
  1. D MES^XPDUTL("Activating New Bill AUTO ADD functionality for all active Repayment Plans ... ")
  1. S RCI=0
  1. F S RCI=$O(^RCRP(340.5,RCI)) Q:'RCI D
  1. . S RCDATA=$G(^RCRP(340.5,RCI,0))
  1. . S RCSTAT=$P(RCDATA,U,7)
  1. . Q:RCSTAT<6 ;status is not Terminated, Closed, or PAID IN FULL
  1. . ; Update the Auto-Add flag
  1. . S DIE="^RCRP(340.5,",DA=RCI,DR=".12///1"
  1. . D ^DIE
  1. . K DR,DA,DIE
  1. ;
  1. Q
  1. ;
  1. UPDBILL ; Update all billes associated with a new RPP that is in a closed state, but RPP info is still in the bill.
  1. ;
  1. N RCI,RCD4,RCRPID,RCRPST ; Routine Variables
  1. N X,Y,DIE,DA,DR,DTOUT ; ^DIE variables
  1. S RCI=0
  1. F S RCI=$O(^PRCA(430,RCI)) Q:'RCI D
  1. . S RCD4=$G(^PRCA(430,RCI,4))
  1. . S RCRPID=$P(RCD4,U,5)
  1. . Q:RCRPID="" ;Bill not linked to a new style Repayment Plan
  1. . S RCRPST=$$GET1^DIQ(340.5,RCRPID_",",.07,"I")
  1. . Q:RCRPST<6
  1. . S DIE="^PRCA(430,",DA=RCI,DR="45///@;41///@"
  1. . D ^DIE
  1. . K DR,DA,DIE
  1. Q