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

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

initial load of WorldVistAEHR

File size: 6.6 KB
Line 
1DINIT126 ;SFISC/MKO-SORT TEMPLATE FILE ;1:13 PM 13 Nov 1998
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 ^DINIT127
6Q Q
7 ;;^DD(.40141,.01,21,4,0)
8 ;;=during the sort/print processing.
9 ;;^DD(.40141,.01,"DT")
10 ;;=2930201
11 ;;^DD(.40141,1,0)
12 ;;=NODE^F^^0;2^K:$L(X)>50!($L(X)<1) X
13 ;;^DD(.40141,1,3)
14 ;;=Answer must be 1-50 characters in length. This is the node from which the data is descendant.
15 ;;^DD(.40141,1,21,0)
16 ;;=^^1^1^2930201^
17 ;;^DD(.40141,1,21,1,0)
18 ;;=This field contains the node from which the multiple data is descendant.
19 ;;^DD(.40141,1,"DT")
20 ;;=2930201
21 ;;^DD(.401418,0)
22 ;;=RELATIONAL JUMP FIELD DATA SUB-FIELD^^5^6
23 ;;^DD(.401418,0,"DT")
24 ;;=2930201
25 ;;^DD(.401418,0,"IX","B",.401418,.01)
26 ;;=
27 ;;^DD(.401418,0,"NM","RELATIONAL JUMP FIELD DATA")
28 ;;=
29 ;;^DD(.401418,0,"UP")
30 ;;=.4014
31 ;;^DD(.401418,.01,0)
32 ;;=RELATIONAL START FILE NO.^MNJ13,5^^0;1^K:+X'=X!(X>9999999.99999)!(X<0)!(X?.E1"."6N.N) X
33 ;;^DD(.401418,.01,1,0)
34 ;;=^.1
35 ;;^DD(.401418,.01,1,1,0)
36 ;;=.401418^B
37 ;;^DD(.401418,.01,1,1,1)
38 ;;=S ^DIBT(DA(2),2,DA(1),2,"B",$E(X,1,30),DA)=""
39 ;;^DD(.401418,.01,1,1,2)
40 ;;=K ^DIBT(DA(2),2,DA(1),2,"B",$E(X,1,30),DA)
41 ;;^DD(.401418,.01,3)
42 ;;=Type a Number between 0 and 9999999.99999, 5 Decimal Digits
43 ;;^DD(.401418,.01,21,0)
44 ;;=^^3^3^2930201^^^^
45 ;;^DD(.401418,.01,21,1,0)
46 ;;=Data will appear here if sorting by a field that must be gotten to using
47 ;;^DD(.401418,.01,21,2,0)
48 ;;=a relational jump. This will be the file or subfile number from which
49 ;;^DD(.401418,.01,21,3,0)
50 ;;=the user is jumping (i.e., the starting point).
51 ;;^DD(.401418,.01,23,0)
52 ;;=^^1^1^2930201^
53 ;;^DD(.401418,.01,23,1,0)
54 ;;=Built in COLON^DIP0 during the sort/print.
55 ;;^DD(.401418,.01,"DT")
56 ;;=2930201
57 ;;^DD(.401418,1,0)
58 ;;=NEXT SUBSCRIPT^RNJ7,0^^0;2^K:+X'=X!(X>9999999)!(X<0)!(X?.E1"."1N.N) X
59 ;;^DD(.401418,1,3)
60 ;;=Type a Number between 0 and 9999999, 0 Decimal Digits. Subscript used in the DPP array during the sort/print option.
61 ;;^DD(.401418,1,21,0)
62 ;;=^^4^4^2930201^
63 ;;^DD(.401418,1,21,1,0)
64 ;;=This field contains a subscript used n the DPP array during the
65 ;;^DD(.401418,1,21,2,0)
66 ;;=sort/print. The subscript is generated by DICOMP (using the level
67 ;;^DD(.401418,1,21,3,0)
68 ;;=number multiplied by 100 I think). It results in building a node
69 ;;^DD(.401418,1,21,4,0)
70 ;;=like DPP(DJ,file/subfile no.,subscript)=data.
71 ;;^DD(.401418,1,23,0)
72 ;;=^^1^1^2930201^
73 ;;^DD(.401418,1,23,1,0)
74 ;;=Built by COLON^DIP0 routine.
75 ;;^DD(.401418,1,"DT")
76 ;;=2930201
77 ;;^DD(.401418,2,0)
78 ;;=TO FILE OR SUBFILE^NJ13,5^^0;3^K:+X'=X!(X>9999999.99999)!(X<0)!(X?.E1"."6N.N) X
79 ;;^DD(.401418,2,3)
80 ;;=Type a Number between 0 and 9999999.99999, 5 Decimal Digits. The file or subfile number to which we are jumping using a relational jump.
81 ;;^DD(.401418,2,21,0)
82 ;;=^^2^2^2930201^
83 ;;^DD(.401418,2,21,1,0)
84 ;;=This field contains the file or subfile number to which we are making
85 ;;^DD(.401418,2,21,2,0)
86 ;;=the relational jump (i.e., the destination file).
87 ;;^DD(.401418,2,23,0)
88 ;;=^^1^1^2930201^^
89 ;;^DD(.401418,2,23,1,0)
90 ;;=Built in COLON^DIP0 during the sort/print.
91 ;;^DD(.401418,2,"DT")
92 ;;=2930201
93 ;;^DD(.401418,3,0)
94 ;;=GLOBAL REFERENCE^F^^0;4^K:$L(X)>50!($L(X)<1) X
95 ;;^DD(.401418,3,3)
96 ;;=Answer must be 1-50 characters in length. Contains the global reference of the file to which we are jumping relationally.
97 ;;^DD(.401418,3,21,0)
98 ;;=^^2^2^2930201^
99 ;;^DD(.401418,3,21,1,0)
100 ;;=This field contains the global reference of the file to which we are
101 ;;^DD(.401418,3,21,2,0)
102 ;;=jumping relationally (i.e., the destination file).
103 ;;^DD(.401418,3,23,0)
104 ;;=^^1^1^2930201^
105 ;;^DD(.401418,3,23,1,0)
106 ;;=Built by COLON^DIP0 during the sort/print option.
107 ;;^DD(.401418,3,"DT")
108 ;;=2930201
109 ;;^DD(.401418,4,0)
110 ;;=MULTIVALUED FLAG^S^0:NOT MULTI-VALUED;1:YES, MULTI-VALUED;^0;5^Q
111 ;;^DD(.401418,4,21,0)
112 ;;=^^6^6^2930201^
113 ;;^DD(.401418,4,21,1,0)
114 ;;=This flag indicates whether the relational jump will result in going to
115 ;;^DD(.401418,4,21,2,0)
116 ;;=a file that has a many-to-one relationship to the starting (home) file
117 ;;^DD(.401418,4,21,3,0)
118 ;;=(i.e., a jump to a backwards pointer) or a one-to-one relationship (i.e.,
119 ;;^DD(.401418,4,21,4,0)
120 ;;=a forwards pointer jump). The flag will be set to 1 to indicate that
121 ;;^DD(.401418,4,21,5,0)
122 ;;=that there is a many-to-one or multi-valued relationship to the home
123 ;;^DD(.401418,4,21,6,0)
124 ;;=file, or to 0 if not.
125 ;;^DD(.401418,4,23,0)
126 ;;=^^1^1^2930201^
127 ;;^DD(.401418,4,23,1,0)
128 ;;=Set in COLON^DIP0 during the sort/print option.
129 ;;^DD(.401418,4,"DT")
130 ;;=2930201
131 ;;^DD(.401418,5,0)
132 ;;=RELATIONAL CODE^K^^RCOD;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
133 ;;^DD(.401418,5,3)
134 ;;=This is Standard MUMPS code, used to make a relational jump.
135 ;;^DD(.401418,5,9)
136 ;;=@
137 ;;^DD(.401418,5,21,0)
138 ;;=^^2^2^2930201^
139 ;;^DD(.401418,5,21,1,0)
140 ;;=This is the MUMPS code needed to perform the relational jump during the
141 ;;^DD(.401418,5,21,2,0)
142 ;;=sort part of the sort/print option.
143 ;;^DD(.401418,5,23,0)
144 ;;=^^1^1^2930201^
145 ;;^DD(.401418,5,23,1,0)
146 ;;=Generated from COLON^DIP0 during the sort/print option.
147 ;;^DD(.401418,5,"DT")
148 ;;=2930201
149 ;;^DD(.401419,0)
150 ;;=OVERFLOW DATA SUB-FIELD^^2^3
151 ;;^DD(.401419,0,"DT")
152 ;;=2930201
153 ;;^DD(.401419,0,"IX","B",.401419,.01)
154 ;;=
155 ;;^DD(.401419,0,"NM","OVERFLOW DATA")
156 ;;=
157 ;;^DD(.401419,0,"UP")
158 ;;=.4014
159 ;;^DD(.401419,.01,0)
160 ;;=FIRST SUBSCRIPT FOR OVERFLOW^MF^^0;1^K:$L(X)>20!($L(X)<1) X
161 ;;^DD(.401419,.01,1,0)
162 ;;=^.1
163 ;;^DD(.401419,.01,1,1,0)
164 ;;=.401419^B
165 ;;^DD(.401419,.01,1,1,1)
166 ;;=S ^DIBT(DA(2),2,DA(1),3,"B",$E(X,1,30),DA)=""
167 ;;^DD(.401419,.01,1,1,2)
168 ;;=K ^DIBT(DA(2),2,DA(1),3,"B",$E(X,1,30),DA)
169 ;;^DD(.401419,.01,3)
170 ;;=Answer must be 1-20 characters in length. This multiple contains overflow code needed for sorting by relational or computed fields.
171 ;;^DD(.401419,.01,"DT")
172 ;;=2930201
173 ;;^DD(.401419,1,0)
174 ;;=SECOND SUBSCRIPT FOR OVERFLOW^NJ10,4^^0;2^K:+X'=X!(X>99999.9999)!(X<0)!(X?.E1"."5N.N) X
175 ;;^DD(.401419,1,3)
176 ;;=Type a Number between 0 and 99999.9999, 4 Decimal Digits
177 ;;^DD(.401419,1,21,0)
178 ;;=^^4^4^2930201^
179 ;;^DD(.401419,1,21,1,0)
180 ;;=This field contains the second subscript from the part of the DPP array
181 ;;^DD(.401419,1,21,2,0)
182 ;;=that contains overflow code executed when sorting by a field that is
183 ;;^DD(.401419,1,21,3,0)
184 ;;=gotten to relationally or a computed field. Overflow code is generated
185 ;;^DD(.401419,1,21,4,0)
186 ;;=when needed by DICOMP. This field will typically look something like 9.2.
187 ;;^DD(.401419,1,23,0)
188 ;;=^^1^1^2930201^
189 ;;^DD(.401419,1,23,1,0)
190 ;;=Generated by DICOMP from ^DIP0 during the sort/print option.
Note: See TracBrowser for help on using the repository browser.