ABME8SE ; IHS/ASDST/DMJ - 837 SE Segment
;;2.6;IHS 3P BILLING SYSTEM;**8**;NOV 12, 2009
;Transaction Set Header
;
START ;START HERE
K ABMREC("SE"),ABMR("SE")
S ABME("RTYPE")="SE"
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("SE"))'="" S ABMREC("SE")=ABMREC("SE")_"*"
.S ABMREC("SE")=$G(ABMREC("SE"))_ABMR("SE",I)
Q
10 ;segment
S ABMR("SE",10)="SE"
Q
20 ;SE01 - Number of Included Segments
S ABMR("SE",20)=ABMSTOT
Q
30 ;SE02 - Transaction Set Control Number
;S ABMR("SE",30)="0001" ;abm*2.6*8
S ABMR("SE",30)=$$FMT^ABMERUTL(ABMER("CNT"),"4NR") ;abm*2.6*8
Q
ABME8SE ; IHS/ASDST/DMJ - 837 SE Segment
+1 ;;2.6;IHS 3P BILLING SYSTEM;**8**;NOV 12, 2009
+2 ;Transaction Set Header
+3 ;
START ;START HERE
+1 KILL ABMREC("SE"),ABMR("SE")
+2 SET ABME("RTYPE")="SE"
+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("SE"))'=""
SET ABMREC("SE")=ABMREC("SE")_"*"
+5 SET ABMREC("SE")=$GET(ABMREC("SE"))_ABMR("SE",I)
End DoDot:1
+6 QUIT
10 ;segment
+1 SET ABMR("SE",10)="SE"
+2 QUIT
20 ;SE01 - Number of Included Segments
+1 SET ABMR("SE",20)=ABMSTOT
+2 QUIT
30 ;SE02 - Transaction Set Control Number
+1 ;S ABMR("SE",30)="0001" ;abm*2.6*8
+2 ;abm*2.6*8
SET ABMR("SE",30)=$$FMT^ABMERUTL(ABMER("CNT"),"4NR")
+3 QUIT