ABME8GE ; IHS/ASDST/DMJ - 837 GE Segment
;;2.6;IHS 3P BILLING SYSTEM;**8**;NOV 12, 2009
;Functional Group Trailer
;
START ;START HERE
K ABMREC("GE"),ABMR("GE")
S ABME("RTYPE")="GE"
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("GE"))'="" S ABMREC("GE")=ABMREC("GE")_"*"
.S ABMREC("GE")=$G(ABMREC("GE"))_ABMR("GE",I)
Q
10 ;segment
S ABMR("GE",10)="GE"
Q
20 ;GE01 - Number of Included Functional Groups
;S ABMR("GE",20)=1 ;abm*2.6*8
S ABMR("GE",20)=ABMER("LAST") ;abm*2.6*8
Q
30 ;GE02 - Interchange Contol Number
S ABMR("GE",30)=$$TCN^ABMERUTL(ABMPXMIT)
Q
ABME8GE ; IHS/ASDST/DMJ - 837 GE Segment
+1 ;;2.6;IHS 3P BILLING SYSTEM;**8**;NOV 12, 2009
+2 ;Functional Group Trailer
+3 ;
START ;START HERE
+1 KILL ABMREC("GE"),ABMR("GE")
+2 SET ABME("RTYPE")="GE"
+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("GE"))'=""
SET ABMREC("GE")=ABMREC("GE")_"*"
+5 SET ABMREC("GE")=$GET(ABMREC("GE"))_ABMR("GE",I)
End DoDot:1
+6 QUIT
10 ;segment
+1 SET ABMR("GE",10)="GE"
+2 QUIT
20 ;GE01 - Number of Included Functional Groups
+1 ;S ABMR("GE",20)=1 ;abm*2.6*8
+2 ;abm*2.6*8
SET ABMR("GE",20)=ABMER("LAST")
+3 QUIT
30 ;GE02 - Interchange Contol Number
+1 SET ABMR("GE",30)=$$TCN^ABMERUTL(ABMPXMIT)
+2 QUIT