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

ABMER46.m

Go to the documentation of this file.
ABMER46 ; IHS/ASDST/DMJ - UB92 EMC RECORD 46 (ENVOY/NEIC ADDITIONAL PROVIDER INFO) ;   
 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
 ;
START ;START HERE
 K ABMR(46),ABMREC(46)
 S ABME("RTYPE")=46
 D SET^ABMERUTL
 D LOOP
 D S90^ABMERUTL
 K ABM
 Q
 ;
LOOP ;LOOP HERE
 F I=10:10:230 D
 .D @I
 .I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),46,I)) D @(^(I))
 .I '$G(ABMP("NOFMT")) S ABMREC(46)=$G(ABMREC(46))_ABMR(46,I)
 Q
10 ;1-2, Record Type 46
 S ABMR(46,10)=46
 Q
20 ;3-4, Filler
 S ABMR(46,20)=""
 S ABMR(46,20)=$$FMT^ABMERUTL(ABMR(46,20),2)
 Q
30 ;5-24, Patient Control Number
 S ABMR(46,30)=$$EX^ABMER20(30,ABMP("BDFN"))
 S ABMR(46,30)=$$FMT^ABMERUTL(ABMR(46,30),20)
 Q
40 ;25-25, Filler
 S ABMR(46,40)=""
 S ABMR(46,40)=$$FMT^ABMERUTL(ABMR(46,40),1)
 Q
50 ;26-26, Claim Type Indicator
 S ABMR(46,50)=""
 S ABMR(46,50)=$$FMT^ABMERUTL(ABMR(46,50),1)
 Q
60 ;27-35, Filler
 S ABMR(46,60)=""
 S ABMR(46,60)=$$FMT^ABMERUTL(ABMR(46,60),9)
 Q
 ;rendering provider
70 ;36-36, Name Qualifier
 S ABMR(46,70)=""
 S ABMR(46,70)=$$FMT^ABMERUTL(ABMR(46,70),1)
 Q
80 ;37-56, Organization or Last Name
 S ABMR(46,80)=$P(^DIC(4,DUZ(2),0),U)
 I $$ENVOY^ABMEF16 D
 .S ABMR(46,80)=$$REPLNOT^ABMER10(ABMR(46,80),",. ")
 S ABMR(46,80)=$$FMT^ABMERUTL(ABMR(46,80),20)
 Q
90 ;57-66, First Name
 S ABMR(46,90)=""
 S ABMR(46,90)=$$FMT^ABMERUTL(ABMR(46,90),10)
 Q
100 ;67-67, Middle Initial
 S ABMR(46,100)=""
 S ABMR(46,100)=$$FMT^ABMERUTL(ABMR(46,100),1)
 Q
110 ;68-69, Filler
 S ABMR(46,110)=""
 S ABMR(46,110)=$$FMT^ABMERUTL(ABMR(46,110),2)
 Q
120 ;70-84, Network ID
 S ABMR(46,120)=""
 S ABMR(46,120)=$$FMT^ABMERUTL(ABMR(46,120),15)
 Q
130 ;85-102, Address
 S ABMR(46,130)=$P($G(^AUTTLOC(DUZ(2),0)),"^",12)
 S ABMR(46,130)=$$FMT^ABMERUTL(ABMR(46,130),18)
 Q
140 ;103-117, City
 S ABMR(46,140)=$P($G(^AUTTLOC(DUZ(2),0)),"^",13)
 S ABMR(46,140)=$$FMT^ABMERUTL(ABMR(46,140),15)
 Q
150 ;118-119, State
 S ABMR(46,150)=$P($G(^AUTTLOC(DUZ(2),0)),"^",14)
 S ABMR(46,150)=$P($G(^DIC(5,+ABMR(46,150),0)),"^",2)
 S ABMR(46,150)=$$FMT^ABMERUTL(ABMR(46,150),2)
 Q
160 ;120-128, Zip Code
 S ABMR(46,160)=$P($G(^AUTTLOC(DUZ(2),0)),"^",15)
 S ABMR(46,160)=$$FMT^ABMERUTL(ABMR(46,160),9)
 Q
 ;referring provider
170 ;129-143, Network ID
 S ABMR(46,170)=""
 S ABMR(46,170)=$$FMT^ABMERUTL(ABMR(46,170),15)
 Q
180 ;144-153, Telephone Number
 S ABMR(46,180)=""
 S ABMR(46,180)=$$FMT^ABMERUTL(ABMR(46,180),"10NR")
 Q
190 ;154-168, Referral Number
 S ABMR(46,190)=""
 S ABMR(46,190)=$$FMT^ABMERUTL(ABMR(46,190),15)
 Q
200 ;169-183, Authorization Number
 S ABMR(46,200)=""
 S ABMR(46,200)=$$FMT^ABMERUTL(ABMR(46,200),15)
 Q
210 ;184-185, State     
 S ABMR(46,210)=""
 S ABMR(46,210)=$$FMT^ABMERUTL(ABMR(46,210),2)
 Q
220 ;186-188, HMO Code
 S ABMR(46,220)=""
 S ABMR(46,220)=$$FMT^ABMERUTL(ABMR(46,220),3)
 Q
230 ;189-192 Filler
 S ABMR(46,230)=""
 S ABMR(46,230)=$$FMT^ABMERUTL(ABMR(46,230),4)
 Q