source: WorldVistAEHR/trunk/r/FEE_BASIS-FB/FBUTL3.m@ 648

Last change on this file since 648 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 1.6 KB
Line 
1FBUTL3 ;WOIFO/SAB-FEE BASIS UTILITY ;6/19/2003
2 ;;3.5;FEE BASIS;**61**;JAN 30, 1995
3 Q
4ARCDES ; Adjustment Reason Current Description Identifier
5 ; Called by File 161.91 "CDES" Write Identifier
6 N FBFMT,FBI,FBARTXT,FBX
7 N DIWF,DIWL,DIWR,X
8 ;
9 ; get current description
10 S FBX=$$AR^FBUTL1(Y,,,"FBARTXT")
11 I '$O(FBARTXT(0)) Q ; no description found
12 ;
13 ; reformat text into 50 character width
14 K ^UTILITY($J,"W")
15 S DIWL=1,DIWR=50,DIWF=""
16 S FBI=0 F S FBI=$O(FBARTXT(FBI)) Q:'FBI S X=FBARTXT(FBI) D ^DIWP
17 ;
18 ; 'display' idenitifer using EN^DDIOL
19 S FBI=0 F S FBI=$O(^UTILITY($J,"W",DIWL,FBI)) Q:'FBI D
20 . S FBFMT=$S(FBI=1:"?15",1:"!?15")
21 . S FBX=$G(^UTILITY($J,"W",DIWL,FBI,0))
22 . D EN^DDIOL(FBX,,FBFMT)
23 ;
24 ; cleanup
25 K ^UTILITY($J,"W")
26 Q
27 ;
28AGCDN ; Adjustment Group Current Descriptive Name Identifier
29 ; Called by File 161.92 "CDN" Write Identifier
30 N FBX
31 ;
32 ; get current descriptive name
33 S FBX=$$AG^FBUTL1(Y)
34 ;
35 ; 'display' using EN^DDIOL
36 I $P(FBX,U,5)]"" D EN^DDIOL($P(FBX,U,5),,"?15")
37 ;
38 Q
39 ;
40RRCDES ; Remittance Remarks Current Description Identifier
41 ; Called by File 161.93 "CDES" Write Identifier
42 N FBFMT,FBI,FBRRTXT,FBX
43 N DIWF,DIWL,DIWR,X
44 ;
45 ; get current description
46 S FBX=$$RR^FBUTL1(Y,,,"FBRRTXT")
47 I '$O(FBRRTXT(0)) Q ; no description found
48 ;
49 ; reformat text into 50 character width
50 K ^UTILITY($J,"W")
51 S DIWL=1,DIWR=50,DIWF=""
52 S FBI=0 F S FBI=$O(FBRRTXT(FBI)) Q:'FBI S X=FBRRTXT(FBI) D ^DIWP
53 ;
54 ; 'display' idenitifer using EN^DDIOL
55 S FBI=0 F S FBI=$O(^UTILITY($J,"W",DIWL,FBI)) Q:'FBI D
56 . S FBFMT=$S(FBI=1:"?15",1:"!?15")
57 . S FBX=$G(^UTILITY($J,"W",DIWL,FBI,0))
58 . D EN^DDIOL(FBX,,FBFMT)
59 ;
60 ; cleanup
61 K ^UTILITY($J,"W")
62 Q
63 ;
64 ;FBUTL3
Note: See TracBrowser for help on using the repository browser.