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

BPS31POST.m

Go to the documentation of this file.
  1. BPS31POST ;AITC/PD - Post-install for BPS*1.0*31 ;10/21/2014
  1. ;;1.0;E CLAIMS MGMT ENGINE;**31**;JUN 2004;Build 16
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. ; BPS*1*31 patch post install
  1. ;
  1. Q
  1. ;
  1. EN ; Entry Point for post-install
  1. ;
  1. N COUNT
  1. ;
  1. D MES^XPDUTL(" Starting post-install for BPS*1*31")
  1. ;
  1. ; Set MCCF TAS EDI Progress Flag to 1 for Unstranded Txns
  1. D UNSTRAND
  1. ;
  1. EX ; exit point
  1. D BMES^XPDUTL(" Finished post-install of BPS*1*31")
  1. Q
  1. ;
  1. UNSTRAND ; Set MCCF TAS EDI Progress Flag to 1 for Unstranded Txns
  1. ;
  1. N IEN
  1. ;
  1. D BMES^XPDUTL(" Process NTR Unstranded Txns")
  1. ;
  1. S COUNT=0
  1. ;
  1. S IEN=""
  1. F S IEN=$O(^BPSTL("C",3,IEN)) Q:'IEN D
  1. . ; Only reset txns with Payer Response status of E UNSTRANDED
  1. . I $$GET1^DIQ(9002313.57,IEN,4.0098)'["UNSTRANDED" Q
  1. . ;
  1. . ; Reset MCCF TAS EDI Progress Flag to 1 (Ready to Send)
  1. . N BPSA,BPSFN,BPSREC
  1. . S BPSFN=9002313.57
  1. . S BPSREC=IEN_","
  1. . S BPSA(BPSFN,BPSREC,20)=1
  1. . D FILE^DIE("","BPSA","")
  1. . ;
  1. . ; Update count of how many txns reset to use in mail message
  1. . S COUNT=COUNT+1
  1. ;
  1. ; E-mail results to development team
  1. D MAIL(COUNT)
  1. ;
  1. Q
  1. ;
  1. MAIL(COUNT) ; E-mail development team # of txns reset
  1. ;
  1. N BPSSITENAME,BPSSITENUMBER,BPSVASITE,BPSX,DIFROM,XMDUZ,XMSUB,XMTEXT,XMY
  1. ;
  1. S BPSVASITE=$$NS^XUAF4($$KSP^XUPARAM("INST"))
  1. S BPSSITENAME=$P(BPSVASITE,"^")
  1. S BPSSITENUMBER=$P(BPSVASITE,"^",2)
  1. S XMSUB="BPS*1.0*31 Post Install Unstranded Txns"
  1. S XMDUZ=BPSSITENUMBER_" - "_BPSSITENAME
  1. I '$$PROD^XUPROD(1) S XMY(DUZ)=""
  1. I $$PROD^XUPROD(1) D
  1. . S XMY("Mark.Dawson3@domain.ext")=""
  1. . S XMY("Paul.Devine@domain.ext")=""
  1. S XMTEXT="BPSX("
  1. S BPSX(1)=""
  1. S BPSX(2)=COUNT_" unstranded txn(s) reset for site "_BPSSITENAME_" ("_BPSSITENUMBER_")."
  1. S BPSX(3)=""
  1. D ^XMD
  1. ;
  1. Q