ABME8IEA ; IHS/ASDST/DMJ - 837 IEA Segment
;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
;Interchange Control Header
;
START ;START HERE
K ABMREC("IEA"),ABMR("IEA")
S ABME("RTYPE")="IEA"
D LOOP
K ABME,ABM
Q
LOOP ;LOOP HERE
F I=10:10:30 D
.D @I
.I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),ABME("RTYPE"),I)) D @(^(I))
.I $G(ABMREC("IEA"))'="" S ABMREC("IEA")=ABMREC("IEA")_"*"
.S ABMREC("IEA")=$G(ABMREC("IEA"))_ABMR("IEA",I)
Q
10 ;segment
S ABMR("IEA",10)="IEA"
Q
20 ;IEA01 - Number of Included Functional Groups
S ABMR("IEA",20)=1
Q
30 ;IEA02 - Interchange Contol Number
S ABMR("IEA",30)=$$TCN^ABMERUTL(ABMPXMIT)
S ABMR("IEA",30)=$$FMT^ABMERUTL(ABMR("IEA",30),"9NR")
Q
ABME8IEA ; IHS/ASDST/DMJ - 837 IEA Segment
+1 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
+2 ;Interchange Control Header
+3 ;
START ;START HERE
+1 KILL ABMREC("IEA"),ABMR("IEA")
+2 SET ABME("RTYPE")="IEA"
+3 DO LOOP
+4 KILL ABME,ABM
+5 QUIT
LOOP ;LOOP HERE
+1 FOR I=10:10:30
Begin DoDot:1
+2 DO @I
+3 IF $DATA(^ABMEXLM("AA",+$GET(ABMP("INS")),+$GET(ABMP("EXP")),ABME("RTYPE"),I))
DO @(^(I))
+4 IF $GET(ABMREC("IEA"))'=""
SET ABMREC("IEA")=ABMREC("IEA")_"*"
+5 SET ABMREC("IEA")=$GET(ABMREC("IEA"))_ABMR("IEA",I)
End DoDot:1
+6 QUIT
10 ;segment
+1 SET ABMR("IEA",10)="IEA"
+2 QUIT
20 ;IEA01 - Number of Included Functional Groups
+1 SET ABMR("IEA",20)=1
+2 QUIT
30 ;IEA02 - Interchange Contol Number
+1 SET ABMR("IEA",30)=$$TCN^ABMERUTL(ABMPXMIT)
+2 SET ABMR("IEA",30)=$$FMT^ABMERUTL(ABMR("IEA",30),"9NR")
+3 QUIT