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

FBXIP127.m

Go to the documentation of this file.
  1. FBXIP127 ;ALB/DEP-Pre-Install Routine for FB*3.5*127 ; 5/3/13 11:31am
  1. ;;3.5;FEE BASIS;**127**;JAN 30, 1995;Build 9
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. Q
  1. POST ; Enrty point for routine
  1. N DA,DFN,DIK,FB0,FBAUTH,FBFDC,FBMST,FBTYPE,FBJ,Y
  1. S ^XTMP("FB127",0)=$$FMADD^XLFDT(DT,+90)_"^"_DT
  1. S $P(^XTMP("FB127",0),"^",3)="MRA transactions pointing to deleted Authorizations."
  1. GO ; Sort through "Pending" MRA entries.
  1. S FBJ=0 F S FBJ=$O(^FBAA(161.26,"AC","P",FBJ)) Q:FBJ'>0 S FB0=$G(^FBAA(161.26,FBJ,0)) D
  1. .D CHECK
  1. Q
  1. CHECK ;Checking Pt. info for valid authorizations.
  1. ; patient info;input:Y(0);output:FBDOB,FBFI,FBFLNAM,FBLNAM,FBMI,FBNAME,FBSEX,FBSSN
  1. S DFN=$P(FB0,U)
  1. S FBAUTH=$P(^FBAA(161.26,FBJ,0),"^",3) I FBAUTH']"" D DELMRA
  1. I '$D(^FBAAA(DFN,1,FBAUTH,0)) D DELMRA
  1. Q
  1. DELMRA ; Deletes MRA entry that points to non-existent authorization.
  1. S ^XTMP("FB127",FBJ)=^FBAA(161.26,FBJ,0)
  1. S DIK="^FBAA(161.26,",DA=FBJ
  1. D ^DIK
  1. Q