ABME8MOA ; IHS/ASDST/DMJ - 837 MOA Segment
;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
;Transaction Set Header
;
START ;START HERE
K ABMREC("MOA"),ABMR("MOA")
S ABME("RTYPE")="MOA"
D LOOP
K ABME,ABM
Q
LOOP ;LOOP HERE
F I=10:10:100 D
.D @I
.I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),ABME("RTYPE"),I)) D @(^(I))
.I $G(ABMREC("MOA"))'="" S ABMREC("MOA")=ABMREC("MOA")_"*"
.S ABMREC("MOA")=$G(ABMREC("MOA"))_ABMR("MOA",I)
Q
10 ;segment
S ABMR("MOA",10)="MOA"
Q
20 ;MOA01 - Percent
S ABMR("MOA",20)=""
Q
30 ;MOA02 - Monetary Amount
S ABMR("MOA",30)=""
Q
40 ;MOA03 - Reference Identification
S ABMR("MOA",40)=""
Q
50 ;MOA04 - Reference Identification
S ABMR("MOA",50)=""
Q
60 ;MOA05 - Reference Identification
S ABMR("MOA",60)=""
Q
70 ;MOA06 - Reference Identification
S ABMR("MOA",70)=""
Q
80 ;MOA07 - Reference Identification
S ABMR("MOA",80)=""
Q
90 ;MOA08 - Monetary Amount
S ABMR("MOA",90)=""
Q
100 ;MOA09 - Monetary Amount
S ABMR("MOA",100)=""
Q
ABME8MOA ; IHS/ASDST/DMJ - 837 MOA Segment
+1 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
+2 ;Transaction Set Header
+3 ;
START ;START HERE
+1 KILL ABMREC("MOA"),ABMR("MOA")
+2 SET ABME("RTYPE")="MOA"
+3 DO LOOP
+4 KILL ABME,ABM
+5 QUIT
LOOP ;LOOP HERE
+1 FOR I=10:10:100
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("MOA"))'=""
SET ABMREC("MOA")=ABMREC("MOA")_"*"
+5 SET ABMREC("MOA")=$GET(ABMREC("MOA"))_ABMR("MOA",I)
End DoDot:1
+6 QUIT
10 ;segment
+1 SET ABMR("MOA",10)="MOA"
+2 QUIT
20 ;MOA01 - Percent
+1 SET ABMR("MOA",20)=""
+2 QUIT
30 ;MOA02 - Monetary Amount
+1 SET ABMR("MOA",30)=""
+2 QUIT
40 ;MOA03 - Reference Identification
+1 SET ABMR("MOA",40)=""
+2 QUIT
50 ;MOA04 - Reference Identification
+1 SET ABMR("MOA",50)=""
+2 QUIT
60 ;MOA05 - Reference Identification
+1 SET ABMR("MOA",60)=""
+2 QUIT
70 ;MOA06 - Reference Identification
+1 SET ABMR("MOA",70)=""
+2 QUIT
80 ;MOA07 - Reference Identification
+1 SET ABMR("MOA",80)=""
+2 QUIT
90 ;MOA08 - Monetary Amount
+1 SET ABMR("MOA",90)=""
+2 QUIT
100 ;MOA09 - Monetary Amount
+1 SET ABMR("MOA",100)=""
+2 QUIT