Produced by Araxis Merge on 4/11/2017 10:42:12 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | Tue Apr 11 15:42:12 2017 UTC | ||
2 | PS_PPS_lib\bin\mavenrepo\vha\stddata\vha-stddata-client\15.0\vha-stddata-client-15.0.jar\def\gov\va\med\term\access | State.xml | Thu Sep 6 07:48:32 2007 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 0 | 0 |
Changed | 0 | 0 |
Inserted | 1 | 693 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | <?xml | |||||
2 | version="1 .0" | |||||
3 | encoding=" UTF-8" | |||||
4 | ?> | |||||
5 | <type | |||||
6 | _simple-cl ass-name=" State" | |||||
7 | _a="a" | |||||
8 | _package=" gov.va.med .term.acce ss" | |||||
9 | _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" | |||||
10 | _implement ation-clas s-simple-n ame="Mutab leState" | |||||
11 | _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableStat e" | |||||
12 | _mutable-c lass-name= "gov.va.me d.term.acc ess.mutabl e.State" | |||||
13 | _readonly- class-pack age="gov.v a.med.term .access.re adonly" | |||||
14 | _transfero bject-clas s-package= "gov.va.me d.term.acc ess.ejb.co mmon" | |||||
15 | _readonly- class-simp le-name="R eadonlySta te" | |||||
16 | _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyState" | |||||
17 | _transfero bject-clas s-simple-n ame="State TOv1" | |||||
18 | _transfero bject-clas s-name="go v.va.med.t erm.access .ejb.commo n.StateTOv 1" | |||||
19 | _decapital ized-class -name="sta te" | |||||
20 | _table-abb rev="STD_S tate" | |||||
21 | auditable= "true" | |||||
22 | has-versio n-number=" true" | |||||
23 | name="gov. va.med.ter m.access.S tate" | |||||
24 | serial-ver sion-uid=" 1" | |||||
25 | short-desc ription="A subdivisi on or terr itory of a country u sed for po stal addre ssing." | |||||
26 | table="STD _State" | |||||
27 | user-name= "State" | |||||
28 | tablespace ="S_DATA_0 1" | |||||
29 | indexspace ="S_INDEX_ 01" | |||||
30 | read-only= "false" | |||||
31 | deleteable ="false" | |||||
32 | supports-l ogical-del ete="true" | |||||
33 | temporal=" snapshot" | |||||
34 | abstract=" false" | |||||
35 | > | |||||
36 | ||||||
37 | <descripti on> | |||||
38 | A to p-level su bdivision of a count ry, identi fying a ge ographic r egion | |||||
39 | larg er than a single cit y or town used by th at country 's postal system | |||||
40 | for addressing . The nam e for this entity va ries by co untry; syn onyms | |||||
41 | incl ude provin ce, distri ct, territ ory, and c anton. | |||||
42 | Only a small p ercentage of countri es have to p-level su bdivisions | |||||
43 | used for addre ssing. On ly subdivi sions used for addre ssing are | |||||
44 | repr esented by this clas s. | |||||
45 | < p> | |||||
46 | The authoritat ive source for this data is th e postal s ervice for each | |||||
47 | coun try. A us eful secon dary sourc e is the U niversal P ostal Unio n, | |||||
48 | alth ough their documenta tion is no t always u p-to-date. | |||||
49 | < /p>< p> | |||||
50 | For some count ries, this data is s imilar to that speci fied by IS O-3166-2, | |||||
51 | whic h identifi es top-lev el adminis trative su bdivisions . However , | |||||
52 | coun try postal subdivisi ons are no t necessar ily identi cal to | |||||
53 | admi nistrative subdivisi ons. For example, I SO-3166 id entifies | |||||
54 | Puer to Rico as a country , but Puer to Rico is served by the US | |||||
55 | Post al Service , which id entifies i t as a Sta te for the purpose o f | |||||
56 | addr essing. | |||||
57 | < /p> | |||||
58 | ||||||
59 | </descript ion> | |||||
60 | ||||||
61 | <alternate -key-group | |||||
62 | _capitaliz ed-name="P ostalName" | |||||
63 | _abbrev="P ostalName" | |||||
64 | name="post alName" | |||||
65 | short-desc ription="p ostalName" | |||||
66 | > | |||||
67 | ||||||
68 | ||||||
69 | <alternate -key-eleme nt | |||||
70 | name="coun try" | |||||
71 | /> | |||||
72 | ||||||
73 | ||||||
74 | <alternate -key-eleme nt | |||||
75 | name="post alName" | |||||
76 | /> | |||||
77 | ||||||
78 | ||||||
79 | </alternat e-key-grou p> | |||||
80 | ||||||
81 | <alternate -key-group | |||||
82 | _capitaliz ed-name="N ame" | |||||
83 | _abbrev="N ame" | |||||
84 | name="name " | |||||
85 | short-desc ription="n ame" | |||||
86 | > | |||||
87 | ||||||
88 | ||||||
89 | <alternate -key-eleme nt | |||||
90 | name="coun try" | |||||
91 | /> | |||||
92 | ||||||
93 | ||||||
94 | <alternate -key-eleme nt | |||||
95 | name="name " | |||||
96 | /> | |||||
97 | ||||||
98 | ||||||
99 | </alternat e-key-grou p> | |||||
100 | ||||||
101 | <alternate -key-group | |||||
102 | _capitaliz ed-name="F ipsCode" | |||||
103 | _abbrev="F ipsCode" | |||||
104 | name="fips Code" | |||||
105 | short-desc ription="f ipsCode" | |||||
106 | > | |||||
107 | ||||||
108 | ||||||
109 | <alternate -key-eleme nt | |||||
110 | name="coun try" | |||||
111 | /> | |||||
112 | ||||||
113 | ||||||
114 | <alternate -key-eleme nt | |||||
115 | name="fips Code" | |||||
116 | /> | |||||
117 | ||||||
118 | ||||||
119 | </alternat e-key-grou p> | |||||
120 | ||||||
121 | <sort-attr s> | |||||
122 | ||||||
123 | <sort-attr | |||||
124 | name="name " | |||||
125 | /> | |||||
126 | ||||||
127 | </sort-att rs> | |||||
128 | ||||||
129 | <attr | |||||
130 | name="id" | |||||
131 | datatype=" Long" | |||||
132 | display-on -list="fal se" | |||||
133 | display-on -search="f alse" | |||||
134 | display-on -view="fal se" | |||||
135 | key="syste m-assigned " | |||||
136 | min-value= "1" | |||||
137 | short-desc ription="T he identif ier for th e state. This is th e primary key for th e object." | |||||
138 | user-name= "Id" | |||||
139 | private="f alse" | |||||
140 | owning="fa lse" | |||||
141 | shared-key ="false" | |||||
142 | required=" false" | |||||
143 | unique="fa lse" | |||||
144 | frozen="tr ue" | |||||
145 | password=" false" | |||||
146 | allow-patt ern-search ="false" | |||||
147 | allow-soun dex-search ="false" | |||||
148 | _capitaliz ed-name="I d" | |||||
149 | _accessor- name="getI d" | |||||
150 | _mutator-n ame="setId " | |||||
151 | _hibernate -name="id" | |||||
152 | _derived=" false" | |||||
153 | _system-as signed="tr ue" | |||||
154 | _is-user-d efined="fa lse" | |||||
155 | _column-na me="id" | |||||
156 | _capitaliz ed-column- name="Id" | |||||
157 | _column-ab brev="Id" | |||||
158 | _is-multi= "false" | |||||
159 | _atomic-da tatype="Lo ng" | |||||
160 | _simple-da tatype="Lo ng" | |||||
161 | _simple-at omic-datat ype="Long" | |||||
162 | /> | |||||
163 | ||||||
164 | <attr | |||||
165 | name="name " | |||||
166 | datatype=" String" | |||||
167 | max-length ="50" | |||||
168 | required=" true" | |||||
169 | short-desc ription="T he name of the state ." | |||||
170 | user-name= "Name" | |||||
171 | private="f alse" | |||||
172 | owning="fa lse" | |||||
173 | shared-key ="false" | |||||
174 | unique="fa lse" | |||||
175 | frozen="fa lse" | |||||
176 | password=" false" | |||||
177 | display-on -search="t rue" | |||||
178 | display-on -list="tru e" | |||||
179 | display-on -view="tru e" | |||||
180 | allow-patt ern-search ="false" | |||||
181 | allow-soun dex-search ="false" | |||||
182 | _capitaliz ed-name="N ame" | |||||
183 | _accessor- name="getN ame" | |||||
184 | _mutator-n ame="setNa me" | |||||
185 | _hibernate -name="nam e" | |||||
186 | _derived=" false" | |||||
187 | _system-as signed="fa lse" | |||||
188 | _is-user-d efined="fa lse" | |||||
189 | _column-na me="name" | |||||
190 | _capitaliz ed-column- name="Name " | |||||
191 | _column-ab brev="Name " | |||||
192 | _is-multi= "false" | |||||
193 | _atomic-da tatype="St ring" | |||||
194 | _simple-da tatype="St ring" | |||||
195 | _simple-at omic-datat ype="Strin g" | |||||
196 | /> | |||||
197 | ||||||
198 | <attr | |||||
199 | name="post alName" | |||||
200 | datatype=" String" | |||||
201 | max-length ="30" | |||||
202 | required=" true" | |||||
203 | short-desc ription="R epresents the state as used fo r address purposes. For the U nited Stat es and Can ada, this is the uni que two-ch aracter St ate or Pro vince code . For Mex ico, it is an abbrev iation for the State . For oth er countri es, it may be identi cal to the State nam e." | |||||
204 | transforms ="Uppercas e" | |||||
205 | unique="tr ue" | |||||
206 | user-name= "Postal Co de" | |||||
207 | private="f alse" | |||||
208 | owning="fa lse" | |||||
209 | shared-key ="false" | |||||
210 | frozen="fa lse" | |||||
211 | password=" false" | |||||
212 | display-on -search="t rue" | |||||
213 | display-on -list="tru e" | |||||
214 | display-on -view="tru e" | |||||
215 | allow-patt ern-search ="false" | |||||
216 | allow-soun dex-search ="false" | |||||
217 | _capitaliz ed-name="P ostalName" | |||||
218 | _accessor- name="getP ostalName" | |||||
219 | _mutator-n ame="setPo stalName" | |||||
220 | _hibernate -name="pos talName" | |||||
221 | _derived=" false" | |||||
222 | _system-as signed="fa lse" | |||||
223 | _is-user-d efined="fa lse" | |||||
224 | _column-na me="postal Name" | |||||
225 | _capitaliz ed-column- name="Post alName" | |||||
226 | _column-ab brev="Post alName" | |||||
227 | _is-multi= "false" | |||||
228 | _atomic-da tatype="St ring" | |||||
229 | _simple-da tatype="St ring" | |||||
230 | _simple-at omic-datat ype="Strin g" | |||||
231 | /> | |||||
232 | ||||||
233 | <attr | |||||
234 | name="fips Code" | |||||
235 | datatype=" String" | |||||
236 | length="2" | |||||
237 | user-name= "FIPS Code " | |||||
238 | short-desc ription="T he code as signed to this state by FIPS 5 -2." | |||||
239 | frozen="tr ue" | |||||
240 | pattern="[ 0-9]{2}" | |||||
241 | pattern-de scription= "two numer ic charact ers" | |||||
242 | private="f alse" | |||||
243 | owning="fa lse" | |||||
244 | shared-key ="false" | |||||
245 | required=" false" | |||||
246 | unique="fa lse" | |||||
247 | password=" false" | |||||
248 | display-on -search="t rue" | |||||
249 | display-on -list="tru e" | |||||
250 | display-on -view="tru e" | |||||
251 | allow-patt ern-search ="false" | |||||
252 | allow-soun dex-search ="false" | |||||
253 | _capitaliz ed-name="F ipsCode" | |||||
254 | _accessor- name="getF ipsCode" | |||||
255 | _mutator-n ame="setFi psCode" | |||||
256 | _hibernate -name="fip sCode" | |||||
257 | _derived=" false" | |||||
258 | _system-as signed="fa lse" | |||||
259 | _is-user-d efined="fa lse" | |||||
260 | _column-na me="fipsCo de" | |||||
261 | _capitaliz ed-column- name="Fips Code" | |||||
262 | _column-ab brev="Fips Code" | |||||
263 | _is-multi= "false" | |||||
264 | _atomic-da tatype="St ring" | |||||
265 | _simple-da tatype="St ring" | |||||
266 | _simple-at omic-datat ype="Strin g" | |||||
267 | /> | |||||
268 | ||||||
269 | <attr | |||||
270 | name="coun try" | |||||
271 | datatype=" gov.va.med .term.acce ss.Country " | |||||
272 | short-desc ription="T he country to which this state belongs." | |||||
273 | required=" true" | |||||
274 | owning-att r="states" | |||||
275 | display-on -list="fal se" | |||||
276 | private="f alse" | |||||
277 | owning="fa lse" | |||||
278 | shared-key ="false" | |||||
279 | unique="fa lse" | |||||
280 | frozen="tr ue" | |||||
281 | password=" false" | |||||
282 | display-on -search="t rue" | |||||
283 | display-on -view="tru e" | |||||
284 | allow-patt ern-search ="false" | |||||
285 | allow-soun dex-search ="false" | |||||
286 | _capitaliz ed-name="C ountry" | |||||
287 | user-name= "Country" | |||||
288 | _accessor- name="getC ountry" | |||||
289 | _mutator-n ame="setCo untry" | |||||
290 | _hibernate -name="cou ntry" | |||||
291 | _derived=" false" | |||||
292 | _system-as signed="fa lse" | |||||
293 | _is-user-d efined="tr ue" | |||||
294 | _column-na me="countr y" | |||||
295 | _capitaliz ed-column- name="Coun try" | |||||
296 | _column-ab brev="Coun try" | |||||
297 | _is-multi= "false" | |||||
298 | _atomic-da tatype="go v.va.med.t erm.access .Country" | |||||
299 | _simple-da tatype="Co untry" | |||||
300 | _simple-at omic-datat ype="Count ry" | |||||
301 | _datatype- package="g ov.va.med. term.acces s" | |||||
302 | _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" | |||||
303 | _implement ation-clas s-simple-n ame="Mutab leCountry" | |||||
304 | _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableCoun try" | |||||
305 | _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Cou ntry" | |||||
306 | _mutable-d atatype="g ov.va.med. term.acces s.mutable. Country" | |||||
307 | _readonly- class-pack age="gov.v a.med.term .access.re adonly" | |||||
308 | _readonly- class-simp le-name="R eadonlyCou ntry" | |||||
309 | _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyCountry" | |||||
310 | _supports- logical-de lete="true " | |||||
311 | _datatype- is-attr-gr oup="false " | |||||
312 | _role="chi ld" | |||||
313 | _relations hip="one-t o-many" | |||||
314 | _stores-fo reign-key= "true" | |||||
315 | _bidirecti onal="true " | |||||
316 | /> | |||||
317 | ||||||
318 | <attr | |||||
319 | name="coun ties" | |||||
320 | datatype=" gov.va.med .term.acce ss.County[ ]" | |||||
321 | short-desc ription="T he countie s within t he state." | |||||
322 | owning="tr ue" | |||||
323 | display-on -list="fal se" | |||||
324 | private="f alse" | |||||
325 | shared-key ="false" | |||||
326 | required=" false" | |||||
327 | unique="fa lse" | |||||
328 | frozen="fa lse" | |||||
329 | password=" false" | |||||
330 | display-on -search="f alse" | |||||
331 | display-on -view="tru e" | |||||
332 | allow-patt ern-search ="false" | |||||
333 | allow-soun dex-search ="false" | |||||
334 | _capitaliz ed-name="C ounties" | |||||
335 | user-name= "Counties" | |||||
336 | _accessor- name="getC ounties" | |||||
337 | _mutator-n ame="setCo unties" | |||||
338 | _hibernate -name="cou nties" | |||||
339 | _derived=" false" | |||||
340 | _system-as signed="fa lse" | |||||
341 | _is-user-d efined="tr ue" | |||||
342 | _column-na me="counti es" | |||||
343 | _capitaliz ed-column- name="Coun ties" | |||||
344 | _column-ab brev="Coun ties" | |||||
345 | _is-multi= "true" | |||||
346 | _singular- name="coun tie" | |||||
347 | _capitaliz ed-singula r-name="Co untie" | |||||
348 | _atomic-da tatype="go v.va.med.t erm.access .County" | |||||
349 | _simple-da tatype="Co unty[]" | |||||
350 | _simple-at omic-datat ype="Count y" | |||||
351 | _datatype- package="g ov.va.med. term.acces s" | |||||
352 | _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" | |||||
353 | _implement ation-clas s-simple-n ame="Mutab leCounty" | |||||
354 | _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableCoun ty" | |||||
355 | _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Cou nty" | |||||
356 | _mutable-d atatype="g ov.va.med. term.acces s.mutable. County[]" | |||||
357 | _readonly- class-pack age="gov.v a.med.term .access.re adonly" | |||||
358 | _readonly- class-simp le-name="R eadonlyCou nty" | |||||
359 | _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyCounty" | |||||
360 | _supports- logical-de lete="true " | |||||
361 | _datatype- is-attr-gr oup="false " | |||||
362 | _role="par ent" | |||||
363 | _relations hip="one-t o-many" | |||||
364 | _stores-fo reign-key= "false" | |||||
365 | _bidirecti onal="true " | |||||
366 | _dependent -type="sim ple" | |||||
367 | /> | |||||
368 | ||||||
369 | <attr | |||||
370 | name="isAc tive" | |||||
371 | datatype=" boolean" | |||||
372 | short-desc ription="T rue if thi s object i s currentl y active." | |||||
373 | private="f alse" | |||||
374 | owning="fa lse" | |||||
375 | shared-key ="false" | |||||
376 | required=" false" | |||||
377 | unique="fa lse" | |||||
378 | frozen="fa lse" | |||||
379 | password=" false" | |||||
380 | display-on -search="t rue" | |||||
381 | display-on -list="tru e" | |||||
382 | display-on -view="tru e" | |||||
383 | allow-patt ern-search ="false" | |||||
384 | allow-soun dex-search ="false" | |||||
385 | _capitaliz ed-name="I sActive" | |||||
386 | user-name= "Is Active " | |||||
387 | _accessor- name="isAc tive" | |||||
388 | _mutator-n ame="setAc tive" | |||||
389 | _hibernate -name="act ive" | |||||
390 | _derived=" true" | |||||
391 | _system-as signed="tr ue" | |||||
392 | _is-user-d efined="fa lse" | |||||
393 | _column-na me="isActi ve" | |||||
394 | _capitaliz ed-column- name="IsAc tive" | |||||
395 | _column-ab brev="IsAc tive" | |||||
396 | _is-multi= "false" | |||||
397 | _atomic-da tatype="bo olean" | |||||
398 | _simple-da tatype="bo olean" | |||||
399 | _simple-at omic-datat ype="boole an" | |||||
400 | > | |||||
401 | ||||||
402 | <derivatio n-expressi on | |||||
403 | apply-on-c reate="fal se" | |||||
404 | > | |||||
405 | is Active(new java.sql. Date(Syste m.currentT imeMillis( ))) | |||||
406 | ||||||
407 | </derivati on-express ion> | |||||
408 | ||||||
409 | </attr> | |||||
410 | ||||||
411 | <attr | |||||
412 | name="hist ory" | |||||
413 | singular-n ame="histo ry" | |||||
414 | datatype=" gov.va.med .term.acce ss.StateHi story[]" | |||||
415 | short-desc ription="T he status history fo r State." | |||||
416 | owning="tr ue" | |||||
417 | display-on -list="fal se" | |||||
418 | private="f alse" | |||||
419 | shared-key ="false" | |||||
420 | required=" false" | |||||
421 | unique="fa lse" | |||||
422 | frozen="fa lse" | |||||
423 | password=" false" | |||||
424 | display-on -search="f alse" | |||||
425 | display-on -view="tru e" | |||||
426 | allow-patt ern-search ="false" | |||||
427 | allow-soun dex-search ="false" | |||||
428 | _capitaliz ed-name="H istory" | |||||
429 | user-name= "History" | |||||
430 | _accessor- name="getH istory" | |||||
431 | _mutator-n ame="setHi story" | |||||
432 | _hibernate -name="his tory" | |||||
433 | _derived=" false" | |||||
434 | _system-as signed="fa lse" | |||||
435 | _is-user-d efined="tr ue" | |||||
436 | _column-na me="histor y" | |||||
437 | _capitaliz ed-column- name="Hist ory" | |||||
438 | _column-ab brev="Hist ory" | |||||
439 | _is-multi= "true" | |||||
440 | _singular- name="hist ory" | |||||
441 | _capitaliz ed-singula r-name="Hi story" | |||||
442 | _atomic-da tatype="go v.va.med.t erm.access .StateHist ory" | |||||
443 | _simple-da tatype="St ateHistory []" | |||||
444 | _simple-at omic-datat ype="State History" | |||||
445 | _datatype- package="g ov.va.med. term.acces s" | |||||
446 | _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" | |||||
447 | _implement ation-clas s-simple-n ame="Mutab leStateHis tory" | |||||
448 | _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableStat eHistory" | |||||
449 | _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Sta teHistory" | |||||
450 | _mutable-d atatype="g ov.va.med. term.acces s.mutable. StateHisto ry[]" | |||||
451 | _readonly- class-pack age="gov.v a.med.term .access.re adonly" | |||||
452 | _readonly- class-simp le-name="R eadonlySta teHistory" | |||||
453 | _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyStateHis tory" | |||||
454 | _supports- logical-de lete="fals e" | |||||
455 | _datatype- is-attr-gr oup="false " | |||||
456 | _role="par ent" | |||||
457 | _relations hip="one-t o-many" | |||||
458 | _stores-fo reign-key= "false" | |||||
459 | _bidirecti onal="true " | |||||
460 | _dependent -type="sim ple" | |||||
461 | /> | |||||
462 | ||||||
463 | <query | |||||
464 | short-desc ription="T rue if thi s object i s active o n the give n date." | |||||
465 | > | |||||
466 | ||||||
467 | <method-si gnature> | |||||
468 | boolea n | |||||
469 | isActi ve( | |||||
470 | ja va.sql.Dat e when | |||||
471 | ) | |||||
472 | ||||||
473 | </method-s ignature> | |||||
474 | ||||||
475 | <method-bo dy> | |||||
476 | StateHisto ry[] histo ry = getHi story(); | |||||
477 | fo r (int i=0 ; i<his tory.lengt h; i++) | |||||
478 | { | |||||
479 | StateHis tory entry | |||||
480 | = history [i]; | |||||
481 | java.sql .Date effe ctiveDate = entry.ge tEffective Date(); | |||||
482 | java.sql .Date expi rationDate = entry.g etExpirati onDate(); | |||||
483 | if ( ( effectiveD ate.before (when) || effectiveD ate.equals (when)) | |||||
484 | & ;& whe n.before(e xpirationD ate) | |||||
485 | ) | |||||
486 | { | |||||
487 | retu rn entry.i sActive(); | |||||
488 | } | |||||
489 | } | |||||
490 | re turn false ; | |||||
491 | ||||||
492 | </method-b ody> | |||||
493 | ||||||
494 | </query> | |||||
495 | ||||||
496 | <script | |||||
497 | language=" beanshell" | |||||
498 | id="name-i s-unique-w ithin-a-co untry" | |||||
499 | > | |||||
500 | bool ean result = false; | |||||
501 | Obje ct other = | |||||
502 | ((object.c ountry != null) @and (object.n ame != nul l)) | |||||
503 | ? object.o btainByNam e(object.c ountry, ob ject.name) | |||||
504 | : null; | |||||
505 | if ( (other == null) @or (other.id. equals(obj ect.id))) | |||||
506 | { | |||||
507 | result = t rue; | |||||
508 | } | |||||
509 | else | |||||
510 | { | |||||
511 | errors.put (object.na me, "name" , "Name mu st be uniq ue within a country. "); | |||||
512 | } | |||||
513 | retu rn result; | |||||
514 | ||||||
515 | </script> | |||||
516 | ||||||
517 | <script | |||||
518 | language=" beanshell" | |||||
519 | id="fipsCo de-is-uniq ue-within- a-country" | |||||
520 | > | |||||
521 | bool ean result = false; | |||||
522 | Obje ct other = | |||||
523 | ((object.c ountry != null) @and (object.f ipsCode != null)) | |||||
524 | ? object.o btainByFip sCode(obje ct.country , object.f ipsCode) | |||||
525 | : null; | |||||
526 | if ( (other == null) @or (other.id. equals(obj ect.id))) | |||||
527 | { | |||||
528 | result = t rue; | |||||
529 | } | |||||
530 | else | |||||
531 | { | |||||
532 | errors.put (object.fi psCode, "f ipsCode", "FIPS code must be u nique with in a count ry."); | |||||
533 | } | |||||
534 | retu rn result; | |||||
535 | ||||||
536 | </script> | |||||
537 | ||||||
538 | <script | |||||
539 | language=" beanshell" | |||||
540 | id="postal NameForUSA ndCanada" | |||||
541 | > | |||||
542 | // C anada = 10 06124 | |||||
543 | // U SA = 10 06840 | |||||
544 | bool ean result = false; | |||||
545 | if ( (obje ct.country != null) | |||||
546 | @and ((obj ect.countr y.id == 10 06124) @or (object.c ountry.id == 1006840 )) | |||||
547 | @and ((obj ect.postal Name == nu ll) @or (o bject.post alName.len gth() != 2 )) | |||||
548 | ) | |||||
549 | { | |||||
550 | errors.put (object.po stalName, "postalNam e", "Posta l name mus t be 2 cha racters fo r USA or C anada."); | |||||
551 | } | |||||
552 | else | |||||
553 | { | |||||
554 | result = t rue; | |||||
555 | } | |||||
556 | retu rn result; | |||||
557 | ||||||
558 | </script> | |||||
559 | ||||||
560 | <extension > | |||||
561 | ||||||
562 | ||||||
563 | <hl7-messa ging-metad ata> | |||||
564 | ||||||
565 | ||||||
566 | <master-fi le-identif ier> | |||||
567 | ||||||
568 | ||||||
569 | <coded-ele ment> | |||||
570 | ||||||
571 | ||||||
572 | <identifie r> | |||||
573 | ||||||
574 | ||||||
575 | <constant | |||||
576 | value="gov .va.med.te rm.access. State" | |||||
577 | /> | |||||
578 | ||||||
579 | ||||||
580 | </identifi er> | |||||
581 | ||||||
582 | ||||||
583 | <text> | |||||
584 | ||||||
585 | ||||||
586 | <constant | |||||
587 | value="Sta te" | |||||
588 | /> | |||||
589 | ||||||
590 | ||||||
591 | </text> | |||||
592 | ||||||
593 | ||||||
594 | <coding-sy stem> | |||||
595 | ||||||
596 | ||||||
597 | <constant | |||||
598 | value="SDS " | |||||
599 | /> | |||||
600 | ||||||
601 | ||||||
602 | </coding-s ystem> | |||||
603 | ||||||
604 | ||||||
605 | </coded-el ement> | |||||
606 | ||||||
607 | ||||||
608 | </master-f ile-identi fier> | |||||
609 | ||||||
610 | ||||||
611 | <primary-k ey-value> | |||||
612 | ||||||
613 | ||||||
614 | <coded-ele ment> | |||||
615 | ||||||
616 | ||||||
617 | <identifie r> | |||||
618 | ||||||
619 | ||||||
620 | <attr-ref | |||||
621 | name="id" | |||||
622 | /> | |||||
623 | ||||||
624 | ||||||
625 | </identifi er> | |||||
626 | ||||||
627 | ||||||
628 | <text> | |||||
629 | ||||||
630 | ||||||
631 | <attr-ref | |||||
632 | name="name " | |||||
633 | /> | |||||
634 | ||||||
635 | ||||||
636 | </text> | |||||
637 | ||||||
638 | ||||||
639 | <coding-sy stem> | |||||
640 | ||||||
641 | ||||||
642 | <constant | |||||
643 | value="SDS " | |||||
644 | /> | |||||
645 | ||||||
646 | ||||||
647 | </coding-s ystem> | |||||
648 | ||||||
649 | ||||||
650 | <alternate -identifie r> | |||||
651 | ||||||
652 | ||||||
653 | <attr-ref | |||||
654 | name="fips Code" | |||||
655 | /> | |||||
656 | ||||||
657 | ||||||
658 | </alternat e-identifi er> | |||||
659 | ||||||
660 | ||||||
661 | <alternate -text> | |||||
662 | ||||||
663 | ||||||
664 | <attr-ref | |||||
665 | name="name " | |||||
666 | /> | |||||
667 | ||||||
668 | ||||||
669 | </alternat e-text> | |||||
670 | ||||||
671 | ||||||
672 | <alternate -coding-sy stem> | |||||
673 | ||||||
674 | ||||||
675 | <constant | |||||
676 | value="VA" | |||||
677 | /> | |||||
678 | ||||||
679 | ||||||
680 | </alternat e-coding-s ystem> | |||||
681 | ||||||
682 | ||||||
683 | </coded-el ement> | |||||
684 | ||||||
685 | ||||||
686 | </primary- key-value> | |||||
687 | ||||||
688 | ||||||
689 | </hl7-mess aging-meta data> | |||||
690 | ||||||
691 | ||||||
692 | </extensio n> | |||||
693 | </type> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.