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

DINIT2AA.m

Go to the documentation of this file.
  1. DINIT2AA ;SFISC/MKO-DATA FOR KEY AND INDEX FILES ;10:50 AM 30 Mar 1999
  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. F I=1:2 S X=$T(ENTRY+I) G:X="" ^DINIT2AB S Y=$E($T(ENTRY+I+1),5,999),X=$E(X,4,999),@X=Y
  1. Q
  1. ENTRY ;
  1. ;;^DD("IX",.001,0)
  1. ;;=0^ADEL^Delete Keys and Indexes associated with a deleted field.^MU^^F^R^I^0^^^^^A
  1. ;;^DD("IX",.001,1)
  1. ;;=Q
  1. ;;^DD("IX",.001,2)
  1. ;;=D:'$D(DICATTED)&'$D(DIU) DELXRF^DICATT4(DA(1),DA)
  1. ;;^DD("IX",.1101,0)
  1. ;;=.11^BB^The uniqueness index for the primary key of the Index file^R^^R^IR^I^.11^^^^^LS
  1. ;;^DD("IX",.1101,.1,0)
  1. ;;=^^3^3^2980611^
  1. ;;^DD("IX",.1101,.1,1,0)
  1. ;;=The BB index, on the key of the Index file, lets FileMan test potential
  1. ;;^DD("IX",.1101,.1,2,0)
  1. ;;=key values for uniqueness. It is a regular compound index with two fields,
  1. ;;^DD("IX",.1101,.1,3,0)
  1. ;;=the .01 (File) and .02 (Index Name).
  1. ;;^DD("IX",.1101,1)
  1. ;;=S ^DD("IX","BB",X(1),X(2),DA)=""
  1. ;;^DD("IX",.1101,2)
  1. ;;=K ^DD("IX","BB",X(1),X(2),DA)
  1. ;;^DD("IX",.1101,2.5)
  1. ;;=K ^DD("IX","BB")
  1. ;;^DD("IX",.1101,11.1,0)
  1. ;;=^.114^2^2
  1. ;;^DD("IX",.1101,11.1,1,0)
  1. ;;=1^F^.11^.01^^1
  1. ;;^DD("IX",.1101,11.1,2,0)
  1. ;;=2^F^.11^.02^^2
  1. ;;^DD("IX",.1102,0)
  1. ;;=.11^IX^Allows user to look up Indexes by Name.^R^^F^IR^I^.11^^^^^LS
  1. ;;^DD("IX",.1102,.1,0)
  1. ;;=^^2^2^2990303^
  1. ;;^DD("IX",.1102,.1,1,0)
  1. ;;=This 'Regular' index on the Name field (#.02) allows users to select an
  1. ;;^DD("IX",.1102,.1,2,0)
  1. ;;=index by its name.
  1. ;;^DD("IX",.1102,1)
  1. ;;=S ^DD("IX","IX",$E(X,1,30),DA)=""
  1. ;;^DD("IX",.1102,2)
  1. ;;=K ^DD("IX","IX",$E(X,1,30),DA)
  1. ;;^DD("IX",.1102,2.5)
  1. ;;=K ^DD("IX","IX")
  1. ;;^DD("IX",.1102,11.1,0)
  1. ;;=^.114IA^1^1
  1. ;;^DD("IX",.1102,11.1,1,0)
  1. ;;=1^F^.11^.02^30^1^F
  1. ;;^DD("IX",.11401,0)
  1. ;;=.114^BB^The uniqueness index of the Cross-Reference Values multiple of the Index file^R^^F^IR^I^.114^^^^^LS
  1. ;;^DD("IX",.11401,1)
  1. ;;=S ^DD("IX",DA(1),11.1,"BB",X,DA)=""
  1. ;;^DD("IX",.11401,2)
  1. ;;=K ^DD("IX",DA(1),11.1,"BB",X,DA)
  1. ;;^DD("IX",.11401,2.5)
  1. ;;=K ^DD("IX",DA(1),11.1,"BB")
  1. ;;^DD("IX",.11401,11.1,0)
  1. ;;=^.114IA^1^1
  1. ;;^DD("IX",.11401,11.1,1,0)
  1. ;;=1^F^.114^.01^^1
  1. ;;^DD("IX",.11402,0)
  1. ;;=.114^AC^Lets FileMan find cross reference values by subscript^R^^F^IR^I^.114^^^^^S
  1. ;;^DD("IX",.11402,1)
  1. ;;=S ^DD("IX",DA(1),11.1,"AC",X,DA)=""
  1. ;;^DD("IX",.11402,2)
  1. ;;=K ^DD("IX",DA(1),11.1,"AC",X,DA)
  1. ;;^DD("IX",.11402,2.5)
  1. ;;=K ^DD("IX",DA(1),11.1,"AC")
  1. ;;^DD("IX",.11402,11.1,0)
  1. ;;=^.114IA^1^1
  1. ;;^DD("IX",.11402,11.1,1,0)
  1. ;;=1^F^.114^.5^^1^F
  1. ;;^DD("IX",.11403,0)
  1. ;;=.11^F^Lets FileMan find the indexes affected when a field changes^R^^R^IR^W^.114^^^^^LS
  1. ;;^DD("IX",.11403,.1,0)
  1. ;;=^^6^6^2970303^^
  1. ;;^DD("IX",.11403,.1,1,0)
  1. ;;=The F index, is a whole file compound cross-reference on two fields in the
  1. ;;^DD("IX",.11403,.1,2,0)
  1. ;;=Cross-Reference Values multiple: File (#2) and Field (#3). It lets FileMan
  1. ;;^DD("IX",.11403,.1,3,0)
  1. ;;=identify the indexes that might be affected when a field value changes.
  1. ;;^DD("IX",.11403,.1,4,0)
  1. ;;=The checking of this index is an essential step during field level
  1. ;;^DD("IX",.11403,.1,5,0)
  1. ;;=transactions in building the list of record level cross-references that
  1. ;;^DD("IX",.11403,.1,6,0)
  1. ;;=must be fired after user-driven changes to the record are finished.
  1. ;;^DD("IX",.11403,1)
  1. ;;=S ^DD("IX","F",X(1),X(2),DA(1),DA)=""
  1. ;;^DD("IX",.11403,2)
  1. ;;=K ^DD("IX","F",X(1),X(2),DA(1),DA)
  1. ;;^DD("IX",.11403,2.5)
  1. ;;=K ^DD("IX","F")
  1. ;;^DD("IX",.11403,11.1,0)
  1. ;;=^.114^2^2
  1. ;;^DD("IX",.11403,11.1,1,0)
  1. ;;=1^F^.114^2^^1
  1. ;;^DD("IX",.11403,11.1,2,0)
  1. ;;=2^F^.114^3^^2
  1. ;;^DD("IX",.3101,0)
  1. ;;=.31^BB^The uniqueness index for the Key file^R^^R^IR^I^.31^^^^^LS
  1. ;;^DD("IX",.3101,.1,0)
  1. ;;=^^3^3^2970314^^^^
  1. ;;^DD("IX",.3101,.1,1,0)
  1. ;;=The BB index, the uniqueness index for the Key file's key, lets FileMan
  1. ;;^DD("IX",.3101,.1,2,0)
  1. ;;=test potential key values for uniqueness. It is a regular compound index
  1. ;;^DD("IX",.3101,.1,3,0)
  1. ;;=with two fields, the .01 (File) and .02 (Key Name).
  1. ;;^DD("IX",.3101,1)
  1. ;;=S ^DD("KEY","BB",X(1),X(2),DA)=""
  1. ;;^DD("IX",.3101,2)
  1. ;;=K ^DD("KEY","BB",X(1),X(2),DA)
  1. ;;^DD("IX",.3101,2.5)
  1. ;;=K ^DD("KEY","BB")
  1. ;;^DD("IX",.3101,11.1,0)
  1. ;;=^.114^2^2
  1. ;;^DD("IX",.3101,11.1,1,0)
  1. ;;=1^F^.31^.01^^1
  1. ;;^DD("IX",.3101,11.1,2,0)
  1. ;;=2^F^.31^.02^^2
  1. ;;^DD("IX",.3102,0)
  1. ;;=.31^AP^Lets FileMan determine the primary key of a file^R^^R^IR^I^.31^^^^^S
  1. ;;^DD("IX",.3102,1)
  1. ;;=S ^DD("KEY","AP",X(1),X(2),DA)=""
  1. ;;^DD("IX",.3102,1.4)
  1. ;;=S X=X(2)="P"
  1. ;;^DD("IX",.3102,2)
  1. ;;=K ^DD("KEY","AP",X(1),X(2),DA)
  1. ;;^DD("IX",.3102,2.4)
  1. ;;=S X=X(2)="P"
  1. ;;^DD("IX",.3102,2.5)
  1. ;;=K ^DD("KEY","AP")
  1. ;;^DD("IX",.3102,11.1,0)
  1. ;;=^.114I^2^2
  1. ;;^DD("IX",.3102,11.1,1,0)
  1. ;;=1^F^.31^.01^^1
  1. ;;^DD("IX",.3102,11.1,2,0)
  1. ;;=2^F^.31^1^^2
  1. ;;^DD("IX",.3103,0)
  1. ;;=.31^AU^Lets FileMan determine whether an index is a uniqueness index for a key^R^^F^IR^I^.31^^^^^S
  1. ;;^DD("IX",.3103,1)
  1. ;;=S ^DD("KEY","AU",X,DA)=""
  1. ;;^DD("IX",.3103,2)
  1. ;;=K ^DD("KEY","AU",X,DA)
  1. ;;^DD("IX",.3103,2.5)
  1. ;;=K ^DD("KEY","AU")
  1. ;;^DD("IX",.3103,11.1,0)
  1. ;;=^.114IA^1^1
  1. ;;^DD("IX",.3103,11.1,1,0)
  1. ;;=1^F^.31^3^^1^F
  1. ;;^DD("IX",.31201,0)
  1. ;;=.312^BB^The uniqueness index for Field multiple of the Key file.^R^^R^IR^I^.312^^^^^LS
  1. ;;^DD("IX",.31201,.1,0)
  1. ;;=^^3^3^2970203^^
  1. ;;^DD("IX",.31201,.1,1,0)
  1. ;;=The BB index, on the key of the Field multiple of the Key file, lets
  1. ;;^DD("IX",.31201,.1,2,0)
  1. ;;=FileMan test potential key values for uniqueness. It is a regular compound
  1. ;;^DD("IX",.31201,.1,3,0)
  1. ;;=index with two fields, the .01 (Field) and .02 (File).
  1. ;;^DD("IX",.31201,1)
  1. ;;=S ^DD("KEY",DA(1),2,"BB",X(1),X(2),DA)=""
  1. ;;^DD("IX",.31201,2)
  1. ;;=K ^DD("KEY",DA(1),2,"BB",X(1),X(2),DA)
  1. ;;^DD("IX",.31201,2.5)
  1. ;;=K ^DD("KEY",DA(1),2,"BB")
  1. ;;^DD("IX",.31201,11.1,0)
  1. ;;=^.114^2^2
  1. ;;^DD("IX",.31201,11.1,1,0)
  1. ;;=1^F^.312^.01^^1
  1. ;;^DD("IX",.31201,11.1,2,0)
  1. ;;=2^F^.312^.02^^2
  1. ;;^DD("IX",.31202,0)
  1. ;;=.31^F^Lets FileMan find the Keys that include each field^R^^R^IR^W^.312^^^^^LS
  1. ;;^DD("IX",.31202,.1,0)
  1. ;;=^^4^4^2980911^
  1. ;;^DD("IX",.31202,.1,1,0)
  1. ;;=The F index, a whole file compound cross-reference on the key of the
  1. ;;^DD("IX",.31202,.1,2,0)
  1. ;;=Fields multiple of the Key file, lets FileMan determine the keys a field
  1. ;;^DD("IX",.31202,.1,3,0)
  1. ;;=is part of. This is essential for identifying the key value uniqueness
  1. ;;^DD("IX",.31202,.1,4,0)
  1. ;;=tests that must be done when a field value changes.
  1. ;;^DD("IX",.31202,1)
  1. ;;=S ^DD("KEY","F",X(1),X(2),DA(1),DA)=""
  1. ;;^DD("IX",.31202,2)
  1. ;;=K ^DD("KEY","F",X(1),X(2),DA(1),DA)
  1. ;;^DD("IX",.31202,2.5)
  1. ;;=K ^DD("KEY","F")
  1. ;;^DD("IX",.31202,11.1,0)
  1. ;;=^.114^2^2
  1. ;;^DD("IX",.31202,11.1,1,0)
  1. ;;=1^F^.312^.02^^1
  1. ;;^DD("IX",.31202,11.1,2,0)
  1. ;;=2^F^.312^.01^^2