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

DICATTD5.m

Go to the documentation of this file.
  1. DICATTD5 ;GFT/GFT - SUBDICTIONARY NUMBER FOR MULTIPLE FIELDS IN SCREENMAN ;06:12 PM 23 Nov 1998
  1. ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
  1. ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
  1. ;;Licensed under the terms of the Apache License, Version 2.0.
  1. ;
  1. SUBDIC ;
  1. N %,DE
  1. S %=$P(DICATTA,"."),DE=%_"."_+$P(DICATTA,".",2)_DICATTF
  1. I +DE'=DE!$D(^DD(DE)) F DE=DICATTA+.01:.01:%+.7,%+.7:.001:%+.9,%+.9:.0001 Q:DE>DICATTA&'$D(^DD(DE))
  1. S Y=DE Q
  1. ;
  1. CHKDIC ;
  1. N %
  1. S %=$P(DICATTA,".")
  1. I X<DICATTA K X Q
  1. I %+1'>X!$D(^DD(X)) K X Q
  1. Q