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

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

initial load of WorldVistAEHR

File size: 6.6 KB
RevLine 
[613]1DINIT123 ;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 ^DINIT124
6Q Q
7 ;;^DD(.4014,4,23,0)
8 ;;=^^2^2^2930125^^
9 ;;^DD(.4014,4,23,1,0)
10 ;;=This information is parsed from the user dialogue or from the BY
11 ;;^DD(.4014,4,23,2,0)
12 ;;=input variable, by the FileMan print routines DIP*.
13 ;;^DD(.4014,4,"DT")
14 ;;=2930125
15 ;;^DD(.4014,4.1,0)
16 ;;=SORT QUALIFIERS AFTER FIELD^F^^0;5^K:$L(X)>70!($L(X)<1) X
17 ;;^DD(.4014,4.1,3)
18 ;;=Answer must be 1-70 characters in length. Sort qualifiers that normally come after the field in the user dialogue (such as ;Cn, ;Ln, ;"Literal Subheader")
19 ;;^DD(.4014,4.1,21,0)
20 ;;=^^6^6^2930125^
21 ;;^DD(.4014,4.1,21,1,0)
22 ;;=This contains all of the sort qualifiers that normally come after the
23 ;;^DD(.4014,4.1,21,2,0)
24 ;;=field number in the user dialogue for the sort options. It includes
25 ;;^DD(.4014,4.1,21,3,0)
26 ;;=things like ;Cn (specify position of subheader) and ;"literal" to
27 ;;^DD(.4014,4.1,21,4,0)
28 ;;=replace the caption of the subheader. These qualifiers are listed with
29 ;;^DD(.4014,4.1,21,5,0)
30 ;;=no delimiters, as they are found in the user dialogue. (So you might see
31 ;;^DD(.4014,4.1,21,6,0)
32 ;;=something like ;C10;"My Subheader").
33 ;;^DD(.4014,4.1,23,0)
34 ;;=^^2^2^2930125^
35 ;;^DD(.4014,4.1,23,1,0)
36 ;;=This information is parsed from the user dialogue or from the BY
37 ;;^DD(.4014,4.1,23,2,0)
38 ;;=input variable, by the FileMan print routines DIP*.
39 ;;^DD(.4014,4.1,"DT")
40 ;;=2930125
41 ;;^DD(.4014,4.2,0)
42 ;;=COMPUTED FIELD TYPE^F^^0;7^K:$L(X)>10!($L(X)<1) X
43 ;;^DD(.4014,4.2,3)
44 ;;=Answer must be 1-10 characters in length. Set by the print routine to something that looks like second piece of 0 node of DD (data type information) for on-the-fly computed fields or .001 field.
45 ;;^DD(.4014,4.2,21,0)
46 ;;=^^4^4^2931022^
47 ;;^DD(.4014,4.2,21,1,0)
48 ;;=This piece will contain a "D" if on-the-fly computed field results in a
49 ;;^DD(.4014,4.2,21,2,0)
50 ;;=date. It will be set to something like NJ6,0 if sorting by the .001
51 ;;^DD(.4014,4.2,21,3,0)
52 ;;=field. (These are the only values I have been able to find for this
53 ;;^DD(.4014,4.2,21,4,0)
54 ;;=field.)
55 ;;^DD(.4014,4.2,23,0)
56 ;;=^^3^3^2931022^
57 ;;^DD(.4014,4.2,23,1,0)
58 ;;=Set in C^DIP0 if DICOMP tells us that an on-the-fly computed field will
59 ;;^DD(.4014,4.2,23,2,0)
60 ;;=result in a date, and in ^DIP is sorting by the .001 field on a file that
61 ;;^DD(.4014,4.2,23,3,0)
62 ;;=has one.
63 ;;^DD(.4014,4.2,"DT")
64 ;;=2931022
65 ;;^DD(.4014,4.3,0)
66 ;;=ASK FOR FROM AND TO^S^1:YES;^ASK;1^Q
67 ;;^DD(.4014,4.3,3)
68 ;;=Enter 1 (YES) if user is to be prompted for FROM/TO values for this SORT FIELD.
69 ;;^DD(.4014,4.3,21,0)
70 ;;=^^3^3^2930201^
71 ;;^DD(.4014,4.3,21,1,0)
72 ;;=If this node is defined: then when the PRINT Option is run, or during
73 ;;^DD(.4014,4.3,21,2,0)
74 ;;=a call to the programmer print EN1^DIP, the user will be prompted
75 ;;^DD(.4014,4.3,21,3,0)
76 ;;=for FROM and TO VALUES for this sort field.
77 ;;^DD(.4014,4.3,23,0)
78 ;;=^^4^4^2930201^
79 ;;^DD(.4014,4.3,23,1,0)
80 ;;=This field is created automatically when a template is being created or
81 ;;^DD(.4014,4.3,23,2,0)
82 ;;=edited, if the developer enters FROM/TO values, AND if the developer
83 ;;^DD(.4014,4.3,23,3,0)
84 ;;=then answers YES to the question "SHOULD TEMPLATE USER BE ASKED
85 ;;^DD(.4014,4.3,23,4,0)
86 ;;='FROM'-'TO' RANGE FOR field?"
87 ;;^DD(.4014,4.3,"DT")
88 ;;=2930201
89 ;;^DD(.4014,5,0)
90 ;;=FROM VALUE INTERNAL^F^^F;1^K:$L(X)>63!($L(X)<1) X
91 ;;^DD(.4014,5,3)
92 ;;=Answer must be 1-63 characters in length. The starting point for the sort, derived by FileMan.
93 ;;^DD(.4014,5,21,0)
94 ;;=^^3^3^2930119^^
95 ;;^DD(.4014,5,21,1,0)
96 ;;=FileMan takes the FROM value entered by the user, and finds the first
97 ;;^DD(.4014,5,21,2,0)
98 ;;=value that will sort just before this value in order to derive the
99 ;;^DD(.4014,5,21,3,0)
100 ;;=starting point for the sort.
101 ;;^DD(.4014,5,23,0)
102 ;;=^^1^1^2930119^^
103 ;;^DD(.4014,5,23,1,0)
104 ;;=Calculated by the sort routine FRV^DIP1.
105 ;;^DD(.4014,5,"DT")
106 ;;=2930119
107 ;;^DD(.4014,6,0)
108 ;;=FROM VALUE EXTERNAL^F^^F;2^K:$L(X)>63!($L(X)<1) X
109 ;;^DD(.4014,6,3)
110 ;;=Answer must be 1-63 characters in length. The starting point for the sort, as entered by the user.
111 ;;^DD(.4014,6,21,0)
112 ;;=^^1^1^2930115^
113 ;;^DD(.4014,6,21,1,0)
114 ;;=The FROM value for the sort, as it was entered by the user.
115 ;;^DD(.4014,6,"DT")
116 ;;=2930119
117 ;;^DD(.4014,6.5,0)
118 ;;=FROM VALUE PRINTABLE^F^^F;3^K:$L(X)>40!($L(X)<1) X
119 ;;^DD(.4014,6.5,3)
120 ;;=Answer must be 1-40 characters in length. Used for storing printable form of date or set values.
121 ;;^DD(.4014,6.5,21,0)
122 ;;=^^3^3^2930216^^
123 ;;^DD(.4014,6.5,21,1,0)
124 ;;=This field is used to store a printable representation of the FROM value
125 ;;^DD(.4014,6.5,21,2,0)
126 ;;=entered by the user during the sort/print dialogue. Used for date and
127 ;;^DD(.4014,6.5,21,3,0)
128 ;;=set-of-code data types.
129 ;;^DD(.4014,6.5,23,0)
130 ;;=^^1^1^2930216^
131 ;;^DD(.4014,6.5,23,1,0)
132 ;;=Built in CK^DIP12.
133 ;;^DD(.4014,6.5,"DT")
134 ;;=2930216
135 ;;^DD(.4014,7,0)
136 ;;=TO VALUE INTERNAL^F^^T;1^K:$L(X)>63!($L(X)<1) X
137 ;;^DD(.4014,7,3)
138 ;;=Answer must be 1-63 characters in length. The ending point for the sort, derived by FileMan.
139 ;;^DD(.4014,7,21,0)
140 ;;=^^3^3^2930115^
141 ;;^DD(.4014,7,21,1,0)
142 ;;=FileMan usually uses the TO value as entered by the user, but in the
143 ;;^DD(.4014,7,21,2,0)
144 ;;=case of dates and sets of codes, the internal value is used. This field
145 ;;^DD(.4014,7,21,3,0)
146 ;;=tells FileMan the ending point for the sort.
147 ;;^DD(.4014,7,"DT")
148 ;;=2930119
149 ;;^DD(.4014,8,0)
150 ;;=TO VALUE EXTERNAL^F^^T;2^K:$L(X)>63!($L(X)<1) X
151 ;;^DD(.4014,8,3)
152 ;;=Answer must be 1-63 characters in length. The ending point for the sort, as entered by the user.
153 ;;^DD(.4014,8,21,0)
154 ;;=^^1^1^2930115^
155 ;;^DD(.4014,8,21,1,0)
156 ;;=The ending value for the sort, as entered by the user.
157 ;;^DD(.4014,8,"DT")
158 ;;=2930119
159 ;;^DD(.4014,8.5,0)
160 ;;=TO VALUE PRINTABLE^F^^T;3^K:$L(X)>40!($L(X)<1) X
161 ;;^DD(.4014,8.5,3)
162 ;;=Answer must be 1-40 characters in length. Used for storing printable form of date and set values.
163 ;;^DD(.4014,8.5,21,0)
164 ;;=^^3^3^2930216^
165 ;;^DD(.4014,8.5,21,1,0)
166 ;;=This field is used to store a printable representation of the TO value
167 ;;^DD(.4014,8.5,21,2,0)
168 ;;=entered by the user during the sort/print dialogue. Used for date and
169 ;;^DD(.4014,8.5,21,3,0)
170 ;;=set-of-code data types.
171 ;;^DD(.4014,8.5,23,0)
172 ;;=^^1^1^2930216^
173 ;;^DD(.4014,8.5,23,1,0)
174 ;;=Created in CK^DIP12.
175 ;;^DD(.4014,8.5,"DT")
176 ;;=2930216
177 ;;^DD(.4014,9,0)
178 ;;=CROSS REFERENCE DATA^F^^IX;E1,245^K:$L(X)>245!($L(X)<1) X
Note: See TracBrowser for help on using the repository browser.