source: WorldVistAEHR/trunk/r/FEE_BASIS-FB/FBAAUVC.m@ 1226

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

initial load of WorldVistAEHR

File size: 2.3 KB
Line 
1FBAAUVC ;WOIFO/SAB-UPDATE VENDOR CODES ;11/27/2000
2 ;;3.5;FEE BASIS;**24**;JAN 30, 1995
3 ;This routine may be tasked (or directly called) from the patch
4 ;FB*3.5*24 post install routine.
5 Q
6 ;
7ENQ ; Tasked Entry Point
8 N FBERR
9 D UPDPART
10 D UPDSPEC
11 Q
12 ;
13UPDPART ;Update Selected Participation Code(s)
14 ;May also be directly called from FBXIP24
15 N FBCODE,FBDA,FBFDA,FBI,FBNAME,FBX,X,Y
16 K FBERR
17 ;
18 ; update Part Codes
19 K FBFDA
20 ; loop thru Part Codes
21 F FBI=1:1 S FBX=$P($T(PART+FBI),";;",2) Q:FBX="END" D
22 . S FBCODE=$P(FBX,U)
23 . S FBNAME=$P(FBX,U,2)
24 . Q:FBCODE=""
25 . ;
26 . ; locate Part Code in file
27 . S FBDA=$$FIND1^DIC(161.81,"","X",FBCODE,"C")
28 . ;
29 . ; if PART CODE found then check and if necessary add to update array
30 . I FBDA D
31 . . I $$GET1^DIQ(161.81,FBDA_",",.01)=FBNAME Q
32 . . S FBFDA(161.81,FBDA_",",.01)=FBNAME
33 . ;
34 . ; if Part Code not found then add it
35 . I 'FBDA D
36 . . N DA,DD,DIC,DINUM,DLAYGO,DO,X
37 . . S DIC="^FBAA(161.81,",DIC(0)="L",DLAYGO=161.81
38 . . S X=FBNAME Q:X=""
39 . . S DIC("DR")="1////^S X=FBCODE"
40 . . I +FBCODE,'$D(^FBAA(161.81,+FBCODE,0)) S DINUM=+FBCODE
41 . . D FILE^DICN
42 . . I Y<0 S FBERR(FBCODE)=""
43 ;
44 ; actually update the found Part Codes
45 I $D(FBFDA) D FILE^DIE("","FBFDA")
46 ;
47 Q
48 ;
49PART ;austin code^name for Participation Code(s)
50 ;;15^DOCTOR OF CHIROPRACTIC
51 ;;END
52 ;
53UPDSPEC ;Update Selected Specialty Code(s)
54 ;May also be directly called from FBXIP24
55 N FBCODE,FBDA,FBFDA,FBI,FBNAME,FBX,X,Y
56 K FBERR
57 ;
58 ; update Specialty Code(s)
59 K FBFDA
60 ; loop thru Specialties
61 F FBI=1:1 S FBX=$P($T(SPEC+FBI),";;",2) Q:FBX="END" D
62 . S FBCODE=$P(FBX,U)
63 . S FBNAME=$P(FBX,U,2)
64 . Q:FBCODE=""
65 . ;
66 . ; locate Specialty Code in file
67 . S FBDA=$$FIND1^DIC(161.6,"","X",FBCODE,"C")
68 . ;
69 . ; if Spec Code found then check and if necessary add to update array
70 . I FBDA D
71 . . I $$GET1^DIQ(161.6,FBDA_",",.01)=FBNAME Q
72 . . S FBFDA(161.6,FBDA_",",.01)=FBNAME
73 . ;
74 . ; if Specialty Code not found then add it
75 . I 'FBDA D
76 . . N DA,DD,DIC,DINUM,DLAYGO,DO,X
77 . . S DIC="^FBAA(161.6,",DIC(0)="L",DLAYGO=161.6
78 . . S X=FBNAME Q:X=""
79 . . S DIC("DR")="1////^S X=FBCODE"
80 . . D FILE^DICN
81 . . I Y<0 S FBERR(FBCODE)=""
82 ;
83 ; actually update the found Specialty Codes
84 I $D(FBFDA) D FILE^DIE("","FBFDA")
85 ;
86 Q
87 ;
88SPEC ;;austin code^name for Specialty Code(s)
89 ;;53^CHIROPRACTIC
90 ;;END
91 ;
92 ;FBAAUVC
Note: See TracBrowser for help on using the repository browser.