ABME8CR7 ; IHS/ASDST/DMJ - 837 CR7 Segment
;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
;Transaction Set Header
;
START ;START HERE
K ABMREC("CR7"),ABMR("CR7")
S ABME("RTYPE")="CR7"
D LOOP
K ABME,ABM
Q
LOOP ;LOOP HERE
F I=10:10:40 D
.D @I
.I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),ABME("RTYPE"),I)) D @(^(I))
.I $G(ABMREC("CR7"))'="" S ABMREC("CR7")=ABMREC("CR7")_"*"
.S ABMREC("CR7")=$G(ABMREC("CR7"))_ABMR("CR7",I)
Q
10 ;segment
S ABMR("CR7",10)="CR7"
Q
20 ;CR701 - Discipline Type Code
S ABMR("CR7",20)=""
Q
30 ;CR702 - Number
S ABMR("CR7",30)=""
Q
40 ;CR703 - Number
S ABMR("CR7",40)=""
Q
ABME8CR7 ; IHS/ASDST/DMJ - 837 CR7 Segment
+1 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
+2 ;Transaction Set Header
+3 ;
START ;START HERE
+1 KILL ABMREC("CR7"),ABMR("CR7")
+2 SET ABME("RTYPE")="CR7"
+3 DO LOOP
+4 KILL ABME,ABM
+5 QUIT
LOOP ;LOOP HERE
+1 FOR I=10:10:40
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("CR7"))'=""
SET ABMREC("CR7")=ABMREC("CR7")_"*"
+5 SET ABMREC("CR7")=$GET(ABMREC("CR7"))_ABMR("CR7",I)
End DoDot:1
+6 QUIT
10 ;segment
+1 SET ABMR("CR7",10)="CR7"
+2 QUIT
20 ;CR701 - Discipline Type Code
+1 SET ABMR("CR7",20)=""
+2 QUIT
30 ;CR702 - Number
+1 SET ABMR("CR7",30)=""
+2 QUIT
40 ;CR703 - Number
+1 SET ABMR("CR7",40)=""
+2 QUIT