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.
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDINIT002 7841 printed Dec 13, 2024@02:49:31 Page 2
DINIT002 ;SFISC/TKW-DIALOG & LANGUAGE FILE INITS ;15JAN2016
+1 ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
+2 ;;Per VA Directive 6402, this routine should not be modified.
+3 ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
+4 ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
+5 ;;Licensed under the terms of the Apache License, Version 2.0.
+6 ;
+7 FOR I=1:2
SET X=$TEXT(Q+I)
if X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
if $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
if $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
SET @X=Y
Q QUIT
+1 ;;^DD(.84,6,21,5,0)
+2 ;;=special flag into a global or local variable to notify the calling routine
+3 ;;^DD(.84,6,21,6,0)
+4 ;;=that some extra action needed to be taken.
+5 ;;^DD(.84,6,23,0)
+6 ;;=^^7^7^2941122^
+7 ;;^DD(.84,6,23,1,0)
+8 ;;=At the time of executing this code
+9 ;;^DD(.84,6,23,2,0)
+10 ;;= D0 = IEN for the entry in the DIALOG file
+11 ;;^DD(.84,6,23,3,0)
+12 ;;= DIPI(n) = (for sequential number n) parameters incorporated in the text.
+13 ;;^DD(.84,6,23,4,0)
+14 ;;= DIPE(n) = parameters output back to the user
+15 ;;^DD(.84,6,23,5,0)
+16 ;;=
+17 ;;^DD(.84,6,23,6,0)
+18 ;;=All other variables used in this code should use your packages namespace,
+19 ;;^DD(.84,6,23,7,0)
+20 ;;=and should be NEWed.
+21 ;;^DD(.84,6,"DT")
+22 ;;=2940520
+23 ;;^DD(.84,7,0)
+24 ;;=TRANSLATION^.847PA^^4;0
+25 ;;^DD(.84,7,21,0)
+26 ;;=^^3^3^3160115^
+27 ;;^DD(.84,7,21,1,0)
+28 ;;=This multiple holds the translations of Dialog file entries.
+29 ;;^DD(.84,7,21,2,0)
+30 ;;=The language into which the entry is translated
+31 ;;^DD(.84,7,21,3,0)
+32 ;;=and the text of the translation are recorded.
+33 ;;^DD(.84,8,0)
+34 ;;=CALLED FROM ENTRY POINTS^.841A^^5;0
+35 ;;^DD(.84,8,21,0)
+36 ;;=^^3^3^3160115^
+37 ;;^DD(.84,8,21,1,0)
+38 ;;=This multiple is used for documentation only. Entries are made
+39 ;;^DD(.84,8,21,2,0)
+40 ;;=to this multiple ONLY for ERROR type text.
+41 ;;^DD(.84,8,21,3,0)
+42 ;;=The routine and tag combinations that generate the error are identified.
+43 ;;^DD(.841,0)
+44 ;;=CALLED FROM ENTRY POINTS SUB-FIELD^^.05^2
+45 ;;^DD(.841,0,"DT")
+46 ;;=2940411
+47 ;;^DD(.841,0,"IX","B",.841,.01)
+48 ;;=
+49 ;;^DD(.841,0,"NM","CALLED FROM ENTRY POINTS")
+50 ;;=
+51 ;;^DD(.841,0,"UP")
+52 ;;=.84
+53 ;;^DD(.841,.01,0)
+54 ;;=ROUTINE NAME^MF^^0;1^K:$L(X)>8!($L(X)<1) X
+55 ;;^DD(.841,.01,1,0)
+56 ;;=^.1
+57 ;;^DD(.841,.01,1,1,0)
+58 ;;=.841^B
+59 ;;^DD(.841,.01,1,1,1)
+60 ;;=S ^DI(.84,DA(1),5,"B",$E(X,1,30),DA)=""
+61 ;;^DD(.841,.01,1,1,2)
+62 ;;=K ^DI(.84,DA(1),5,"B",$E(X,1,30),DA)
+63 ;;^DD(.841,.01,3)
+64 ;;=Answer must be 1-8 characters in length.
+65 ;;^DD(.841,.01,21,0)
+66 ;;=^^6^6^2940411^
+67 ;;^DD(.841,.01,21,1,0)
+68 ;;=This multiple is used for documentation only. Entries are made to this
+69 ;;^DD(.841,.01,21,2,0)
+70 ;;=subfile ONLY for ERROR type text. Enter the routine name of an entry
+71 ;;^DD(.841,.01,21,3,0)
+72 ;;=point that may generate this error message. You only need to enter the
+73 ;;^DD(.841,.01,21,4,0)
+74 ;;=names of routines that directly generate the error through a call to
+75 ;;^DD(.841,.01,21,5,0)
+76 ;;=^DIALOG, and not when the error is generated by some other utility called
+77 ;;^DD(.841,.01,21,6,0)
+78 ;;=from your routine.
+79 ;;^DD(.841,.01,"DT")
+80 ;;=2940411
+81 ;;^DD(.841,.05,0)
+82 ;;=LINE TAG^F^^0;2^K:$L(X)>10!($L(X)<1) X
+83 ;;^DD(.841,.05,3)
+84 ;;=Answer must be 1-10 characters in length.
+85 ;;^DD(.841,.05,21,0)
+86 ;;=^^6^6^2940411^
+87 ;;^DD(.841,.05,21,1,0)
+88 ;;=This multiple is used for documentation only. Entries are made to this
+89 ;;^DD(.841,.05,21,2,0)
+90 ;;=subfile ONLY for ERROR type text. Enter the line tag of an entry point
+91 ;;^DD(.841,.05,21,3,0)
+92 ;;=that may generate this error message. You only need to enter the names of
+93 ;;^DD(.841,.05,21,4,0)
+94 ;;=routines that directly generate the error through a call to ^DIALOG, and
+95 ;;^DD(.841,.05,21,5,0)
+96 ;;=not when the error is generated by some other utility called from your
+97 ;;^DD(.841,.05,21,6,0)
+98 ;;=routine.
+99 ;;^DD(.841,.05,"DT")
+100 ;;=2940411
+101 ;;^DD(.842,0)
+102 ;;=DESCRIPTION SUB-FIELD^^.01^1
+103 ;;^DD(.842,0,"DT")
+104 ;;=2930614
+105 ;;^DD(.842,0,"NM","DESCRIPTION")
+106 ;;=
+107 ;;^DD(.842,0,"UP")
+108 ;;=.84
+109 ;;^DD(.842,.01,0)
+110 ;;=DESCRIPTION^W^^0;1^Q
+111 ;;^DD(.842,.01,3)
+112 ;;=Describe the use of this dialogue.
+113 ;;^DD(.842,.01,"DT")
+114 ;;=2930614
+115 ;;^DD(.844,0)
+116 ;;=TEXT SUB-FIELD^^.01^1
+117 ;;^DD(.844,0,"DT")
+118 ;;=2930811
+119 ;;^DD(.844,0,"NM","TEXT")
+120 ;;=
+121 ;;^DD(.844,0,"UP")
+122 ;;=.84
+123 ;;^DD(.844,.01,0)
+124 ;;=TEXT^WL^^0;1^Q
+125 ;;^DD(.844,.01,3)
+126 ;;=Enter the actual text of the dialogue, with optional parameter windows.
+127 ;;^DD(.844,.01,"DT")
+128 ;;=2930811
+129 ;;^DD(.845,0)
+130 ;;=PARAMETER SUB-FIELD^^1^2
+131 ;;^DD(.845,0,"DT")
+132 ;;=2931105
+133 ;;^DD(.845,0,"IX","B",.845,.01)
+134 ;;=
+135 ;;^DD(.845,0,"NM","PARAMETER")
+136 ;;=
+137 ;;^DD(.845,0,"UP")
+138 ;;=.84
+139 ;;^DD(.845,.01,0)
+140 ;;=PARAMETER SUBSCRIPT^MF^^0;1^K:$L(X)>20!($L(X)<1) X
+141 ;;^DD(.845,.01,1,0)
+142 ;;=^.1
+143 ;;^DD(.845,.01,1,1,0)
+144 ;;=.845^B
+145 ;;^DD(.845,.01,1,1,1)
+146 ;;=S ^DI(.84,DA(1),3,"B",$E(X,1,30),DA)=""
+147 ;;^DD(.845,.01,1,1,2)
+148 ;;=K ^DI(.84,DA(1),3,"B",$E(X,1,30),DA)
+149 ;;^DD(.845,.01,3)
+150 ;;=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.
+151 ;;^DD(.845,.01,21,0)
+152 ;;=^^7^7^2941122^
+153 ;;^DD(.845,.01,21,1,0)
+154 ;;=This multiple is used for documentation purposes only. The entry in the
+155 ;;^DD(.845,.01,21,2,0)
+156 ;;=.01 field of this multiple will correspond to a subscript in either the
+157 ;;^DD(.845,.01,21,3,0)
+158 ;;=text or output parameter list, that are passed to the routines that build
+159 ;;^DD(.845,.01,21,4,0)
+160 ;;=dialogue messages, BLD^DIALOG and $$EZBLD^DIALOG. This routine will insert
+161 ;;^DD(.845,.01,21,5,0)
+162 ;;=into each 'window' from the TEXT field, the corresponding entry out of the
+163 ;;^DD(.845,.01,21,6,0)
+164 ;;=text parameter list. For errors only, it passes any entries from the
+165 ;;^DD(.845,.01,21,7,0)
+166 ;;=output parameter list back to the user as entries in its output array.
+167 ;;^DD(.845,.01,"DT")
+168 ;;=2931105
+169 ;;^DD(.845,1,0)
+170 ;;=PARAMETER DESCRIPTION^F^^0;2^K:$L(X)>230!($L(X)<1) X
+171 ;;^DD(.845,1,3)
+172 ;;=Describe the Parameter for documentation purposes. Answer must be 1-230 characters in length.
+173 ;;^DD(.845,1,21,0)
+174 ;;=^^5^5^2941122^
+175 ;;^DD(.845,1,21,1,0)
+176 ;;=This field is used for documentation purposes only. It describes the text
+177 ;;^DD(.845,1,21,2,0)
+178 ;;=and/or output parameter(s) that are passed to BLD^DIALOG and
+179 ;;^DD(.845,1,21,3,0)
+180 ;;=$$EZBLD^DIALOG. The same parameter can be used both as a text parameter
+181 ;;^DD(.845,1,21,4,0)
+182 ;;=(i.e., inserted into the text when it is built), and as an output
+183 ;;^DD(.845,1,21,5,0)
+184 ;;=parameter (i.e., a parameter passed back in a list to the user)
+185 ;;^DD(.845,1,"DT")
+186 ;;=2930614
+187 ;;^DD(.847,0)
+188 ;;=TRANSLATION SUB-FIELD^^1^2
+189 ;;^DD(.847,0,"DT")
+190 ;;=2940524
+191 ;;^DD(.847,0,"IX","B",.847,.01)
+192 ;;=
+193 ;;^DD(.847,0,"NM","TRANSLATION")
+194 ;;=
+195 ;;^DD(.847,0,"UP")
+196 ;;=.84
+197 ;;^DD(.847,.01,0)
+198 ;;=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
+199 ;;^DD(.847,.01,1,0)
+200 ;;=^.1
+201 ;;^DD(.847,.01,1,1,0)
+202 ;;=.847^B
+203 ;;^DD(.847,.01,1,1,1)
+204 ;;=S ^DI(.84,DA(1),4,"B",$E(X,1,30),DA)=""
+205 ;;^DD(.847,.01,1,1,2)
+206 ;;=K ^DI(.84,DA(1),4,"B",$E(X,1,30),DA)
+207 ;;^DD(.847,.01,3)
+208 ;;=Enter the number or name for a non-English, Living language.
+209 ;;^DD(.847,.01,12)
+210 ;;=English language and non-Living languages cannot be selected.
+211 ;;^DD(.847,.01,12.1)
+212 ;;=S DIC("S")="I Y>1,$P(^(0),U,7)=""L"""
+213 ;;^DD(.847,.01,21,0)
+214 ;;=^^3^3^2941118^^
+215 ;;^DD(.847,.01,21,1,0)
+216 ;;=Pointer to the LANGUAGE file. If FileMan system variable DUZ("LANG") is
+217 ;;^DD(.847,.01,21,2,0)
+218 ;;=set to an integer greater than 1, we use that number to extract dialogue
+219 ;;^DD(.847,.01,21,3,0)
+220 ;;=text for the specified language from this multiple.