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

DINIT002.m

Go to the documentation of this file.
DINIT002 ;SFISC/TKW-DIALOG & LANGUAGE FILE INITS ;15JAN2016
 ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
 ;;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.
 ;
 F I=1:2 S X=$T(Q+I) Q:X=""  S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) S @X=Y
Q Q
 ;;^DD(.84,6,21,5,0)
 ;;=special flag into a global or local variable to notify the calling routine
 ;;^DD(.84,6,21,6,0)
 ;;=that some extra action needed to be taken.
 ;;^DD(.84,6,23,0)
 ;;=^^7^7^2941122^
 ;;^DD(.84,6,23,1,0)
 ;;=At the time of executing this code
 ;;^DD(.84,6,23,2,0)
 ;;= D0 = IEN for the entry in the DIALOG file
 ;;^DD(.84,6,23,3,0)
 ;;= DIPI(n) = (for sequential number n) parameters incorporated in the text.
 ;;^DD(.84,6,23,4,0)
 ;;= DIPE(n) = parameters output back to the user
 ;;^DD(.84,6,23,5,0)
 ;;= 
 ;;^DD(.84,6,23,6,0)
 ;;=All other variables used in this code should use your packages namespace,
 ;;^DD(.84,6,23,7,0)
 ;;=and should be NEWed.
 ;;^DD(.84,6,"DT")
 ;;=2940520
 ;;^DD(.84,7,0)
 ;;=TRANSLATION^.847PA^^4;0
 ;;^DD(.84,7,21,0)
 ;;=^^3^3^3160115^
 ;;^DD(.84,7,21,1,0)
 ;;=This multiple holds the translations of Dialog file entries.  
 ;;^DD(.84,7,21,2,0)
 ;;=The language into which the entry is translated 
 ;;^DD(.84,7,21,3,0)
 ;;=and the text of the translation are recorded.
 ;;^DD(.84,8,0)
 ;;=CALLED FROM ENTRY POINTS^.841A^^5;0
 ;;^DD(.84,8,21,0)
 ;;=^^3^3^3160115^
 ;;^DD(.84,8,21,1,0)
 ;;=This multiple is used for documentation only.  Entries are made 
 ;;^DD(.84,8,21,2,0)
 ;;=to this multiple ONLY for ERROR type text.  
 ;;^DD(.84,8,21,3,0)
 ;;=The routine and tag combinations that generate the error are identified.
 ;;^DD(.841,0)
 ;;=CALLED FROM ENTRY POINTS SUB-FIELD^^.05^2
 ;;^DD(.841,0,"DT")
 ;;=2940411
 ;;^DD(.841,0,"IX","B",.841,.01)
 ;;=
 ;;^DD(.841,0,"NM","CALLED FROM ENTRY POINTS")
 ;;=
 ;;^DD(.841,0,"UP")
 ;;=.84
 ;;^DD(.841,.01,0)
 ;;=ROUTINE NAME^MF^^0;1^K:$L(X)>8!($L(X)<1) X
 ;;^DD(.841,.01,1,0)
 ;;=^.1
 ;;^DD(.841,.01,1,1,0)
 ;;=.841^B
 ;;^DD(.841,.01,1,1,1)
 ;;=S ^DI(.84,DA(1),5,"B",$E(X,1,30),DA)=""
 ;;^DD(.841,.01,1,1,2)
 ;;=K ^DI(.84,DA(1),5,"B",$E(X,1,30),DA)
 ;;^DD(.841,.01,3)
 ;;=Answer must be 1-8 characters in length.
 ;;^DD(.841,.01,21,0)
 ;;=^^6^6^2940411^
 ;;^DD(.841,.01,21,1,0)
 ;;=This multiple is used for documentation only.  Entries are made to this
 ;;^DD(.841,.01,21,2,0)
 ;;=subfile ONLY for ERROR type text.  Enter the routine name of an entry
 ;;^DD(.841,.01,21,3,0)
 ;;=point that may generate this error message.  You only need to enter the
 ;;^DD(.841,.01,21,4,0)
 ;;=names of routines that directly generate the error through a call to
 ;;^DD(.841,.01,21,5,0)
 ;;=^DIALOG, and not when the error is generated by some other utility called
 ;;^DD(.841,.01,21,6,0)
 ;;=from your routine.
 ;;^DD(.841,.01,"DT")
 ;;=2940411
 ;;^DD(.841,.05,0)
 ;;=LINE TAG^F^^0;2^K:$L(X)>10!($L(X)<1) X
 ;;^DD(.841,.05,3)
 ;;=Answer must be 1-10 characters in length.
 ;;^DD(.841,.05,21,0)
 ;;=^^6^6^2940411^
 ;;^DD(.841,.05,21,1,0)
 ;;=This multiple is used for documentation only.  Entries are made to this
 ;;^DD(.841,.05,21,2,0)
 ;;=subfile ONLY for ERROR type text.  Enter the line tag of an entry point
 ;;^DD(.841,.05,21,3,0)
 ;;=that may generate this error message.  You only need to enter the names of
 ;;^DD(.841,.05,21,4,0)
 ;;=routines that directly generate the error through a call to ^DIALOG, and
 ;;^DD(.841,.05,21,5,0)
 ;;=not when the error is generated by some other utility called from your
 ;;^DD(.841,.05,21,6,0)
 ;;=routine.
 ;;^DD(.841,.05,"DT")
 ;;=2940411
 ;;^DD(.842,0)
 ;;=DESCRIPTION SUB-FIELD^^.01^1
 ;;^DD(.842,0,"DT")
 ;;=2930614
 ;;^DD(.842,0,"NM","DESCRIPTION")
 ;;=
 ;;^DD(.842,0,"UP")
 ;;=.84
 ;;^DD(.842,.01,0)
 ;;=DESCRIPTION^W^^0;1^Q
 ;;^DD(.842,.01,3)
 ;;=Describe the use of this dialogue.
 ;;^DD(.842,.01,"DT")
 ;;=2930614
 ;;^DD(.844,0)
 ;;=TEXT SUB-FIELD^^.01^1
 ;;^DD(.844,0,"DT")
 ;;=2930811
 ;;^DD(.844,0,"NM","TEXT")
 ;;=
 ;;^DD(.844,0,"UP")
 ;;=.84
 ;;^DD(.844,.01,0)
 ;;=TEXT^WL^^0;1^Q
 ;;^DD(.844,.01,3)
 ;;=Enter the actual text of the dialogue, with optional parameter windows.
 ;;^DD(.844,.01,"DT")
 ;;=2930811
 ;;^DD(.845,0)
 ;;=PARAMETER SUB-FIELD^^1^2
 ;;^DD(.845,0,"DT")
 ;;=2931105
 ;;^DD(.845,0,"IX","B",.845,.01)
 ;;=
 ;;^DD(.845,0,"NM","PARAMETER")
 ;;=
 ;;^DD(.845,0,"UP")
 ;;=.84
 ;;^DD(.845,.01,0)
 ;;=PARAMETER SUBSCRIPT^MF^^0;1^K:$L(X)>20!($L(X)<1) X
 ;;^DD(.845,.01,1,0)
 ;;=^.1
 ;;^DD(.845,.01,1,1,0)
 ;;=.845^B
 ;;^DD(.845,.01,1,1,1)
 ;;=S ^DI(.84,DA(1),3,"B",$E(X,1,30),DA)=""
 ;;^DD(.845,.01,1,1,2)
 ;;=K ^DI(.84,DA(1),3,"B",$E(X,1,30),DA)
 ;;^DD(.845,.01,3)
 ;;=This entry corresponds to the subscript of an entry in either the text or output parameter list to the BLD^DIALOG and $$EZBLD^DIALOG routine.  Answer must be 1-20 characters in length.
 ;;^DD(.845,.01,21,0)
 ;;=^^7^7^2941122^
 ;;^DD(.845,.01,21,1,0)
 ;;=This multiple is used for documentation purposes only.  The entry in the
 ;;^DD(.845,.01,21,2,0)
 ;;=.01 field of this multiple will correspond to a subscript in either the
 ;;^DD(.845,.01,21,3,0)
 ;;=text or output parameter list, that are passed to the routines that build
 ;;^DD(.845,.01,21,4,0)
 ;;=dialogue messages, BLD^DIALOG and $$EZBLD^DIALOG. This routine will insert
 ;;^DD(.845,.01,21,5,0)
 ;;=into each 'window' from the TEXT field, the corresponding entry out of the
 ;;^DD(.845,.01,21,6,0)
 ;;=text parameter list.  For errors only, it passes any entries from the
 ;;^DD(.845,.01,21,7,0)
 ;;=output parameter list back to the user as entries in its output array.
 ;;^DD(.845,.01,"DT")
 ;;=2931105
 ;;^DD(.845,1,0)
 ;;=PARAMETER DESCRIPTION^F^^0;2^K:$L(X)>230!($L(X)<1) X
 ;;^DD(.845,1,3)
 ;;=Describe the Parameter for documentation purposes.  Answer must be 1-230 characters in length.
 ;;^DD(.845,1,21,0)
 ;;=^^5^5^2941122^
 ;;^DD(.845,1,21,1,0)
 ;;=This field is used for documentation purposes only.  It describes the text
 ;;^DD(.845,1,21,2,0)
 ;;=and/or output parameter(s) that are passed to BLD^DIALOG and
 ;;^DD(.845,1,21,3,0)
 ;;=$$EZBLD^DIALOG. The same parameter can be used both as a text parameter
 ;;^DD(.845,1,21,4,0)
 ;;=(i.e., inserted into the text when it is built), and as an output
 ;;^DD(.845,1,21,5,0)
 ;;=parameter (i.e., a parameter passed back in a list to the user)
 ;;^DD(.845,1,"DT")
 ;;=2930614
 ;;^DD(.847,0)
 ;;=TRANSLATION SUB-FIELD^^1^2
 ;;^DD(.847,0,"DT")
 ;;=2940524
 ;;^DD(.847,0,"IX","B",.847,.01)
 ;;=
 ;;^DD(.847,0,"NM","TRANSLATION")
 ;;=
 ;;^DD(.847,0,"UP")
 ;;=.84
 ;;^DD(.847,.01,0)
 ;;=LANGUAGE^*P.85'X^DI(.85,^0;1^S DIC("S")="I Y>1,$P(^(0),U,7)=""L""" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X S:$G(X) DINUM=X
 ;;^DD(.847,.01,1,0)
 ;;=^.1
 ;;^DD(.847,.01,1,1,0)
 ;;=.847^B
 ;;^DD(.847,.01,1,1,1)
 ;;=S ^DI(.84,DA(1),4,"B",$E(X,1,30),DA)=""
 ;;^DD(.847,.01,1,1,2)
 ;;=K ^DI(.84,DA(1),4,"B",$E(X,1,30),DA)
 ;;^DD(.847,.01,3)
 ;;=Enter the number or name for a non-English, Living language.
 ;;^DD(.847,.01,12)
 ;;=English language and non-Living languages cannot be selected.
 ;;^DD(.847,.01,12.1)
 ;;=S DIC("S")="I Y>1,$P(^(0),U,7)=""L"""
 ;;^DD(.847,.01,21,0)
 ;;=^^3^3^2941118^^
 ;;^DD(.847,.01,21,1,0)
 ;;=Pointer to the LANGUAGE file. If FileMan system variable DUZ("LANG") is
 ;;^DD(.847,.01,21,2,0)
 ;;=set to an integer greater than 1, we use that number to extract dialogue
 ;;^DD(.847,.01,21,3,0)
 ;;=text for the specified language from this multiple.