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

ABME8PWK.m

Go to the documentation of this file.
ABME8PWK ; IHS/ASDST/DMJ - 837 PWK Segment 
 ;;2.6;IHS Third Party Billing;**1,2**;NOV 12, 2009
 ;Transaction Set Header
 ; IHS/SD/SDR - abm*2.6*1 - HEAT6439 - Added code to actually get attachments
 ;
START ;START HERE
 K ABMREC("PWK"),ABMR("PWK")
 S ABME("RTYPE")="PWK"
 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("PWK"))'="" S ABMREC("PWK")=ABMREC("PWK")_"*"
 .S ABMREC("PWK")=$G(ABMREC("PWK"))_ABMR("PWK",I)
 Q
10 ;segment
 S ABMR("PWK",10)="PWK"
 Q
20 ;PWK01 - Report Type Code
 ;S ABMR("PWK",20)="EL"  ;abm*2.6*1 HEAT6439
 S ABMR("PWK",20)=$P($G(^ABMDCODE($P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),71,ABM71IEN,0)),U),0)),U)  ;abm*2.6*1 HEAT6439
 Q
30 ;PWK02 - Report Transmission Code
 S ABMR("PWK",30)=""
 S ABMR("PWK",30)=$P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),71,ABM71IEN,0)),U,2)  ;abm*2.6*1 HEAT6439
 Q
40 ;PWK03 - Report Copies Needed-not used
 S ABMR("PWK",40)=""
 Q
50 ;PWK04 - Entity Identifier Code-not used
 S ABMR("PWK",50)=""
 Q
60 ;PWK05 - Identification Code Qualifier
 S ABMR("PWK",60)=""
 ;S ABMR("PWK",60)="AC"  ;abm*2.6*1 HEAT6439  ;abm*2.6*2
 I $P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),71,ABM71IEN,0)),U,3)'="" S ABMR("PWK",60)="AC"  ;abm*2.6*2
 Q
70 ;PWK06 - Identification Code
 S ABMR("PWK",70)=""
 S ABMR("PWK",70)=$P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),71,ABM71IEN,0)),U,3)  ;abm*2.6*1 HEAT6439
 Q
80 ;PWK07 - Description
 S ABMR("PWK",80)=""
 Q
90 ;PWK08 - Actions Indicated-not used
 S ABMR("PWK",90)=""
 Q
100 ;PWK09 - Request Category Code-not used
 S ABMR("PWK",100)=""
 Q