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

FBXIP38.m

Go to the documentation of this file.
  1. FBXIP38 ;WOIFO/SAB-PATCH INSTALL ROUTINE ;11/26/2001
  1. ;;3.5;FEE BASIS;**38**;JAN 30, 1995
  1. Q
  1. ;
  1. PS ; post-install entry point
  1. ; create KIDS checkpoints with call backs
  1. N FBX,Y
  1. F FBX="SUSCOD","STATEXP","EXPDT" D
  1. . S Y=$$NEWCP^XPDUTL(FBX,FBX_"^FBXIP38")
  1. . I 'Y D BMES^XPDUTL("ERROR Creating "_FBX_" Checkpoint.")
  1. Q
  1. ;
  1. SUSCOD ; Add new Suspend Code to the FEE BASIS SUSPENSION (#161.27) file.
  1. D BMES^XPDUTL(" Adding new suspend code to file #161.27...")
  1. N FBDA
  1. ; check for J suspension code
  1. S FBDA=$$FIND1^DIC(161.27,"","X","J","B")
  1. ; if not found then add it
  1. I 'FBDA D
  1. . N DA,DD,DIC,DINUM,DLAYGO,DO,X,Y
  1. . S DIC="^FBAA(161.27,",DIC(0)="L",DLAYGO=161.27
  1. . S X="J"
  1. . S DIC("DR")="2///^S X=""Mill Bill Authority, 38 U.S.C. 1725"""
  1. . D FILE^DICN
  1. . I Y<0 D MES^XPDUTL("ERROR ADDING J SUSPEND CODE") Q
  1. . ; update Description wp field of entry (replaces current text)
  1. . K ^TMP($J,"FB1")
  1. . S ^TMP($J,"FB1",1,0)="Payment in Accordance with pricing for claims approved under 38 USC 1725"
  1. . S ^TMP($J,"FB1",2,0)="payer of last resort."
  1. . ; replace existing text with content of array
  1. . D WP^DIE(161.27,+Y_",",1,"","^TMP($J,""FB1"")") D MSG^DIALOG()
  1. . K ^TMP($J,"FB1")
  1. Q
  1. ;
  1. STATEXP ; Populate field .07 in file 162.92 for appropriate status
  1. D BMES^XPDUTL(" Populating new field in file #162.92...")
  1. N FBDA,FBFDA,FBORDER
  1. ; loop thru status orders that need to be populated
  1. F FBORDER=10,40,55,70 D
  1. . S FBDA=$$STATUS^FBUCUTL(FBORDER) ; get ien
  1. . Q:'FBDA
  1. . Q:$P($G(^FB(162.92,FBDA,0)),U,7)]"" ; field already populated
  1. . I FBORDER=10 S FBFDA(162.92,FBDA_",",.07)="31"
  1. . I FBORDER=40 S FBFDA(162.92,FBDA_",",.07)="366"
  1. . I FBORDER=55 S FBFDA(162.92,FBDA_",",.07)="366"
  1. . I FBORDER=70 S FBFDA(162.92,FBDA_",",.07)="121"
  1. ; update entries
  1. I $D(FBFDA) D FILE^DIE("E","FBFDA") D MSG^DIALOG()
  1. Q
  1. ;
  1. EXPDT ; Recompute expiration dates of incomplete Mill Bill claims
  1. D BMES^XPDUTL(" Recalculating expiration date of incomplete claims...")
  1. N FBDA,FBEXP,FBEXPN,FBLETDT,FBORDER,FBSTATUS,FBUCA
  1. ;
  1. ; get ien for status 'incomplete unauthorized claim'
  1. S FBORDER=10
  1. S FBSTATUS=$$STATUS^FBUCUTL(FBORDER)
  1. ;
  1. ; loop thru incomplete claims
  1. S FBDA=0 F S FBDA=$O(^FB583("AS",FBSTATUS,FBDA)) Q:'FBDA D
  1. . S FBUCA=$G(^FB583(FBDA,0))
  1. . S FBEXP=$P(FBUCA,U,26) ; expiration date
  1. . S FBLETDT=$P(FBUCA,U,19) ; date letter sent
  1. . Q:$P(FBUCA,U,28)'=1 ; skip if not mill bill claim
  1. . Q:FBEXP'>0 ; skip if no expiration date on file
  1. . Q:FBLETDT'>0 ; skip if letter date is not on file
  1. . ;
  1. . ; calculate new expiration date and update claim
  1. . S FBEXPN=$$EXPIRE^FBUCUTL8(FBDA,FBLETDT,FBUCA,FBORDER)
  1. . ;W !,FBDA,?10,FBLETDT,?20,FBEXP,?30,FBEXPN
  1. . D EDITL^FBUCED(FBDA,FBEXPN,0)
  1. Q
  1. ;FBXIP38