Produced by Araxis Merge on 6/9/2017 3:50:36 PM Eastern 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 | Fri Jun 9 19:50:36 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-mock\src\main\java\gov\va\nvap\mock\endpoint\mvi | MockMviSoapWebServiceTemplate.java | Fri Apr 21 20:03:28 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 197 |
| 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 gov.va.nva p.mock.end point.mvi; | |||||
| 2 | // | |||||
| 3 | //import g ov.va.nvap .mock.dao. PatientPro fileDAO; | |||||
| 4 | //import g ov.va.oit. oed.vaww.P RPAIN20130 5UV02; | |||||
| 5 | //import g ov.va.oit. oed.vaww.P RPAIN20130 6UV02; | |||||
| 6 | //import g ov.va.oit. oed.vaww.P RPAIN20130 9UV02; | |||||
| 7 | //import j ava.io.Ser ializable; | |||||
| 8 | //import j ava.util.C ollection; | |||||
| 9 | //import j ava.util.L ist; | |||||
| 10 | //import j avax.xml.b ind.JAXBEl ement; | |||||
| 11 | //import o rg.hl7.v3. CE; | |||||
| 12 | //import o rg.hl7.v3. CS; | |||||
| 13 | //import o rg.hl7.v3. ENExplicit ; | |||||
| 14 | //import o rg.hl7.v3. EnExplicit Family; | |||||
| 15 | //import o rg.hl7.v3. EnExplicit Given; | |||||
| 16 | //import o rg.hl7.v3. II; | |||||
| 17 | //import o rg.hl7.v3. ObjectFact ory; | |||||
| 18 | //import o rg.hl7.v3. PNExplicit ; | |||||
| 19 | //import o rg.hl7.v3. PRPAIN2013 06UV02MFMI MT700711UV 01ControlA ctProcess; | |||||
| 20 | //import o rg.hl7.v3. PRPAIN2013 06UV02MFMI MT700711UV 01Registra tionEvent; | |||||
| 21 | //import o rg.hl7.v3. PRPAIN2013 06UV02MFMI MT700711UV 01Subject1 ; | |||||
| 22 | //import o rg.hl7.v3. PRPAIN2013 06UV02MFMI MT700711UV 01Subject2 ; | |||||
| 23 | //import o rg.hl7.v3. PRPAIN2013 10UV02; | |||||
| 24 | //import o rg.hl7.v3. PRPAIN2013 10UV02MFMI MT700711UV 01ControlA ctProcess; | |||||
| 25 | //import o rg.hl7.v3. PRPAMT2013 06UV02Livi ngSubjectN ame; | |||||
| 26 | //import o rg.hl7.v3. PRPAMT2013 06UV02Para meterList; | |||||
| 27 | //import o rg.hl7.v3. PRPAMT2013 10UV02Othe rIDs; | |||||
| 28 | //import o rg.hl7.v3. PRPAMT2013 10UV02Pati ent; | |||||
| 29 | //import o rg.hl7.v3. PRPAMT2013 10UV02Pers on; | |||||
| 30 | //import o rg.springf ramework.b eans.facto ry.annotat ion.Autowi red; | |||||
| 31 | //import o rg.springf ramework.c ontext.App licationCo ntext; | |||||
| 32 | //import o rg.springf ramework.w s.client.c ore.WebSer viceTempla te; | |||||
| 33 | // | |||||
| 34 | ///** | |||||
| 35 | // * This class repr esents moc k MVI web service te mplate. | |||||
| 36 | // * | |||||
| 37 | // * @auth or Irakli Kakushadze | |||||
| 38 | // * @sinc e 12/06/20 16 | |||||
| 39 | // */ | |||||
| 40 | //public c lass MockM viSoapWebS erviceTemp late exten ds WebServ iceTemplat e { | |||||
| 41 | // | |||||
| 42 | // priv ate final String VA_ OID = "2.1 6.840.1.11 3883.4.349 "; | |||||
| 43 | // | |||||
| 44 | // @Aut owired | |||||
| 45 | // Appl icationCon text appli cationCont ext; | |||||
| 46 | // | |||||
| 47 | // @Aut owired | |||||
| 48 | // Pati entProfile DAO patien tProfileDa o; | |||||
| 49 | // | |||||
| 50 | // @Ove rride | |||||
| 51 | // publ ic Object marshalSen dAndReceiv e(final Ob ject reque stPayload) { | |||||
| 52 | // | |||||
| 53 | // if (reques tPayload i nstanceof PRPAIN2013 09UV02) { | |||||
| 54 | // // Fin d correlat ions | |||||
| 55 | // return processFi ndCorrelat ions(); | |||||
| 56 | // } else if (requestPa yload inst anceof PRP AIN201305U V02) { | |||||
| 57 | // // Pat ient searc h | |||||
| 58 | // return processPa tientSearc h((PRPAIN2 01305UV02) requestPa yload); | |||||
| 59 | // } else { | |||||
| 60 | // // Unk nown reque st | |||||
| 61 | // return null; | |||||
| 62 | // } | |||||
| 63 | // } | |||||
| 64 | // | |||||
| 65 | // priv ate PRPAIN 201310UV02 processFi ndCorrelat ions() { | |||||
| 66 | // PRPAIN2013 10UV02 mvi Response = new PRPAI N201310UV0 2(); | |||||
| 67 | // | |||||
| 68 | // PRPAIN2013 10UV02MFMI MT700711UV 01ControlA ctProcess ca = new P RPAIN20131 0UV02MFMIM T700711UV0 1ControlAc tProcess() ; | |||||
| 69 | // mviRespons e.setContr olActProce ss(ca); | |||||
| 70 | // | |||||
| 71 | // return mvi Response; | |||||
| 72 | // } | |||||
| 73 | // | |||||
| 74 | // priv ate PRPAIN 201306UV02 processPa tientSearc h(PRPAIN20 1305UV02 m viSearchRe quest) { | |||||
| 75 | // PRPAIN2013 06UV02 mvi Response = new PRPAI N201306UV0 2(); | |||||
| 76 | // | |||||
| 77 | // PatientPro file patin tProfile = null; | |||||
| 78 | // String fir stName = " "; | |||||
| 79 | // String las tName = "" ; | |||||
| 80 | // | |||||
| 81 | // // Get the parameter list to s ee what ki nd of sear ch we're c onducting | |||||
| 82 | // PRPAMT2013 06UV02Para meterList parameterL ist = mviS earchReque st.getCont rolActProc ess().getQ ueryByPara meter().ge tValue().g etParamete rList(); | |||||
| 83 | // | |||||
| 84 | // if (parame terList.ge tId() != n ull && par ameterList .getId().g etExtensio n() != nul l && !para meterList. getId().ge tExtension ().isEmpty ()) { | |||||
| 85 | // // We are search ing by pat ient ICN | |||||
| 86 | // | |||||
| 87 | // String icn = par ameterList .getId().g etExtensio n().substr ing(0, par ameterList .getId().g etExtensio n().indexO f("^")); | |||||
| 88 | // patint Profile = patientPro fileDao.ge tByIEN(icn ); | |||||
| 89 | // } else { | |||||
| 90 | // // We are search ing by pat ient name and SSN | |||||
| 91 | // | |||||
| 92 | // // Ext ract first name and last name | |||||
| 93 | // for (P RPAMT20130 6UV02Livin gSubjectNa me livingS ubjectName : paramet erList.get LivingSubj ectName()) { | |||||
| 94 | // fo r (ENExpli cit names : livingSu bjectName. getValue() ) { | |||||
| 95 | // for (Ser ializable name : nam es.getCont ent()) { | |||||
| 96 | // if ( firstName. length() = = 0) { | |||||
| 97 | // try { | |||||
| 98 | // firstN ame = ((JA XBElement< EnExplicit Given>) na me).getVal ue().getCo ntent(); | |||||
| 99 | // } catch (E xception e ) { | |||||
| 100 | // // Ign ore | |||||
| 101 | // } | |||||
| 102 | // } | |||||
| 103 | // if ( lastName.l ength() == 0) { | |||||
| 104 | // try { | |||||
| 105 | // lastNa me = ((JAX BElement<E nExplicitF amily>) na me).getVal ue().getCo ntent(); | |||||
| 106 | // } catch (E xception e ) { | |||||
| 107 | // // Ign ore | |||||
| 108 | // } | |||||
| 109 | // } | |||||
| 110 | // } | |||||
| 111 | // } | |||||
| 112 | // } | |||||
| 113 | // | |||||
| 114 | // // Ext ract SSN | |||||
| 115 | // String ssn = par ameterList .getLiving SubjectId( ).get(0).g etValue(). get(0).get Extension( ); | |||||
| 116 | // | |||||
| 117 | // Collec tion<Patie ntProfile> patients = patientP rofileDao. findBySSNF irstNameLa stName(ssn , lastName , firstNam e); | |||||
| 118 | // | |||||
| 119 | // if (pa tients == null || pa tients.isE mpty()) { | |||||
| 120 | // // No matchi ng patient in our DB | |||||
| 121 | // re turn mviRe sponse; | |||||
| 122 | // } | |||||
| 123 | // | |||||
| 124 | // // We' re assumin g single m atch is fo und | |||||
| 125 | // patint Profile = patients.i terator(). next(); | |||||
| 126 | // } | |||||
| 127 | // | |||||
| 128 | // // Start p opulating the respon se object | |||||
| 129 | // PRPAIN2013 06UV02MFMI MT700711UV 01ControlA ctProcess ca = new P RPAIN20130 6UV02MFMIM T700711UV0 1ControlAc tProcess() ; | |||||
| 130 | // | |||||
| 131 | // mviRespons e.setContr olActProce ss(ca); | |||||
| 132 | // | |||||
| 133 | // List<PRPAI N201306UV0 2MFMIMT700 711UV01Sub ject1> sub jects = ca .getSubjec t(); | |||||
| 134 | // | |||||
| 135 | // PRPAIN2013 06UV02MFMI MT700711UV 01Subject1 subject = new PRPAI N201306UV0 2MFMIMT700 711UV01Sub ject1(); | |||||
| 136 | // subjects.a dd(subject ); | |||||
| 137 | // | |||||
| 138 | // PRPAIN2013 06UV02MFMI MT700711UV 01Registra tionEvent re = new P RPAIN20130 6UV02MFMIM T700711UV0 1Registrat ionEvent() ; | |||||
| 139 | // subject.se tRegistrat ionEvent(r e); | |||||
| 140 | // | |||||
| 141 | // PRPAIN2013 06UV02MFMI MT700711UV 01Subject2 subject2 = new PRPA IN201306UV 02MFMIMT70 0711UV01Su bject2(); | |||||
| 142 | // re.setSubj ect1(subje ct2); | |||||
| 143 | // | |||||
| 144 | // PRPAMT2013 10UV02Pati ent patien t = new PR PAMT201310 UV02Patien t(); | |||||
| 145 | // subject2.s etPatient( patient); | |||||
| 146 | // | |||||
| 147 | // II id = ne w II(); | |||||
| 148 | // id.setRoot (VA_OID); | |||||
| 149 | // id.setExte nsion(pati ntProfile. getIEN()); | |||||
| 150 | // patient.ge tId().add( id); | |||||
| 151 | // | |||||
| 152 | // ObjectFact ory factor y = new Ob jectFactor y(); | |||||
| 153 | // PRPAMT2013 10UV02Pers on person = new PRPA MT201310UV 02Person() ; | |||||
| 154 | // JAXBElemen t<PRPAMT20 1310UV02Pe rson> jaxb Person = f actory.cre atePRPAMT2 01310UV02P atientPati entPerson( person); | |||||
| 155 | // patient.se tPatientPe rson(jaxbP erson); | |||||
| 156 | // | |||||
| 157 | // // Populat e name | |||||
| 158 | // PNExplicit name = ne w PNExplic it(); | |||||
| 159 | // name.getUs e().add("L "); | |||||
| 160 | // | |||||
| 161 | // // First n ame | |||||
| 162 | // EnExplicit Given firs tNameEn = new EnExpl icitGiven( ); | |||||
| 163 | // firstNameE n.setConte nt(patintP rofile.get FirstName( )); | |||||
| 164 | // JAXBElemen t<EnExplic itGiven> j axbFirstNa me = facto ry.createE NExplicitG iven(first NameEn); | |||||
| 165 | // name.getCo ntent().ad d(jaxbFirs tName); | |||||
| 166 | // | |||||
| 167 | // // Middle name | |||||
| 168 | // EnExplicit Given midd leNameEn = new EnExp licitGiven (); | |||||
| 169 | // middleName En.setCont ent(patint Profile.ge tMiddleIni tial()); | |||||
| 170 | // JAXBElemen t<EnExplic itGiven> j axbMiddleN ame = fact ory.create ENExplicit Given(midd leNameEn); | |||||
| 171 | // name.getCo ntent().ad d(jaxbMidd leName); | |||||
| 172 | // | |||||
| 173 | // // Last na me | |||||
| 174 | // EnExplicit Family las tNameEn = new EnExpl icitFamily (); | |||||
| 175 | // lastNameEn .setConten t(patintPr ofile.getL astName()) ; | |||||
| 176 | // JAXBElemen t<EnExplic itFamily> jaxbLastNa me = facto ry.createE NExplicitF amily(last NameEn); | |||||
| 177 | // name.getCo ntent().ad d(jaxbLast Name); | |||||
| 178 | // | |||||
| 179 | // person.get Name().add (name); | |||||
| 180 | // | |||||
| 181 | // // Populat e gender | |||||
| 182 | // CE gender = new CE() ; | |||||
| 183 | // gender.set Code(patin tProfile.g etGender() ); | |||||
| 184 | // person.set Administra tiveGender Code(gende r); | |||||
| 185 | // | |||||
| 186 | // // Populat e SSN | |||||
| 187 | // PRPAMT2013 10UV02Othe rIDs ssnOb j = new PR PAMT201310 UV02OtherI Ds(); | |||||
| 188 | // ssnObj.get ClassCode( ).add("SSN "); | |||||
| 189 | // CS statusC ode = new CS(); | |||||
| 190 | // statusCode .setCode(p atintProfi le.getSSN( )); | |||||
| 191 | // ssnObj.set StatusCode (statusCod e); | |||||
| 192 | // person.get AsOtherIDs ().add(ssn Obj); | |||||
| 193 | // | |||||
| 194 | // return mvi Response; | |||||
| 195 | // } | |||||
| 196 | // | |||||
| 197 | //} |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.