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

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

initial load of WorldVistAEHR

File size: 4.9 KB
RevLine 
[613]1DINIT2A4 ;SFISC/MKO-KEY AND INDEX FILES ;3:01 PM 10 Jan 2000
2 ;;22.0;VA FileMan;**1,20**;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 ^DINIT2A5
6Q Q
7 ;;^DD(.114,5.3,0)
8 ;;=TRANSFORM FOR LOOKUP^K^^4;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
9 ;;^DD(.114,5.3,3)
10 ;;=This is Standard MUMPS code. Answer '??' for more help.
11 ;;^DD(.114,5.3,9)
12 ;;=@
13 ;;^DD(.114,5.3,21,0)
14 ;;=^^10^10^3000106^
15 ;;^DD(.114,5.3,21,1,0)
16 ;;=Used only during lookup.
17 ;;^DD(.114,5.3,21,2,0)
18 ;;=
19 ;;^DD(.114,5.3,21,3,0)
20 ;;=Answer should be M code that sets the variable X to a new value. X is the
21 ;;^DD(.114,5.3,21,4,0)
22 ;;=only input variable that is guaranteed to be defined and is equal to the
23 ;;^DD(.114,5.3,21,5,0)
24 ;;=lookup value entered by the user.
25 ;;^DD(.114,5.3,21,6,0)
26 ;;=
27 ;;^DD(.114,5.3,21,7,0)
28 ;;=During lookup, if the lookup value is not found in the index, FileMan will
29 ;;^DD(.114,5.3,21,8,0)
30 ;;=execute the TRANSFORM FOR LOOKUP code to transform the lookup value X. It
31 ;;^DD(.114,5.3,21,9,0)
32 ;;=will then search this index looking for a match to the transformed lookup
33 ;;^DD(.114,5.3,21,10,0)
34 ;;=value.
35 ;;^DD(.114,5.3,"DT")
36 ;;=3000105
37 ;;^DD(.114,5.5,0)
38 ;;=TRANSFORM FOR DISPLAY^K^^3;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
39 ;;^DD(.114,5.5,3)
40 ;;=This is Standard MUMPS code. Answer '??' for more help.
41 ;;^DD(.114,5.5,9)
42 ;;=@
43 ;;^DD(.114,5.5,21,0)
44 ;;=^^16^16^3000106^
45 ;;^DD(.114,5.5,21,1,0)
46 ;;=Used only during lookup.
47 ;;^DD(.114,5.5,21,2,0)
48 ;;=
49 ;;^DD(.114,5.5,21,3,0)
50 ;;=Answer should be M code that sets the variable X to a new value. X is the
51 ;;^DD(.114,5.5,21,4,0)
52 ;;=only variable that is guaranteed to be defined and is equal to the value
53 ;;^DD(.114,5.5,21,5,0)
54 ;;=of the subscript from the index.
55 ;;^DD(.114,5.5,21,6,0)
56 ;;=
57 ;;^DD(.114,5.5,21,7,0)
58 ;;=TRANSFORM FOR DISPLAY should be set only for an index value that has been
59 ;;^DD(.114,5.5,21,8,0)
60 ;;=transformed using the code in the TRANSFORM FOR STORAGE prior to storing
61 ;;^DD(.114,5.5,21,9,0)
62 ;;=the value in the index.
63 ;;^DD(.114,5.5,21,10,0)
64 ;;=
65 ;;^DD(.114,5.5,21,11,0)
66 ;;=The code should take the internal value from the index subscript X, and
67 ;;^DD(.114,5.5,21,12,0)
68 ;;=convert it back to a format that can be displayed to an end user. During
69 ;;^DD(.114,5.5,21,13,0)
70 ;;=lookup, if a match or matches are made to a lookup value that was
71 ;;^DD(.114,5.5,21,14,0)
72 ;;=transformed using the TRANSFORM FOR LOOKUP code on this index, then
73 ;;^DD(.114,5.5,21,15,0)
74 ;;=FileMan will execute the TRANSFORM FOR DISPLAY code before displaying the
75 ;;^DD(.114,5.5,21,16,0)
76 ;;=index value(s) to the end user.
77 ;;^DD(.114,5.5,"DT")
78 ;;=2980731
79 ;;^DD(.114,6,0)
80 ;;=MAXIMUM LENGTH^NJ3,0^^0;5^K:+X'=X!(X>240)!(X<1)!(X?.E1"."1N.N) X
81 ;;^DD(.114,6,3)
82 ;;=Answer must be between 1 and 240, with no decimal digits. Answer '??' for more help.
83 ;;^DD(.114,6,21,0)
84 ;;=^^7^7^2980911^
85 ;;^DD(.114,6,21,1,0)
86 ;;=Answer must be the maximum length this cross-reference value should have
87 ;;^DD(.114,6,21,2,0)
88 ;;=when stored as a subscript in the index. FileMan's lookup utilties
89 ;;^DD(.114,6,21,3,0)
90 ;;=account for lookup values longer than the maximum length.
91 ;;^DD(.114,6,21,4,0)
92 ;;=
93 ;;^DD(.114,6,21,5,0)
94 ;;=Specify a MAXIMUM LENGTH when an untruncated subscript may cause the
95 ;;^DD(.114,6,21,6,0)
96 ;;=length of a global reference in the index to exceed the M Portability
97 ;;^DD(.114,6,21,7,0)
98 ;;=Requirements.
99 ;;^DD(.114,6,"DT")
100 ;;=2960219
101 ;;^DD(.114,7,0)
102 ;;=COLLATION^S^F:forwards;B:backwards;^0;7^Q
103 ;;^DD(.114,7,3)
104 ;;=Answer '??' for more help.
105 ;;^DD(.114,7,21,0)
106 ;;=^^7^7^2980911^
107 ;;^DD(.114,7,21,1,0)
108 ;;=Answer with the direction FileMan's lookup utilities should $ORDER through
109 ;;^DD(.114,7,21,2,0)
110 ;;=this subscript when entries are returned or displayed to the user. If for
111 ;;^DD(.114,7,21,3,0)
112 ;;=example, you have a compound index on a Date of Birth field and a Name
113 ;;^DD(.114,7,21,4,0)
114 ;;=field, and you specify a COLLATION of 'backwards' on the Date of Birth
115 ;;^DD(.114,7,21,5,0)
116 ;;=value, the Lister and the Finder will return entries in reverse-date
117 ;;^DD(.114,7,21,6,0)
118 ;;=order. Likewise, question mark (?) help and partial matches in interactive
119 ;;^DD(.114,7,21,7,0)
120 ;;=^DIC lookups will display entries in reverse-date order.
121 ;;^DD(.114,7,"DT")
122 ;;=2970213
123 ;;^DD(.114,8,0)
124 ;;=LOOKUP PROMPT^F^^0;8^K:$L(X)>30!($L(X)<1) X
125 ;;^DD(.114,8,3)
126 ;;=Answer must be 1-30 characters in length. Answer '??' for more help.
127 ;;^DD(.114,8,21,0)
128 ;;=^^3^3^2980911^
129 ;;^DD(.114,8,21,1,0)
130 ;;=The text entered here will become a prompt for the user when this index is
131 ;;^DD(.114,8,21,2,0)
132 ;;=used for lookup (i.e., in the Classic FileMan calls to ^DIC.) If the text
133 ;;^DD(.114,8,21,3,0)
134 ;;=is missing, then the FIELD LABEL will be used as a default.
135 ;;^DD(.114,8,"DT")
136 ;;=2970506
Note: See TracBrowser for help on using the repository browser.