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

DINIT11C.m

Go to the documentation of this file.
DINIT11C ;SFISC/GFT - DCM-INITIALIZE FILE #1 ;3JUN2016
 ;;22.2;VA FileMan;**2**;Jan 05, 2016;Build 139
 ;;Per VA Directive 6402, this routine should not be modified.
 ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
 ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
 ;;Licensed under the terms of the Apache License, Version 2.0.
 ;GFT;**999,1004,1008,1013,1020,1043,1053,1055**
 ;
 F I=1:1:6 S D=$P("DD^RD^WR^DEL^LAYGO^AUDIT",U,I),^DD(1,30+I,0)=D_" ACCESS^C^^ ; ^S X=$S($D(^DIC(D0,0,"""_D_""")):^("""_D_"""),1:"""")"
 S ^DD(1,50,0)="LOOKUP PROGRAM^C^^ ; ^S X=$S($D(^DD(D0,0,""DIC"")):^(""DIC""),1:"""")"
 S ^DD(1,51,0)="VERSION^CJ8^^ ; ^S X=$P($G(^DD(D0,0,""VR"")),U)"
 S ^DD(1,51.1,0)="DISTRIBUTION PACKAGE^CJ30^^ ; ^S X=$G(^DD(D0,0,""VRPK""))"
 S ^DD(1,51.2,0)="PACKAGE REVISION DATA^CJ240^^ ; ^S X=$G(^DD(D0,0,""VRRV""))"
 ;S ^DD(1,53,0)="RESTRICT EDITING OF FILE^C^^ ; ^S X=$S($D(^DD(D0,0,""DI"")):$P(^(""DI""),U,2),1:"""")"
 S ^DD(1,54,0)="ARCHIVE FILE^C^^ ; ^S X=$S($D(^DD(D0,0,""DI"")):$P(^(""DI""),U),1:"""")"
 S ^DD(1,1815,0)="COMPILED X-REF ROUTINE^CJ9^^ ; ^S X=$G(^DD(D0,0,""DIK""))"
 S ^DD(1,1816,0)="OLD COMPILED X-REF ROUTINE^CJ8^^ ; ^S X=$G(^DD(D0,0,""DIKOLD""))"
 S ^DD(1,1819,0)="COMPILED CROSS-REFERENCES^CJ3^^ ; ^S X=$S($G(^DD(D0,0,""DIK""))]"""":""YES"",1:""NO"")"
 S ^DD(1,1819,21,0)="^^3^3^2930709^",^(1,0)="Computed field that indicates whether or not cross-references are",^DD(1,1819,21,2,0)="compiled.  This field can be seen when doing an INQUIRE to the FILE "
 S ^DD(1,1819,21,3,0)="file (file #1, sometimes referred to as the file of files.)"
 F I=1815,1816,1819 S ^DD(1,I,9)="^",^(9.01)="",^(9.1)=$P(^(0),U,5,99)
BUILD S ^DD(1,21400,0)="BUILD^Cmp9.6^^ ; ^N D,DIF S DIF=D0 F D=0:0 S D=$O(^XPD(9.6,D)) Q:'D  I $D(^(D,4,DIF)) N D0 S D0=D,X=$P(^XPD(9.6,D,0),U) X DICMX Q:'$D(D)",^(9)=U
 S ^DD(1,21400,21,0)="^^3^3^3160119^"
 S ^DD(1,21400,21,1,0)="The Build File (#9.6) is searched for Builds containing the File.  "
 S ^DD(1,21400,21,2,0)="A list of the identified Builds is created for display.  "
 S ^DD(1,21400,21,3,0)="Multiple Builds will be shown if appropriate."
 S $P(^DIC(0),U,1,2)="FILE^1",^DIC(1,0)="FILE^1",^(0,"GL")="^DIC(" D A
 S ^DIC(1,"%D",0)="^^2^2^2940908^"
 S ^DIC(1,"%D",1,0)="This file stores the descriptive information for all files in the FileMan"
 S ^DIC(1,"%D",2,0)="managed database."
 S ^DD(1,.001,0)="NUMBER^N^^ ^K:X<2!$D(^DD(X)) X I $D(X),$D(^VA(200,DUZ,1))#2,$P(^(1),U)]"""" I X<$P(^(1),""-"")!(X>$P($P(^(1),U),""-"",2)) K X"
 S ^(4)="W !?5,""Enter an unused number"" I $D(^VA(200,DUZ,1)),$P(^(1),U)]"""" W "" within the range, "",$P(^(1),U)"
 ;
