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

XBHEDD3.m

Go to the documentation of this file.
  1. XBHEDD3 ;402,DJB,10/23/91,EDD - Individual Field Summary
  1. ;;2.6;IHS UTILITIES;;JUN 28, 1993
  1. ;;David Bolduc - Togus,ME
  1. N CNT,DATA,FILE,FNAM,FNUM,LEV,TEMP
  1. D INIT I FLAGP D HD
  1. F D GETFLD Q:'LEV!FLAGE
  1. I FLAGP,$D(^UTILITY($J,"INDIV")) D PRINT
  1. EX ;
  1. K DIC,^UTILITY($J,"INDIV") S FLAGQ=1 Q
  1. GETFLD ;Field lookup. Var LEV increments and decrements with Multiple layers.
  1. S DIC="^DD("_FILE(LEV)_"," D ^DIC I Y<0 S LEV=LEV-1 Q
  1. S FNUM=+Y,FNAM=$P(Y,U,2),TEMP=+$P(^DD(FILE(LEV),FNUM,0),U,2)
  1. I TEMP S LEV=LEV+1,FILE(LEV)=TEMP Q
  1. I 'FLAGP D ^XBHEDD4 Q
  1. S ^UTILITY($J,"INDIV",CNT)=FILE(LEV)_"^"_FNUM_"^"_FNAM,CNT=CNT+1
  1. Q
  1. PRINT ;
  1. W:IO'=IO(0) " Printing.." U IO D TXT^XBHEDD7
  1. S CNT="" F S CNT=$O(^UTILITY($J,"INDIV",CNT)) Q:CNT="" S DATA=^UTILITY($J,"INDIV",CNT),FILE(LEV)=$P(DATA,U),FNUM=$P(DATA,U,2),FNAM=$P(DATA,U,3) D ^XBHEDD4 Q:FLAGQ W !!,$E(ZLINE2,1,IOM),!!
  1. Q
  1. HD ;
  1. W @IOF,!,$E(ZLINE1,1,80),!?5,"Enter one at a time, as many fields as you wish to print. Fields will",!?5,"print in the order entered.",!,$E(ZLINE1,1,80),!
  1. Q
  1. INIT ;
  1. S (CNT,LEV)=1,FILE(LEV)=ZNUM K ^UTILITY($J,"INDIV")
  1. S DIC(0)="QEAM",DIC("W")="I $P(^DD(FILE(LEV),Y,0),U,2)>0 W "" -->Mult Fld"""
  1. Q