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

IB20P671.m

Go to the documentation of this file.
  1. IB20P671 ;/Albany - IB*2.0*671 POST INSTALL;02/04/20 2:10pm
  1. ;;2.0;Integrated Billing;**671**;Mar 20, 1995;Build 13
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. Q
  1. ;
  1. POSTINIT ;Post Install for IB*2.0*671
  1. D BMES^XPDUTL(" >> Starting the Post-Initialization routine for IB*2.0*671")
  1. D TSKPUSH ; add the nightly task
  1. D TPFUS ; fix Third Party Follow-up summary report
  1. D BMES^XPDUTL(" >> End of the Post-Initialization routine for IB*2.0*671")
  1. Q
  1. ;
  1. TSKPUSH ; task the routine as a Night Job using TaskMan.
  1. ;
  1. N DIC,DLAYGO,TSTAMP,X,Y
  1. D MES^XPDUTL("Tasking Nightly Copay Synch ... ")
  1. ;
  1. I $$FIND1^DIC(19.2,,"B","IBUC MULTI FAC COPAY SYNCH","B") D MES^XPDUTL(" Already scheduled") Q ; don't overwrite existing schedule
  1. S (DLAYGO,DIC)=19.2,DIC(0)="L"
  1. S X="IBUC MULTI FAC COPAY SYNCH"
  1. S TSTAMP=$$FMADD^XLFDT($$NOW^XLFDT(),1),$P(TSTAMP,".",2)="0200"
  1. S DIC("DR")="2////"_TSTAMP_";6////D@2AM"
  1. D ^DIC
  1. Q
  1. ; Update the IBSEL parameter
  1. TPFUS ; fix value of input variable for 3rd Party Follow-Up Summary
  1. ; ibsel = 5 is for all types
  1. N IBDA,IBDM,IBSEL,IBNM,IBIVA,DA,DIE,DR,X,Y
  1. S IBSEL="5,"
  1. S IBDM="IB DM EXTRACT REPORTS"
  1. S IBNM="THIRD PARTY FOLLOW-UP SUMMARY"
  1. S IBDA=$O(^IBE(351.7,"B",IBNM,0))
  1. I 'IBDA D MES^XPDUTL(" >>> "_IBNM_" of "_IBDM_" not found") Q
  1. S IBIVA=$O(^IBE(351.7,IBDA,1,"B","IBSEL",0))
  1. I 'IBIVA D MES^XPDUTL(" >>> Input variable IBSEL of "_IBNM_" not found") Q
  1. I $P($G(^IBE(351.7,IBDA,1,IBIVA,0)),U,2)=IBSEL D Q
  1. . D MES^XPDUTL(" >>> Value of input variable IBSEL of "_IBNM_" already")
  1. . D MES^XPDUTL(" updated in the "_IBDM_" file (#351.7)")
  1. S DA(1)=IBDA,DA=IBIVA
  1. S DIE="^IBE(351.7,"_DA(1)_",1,",DR=".02////"_IBSEL D ^DIE
  1. D MES^XPDUTL(" >>> Updating value of input variable IBSEL of "_IBNM)
  1. D MES^XPDUTL(" in the "_IBDM_" file (#351.7)")
  1. Q
  1. ;