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

RCP409.m

Go to the documentation of this file.
  1. RCP409 ;AITC/DOM - Patch PRCA*4.5*371 Post Installation Processing ;20 Feb 2020 14:00:00
  1. ;;4.5;Accounts Receivable;**409**;Feb 20, 2020;Build 17
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. Q
  1. ;
  1. POST ;
  1. D REMDES ; Remove Data exceptions
  1. D RECPTYPE ; Add two new receipt types
  1. D BMES^XPDUTL("PRCA*4.5*409 post-installation finished "_$$HTE^XLFDT($H))
  1. Q
  1. ;
  1. REMDES ; Removes Data Exceptions for all ERAs that have been removed from the worklist
  1. ; and have data exceptions
  1. N ERA,RREASON,RUSER,Z
  1. D MES^XPDUTL(">> Removing EOB Data Exceptions for ERAs that have been removed from the worklist...")
  1. ;
  1. S ERA=0
  1. F D Q:'ERA
  1. . S ERA=$O(^RCY(344.4,ERA))
  1. . Q:'ERA
  1. . Q:$P(^RCY(344.4,ERA,0),"^",14)'=4 ; ERA has not been removed from the worklist
  1. . S Z=$G(^RCY(344.4,ERA,6)) ; Get removed from worklist data
  1. . S RUSER=$P(Z,"^",1) ; User who removed the ERA from the worklist
  1. . S RREASON=$P(Z,"^",1) ; Reason the ERA was removed from the worklist
  1. . Q:RREASON=""
  1. . S:$L(RREASON)<5 RREASON=RREASON_". " ; Make sure the reason is at least 3 characters long
  1. . D REMEXC^RCDPEX31(ERA,RREASON,1) ; Remove any data exceptions
  1. Q
  1. ;
  1. RECPTYPE ; Add new receipt type OGC-CHK and remove OGC-EFT from IOC sites
  1. N ERROR,RCFDA,RCIEN,RCIENS,RCJ
  1. ; I '$D(^RC(341.1,"B","OGC-EFT")) D ; Check if already added
  1. ; . D BMES^XPDUTL("Adding new entry to AR Event Type file.")
  1. ; . S RCFDA(341.1,"+1,",.01)="OGC-EFT"
  1. ; . S RCFDA(341.1,"+1,",.02)=18
  1. ; . S RCFDA(341.1,"+1,",.06)=1
  1. ; . D UPDATE^DIE(,"RCFDA")
  1. ;
  1. I $D(^RC(341.1,"B","OGC-EFT")) D ; Check if exists
  1. . D BMES^XPDUTL("Removing entry OGC-EFT from AR Event Type file.")
  1. . S RCIEN=$O(^RC(341.1,"B","OGC-EFT",0))
  1. . I RCIEN D ;
  1. . . S RCFDA(341.1,RCIEN_",",.01)="@"
  1. . . D FILE^DIE("","RCFDA")
  1. ;
  1. I '$D(^RC(341.1,"B","OGC-CHK")) D ; Check if already added
  1. . K RCFDA,RCIENS
  1. . D BMES^XPDUTL("Adding new entry OGC-CHK to AR Event Type file.")
  1. . S RCIENS(1)=19
  1. . S RCFDA(341.1,"+1,",.01)="OGC-CHK"
  1. . S RCFDA(341.1,"+1,",.02)=19
  1. . S RCFDA(341.1,"+1,",.06)=1
  1. . D UPDATE^DIE(,"RCFDA","RCIENS")
  1. ;
  1. ; Check integrity of the 341.1 file.
  1. S ERROR=0
  1. D VERIFY^PRCABJ
  1. I ERROR D ;
  1. . D BMES^XPDUTL("**Error in AR EVENT TYPE file**")
  1. . S RCJ=""
  1. . F S RCJ=$O(ERROR(RCJ)) Q:'RCJ D ;
  1. . . D BMES^XPDUTL(ERROR(RCJ))
  1. I 'ERROR D ;
  1. . D BMES^XPDUTL("AR EVENT TYPE file verified.")
  1. Q
  1. ;