Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ABME5GE

ABME5GE.m

Go to the documentation of this file.
ABME5GE ; IHS/ASDST/DMJ - 837 GE Segment 
 ;;2.6;IHS Third Party Billing System;**6,8**;NOV 12, 2009
 ;Functional Group Trailer
 ;
START ;START HERE
 K ABMREC("GE"),ABMR("GE")
 K ABMSTCNT ;5010 837P
 S ABME("RTYPE")="GE"
 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("GE"))'="" S ABMREC("GE")=ABMREC("GE")_"*"
 .S ABMREC("GE")=$G(ABMREC("GE"))_ABMR("GE",I)
 Q
10 ;segment
 S ABMR("GE",10)="GE"
 Q
20 ;GE01 - Number of Included Functional Groups
 ;S ABMR("GE",20)=1  ;abm*2.6*8
 S ABMR("GE",20)=ABMER("LAST")  ;abm*2.6*8
 Q
30 ;GE02 - Interchange Contol Number
 S ABMR("GE",30)=$$TCN^ABMERUTL(ABMPXMIT)
 Q