source: WorldVistAEHR/trunk/r/VA_FILEMAN-ARJT-DI-DD-DM-DT-%DT-%RCR/DINIT298.m@ 1240

Last change on this file since 1240 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 6.7 KB
Line 
1DINIT298 ;SFISC/MKO-FORM AND BLOCK FILES ;10:49 AM 30 Mar 1999
2 ;;22.0;VA FileMan;;Mar 30, 1999
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 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
5 G ^DINIT299
6Q Q
7 ;;^DD(.4044,10,21,16,0)
8 ;;=The variable X contains the current internal value of the field, DDSEXT
9 ;;^DD(.4044,10,21,17,0)
10 ;;=contains the current external value of the field, and DDSOLD contains the
11 ;;^DD(.4044,10,21,18,0)
12 ;;=previous internal value of the field.
13 ;;^DD(.4044,11,0)
14 ;;=PRE ACTION^K^^11;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
15 ;;^DD(.4044,11,3)
16 ;;=Enter standard MUMPS code that will be executed when the user navigates to this field.
17 ;;^DD(.4044,11,9)
18 ;;=@
19 ;;^DD(.4044,11,21,0)
20 ;;=^^2^2^2940629^
21 ;;^DD(.4044,11,21,1,0)
22 ;;=This MUMPS code is executed when the user reaches the field. The variable
23 ;;^DD(.4044,11,21,2,0)
24 ;;=X contains the current value of the field.
25 ;;^DD(.4044,12,0)
26 ;;=POST ACTION^K^^12;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
27 ;;^DD(.4044,12,3)
28 ;;=Enter standard MUMPS code that will be executed when the user leaves this field.
29 ;;^DD(.4044,12,9)
30 ;;=@
31 ;;^DD(.4044,12,21,0)
32 ;;=^^6^6^2950306^
33 ;;^DD(.4044,12,21,1,0)
34 ;;=This MUMPS code is executed when the user leaves the field, except on
35 ;;^DD(.4044,12,21,2,0)
36 ;;=time-out.
37 ;;^DD(.4044,12,21,3,0)
38 ;;=
39 ;;^DD(.4044,12,21,4,0)
40 ;;=The variable X contains the current internal value of the field, DDSEXT
41 ;;^DD(.4044,12,21,5,0)
42 ;;=contains the current external value of the field, and DDSOLD contains
43 ;;^DD(.4044,12,21,6,0)
44 ;;=the previous internal value of the field.
45 ;;^DD(.4044,12,"DT")
46 ;;=2950306
47 ;;^DD(.4044,13,0)
48 ;;=POST ACTION ON CHANGE^K^^13;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
49 ;;^DD(.4044,13,3)
50 ;;=Enter standard MUMPS code that will be executed when the user changes the value of this field.
51 ;;^DD(.4044,13,9)
52 ;;=@
53 ;;^DD(.4044,13,21,0)
54 ;;=^^4^4^2940629^
55 ;;^DD(.4044,13,21,1,0)
56 ;;=This MUMPS code is executed only if the user changed the value of the
57 ;;^DD(.4044,13,21,2,0)
58 ;;=field. The variables X and DDSEXT contain the new internal and external
59 ;;^DD(.4044,13,21,3,0)
60 ;;=values of the field, and DDSOLD contains the original internal value of
61 ;;^DD(.4044,13,21,4,0)
62 ;;=the field.
63 ;;^DD(.4044,13,"DT")
64 ;;=2931029
65 ;;^DD(.4044,14,0)
66 ;;=DATA VALIDATION^K^^14;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
67 ;;^DD(.4044,14,3)
68 ;;=This is Standard MUMPS code.
69 ;;^DD(.4044,14,9)
70 ;;=@
71 ;;^DD(.4044,14,21,0)
72 ;;=^^5^5^2940907^
73 ;;^DD(.4044,14,21,1,0)
74 ;;=Enter MUMPS code that will be executed after the user enters a new
75 ;;^DD(.4044,14,21,2,0)
76 ;;=value for this field. If the code sets DDSERROR, the value will
77 ;;^DD(.4044,14,21,3,0)
78 ;;=be rejected. You might also want to ring the bell and make a call to
79 ;;^DD(.4044,14,21,4,0)
80 ;;=HLP^DDSUTL to display a message to the user that indicates the reason the
81 ;;^DD(.4044,14,21,5,0)
82 ;;=value was rejected.
83 ;;^DD(.4044,14,"DT")
84 ;;=2930820
85 ;;^DD(.4044,20.1,0)
86 ;;=READ TYPE^S^D:DATE;F:FREE TEXT;L:LIST OR RANGE;N:NUMERIC;P:POINTER;S:SET OF CODES;Y:YES OR NO;DD:DATA DICTIONARY;^20;1^Q
87 ;;^DD(.4044,20.1,21,0)
88 ;;=^^1^1^2930812^^
89 ;;^DD(.4044,20.1,21,1,0)
90 ;;=Enter the data type of this form-only field.
91 ;;^DD(.4044,20.1,"DT")
92 ;;=2930812
93 ;;^DD(.4044,20.2,0)
94 ;;=PARAMETERS^F^^20;2^K:$L(X)>2!($L(X)<1) X
95 ;;^DD(.4044,20.2,3)
96 ;;=Answer must be 1-2 characters in length.
97 ;;^DD(.4044,20.2,21,0)
98 ;;=^^8^8^2940907^
99 ;;^DD(.4044,20.2,21,1,0)
100 ;;=This property coressponds to the parameters that can be used in the first
101 ;;^DD(.4044,20.2,21,2,0)
102 ;;=^-piece of the DIR(0) input variable to ^DIR. The "O" parameter has no
103 ;;^DD(.4044,20.2,21,3,0)
104 ;;=effect, since the Required property can be used to make a field required.
105 ;;^DD(.4044,20.2,21,4,0)
106 ;;=The "A" and "B" parameters also have no effect.
107 ;;^DD(.4044,20.2,21,5,0)
108 ;;=
109 ;;^DD(.4044,20.2,21,6,0)
110 ;;=Free text fields can use the "U" parameter.
111 ;;^DD(.4044,20.2,21,7,0)
112 ;;=List or Range fields can use the "C" parameter.
113 ;;^DD(.4044,20.2,21,8,0)
114 ;;=Set of Codes fields can use the "X" and "M" parameters.
115 ;;^DD(.4044,20.2,"DT")
116 ;;=2930812
117 ;;^DD(.4044,20.3,0)
118 ;;=QUALIFIERS^F^^20;3^K:$L(X)>100!($L(X)<1) X
119 ;;^DD(.4044,20.3,3)
120 ;;=Answer must be 1-100 characters in length.
121 ;;^DD(.4044,20.3,21,0)
122 ;;=^^14^14^2940908^^
123 ;;^DD(.4044,20.3,21,1,0)
124 ;;=This property corresponds to the second ^-piece of the DIR(0) input
125 ;;^DD(.4044,20.3,21,2,0)
126 ;;=variable to ^DIR. For Data Dictionary type form only fields, it
127 ;;^DD(.4044,20.3,21,3,0)
128 ;;=identifies the file and field.
129 ;;^DD(.4044,20.3,21,4,0)
130 ;;=
131 ;;^DD(.4044,20.3,21,5,0)
132 ;;=Valid qualifiers are:
133 ;;^DD(.4044,20.3,21,6,0)
134 ;;=
135 ;;^DD(.4044,20.3,21,7,0)
136 ;;= Date Minimum date:Maximum date:%DT
137 ;;^DD(.4044,20.3,21,8,0)
138 ;;= Free Text Minimum length:Maximum length
139 ;;^DD(.4044,20.3,21,9,0)
140 ;;= List or Range Minimum:Maximum:Maximum decimals
141 ;;^DD(.4044,20.3,21,10,0)
142 ;;= Numeric Minimum:Maximum:Maximum decimals
143 ;;^DD(.4044,20.3,21,11,0)
144 ;;= Pointer Global root or #:DIC(0)
145 ;;^DD(.4044,20.3,21,12,0)
146 ;;= Set of Codes Code:Stands for;Code:Stands for;
147 ;;^DD(.4044,20.3,21,13,0)
148 ;;= Yes or No
149 ;;^DD(.4044,20.3,21,14,0)
150 ;;= Data Dictionary file#,field#
151 ;;^DD(.4044,20.3,"DT")
152 ;;=2930812
153 ;;^DD(.4044,21,0)
154 ;;=HELP^.404421^^21;0
155 ;;^DD(.4044,21,"DT")
156 ;;=2930812
157 ;;^DD(.4044,22,0)
158 ;;=INPUT TRANSFORM^K^^22;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
159 ;;^DD(.4044,22,3)
160 ;;=Enter standard MUMPS code.
161 ;;^DD(.4044,22,9)
162 ;;=@
163 ;;^DD(.4044,22,21,0)
164 ;;=^^3^3^2940908^
165 ;;^DD(.4044,22,21,1,0)
166 ;;=This is MUMPS code that can examine X, the value entered by the user, and
167 ;;^DD(.4044,22,21,2,0)
168 ;;=kill X if it is invalid. It corresponds to the third ^-piece of the
169 ;;^DD(.4044,22,21,3,0)
170 ;;=DIR(0) input variable to ^DIR.
171 ;;^DD(.4044,22,"DT")
172 ;;=2930812
173 ;;^DD(.4044,23,0)
174 ;;=SAVE CODE^K^^23;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
175 ;;^DD(.4044,23,3)
176 ;;=Enter Standard MUMPS code.
177 ;;^DD(.4044,23,9)
178 ;;=@
179 ;;^DD(.4044,23,21,0)
180 ;;=^^8^8^2930920^^
181 ;;^DD(.4044,23,21,1,0)
182 ;;=This is MUMPS code that is executed when the user issues a Save command
183 ;;^DD(.4044,23,21,2,0)
184 ;;=and the value of this field changed since the last Save. You can use this
185 ;;^DD(.4044,23,21,3,0)
186 ;;=field to save in global or local variables the value the user enters into
187 ;;^DD(.4044,23,21,4,0)
188 ;;=this field. The following variables are available:
189 ;;^DD(.4044,23,21,5,0)
190 ;;=
191 ;;^DD(.4044,23,21,6,0)
192 ;;= X = The new value of the field in internal form
193 ;;^DD(.4044,23,21,7,0)
194 ;;= DDSEXT = The new value of the field in external form
195 ;;^DD(.4044,23,21,8,0)
196 ;;= DDSOLD = The original (pre-save) value of the field in internal form
Note: See TracBrowser for help on using the repository browser.