Last change
on this file since 1328 was 628, checked in by George Lilly, 15 years ago |
initial load of FOIAVistA 6/30/08 version
|
File size:
1.0 KB
|
Line | |
---|
1 | FBGMT2 ;WOIFO/SS-FEE BASIS PORTION OF GMT2 ;2/27/03
|
---|
2 | ;;3.5;FEE BASIS;**54**;JAN 30, 1995
|
---|
3 | ;
|
---|
4 | Q
|
---|
5 | ;Check for Fee basis encounters
|
---|
6 | ;
|
---|
7 | ;function returns 0 or the date in File Man format.
|
---|
8 | ;"0" return value indicates that there is no any authorization
|
---|
9 | ;for this patient in Fee Basis. Otherwise the return value is
|
---|
10 | ;the TO DATE of Fee Basis authorization for the patient. If
|
---|
11 | ;the patient has more than one authorization then return value
|
---|
12 | ;will contain the TO DATE of the authorization with the latest
|
---|
13 | ;TO DATE for the patient.
|
---|
14 | AUTH(FBDFN) ;
|
---|
15 | N FBDATE,FBNODE,FBTDATE
|
---|
16 | S (FBDATE,FBNODE)=0
|
---|
17 | F S FBNODE=$O(^FBAAA(FBDFN,1,FBNODE)) Q:+FBNODE=0 D
|
---|
18 | . S FBTDATE=$P($G(^FBAAA(FBDFN,1,FBNODE,0)),"^",2)
|
---|
19 | . I FBTDATE>FBDATE S FBDATE=FBTDATE
|
---|
20 | Q FBDATE
|
---|
21 | ;
|
---|
22 | ;called from crossref of field #.02 of #161.01 to notify
|
---|
23 | ;Enrollment about change of TODATE of patient's authorization
|
---|
24 | ;sends patient's IEN and TODATE of the authorization with the
|
---|
25 | ;latest TODATE (see IA #3989)
|
---|
26 | ENRLLMNT(FBDFN) ;
|
---|
27 | N FBTODT S FBTODT=$$AUTH(FBDFN)
|
---|
28 | D:FBTODT>0 FBAUTH^EASUER(FBDFN,FBTODT)
|
---|
29 | Q
|
---|
30 | ;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.