Produced by Araxis Merge on 4/4/2019 2:57:43 PM 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 | C:\AraxisMergeCompare\Pri_un\VHIE_VDIF\RegistryHub\CustomXslt\xslt\IHE\PDQ\Version1\Custom | vaPRPAIN201306UVToPatientSearchResponse.xsl | Tue Apr 2 19:02:53 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\eHealth Exchange Enhancements Phase 2-redacted\VHIE_VDIF\RegistryHub\CustomXslt\xslt\IHE\PDQ\Version1\Custom | vaPRPAIN201306UVToPatientSearchResponse.xsl | Tue Apr 2 20:08:34 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 1158 |
Changed | 2 | 4 |
Inserted | 0 | 0 |
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 | <xsl:style sheet | |
6 | xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" | |
7 | xmlns="htt p:// URL . DOMAIN . EXT " | |
8 | xmlns:quer y="urn:oas is:names:t c:ebxml-re grep:xsd:q uery:3.0" | |
9 | xmlns:hl7= "urn:hl7-o rg:v3" | |
10 | xmlns:idm= "http:// URL . DOMAIN . EXT " | |
11 | xmlns:isc= "http://ex tension-fu nctions.in tersystems .com" | |
12 | xmlns:rim= "urn:oasis :names:tc: ebxml-regr ep:xsd:rim :3.0" | |
13 | version="1 .0" | |
14 | xmlns:wrap per="http: //wrapper. intersyste ms.com" | |
15 | xmlns:ihe= "urn:ihe:i ti:xds-b:2 007" | |
16 | exclude-re sult-prefi xes="wrapp er isc hl7 ihe query rim" | |
17 | > | |
18 | ||
19 | <xsl:outpu t | |
20 | method="xm l" | |
21 | indent="no " | |
22 | omit-xml-d eclaration ="yes" | |
23 | /> | |
24 | ||
25 | <xsl:param | |
26 | name="Mess ageType" | |
27 | /> | |
28 | ||
29 | <xsl:templ ate | |
30 | match="/" | |
31 | > | |
32 | ||
33 | <PatientSe archRespon se> | |
34 | ||
35 | <Results> | |
36 | ||
37 | <xsl:apply -templates | |
38 | select="id m:PRPA_IN2 01306UV02/ hl7:contro lActProces s/hl7:subj ect/hl7:re gistration Event" | |
39 | /> | |
40 | ||
41 | </Results> | |
42 | ||
43 | ||
44 | <xsl:if | |
45 | test="idm: PRPA_IN201 306UV02/hl 7:acknowle dgement/hl 7:typeCode /@code!='A A'" | |
46 | > | |
47 | ||
48 | <Additiona lInfo> | |
49 | ||
50 | <Additiona lInfoItem | |
51 | Additional InfoKey="E rrStatusTe xt" | |
52 | > | |
53 | ||
54 | <xsl:value -of | |
55 | select="id m:PRPA_IN2 01306UV02/ hl7:acknow ledgement/ hl7:acknow ledgementD etail/hl7: text/text( )" | |
56 | /> | |
57 | ||
58 | </Addition alInfoItem > | |
59 | ||
60 | </Addition alInfo> | |
61 | ||
62 | </xsl:if> | |
63 | ||
64 | ||
65 | ||
66 | <xsl:if | |
67 | test="idm: PRPA_IN201 306UV02/hl 7:controlA ctProcess/ hl7:queryA ck/hl7:que ryResponse Code/@code ='NF'" | |
68 | > | |
69 | ||
70 | <Additiona lInfo> | |
71 | ||
72 | <Additiona lInfoItem | |
73 | Additional InfoKey="N umber of P atients Fo und" | |
74 | > | |
75 | ||
76 | <xsl:value -of | |
77 | select="id m:PRPA_IN2 01306UV02/ hl7:contro lActProces s/hl7:quer yAck/hl7:r esultCurre ntQuantity /@value" | |
78 | /> | |
79 | ||
80 | </Addition alInfoItem > | |
81 | ||
82 | </Addition alInfo> | |
83 | ||
84 | </xsl:if> | |
85 | ||
86 | ||
87 | <xsl:if | |
88 | test="idm: PRPA_IN201 306UV02/hl 7:controlA ctProcess/ hl7:queryA ck/hl7:res ultRemaini ngQuantity /@value" | |
89 | > | |
90 | ||
91 | <xsl:varia ble | |
92 | name="tota l" | |
93 | > | |
94 | ||
95 | <xsl:value -of | |
96 | select="id m:PRPA_IN2 01306UV02/ hl7:contro lActProces s/hl7:quer yAck/hl7:r esultTotal Quantity/@ value" | |
97 | /> | |
98 | ||
99 | </xsl:vari able> | |
100 | ||
101 | <xsl:varia ble | |
102 | name="rema ining" | |
103 | > | |
104 | ||
105 | <xsl:value -of | |
106 | select="id m:PRPA_IN2 01306UV02/ hl7:contro lActProces s/hl7:quer yAck/hl7:r esultRemai ningQuanti ty/@value" | |
107 | /> | |
108 | ||
109 | </xsl:vari able> | |
110 | ||
111 | <xsl:if | |
112 | test="(num ber($remai ning))>0" | |
113 | > | |
114 | ||
115 | <Additiona lInfo> | |
116 | ||
117 | <Additiona lInfoItem | |
118 | Additional InfoKey="C ontinuatio nPointer" | |
119 | > | |
120 | ||
121 | <xsl:value -of | |
122 | select="(( number($to tal)-numbe r($remaini ng))+1)" | |
123 | /> | |
124 | ||
125 | </Addition alInfoItem > | |
126 | ||
127 | <Additiona lInfoItem | |
128 | Additional InfoKey="O riginalQue ryID" | |
129 | > | |
130 | ||
131 | <xsl:value -of | |
132 | select="id m:PRPA_IN2 01306UV02/ hl7:contro lActProces s/hl7:quer yAck/hl7:q ueryId/@ro ot" | |
133 | /> | |
134 | ||
135 | </Addition alInfoItem > | |
136 | ||
137 | </Addition alInfo> | |
138 | ||
139 | </xsl:if> | |
140 | ||
141 | </xsl:if> | |
142 | ||
143 | </PatientS earchRespo nse> | |
144 | ||
145 | ||
146 | </xsl:temp late> | |
147 | ||
148 | ||
149 | <xsl:templ ate | |
150 | match="idm :PRPA_IN20 1306UV02/h l7:control ActProcess /hl7:subje ct/hl7:reg istrationE vent" | |
151 | > | |
152 | ||
153 | <!-- <yes> </yes> -- > | |
154 | ||
155 | <xsl:varia ble | |
156 | name="cust odian" | |
157 | select="is c:evaluate ('OIDtoCod e',hl7:cus todian/hl7 :assignedE ntity/hl7: id/@root)" | |
158 | /> | |
159 | ||
160 | ||
161 | <xsl:for-e ach | |
162 | select="hl 7:subject1 /hl7:patie nt" | |
163 | > | |
164 | ||
165 | <PatientSe archMatch> | |
166 | ||
167 | <Additiona lInfo> | |
168 | ||
169 | <Additiona lInfoItem | |
170 | Additional InfoKey="C ustodian" | |
171 | > | |
172 | ||
173 | <xsl:value -of | |
174 | select="$c ustodian" | |
175 | /> | |
176 | ||
177 | </Addition alInfoItem > | |
178 | ||
179 | </Addition alInfo> | |
180 | ||
181 | <xsl:varia ble | |
182 | name="pati entRoot" | |
183 | select="." | |
184 | /> | |
185 | ||
186 | <xsl:varia ble | |
187 | name="pers onRoot" | |
188 | select="$p atientRoot /hl7:patie ntPerson" | |
189 | /> | |
190 | ||
191 | ||
192 | <Identifie rs> | |
193 | ||
194 | <xsl:for-e ach | |
195 | select="hl 7:id" | |
196 | > | |
197 | ||
198 | <xsl:varia ble | |
199 | name="IDTy pe" | |
200 | select="@e xtension" | |
201 | /> | |
202 | ||
203 | <Identifie r> | |
204 | ||
205 | <Root> | |
206 | ||
207 | <xsl:value -of | |
208 | select="is c:evaluate ('OIDtoCod e',@root)" | |
209 | /> | |
210 | ||
211 | </Root> | |
212 | ||
213 | <Extension > | |
214 | ||
215 | <xsl:value -of | |
216 | select="@e xtension" | |
217 | /> | |
218 | ||
219 | </Extensio n> | |
220 | ||
221 | <xsl:if | |
222 | test="cont ains(@exte nsion,'^NI ^200M^')" | |
223 | > | |
224 | ||
225 | <ICN> | |
226 | ||
227 | <xsl:value -of | |
228 | select="is c:evaluate ('piece',@ extension, '^',1)" | |
229 | /> | |
230 | ||
231 | </ICN> | |
232 | ||
233 | </xsl:if> | |
234 | ||
235 | </Identifi er> | |
236 | ||
237 | </xsl:for- each> | |
238 | ||
239 | <xsl:for-e ach | |
240 | select="hl 7:patientP erson/hl7: asOtherIDs /hl7:id" | |
241 | > | |
242 | ||
243 | <xsl:if | |
244 | test="@roo t != '2.16 .840.1.113 883.4.1'" | |
245 | > | |
246 | ||
247 | <Identifie r> | |
248 | ||
249 | <Root> | |
250 | ||
251 | <xsl:value -of | |
252 | select="is c:evaluate ('OIDtoCod e',@root)" | |
253 | /> | |
254 | ||
255 | </Root> | |
256 | ||
257 | <Extension > | |
258 | ||
259 | <xsl:value -of | |
260 | select="@e xtension" | |
261 | /> | |
262 | ||
263 | </Extensio n> | |
264 | ||
265 | </Identifi er> | |
266 | ||
267 | </xsl:if> | |
268 | ||
269 | </xsl:for- each> | |
270 | ||
271 | </Identifi ers> | |
272 | ||
273 | <xsl:if | |
274 | test="stri ng-length( hl7:patien tPerson/hl 7:asOtherI Ds/hl7:id[ @root='2.1 6.840.1.11 3883.4.1'] /@extensio n)" | |
275 | > | |
276 | ||
277 | <SSN> | |
278 | ||
279 | <xsl:value -of | |
280 | select="hl 7:patientP erson/hl7: asOtherIDs /hl7:id[@r oot='2.16. 840.1.1138 83.4.1']/@ extension" | |
281 | /> | |
282 | ||
283 | </SSN> | |
284 | ||
285 | </xsl:if> | |
286 | ||
287 | <Telecoms> | |
288 | ||
289 | <xsl:for-e ach | |
290 | select='$p ersonRoot/ hl7:teleco m' | |
291 | > | |
292 | ||
293 | <Telecom> | |
294 | ||
295 | <xsl:if | |
296 | test="@use !=''" | |
297 | > | |
298 | ||
299 | <xsl:attri bute | |
300 | name="use" | |
301 | > | |
302 | ||
303 | <xsl:value -of | |
304 | select="@u se" | |
305 | /> | |
306 | ||
307 | </xsl:attr ibute> | |
308 | ||
309 | </xsl:if> | |
310 | ||
311 | <xsl:varia ble | |
312 | name="phon eNumber" | |
313 | > | |
314 | ||
315 | <xsl:choos e> | |
316 | ||
317 | <xsl:when | |
318 | test="cont ains(@valu e,'tel:')" | |
319 | > | |
320 | ||
321 | <xsl:value -of | |
322 | select="su bstring-af ter(@value ,'tel:')" | |
323 | /> | |
324 | ||
325 | </xsl:when > | |
326 | ||
327 | <xsl:other wise> | |
328 | ||
329 | <xsl:value -of | |
330 | select="@v alue" | |
331 | /> | |
332 | ||
333 | </xsl:othe rwise> | |
334 | ||
335 | </xsl:choo se> | |
336 | ||
337 | </xsl:vari able> | |
338 | ||
339 | <PhoneNumb erFull> | |
340 | ||
341 | <xsl:value -of | |
342 | select='$p honeNumber ' | |
343 | /> | |
344 | ||
345 | </PhoneNum berFull> | |
346 | ||
347 | </Telecom> | |
348 | ||
349 | ||
350 | </xsl:for- each> | |
351 | ||
352 | </Telecoms > | |
353 | ||
354 | ||
355 | <Facility> | |
356 | ||
357 | <xsl:value -of | |
358 | select="is c:evaluate ('OIDtoCod e',$patien tRoot/hl7: providerOr ganization /hl7:id/@r oot)" | |
359 | /> | |
360 | ||
361 | </Facility > | |
362 | ||
363 | ||
364 | <!-- | |
365 | <xsl :for-each select="hl 7:id"> | |
366 | --> | |
367 | ||
368 | ||
369 | <Prefix> | |
370 | ||
371 | <xsl:value -of | |
372 | select="$p ersonRoot/ hl7:name/h l7:prefix/ text()" | |
373 | /> | |
374 | ||
375 | </Prefix> | |
376 | ||
377 | <LastName> | |
378 | ||
379 | <xsl:value -of | |
380 | select="$p ersonRoot/ hl7:name/h l7:family" | |
381 | /> | |
382 | ||
383 | </LastName > | |
384 | ||
385 | <FirstName > | |
386 | ||
387 | <xsl:value -of | |
388 | select="$p ersonRoot/ hl7:name/h l7:given[1 ]" | |
389 | /> | |
390 | ||
391 | </FirstNam e> | |
392 | ||
393 | <MiddleNam e> | |
394 | ||
395 | <xsl:value -of | |
396 | select="$p ersonRoot/ hl7:name/h l7:given[2 ]" | |
397 | /> | |
398 | ||
399 | </MiddleNa me> | |
400 | ||
401 | <Suffix> | |
402 | ||
403 | <xsl:value -of | |
404 | select="$p ersonRoot/ hl7:name/h l7:suffix/ text()" | |
405 | /> | |
406 | ||
407 | </Suffix> | |
408 | ||
409 | <DOB> | |
410 | ||
411 | <xsl:value -of | |
412 | select="is c:evaluate ('xmltimes tamp',$per sonRoot/hl 7:birthTim e/@value)" | |
413 | /> | |
414 | ||
415 | </DOB> | |
416 | ||
417 | <Sex> | |
418 | ||
419 | <xsl:value -of | |
420 | select="$p ersonRoot/ hl7:admini strativeGe nderCode/@ code" | |
421 | /> | |
422 | ||
423 | </Sex> | |
424 | ||
425 | ||
426 | <BirthPlac e> | |
427 | ||
428 | <City> | |
429 | ||
430 | <xsl:value -of | |
431 | select= "$ personRoot /hl7:birth Place/hl7: addr/hl7:c ity/text() " | |
432 | /> | |
433 | ||
434 | </City> | |
435 | ||
436 | <State> | |
437 | ||
438 | <xsl:value -of | |
439 | select= "$ personRoot /hl7:birth Place/hl7: addr/hl7:s tate/text( )" | |
440 | /> | |
441 | ||
442 | </State> | |
443 | ||
444 | <Country> | |
445 | ||
446 | <xsl:value -of | |
447 | select= "$ personRoot /hl7:birth Place/hl7: addr/hl7:c ountry/tex t()" | |
448 | /> | |
449 | ||
450 | </Country> | |
451 | ||
452 | </BirthPla ce> | |
453 | ||
454 | ||
455 | <Addresses > | |
456 | ||
457 | <xsl:for-e ach | |
458 | select='$p ersonRoot/ hl7:addr' | |
459 | > | |
460 | ||
461 | <Address> | |
462 | ||
463 | <xsl:if | |
464 | test="@use !=''" | |
465 | > | |
466 | ||
467 | <Use> | |
468 | ||
469 | <xsl:value -of | |
470 | select="@u se" | |
471 | /> | |
472 | ||
473 | </Use> | |
474 | ||
475 | </xsl:if> | |
476 | ||
477 | <StreetLin e> | |
478 | ||
479 | <xsl:value -of | |
480 | select="hl 7:streetAd dressLine/ text()" | |
481 | /> | |
482 | ||
483 | </StreetLi ne> | |
484 | ||
485 | <City> | |
486 | ||
487 | <xsl:value -of | |
488 | select="hl 7:city/tex t()" | |
489 | /> | |
490 | ||
491 | </City> | |
492 | ||
493 | <State> | |
494 | ||
495 | <xsl:value -of | |
496 | select="hl 7:state/te xt()" | |
497 | /> | |
498 | ||
499 | </State> | |
500 | ||
501 | <PostalCod e> | |
502 | ||
503 | <xsl:value -of | |
504 | select="hl 7:postalCo de/text()" | |
505 | /> | |
506 | ||
507 | </PostalCo de> | |
508 | ||
509 | <Country> | |
510 | ||
511 | <xsl:value -of | |
512 | select="hl 7:country/ text()" | |
513 | /> | |
514 | ||
515 | </Country> | |
516 | ||
517 | </Address> | |
518 | ||
519 | </xsl:for- each> | |
520 | ||
521 | </Addresse s> | |
522 | ||
523 | ||
524 | <xsl:if | |
525 | test="hl7: patientPer son/hl7:na me/@use='C '" | |
526 | > | |
527 | ||
528 | <MothersMa idenSurnam e> | |
529 | <xsl:value -of | |
530 | select="hl 7:patientP erson/hl7: name[@use= 'C']/hl7:f amily/text ()" | |
531 | /> | |
532 | ||
533 | </MothersM aidenSurna me> | |
534 | ||
535 | </xsl:if> | |
536 | ||
537 | ||
538 | <xsl:choos e> | |
539 | ||
540 | <xsl:when | |
541 | test="stri ng-length( hl7:subjec tOf1/hl7:q ueryMatchO bservation [code/@cod e='IHE_PDQ ']/value/@ value)" | |
542 | > | |
543 | ||
544 | <RankOrSco re> | |
545 | ||
546 | <xsl:value -of | |
547 | select="hl 7:subjectO f1/hl7:que ryMatchObs ervation[c ode/@code= 'IHE_PDQ'] /value/@va lue" | |
548 | /> | |
549 | ||
550 | </RankOrSc ore> | |
551 | ||
552 | </xsl:when > | |
553 | ||
554 | <!-- This condition is conside red invali d by Conne ctathon. H owever sin ce it has been seen in example s, it is p rovided fo r here. -- > | |
555 | ||
556 | <xsl:when | |
557 | test="stri ng-length( hl7:subjec tOf1/hl7:q ueryMatchO bservation [code/@cod e='IHE_PDQ ']/value/t ext())" | |
558 | > | |
559 | ||
560 | <RankOrSco re> | |
561 | ||
562 | <xsl:value -of | |
563 | select="hl 7:subjectO f1/hl7:que ryMatchObs ervation[c ode/@code= 'IHE_PDQ'] /value/tex t()" | |
564 | /> | |
565 | ||
566 | </RankOrSc ore> | |
567 | ||
568 | </xsl:when > | |
569 | ||
570 | </xsl:choo se> | |
571 | ||
572 | ||
573 | </PatientS earchMatch > | |
574 | ||
575 | ||
576 | </xsl:for- each> | |
577 | ||
578 | </xsl:temp late> | |
579 | ||
580 | ||
581 | </xsl:styl esheet> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.