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

FBGMT2.m

Go to the documentation of this file.
  1. FBGMT2 ;WOIFO/SS-FEE BASIS PORTION OF GMT2 ;2/27/03
  1. ;;3.5;FEE BASIS;**54**;JAN 30, 1995
  1. ;
  1. Q
  1. ;Check for Fee basis encounters
  1. ;
  1. ;function returns 0 or the date in File Man format.
  1. ;"0" return value indicates that there is no any authorization
  1. ;for this patient in Fee Basis. Otherwise the return value is
  1. ;the TO DATE of Fee Basis authorization for the patient. If
  1. ;the patient has more than one authorization then return value
  1. ;will contain the TO DATE of the authorization with the latest
  1. ;TO DATE for the patient.
  1. AUTH(FBDFN) ;
  1. N FBDATE,FBNODE,FBTDATE
  1. S (FBDATE,FBNODE)=0
  1. F S FBNODE=$O(^FBAAA(FBDFN,1,FBNODE)) Q:+FBNODE=0 D
  1. . S FBTDATE=$P($G(^FBAAA(FBDFN,1,FBNODE,0)),"^",2)
  1. . I FBTDATE>FBDATE S FBDATE=FBTDATE
  1. Q FBDATE
  1. ;
  1. ;called from crossref of field #.02 of #161.01 to notify
  1. ;Enrollment about change of TODATE of patient's authorization
  1. ;sends patient's IEN and TODATE of the authorization with the
  1. ;latest TODATE (see IA #3989)
  1. ENRLLMNT(FBDFN) ;
  1. N FBTODT S FBTODT=$$AUTH(FBDFN)
  1. D:FBTODT>0 FBAUTH^EASUER(FBDFN,FBTODT)
  1. Q
  1. ;