ABME8ST ; IHS/ASDST/DMJ - 837 ST Segment (Transaction Set Header) ;
;;2.6;IHS 3P BILLING SYSTEM;**8**;NOV 12, 2009
;Original;DMJ;07/08/96 4:53 PM Created routine
;
START ;START HERE
K ABMREC("ST"),ABMR("ST")
S ABMSTOT=1
S ABME("RTYPE")="ST"
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("ST"))'="" S ABMREC("ST")=ABMREC("ST")_"*"
.S ABMREC("ST")=$G(ABMREC("ST"))_ABMR("ST",I)
Q
10 ;segment
S ABMR("ST",10)="ST"
Q
20 ;ST01 - Transaction Set Identifier Code
S ABMR("ST",20)=837
Q
30 ;ST02 - Transaction Set Control Number
;S ABMR("ST",30)="0001" ;abm*2.6*8
S ABMR("ST",30)=$$FMT^ABMERUTL(ABMER("CNT"),"4NR") ;abm*2.6*8
Q
ABME8ST ; IHS/ASDST/DMJ - 837 ST Segment (Transaction Set Header) ;
+1 ;;2.6;IHS 3P BILLING SYSTEM;**8**;NOV 12, 2009
+2 ;Original;DMJ;07/08/96 4:53 PM Created routine
+3 ;
START ;START HERE
+1 KILL ABMREC("ST"),ABMR("ST")
+2 SET ABMSTOT=1
+3 SET ABME("RTYPE")="ST"
+4 DO LOOP
+5 KILL ABME,ABM
+6 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("ST"))'=""
SET ABMREC("ST")=ABMREC("ST")_"*"
+5 SET ABMREC("ST")=$GET(ABMREC("ST"))_ABMR("ST",I)
End DoDot:1
+6 QUIT
10 ;segment
+1 SET ABMR("ST",10)="ST"
+2 QUIT
20 ;ST01 - Transaction Set Identifier Code
+1 SET ABMR("ST",20)=837
+2 QUIT
30 ;ST02 - Transaction Set Control Number
+1 ;S ABMR("ST",30)="0001" ;abm*2.6*8
+2 ;abm*2.6*8
SET ABMR("ST",30)=$$FMT^ABMERUTL(ABMER("CNT"),"4NR")
+3 QUIT