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

ABME8K3.m

Go to the documentation of this file.
  1. ABME8K3 ; IHS/ASDST/DMJ - 837 K3 Segment
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;Transaction Set Header
  1. ;
  1. ; IHS/SD/SDR - v2.5 p13 - POA changes
  1. ;
  1. EP ;EP - START HERE
  1. K ABMREC("K3"),ABMR("K3")
  1. S ABME("RTYPE")="K3"
  1. D LOOP
  1. K ABME,ABM
  1. Q
  1. LOOP ;LOOP HERE
  1. F I=10:10:40 D
  1. .D @I
  1. .I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),ABME("RTYPE"),I)) D @(^(I))
  1. .I $G(ABMREC("K3"))'="" S ABMREC("K3")=ABMREC("K3")_"*"
  1. .S ABMREC("K3")=$G(ABMREC("K3"))_ABMR("K3",I)
  1. Q
  1. 10 ;segment
  1. S ABMR("K3",10)="K3"
  1. Q
  1. 20 ;K301 - Fixed Format Information
  1. S ABMR("K3",20)=""
  1. S ABMSTR=""
  1. S ABMPRI=0
  1. F S ABMPRI=$O(^ABMDBILL(DUZ(2),ABMP("BDFN"),17,"C",ABMPRI)) Q:+ABMPRI=0 D
  1. .S ABMMIEN=0
  1. .F S ABMMIEN=$O(^ABMDBILL(DUZ(2),ABMP("BDFN"),17,"C",ABMPRI,ABMMIEN)) Q:+ABMMIEN=0 D
  1. ..S ABMSTR=$G(ABMSTR)_$P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),17,ABMMIEN,0)),U,5)
  1. I $G(ABMSTR)'="" S ABMR("K3",20)="POA"_ABMSTR_"Z"
  1. Q
  1. 30 ;K302 - Record Format Code - not used
  1. S ABMR("K3",30)=""
  1. Q
  1. 40 ;K303 - Composite Unit of Measure - not used
  1. S ABMR("K3",40)=""
  1. Q