EGP K ^DD(1,"GL",1.008),^DD(1.008,"B") S ^DD(1,1.008,0)="TRANSLATION^1.008^^ALANG;0" ;NEXT 31 LINES BUILD DD DEFINITIONS OF FILE, FIELD AND HELP TRANSLATIONS INTO FOREIGN LANGUAGES
 S ^DD(1,1,008,21,0)="^^1^1^3151205^"
 S ^DD(1,1.008,21,1,0)="This multiple contains the renderings of the File's NAME in various languages."
 S ^DD(1,1.008,23,0)="^^3^3^3160119"
 S ^DD(1,1.008,23,1,0)="Translations are entered using calls to the DIALOGZ routine.  "
 S ^DD(1,1.008,23,2,0)="Only Languages with a TYPE=Living can be used for Translations."
 S ^DD(1.008,0)="TRANSLATION^^"
 S ^DD(1.008,0,"UP")=1
 S ^DD(1.008,.001,0)="LANGUAGE^P.85^DI(.85,^ ^Q"
 S ^DD(1.008,.001,3)="Enter a language for the translation."
 S ^DD(1.008,.001,21,0)="^^1^1^3151205^"
 S ^DD(1.008,.001,21,1,0)="The language into which the File NAME is translated."
 S ^DD(1.008,.01,0)="TRANSLATION^F^^0;1^K:$L(X)>30 X"
 S ^DD(1.008,.01,1,0)="^.1^1^1"
 S ^DD(1.008,.01,1,1,0)="1^ALANG^MUMPS"
 S ^DD(1.008,.01,1,1,1)="S ^DIC(""ALANG""_DA,X,DA(1))="""""
 S ^DD(1.008,.01,1,1,2)="K ^DIC(""ALANG""_DA,X,DA(1))"
 S ^DD(1.008,.01,3)="Enter the translation, 1-30 characters."
 S ^DD(1.008,.01,21,0)="^^1^1^3151205^"
 S ^DD(1.008,.01,21,1,0)="The translation of the File's NAME into another language."
DD S ^DD(0,1.008,0)="TRANSLATION^.008^^.008;0"
 S ^DD(.008,0)="TRANSLATION^^"
 S ^DD(.008,0,"UP")=0
 S ^DD(.008,.001,0)="LANGUAGE^P.85^DI(.85,^ ^Q"
 S ^DD(.008,.01,0)="TRANSLATION^F^^0;1^K:$L(X)>30 X"
HELP S ^DD(0,1.009,0)="HELP TRANSLATION^.009^^.009;0"
 S ^DD(.009,0)="TRANSLATION^^"
 S ^DD(.009,0,"UP")=0
 S ^DD(.009,.001,0)="LANGUAGE^P.85^DI(.85,^ ^Q"
 S ^DD(.009,.01,0)="HELP MESSAGE^F^^0;1^K:$L(X)>240 X"
SET S ^DD(0,1.007,0)="SET TRANSLATION^.007^^.007;0"
 S ^DD(.007,0)="TRANSLATION^^"
 S ^DD(.007,0,"UP")=0
 S ^DD(.007,.001,0)="LANGUAGE^P.85^DI(.85,^ ^Q"
 S ^DD(.007,.01,0)="SET VALUES^F^^0;1^K:$L(X)>240 X"
 ;
 F I=.1,0 D XX,XX
DIK F I=.001,.007,.008,.009,.1,.12,.15,.101,.10101,.10201,.3,1,1.005,1.01,1.008 I $D(^DD(I)) D XX
 ;
 Q
 ;
XX S DA(1)=I,DIK="^DD("_I_","
X W ".." D IXALL^DIK
 Q
 ;
A S (^("RD"),^("LAYGO"),^("WR"),^("DD"))=U Q
A1 S (^("DEL"),^("LAYGO"),^("WR"),^("DD"))=U Q
 ;