ABMER99 ; IHS/ASDST/DMJ - UB92 EMC RECORD 99 (Processor File Control Data) ;
;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
;Original;DMJ;
;
; ABM*2.4*9 IHS/FCS/DRS 09/21/01 ; Part 12c 09/17/01 IHS/FCS/DRS
; Use same Receiver ID as what is sent in Record Type 01 for Envoy
START ;START HERE
K ABMREC(99)
S ABME("RTYPE")=99
D SET^ABMERUTL,LOOP
K ABM,ABME,ABMRT
Q
LOOP ;LOOP HERE
F I=10:10:110 D
.D @I
.I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),99,I)) D @(^(I))
.I '$G(ABMP("NOFMT")) S ABMREC(99)=$G(ABMREC(99))_ABMR(99,I)
Q
10 ;Record type
S ABMR(99,10)=99
Q
20 ;Submitter EIN (SOURCE: FILE=, FIELD=)
S ABMR(99,20)=$$FMT^ABMERUTL($G(ABMRT(99,20)),"10NR")
Q
30 ;Receiver Identification
I $$ENVOY^ABMEF16 S ABMR(99,30)=$$ENVY^ABMERUTL(ABMP("INS"),ABMP("VTYP"))
E S ABMR(99,30)=$P($G(^AUTNINS(ABMP("INS"),0)),"^",8)
S ABMR(99,30)=$$FMT^ABMERUTL(ABMR(99,30),"5NR")
Q
40 ;Receiver Sub-Identification
S ABMR(99,40)=""
S ABMR(99,40)=$$FMT^ABMERUTL(ABMR(99,40),4)
Q
50 ;Number of Batches Billed This Tape (Transmission File)
S ABMR(99,50)=ABMEF("BATCH#")
S ABMR(99,50)=$$FMT^ABMERUTL(ABMR(99,50),"4NR")
Q
60 ;Accommodations Total Charges For the File
S ABMR(99,60)=$$FMT^ABMERUTL(+$G(ABMRT(99,60)),"13NRJ2")
Q
70 ;Accommodations Non-Covered Charges For The File
S ABMR(99,70)=$$FMT^ABMERUTL(+$G(ABMRT(99,70)),"13NRJ2")
Q
80 ;Ancillary Total Charges for the File
S ABMR(99,80)=$$FMT^ABMERUTL(+$G(ABMRT(99,80)),"13NRJ2")
Q
90 ;Ancillary Non-Covered Charges for the File
S ABMR(99,90)=$$FMT^ABMERUTL(+$G(ABMRT(99,90)),"13NRJ2")
Q
100 ;Filler (National Use)
S ABMR(99,100)=""
S ABMR(99,100)=$$FMT^ABMERUTL(ABMR(99,100),58)
Q
110 ;Filler (Local Use)
S ABMR(99,110)=""
S ABMR(99,110)=$$FMT^ABMERUTL(ABMR(99,110),57)
Q
ABMER99 ; IHS/ASDST/DMJ - UB92 EMC RECORD 99 (Processor File Control Data) ;
+1 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
+2 ;Original;DMJ;
+3 ;
+4 ; ABM*2.4*9 IHS/FCS/DRS 09/21/01 ; Part 12c 09/17/01 IHS/FCS/DRS
+5 ; Use same Receiver ID as what is sent in Record Type 01 for Envoy
START ;START HERE
+1 KILL ABMREC(99)
+2 SET ABME("RTYPE")=99
+3 DO SET^ABMERUTL
DO LOOP
+4 KILL ABM,ABME,ABMRT
+5 QUIT
LOOP ;LOOP HERE
+1 FOR I=10:10:110
Begin DoDot:1
+2 DO @I
+3 IF $DATA(^ABMEXLM("AA",+$GET(ABMP("INS")),+$GET(ABMP("EXP")),99,I))
DO @(^(I))
+4 IF '$GET(ABMP("NOFMT"))
SET ABMREC(99)=$GET(ABMREC(99))_ABMR(99,I)
End DoDot:1
+5 QUIT
10 ;Record type
+1 SET ABMR(99,10)=99
+2 QUIT
20 ;Submitter EIN (SOURCE: FILE=, FIELD=)
+1 SET ABMR(99,20)=$$FMT^ABMERUTL($GET(ABMRT(99,20)),"10NR")
+2 QUIT
30 ;Receiver Identification
+1 IF $$ENVOY^ABMEF16
SET ABMR(99,30)=$$ENVY^ABMERUTL(ABMP("INS"),ABMP("VTYP"))
+2 IF '$TEST
SET ABMR(99,30)=$PIECE($GET(^AUTNINS(ABMP("INS"),0)),"^",8)
+3 SET ABMR(99,30)=$$FMT^ABMERUTL(ABMR(99,30),"5NR")
+4 QUIT
40 ;Receiver Sub-Identification
+1 SET ABMR(99,40)=""
+2 SET ABMR(99,40)=$$FMT^ABMERUTL(ABMR(99,40),4)
+3 QUIT
50 ;Number of Batches Billed This Tape (Transmission File)
+1 SET ABMR(99,50)=ABMEF("BATCH#")
+2 SET ABMR(99,50)=$$FMT^ABMERUTL(ABMR(99,50),"4NR")
+3 QUIT
60 ;Accommodations Total Charges For the File
+1 SET ABMR(99,60)=$$FMT^ABMERUTL(+$GET(ABMRT(99,60)),"13NRJ2")
+2 QUIT
70 ;Accommodations Non-Covered Charges For The File
+1 SET ABMR(99,70)=$$FMT^ABMERUTL(+$GET(ABMRT(99,70)),"13NRJ2")
+2 QUIT
80 ;Ancillary Total Charges for the File
+1 SET ABMR(99,80)=$$FMT^ABMERUTL(+$GET(ABMRT(99,80)),"13NRJ2")
+2 QUIT
90 ;Ancillary Non-Covered Charges for the File
+1 SET ABMR(99,90)=$$FMT^ABMERUTL(+$GET(ABMRT(99,90)),"13NRJ2")
+2 QUIT
100 ;Filler (National Use)
+1 SET ABMR(99,100)=""
+2 SET ABMR(99,100)=$$FMT^ABMERUTL(ABMR(99,100),58)
+3 QUIT
110 ;Filler (Local Use)
+1 SET ABMR(99,110)=""
+2 SET ABMR(99,110)=$$FMT^ABMERUTL(ABMR(99,110),57)
+3 QUIT