source: FOIAVistA/trunk/r/VA_FILEMAN-ARJT-DI-DD-DM-DT-%DT-%RCR/DINIT0FM.m@ 1310

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

initial load of FOIAVistA 6/30/08 version

File size: 6.7 KB
Line 
1DINIT0FM ;SFISC/MKO-DATA FOR 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(ENTRY+I) G:X="" ^DINIT0FN S Y=$E($T(ENTRY+I+1),5,999),X=$E(X,4,999),@X=Y
5 Q
6ENTRY ;
7 ;;^DIST(.404,.4611,40,17,22)
8 ;;=K:$L(X)>15!($L(X)<1)!'((X?1AP.E)!(X?3N)!(X?3N1","3N)!(X?3N1","3N1","3N)!(X?3N1","3N1","3N1","3N)) X
9 ;;^DIST(.404,.4611,40,18,0)
10 ;;=5.7^Fields quoted?^2^^QUOTE
11 ;;^DIST(.404,.4611,40,18,2)
12 ;;=12,23^3^12,8^1
13 ;;^DIST(.404,.4611,40,18,13)
14 ;;=S DDMPSMFF("QUOTED")=DDSEXT
15 ;;^DIST(.404,.4611,40,18,20)
16 ;;=Y
17 ;;^DIST(.404,.4611,40,18,21,0)
18 ;;=^^4^4^2950216
19 ;;^DIST(.404,.4611,40,18,21,1,0)
20 ;;=If the values of some fields are surrounded by quotation marks ("), enter
21 ;;^DIST(.404,.4611,40,18,21,2,0)
22 ;;=YES. Field delimiters that occur within the quotation marks are ignored.
23 ;;^DIST(.404,.4611,40,18,21,3,0)
24 ;;=This special treatment of quotation marks is not done for fixed length
25 ;;^DIST(.404,.4611,40,18,21,4,0)
26 ;;=data.
27 ;;^DIST(.404,.4611,40,20,0)
28 ;;=7.4^!M^2^^FLD_JUMP
29 ;;^DIST(.404,.4611,40,20,.1)
30 ;;=S Y=$S($$GET^DDSVALF("F_SEL",1,1)]"":"Field selection page...",1:"")
31 ;;^DIST(.404,.4611,40,20,2)
32 ;;=14,69^1^14,44^1
33 ;;^DIST(.404,.4611,40,20,4)
34 ;;=^^^1
35 ;;^DIST(.404,.4611,40,20,10)
36 ;;=S DDSBR="FLD^1^2"
37 ;;^DIST(.404,.4611,40,20,11)
38 ;;=I $$GET^DDSVALF("TMP_NM",1,1)]"" N DDMPMSG S DDMPMSG(1)="You cannot select fields because you have specified an Import Template for this import.",DDMPMSG(2)="$$EOP" D HLP^DDSUTL(.DDMPMSG) S DDSBR="TMP_NM"
39 ;;^DIST(.404,.4611,40,20,20)
40 ;;=F
41 ;;^DIST(.404,.4611,40,20,21,0)
42 ;;=^^1^1^2960918
43 ;;^DIST(.404,.4611,40,20,21,1,0)
44 ;;=Press <RET> to advance to the Field Selection Page.
45 ;;^DIST(.404,.4611,40,21,0)
46 ;;=5.4^OR^1
47 ;;^DIST(.404,.4611,40,21,2)
48 ;;=^^9,14^1
49 ;;^DIST(.404,.4611,40,22,0)
50 ;;=7.6^!M^1^^OR
51 ;;^DIST(.404,.4611,40,22,.1)
52 ;;=S Y=$S($$GET^DDSVALF("F_SEL",1,1)]"":"OR",1:"")
53 ;;^DIST(.404,.4611,40,22,2)
54 ;;=^^15,54
55 ;;^DIST(.404,.4611,40,23,0)
56 ;;=7.8^!M^2^^TMP_NM
57 ;;^DIST(.404,.4611,40,23,.1)
58 ;;=S Y=$S($$GET^DDSVALF("F_SEL",1,1)]"":"Import Template",1:"")
59 ;;^DIST(.404,.4611,40,23,2)
60 ;;=16,61^18^16,44
61 ;;^DIST(.404,.4611,40,23,4)
62 ;;=^^^1
63 ;;^DIST(.404,.4611,40,23,11)
64 ;;=I $D(DDMPFDSL) N DDMPMSG S DDMPMSG(1)="You have already chosen fields for this import. You may not select an Import Template unless you delete all the chosen fields.",DDMPMSG(2)="$$EOP" D HLP^DDSUTL(.DDMPMSG) S DDSBR="FLD_JUMP"
65 ;;^DIST(.404,.4611,40,23,20)
66 ;;=P^^.46:AE
67 ;;^DIST(.404,.4611,40,23,21,0)
68 ;;=^^3^3^2960605
69 ;;^DIST(.404,.4611,40,23,21,1,0)
70 ;;=Enter the name of an Import Template to use for data import. If you do
71 ;;^DIST(.404,.4611,40,23,21,2,0)
72 ;;=not specify a template, you must specify the fields on the Field Selection
73 ;;^DIST(.404,.4611,40,23,21,3,0)
74 ;;=page.
75 ;;^DIST(.404,.4611,40,23,22)
76 ;;=S X=$TR(X,"[]")
77 ;;^DIST(.404,.4611,40,23,23)
78 ;;=S DDMPTMPL=X
79 ;;^DIST(.404,.4611,40,23,24)
80 ;;=S DIR("S")="I $$TMPLSCR^DDMPSM(DDMPF,DDSEXT,.DUZ)"
81 ;;^DIST(.404,.4612,0)
82 ;;=DDMP FIELD SELECTION
83 ;;^DIST(.404,.4612,40,0)
84 ;;=^.4044I^19^18
85 ;;^DIST(.404,.4612,40,1,0)
86 ;;=1^FIELD SELECTION FOR IMPORT^1
87 ;;^DIST(.404,.4612,40,1,2)
88 ;;=^^1,27
89 ;;^DIST(.404,.4612,40,2,0)
90 ;;=1.2^Page 2^1
91 ;;^DIST(.404,.4612,40,2,2)
92 ;;=^^1,73
93 ;;^DIST(.404,.4612,40,3,0)
94 ;;=1.1^==========================^1
95 ;;^DIST(.404,.4612,40,3,2)
96 ;;=^^2,27^1
97 ;;^DIST(.404,.4612,40,4,0)
98 ;;=2^Choose a field from^1
99 ;;^DIST(.404,.4612,40,4,2)
100 ;;=^^3,2^1
101 ;;^DIST(.404,.4612,40,5,0)
102 ;;=2.1^!M^1
103 ;;^DIST(.404,.4612,40,5,.1)
104 ;;=S Y=$S($D(DDMPFCAP):DDMPFCAP,1:DDMPFLNM)
105 ;;^DIST(.404,.4612,40,5,2)
106 ;;=^^4,2^1
107 ;;^DIST(.404,.4612,40,6,0)
108 ;;=2.2^Field^2^^FLD
109 ;;^DIST(.404,.4612,40,6,2)
110 ;;=5,12^19^5,5
111 ;;^DIST(.404,.4612,40,6,10)
112 ;;=I X=DDSOLD,$L($G(DDMPCPTH)) S DDSBR=2.2 D UP1^DDMPSM,REFRESH^DDSUTL
113 ;;^DIST(.404,.4612,40,6,13)
114 ;;=D FDPROC^DDMPSM,PUT^DDSVALF(2.2,1,2,""):$G(DDSBR)="FLD",REFRESH^DDSUTL
115 ;;^DIST(.404,.4612,40,6,20)
116 ;;=F^^1:30
117 ;;^DIST(.404,.4612,40,6,21,0)
118 ;;=^^1^1^2950217
119 ;;^DIST(.404,.4612,40,6,21,1,0)
120 ;;=^N D0,DA,DIC,D,DZ S DIC="^DD("_DDMPCF_",",DIC(0)="",D="B",DIC("S")="I '($P($G(^DD(+$P(^DD(DDMPCF,Y,0),U,2),.01,0)),U,2)[""W"")" S:$G(X)="?" DZ=X D DQ^DICQ
121 ;;^DIST(.404,.4612,40,6,22)
122 ;;=D IXF^DDMPSM
123 ;;^DIST(.404,.4612,40,8,0)
124 ;;=3.1^Delete last field selected?^2^^FLD_DEL
125 ;;^DIST(.404,.4612,40,8,2)
126 ;;=5,68^3^5,40^1
127 ;;^DIST(.404,.4612,40,8,11)
128 ;;=S DDMPMRK($G(DDMPFDCT))=1 D REFRESH^DDSUTL
129 ;;^DIST(.404,.4612,40,8,12)
130 ;;=K DDMPMRK D REFRESH^DDSUTL ;S DDSBR="COM"
131 ;;^DIST(.404,.4612,40,8,13)
132 ;;=I X D DELFLD^DDMPSM,PUT^DDSVALF(3.1,"","","") S DDSBR=3.1
133 ;;^DIST(.404,.4612,40,8,20)
134 ;;=Y
135 ;;^DIST(.404,.4612,40,8,21,0)
136 ;;=^^2^2^2960716
137 ;;^DIST(.404,.4612,40,8,21,1,0)
138 ;;=Enter YES if you want to delete the most recent field that you selected
139 ;;^DIST(.404,.4612,40,8,21,2,0)
140 ;;=for import. This is the last field on the list to the left
141 ;;^DIST(.404,.4612,40,9,0)
142 ;;=4^These are the fields selected so far:^1
143 ;;^DIST(.404,.4612,40,9,2)
144 ;;=^^8,2
145 ;;^DIST(.404,.4612,40,10,0)
146 ;;=5.1^!M^1
147 ;;^DIST(.404,.4612,40,10,.1)
148 ;;=I $D(DDMPFDSL("CAP",1+DDMPOSET)) N DDMPNUM,DDMPLEN S DDMPNUM=1+DDMPOSET,DDMPLEN=$L(DDMPFDSL("CAP",DDMPNUM)),Y=$S($G(DDMPMRK(DDMPNUM)):"*",1:" ")_$S(DDMPNUM<10:" ",1:"")_DDMPNUM_" - "_$E(DDMPFDSL("CAP",DDMPNUM),DDMPLEN-70,DDMPLEN)
149 ;;^DIST(.404,.4612,40,10,2)
150 ;;=^^9,4^1
151 ;;^DIST(.404,.4612,40,11,0)
152 ;;=5.2^!M^1
153 ;;^DIST(.404,.4612,40,11,.1)
154 ;;=I $D(DDMPFDSL("CAP",2+DDMPOSET)) N DDMPNUM,DDMPLEN S DDMPNUM=2+DDMPOSET,DDMPLEN=$L(DDMPFDSL("CAP",DDMPNUM)),Y=$S($G(DDMPMRK(DDMPNUM)):"*",1:" ")_$S(DDMPNUM<10:" ",1:"")_DDMPNUM_" - "_$E(DDMPFDSL("CAP",DDMPNUM),DDMPLEN-70,DDMPLEN)
155 ;;^DIST(.404,.4612,40,11,2)
156 ;;=^^10,4^1
157 ;;^DIST(.404,.4612,40,12,0)
158 ;;=5.3^!M^1
159 ;;^DIST(.404,.4612,40,12,.1)
160 ;;=I $D(DDMPFDSL("CAP",3+DDMPOSET)) N DDMPNUM,DDMPLEN S DDMPNUM=3+DDMPOSET,DDMPLEN=$L(DDMPFDSL("CAP",DDMPNUM)),Y=$S($G(DDMPMRK(DDMPNUM)):"*",1:" ")_$S(DDMPNUM<10:" ",1:"")_DDMPNUM_" - "_$E(DDMPFDSL("CAP",DDMPNUM),DDMPLEN-70,DDMPLEN)
161 ;;^DIST(.404,.4612,40,12,2)
162 ;;=^^11,4^1
163 ;;^DIST(.404,.4612,40,13,0)
164 ;;=5.4^!M^1
165 ;;^DIST(.404,.4612,40,13,.1)
166 ;;=I $D(DDMPFDSL("CAP",4+DDMPOSET)) N DDMPNUM,DDMPLEN S DDMPNUM=4+DDMPOSET,DDMPLEN=$L(DDMPFDSL("CAP",DDMPNUM)),Y=$S($G(DDMPMRK(DDMPNUM)):"*",1:" ")_$S(DDMPNUM<10:" ",1:"")_DDMPNUM_" - "_$E(DDMPFDSL("CAP",DDMPNUM),DDMPLEN-70,DDMPLEN)
167 ;;^DIST(.404,.4612,40,13,2)
168 ;;=^^12,4^1
169 ;;^DIST(.404,.4612,40,14,0)
170 ;;=5.5^!M^1
171 ;;^DIST(.404,.4612,40,14,.1)
172 ;;=I $D(DDMPFDSL("CAP",5+DDMPOSET)) N DDMPNUM,DDMPLEN S DDMPNUM=5+DDMPOSET,DDMPLEN=$L(DDMPFDSL("CAP",DDMPNUM)),Y=$S($G(DDMPMRK(DDMPNUM)):"*",1:" ")_$S(DDMPNUM<10:" ",1:"")_DDMPNUM_" - "_$E(DDMPFDSL("CAP",DDMPNUM),DDMPLEN-70,DDMPLEN)
173 ;;^DIST(.404,.4612,40,14,2)
174 ;;=^^13,4^1
175 ;;^DIST(.404,.4612,40,15,0)
176 ;;=5.6^!M^1
Note: See TracBrowser for help on using the repository browser.