Produced by Araxis Merge on 7/3/2018 11:43:42 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 | eHealth_v8.2.0_build_8.2.0.1.zip\NHIN_adapter\AdapterLIB\src\main\java\gov\va\med\nhin\adapter\mvi\hl7transforms | AdapterHL7PatientTransforms.java | Tue Jun 26 18:27:10 2018 UTC |
| 2 | eHealth_v8.2.0_build_8.2.0.1.zip\NHIN_adapter\AdapterLIB\src\main\java\gov\va\med\nhin\adapter\mvi\hl7transforms | AdapterHL7PatientTransforms.java | Sat Jun 30 12:54:54 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 166 |
| Changed | 1 | 2 |
| 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 | package go v.va.med.n hin.adapte r.mvi.hl7t ransforms; | |
| 2 | ||
| 3 | import gov .hhs.fha.n hinc.trans form.subdi sc.HL7Arra yTransform s; | |
| 4 | import gov .hhs.fha.n hinc.trans form.subdi sc.HL7Data TransformH elper; | |
| 5 | import gov .hhs.fha.n hinc.trans form.subdi sc.HL7Pati entTransfo rms; | |
| 6 | import gov .va.med.nh in.adapter .utils.Nul lChecker; | |
| 7 | import jav ax.xml.bin d.JAXBElem ent; | |
| 8 | import org .hl7.v3.AD ; | |
| 9 | import org .hl7.v3.AD Explicit; | |
| 10 | import org .hl7.v3.EN Explicit; | |
| 11 | import org .hl7.v3.Ob jectFactor y; | |
| 12 | import org .hl7.v3.PN Explicit; | |
| 13 | import org .hl7.v3.PR PAMT201301 UV02BirthP lace; | |
| 14 | import org .hl7.v3.PR PAMT201301 UV02Patien t; | |
| 15 | import org .hl7.v3.PR PAMT201301 UV02Person ; | |
| 16 | import org .hl7.v3.PR PAMT201306 UV02Living SubjectBir thPlaceAdd ress; | |
| 17 | import org .hl7.v3.PR PAMT201306 UV02Living SubjectNam e; | |
| 18 | import org .hl7.v3.PR PAMT201306 UV02Parame terList; | |
| 19 | ||
| 20 | /** | |
| 21 | * | |
| 22 | * @author PII | |
| 23 | */ | |
| 24 | public cla ss Adapter HL7Patient Transforms extends H L7PatientT ransforms | |
| 25 | { | |
| 26 | pu blic stati c org.hl7. v3.PRPAMT2 01301UV02P atient cre ate201301P atient(PRP AMT201306U V02Paramet erList par amList, St ring aaId) | |
| 27 | { | |
| 28 | PRPA MT201301UV 02Patient patient = HL7Patient Transforms .create201 301Patient (paramList , aaId); | |
| 29 | ||
| 30 | /** | |
| 31 | * H L7PatientT ransforms does not a dd/set the use code to differe ntiate | |
| 32 | * t he types o f persons (e.g. pati ent versus mothers m aiden name ). | |
| 33 | * T herefore w e need to re-do the Subject Na mes to add the use c ode. | |
| 34 | */ | |
| 35 | PRPA MT201301UV 02Person p erson = pa tient.getP atientPers on().getVa lue(); | |
| 36 | pers on.getName ().clear() ; | |
| 37 | ||
| 38 | if(p aramList.g etLivingSu bjectName( ) != null && paramLi st.getLivi ngSubjectN ame().size () > 0) | |
| 39 | { | |
| 40 | for(PR PAMT201306 UV02Living SubjectNam e subjName : paramLi st.getLivi ngSubjectN ame()) | |
| 41 | { | |
| 42 | ||
| 43 | for(ENEx plicit nam e : subjNa me.getValu e()) | |
| 44 | { | |
| 45 | PNExplicit newName = HL7DataTr ansformHel per.conver tENtoPN(na me); | |
| 46 | newName = HL7ArrayTr ansforms.c opyNullFla vors(name, newName); | |
| 47 | ||
| 48 | if(NullChe cker.isNot NullOrEmpt y(name.get Use()) && name.getUs e().get(0) != null) | |
| 49 | { | |
| 50 | ne wName.getU se().add(n ame.getUse ().get(0)) ; | |
| 51 | } | |
| 52 | else | |
| 53 | { | |
| 54 | // default i t to Legal Name of P atient. | |
| 55 | ne wName.getU se().add(" L"); | |
| 56 | } | |
| 57 | person.get Name().add (newName); | |
| 58 | } | |
| 59 | } | |
| 60 | } | |
| 61 | ||
| 62 | // S et the Bir th Place A ddress | |
| 63 | Obje ctFactory of = new O bjectFacto ry(); | |
| 64 | if(p aramList.g etLivingSu bjectBirth PlaceAddre ss() != nu ll && para mList.getL ivingSubje ctBirthPla ceAddress( ).size() > 0) | |
| 65 | { | |
| 66 | for(PR PAMT201306 UV02Living SubjectBir thPlaceAdd ress pobAd dr : param List.getLi vingSubjec tBirthPlac eAddress() ) | |
| 67 | { | |
| 68 | for(ADEx plicit new Add : pobA ddr.getVal ue()) | |
| 69 | { | |
| 70 | PRPAMT2013 01UV02Birt hPlace bp = of.creat ePRPAMT201 301UV02Bir thPlace(); | |
| 71 | AD ad = ne w AD(); | |
| 72 | ad.getCont ent().addA ll(newAdd. getContent ()); | |
| 73 | bp.setAddr (ad); | |
| 74 | ||
| 75 | javax.xml. namespace. QName xmlq name = new javax.xml .namespace .QName("ur n:hl7-org: v3", "birt hPlace"); | |
| 76 | JAXBElemen t<PRPAMT20 1301UV02Bi rthPlace> element = new JAXBEl ement<PRPA MT201301UV 02BirthPla ce>(xmlqna me, PRPAMT 201301UV02 BirthPlace .class, bp ); | |
| 77 | person.set BirthPlace (element); | |
| 78 | } | |
| 79 | } | |
| 80 | } | |
| 81 | ||
| 82 | retu rn patient ; | |
| 83 | } | |
| 84 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.