ABME8SVD ; IHS/ASDST/DMJ - 837 SVD Segment
;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
;Transaction Set Header
;
START ;START HERE
K ABMREC("SVD"),ABMR("SVD")
S ABME("RTYPE")="SVD"
D LOOP
K ABME,ABM
Q
LOOP ;LOOP HERE
F I=10:10:70 D
.D @I
.I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),ABME("RTYPE"),I)) D @(^(I))
.I $G(ABMREC("SVD"))'="" S ABMREC("SVD")=ABMREC("SVD")_"*"
.S ABMREC("SVD")=$G(ABMREC("SVD"))_ABMR("SVD",I)
Q
10 ;segment
S ABMR("SVD",10)="SVD"
Q
20 ;SVD01 - Identification Code
S ABMR("SVD",20)=""
Q
30 ;SVD02 - Monetary Amount
S ABMR("SVD",30)=""
Q
40 ;SVD03 - Composite Medical Procedure Identifier
S ABMR("SVD",40)=""
Q
50 ;SVD04 - Product/Service ID
S ABMR("SVD",50)=""
Q
60 ;SVD05 - Quantity
S ABMR("SVD",60)=""
Q
70 ;SVD06 - Assigned Number
S ABMR("SVD",70)=""
Q
ABME8SVD ; IHS/ASDST/DMJ - 837 SVD Segment
+1 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
+2 ;Transaction Set Header
+3 ;
START ;START HERE
+1 KILL ABMREC("SVD"),ABMR("SVD")
+2 SET ABME("RTYPE")="SVD"
+3 DO LOOP
+4 KILL ABME,ABM
+5 QUIT
LOOP ;LOOP HERE
+1 FOR I=10:10:70
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("SVD"))'=""
SET ABMREC("SVD")=ABMREC("SVD")_"*"
+5 SET ABMREC("SVD")=$GET(ABMREC("SVD"))_ABMR("SVD",I)
End DoDot:1
+6 QUIT
10 ;segment
+1 SET ABMR("SVD",10)="SVD"
+2 QUIT
20 ;SVD01 - Identification Code
+1 SET ABMR("SVD",20)=""
+2 QUIT
30 ;SVD02 - Monetary Amount
+1 SET ABMR("SVD",30)=""
+2 QUIT
40 ;SVD03 - Composite Medical Procedure Identifier
+1 SET ABMR("SVD",40)=""
+2 QUIT
50 ;SVD04 - Product/Service ID
+1 SET ABMR("SVD",50)=""
+2 QUIT
60 ;SVD05 - Quantity
+1 SET ABMR("SVD",60)=""
+2 QUIT
70 ;SVD06 - Assigned Number
+1 SET ABMR("SVD",70)=""
+2 QUIT