236. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/3/2019 10:25: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.

236.1 Files compared

# Location File Last Modified
1 CC_CC_DST_1_0_0.zip\DSTInFlightCode_1.0.0.zip\DSTInFlightCode_1.0.0\dst-mvi-data-service-master.zip\dst-mvi-data-service-master\src\main\java\gov\va\dst\dataservice\model GetIdsRequestBuilder.java Mon Apr 15 03:32:05 2019 UTC
2 CC_CC_DST_1_0_0.zip\DSTInFlightCode_1.0.0.zip\DSTInFlightCode_1.0.0\dst-mvi-data-service-master.zip\dst-mvi-data-service-master\src\main\java\gov\va\dst\dataservice\model GetIdsRequestBuilder.java Fri Apr 26 15:17:44 2019 UTC

236.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 334
Changed 1 2
Inserted 0 0
Removed 0 0

236.3 Comparison options

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

236.4 Active regular expressions

No regular expressions were active.

236.5 Comparison detail

  1   package go v.va.dst.d ataservice .model;
  2  
  3   import jav a.text.Dat eFormat;
  4   import jav a.text.Sim pleDateFor mat;
  5   import jav a.util.Dat e;
  6   import jav a.util.UUI D;
  7  
  8   import org .slf4j.Log ger;
  9   import org .slf4j.Log gerFactory ;
  10  
  11   import gov .va.dst.co mmon.model .PatientIn fo;
  12   import gov .va.mobile health.con nection.so ap.client. Body;
  13   import gov .va.mobile health.con nection.so ap.client. Element;
  14   import gov .va.mobile health.con nection.so ap.client. Message;
  15  
  16   public cla ss GetIdsR equestBuil der {
  17           pr ivate stat ic final L ogger logg er = Logge rFactory.g etLogger(G etIdsReque stBuilder. class);
  18           pr ivate stat ic final S tring ENVI RONMENT =  "T";
  19           pr ivate stat ic final S tring VERS ION = "4.1 ";
  20           pr ivate stat ic final S tring[] de viceAttrib utes = new  String[]  { "determi nerCode",  "classCode " };
  21           pr ivate stat ic final S tring[] de viceAttrib uteValues  = new Stri ng[] { "IN STANCE", " DEV" };
  22           pr ivate stat ic final S tring[] id Attributes  = new Str ing[] { "r oot", "ext ension" };
  23           pr ivate stat ic final S tring mviI d1 = "1.2. 840.114350 .1.13.999. 234";
  24           pr ivate stat ic final S tring haId  = "1.2.84 0.114350.1 .13.28.1.1 8.5.999";
  25           pr ivate stat ic final S tring acti onId = "2. 16.840.1.1 13883.1.6" ;
  26           pr ivate stat ic final S tring NAME SPACE = "u rn:hl7-org :v3";
  27           pr ivate stat ic final S tring ID =  "id";
  28           pr ivate stat ic final S tring DEVI CE = "devi ce";
  29           pr ivate stat ic final S tring TYPE _CODE = "t ypeCode";
  30           pr ivate stat ic final S tring CODE  = "code";
  31           pr ivate stat ic final S tring ROOT  = "root";
  32           pu blic stati c final St ring VALUE  = "value" ;
  33           pu blic stati c final St ring FORMA T = "xmlns ";
  34           pr ivate fina l String r oot;
  35           pr ivate fina l String e xtension;
  36           pr ivate fina l String s enderId;
  37           pr ivate fina l String v ersion;
  38           pr ivate fina l String e nvironment ;
  39           pr ivate fina l PatientI nfo patien tInfo;
  40  
  41           pu blic GetId sRequestBu ilder(Stri ng root, S tring exte nsion, Str ing sender Id) {
  42                    this (root, ext ension, se nderId, VE RSION, ENV IRONMENT);
  43           }
  44  
  45           pu blic GetId sRequestBu ilder(Stri ng root, S tring exte nsion, Str ing sender Id, Patien tInfo pati entInfo) {
  46                    this (root, ext ension, se nderId, VE RSION, ENV IRONMENT,  patientInf o);
  47           }
  48  
  49           pu blic GetId sRequestBu ilder(Stri ng root, S tring exte nsion, Str ing sender Id, String  version,  String env ironment)  {
  50  
  51                    this (root, ext ension, se nderId, ve rsion, env ironment,  null);
  52           }
  53  
  54           pu blic GetId sRequestBu ilder(Stri ng root, S tring exte nsion, Str ing sender Id, String  version,  String env ironment,
  55                             Patien tInfo pati entInfo) {
  56                    this .root = ro ot;
  57                    this .extension  = extensi on;
  58                    this .patientIn fo = patie ntInfo;
  59                    this .version =  version = = null ? V ERSION : v ersion;
  60                    this .environme nt = envir onment ==  null ? ENV IRONMENT :  environme nt;
  61                    this .senderId  = senderId  == null ?  "200DSTV"  : senderI d;
  62           }
  63  
  64           pu blic Messa ge build()  {
  65                    Mess age messag e = new Me ssage();
  66                    mess age.remove Header();
  67  
  68                    Body  body = me ssage.getB ody();
  69                     Element bo dyElement  = body.add Child("PRP A_IN201305 UV02", "ns 2", "http: // URL           . DOMAIN . EXT ");
  70                    body Element.ad dNamespace (NAMESPACE ).addAttri bute("ITSV ersion", " XML_1.0");
  71                    body Element.ad dChildWith Attributes (ID, new S tring[] {  FORMAT, "r oot", "ext ension" },
  72                                      new Stri ng[] { NAM ESPACE, ro ot, extens ion });
  73                    body Element.ad dChildWith Attributes ("creation Time", new  String[]  { FORMAT,  VALUE },
  74                                      new Stri ng[] { NAM ESPACE, no w() });
  75                    body Element.ad dChildWith Attributes ("versionC ode", new  String[] {  FORMAT, C ODE },
  76                                      new Stri ng[] { NAM ESPACE, ve rsion });
  77  
  78                    body Element.ad dChildWith Attributes ("interact ionId", ne w String[]  { FORMAT,  "root", " extension"  },
  79                                      new Stri ng[] { NAM ESPACE, ac tionId, "P RPA_IN2013 05UV02" }) ;
  80                    body Element.ad dChildWith Attributes ("processi ngCode", n ew String[ ] { FORMAT , CODE },
  81                                      new Stri ng[] { NAM ESPACE, en vironment  });
  82                    body Element.ad dChildWith Attributes ("processi ngModeCode ", new Str ing[] { FO RMAT, CODE  },
  83                                      new Stri ng[] { NAM ESPACE, "T " });
  84                    body Element.ad dChildWith Attributes ("acceptAc kCode", ne w String[]  { FORMAT,  CODE },
  85                                      new Stri ng[] { NAM ESPACE, "A L" });
  86  
  87                    crea teReceiver Node(bodyE lement);
  88                    crea teSenderNo de(bodyEle ment);
  89                    crea teControlA ctProcessN ode(bodyEl ement);
  90  
  91                    retu rn message ;
  92           }
  93  
  94           pr ivate Stri ng now() {
  95                    Date Format df  = new Simp leDateForm at("yyyyMM ddHHmmss",  java.util .Locale.ge tDefault() );
  96                    retu rn df.form at(new Dat e());
  97           }
  98  
  99           pr ivate void  createRec eiverNode( Element bo dyElement)  {
  100                    Elem ent receiv er = bodyE lement.add ChildWithA ttributes( "receiver" , new Stri ng[] { FOR MAT, TYPE_ CODE },
  101                                      new Stri ng[] { NAM ESPACE, "R CV" });
  102                    Elem ent device  = receive r.addChild WithAttrib utes(DEVIC E, deviceA ttributes,  deviceAtt ributeValu es);
  103                    devi ce.addChil dWithAttri bute(ID, " root", mvi Id1);
  104                    devi ce.addChil dWithAttri bute("tele com", "val ue", "http ://service location/P DQuery");
  105           }
  106  
  107           pr ivate void  createSen derNode(El ement body ElementWra pper) {
  108                    Elem ent sender  = bodyEle mentWrappe r.addChild WithAttrib utes("send er", new S tring[] {  FORMAT, TY PE_CODE },
  109                                      new Stri ng[] { NAM ESPACE, "R CV" });
  110                    Elem ent device  = sender. addChildWi thAttribut es(DEVICE,  deviceAtt ributes, d eviceAttri buteValues );
  111                    devi ce.addChil dWithAttri butes(ID,  idAttribut es, new St ring[] { " 2.16.840.1 .113883.4. 349", send erId });
  112  
  113           }
  114  
  115           pr ivate void  createCon trolActPro cessNode(E lement bod yElementWr apper) {
  116                    Elem ent contro lActProces s = bodyEl ementWrapp er.addChil d("control ActProcess ").addAttr ibutes(
  117                                      new Stri ng[] { FOR MAT, "mood Code", "cl assCode" } , new Stri ng[] { NAM ESPACE, "E VN", "CACT " });
  118  
  119                    cont rolActProc ess.addChi ld(CODE).a ddAttribut es(new Str ing[] { "c odeSystem" , CODE },
  120                                      new Stri ng[] { act ionId, "PR PA_TE20130 5UV02" });
  121                    crea teDataEnte rerElement (controlAc tProcess);
  122                    Elem ent queryB yParameter  = control ActProcess .addChild( "queryByPa rameter");
  123  
  124                    quer yByParamet er.addChil dWithAttri butes("que ryId", idA ttributes,
  125                                      new Stri ng[] { haI d, UUID.ra ndomUUID() .toString( ) });
  126                    quer yByParamet er.addChil dWithAttri bute("stat usCode", C ODE, "new" );
  127                    quer yByParamet er.addChil dWithAttri bute("modi fyCode", C ODE, "MVI. COMP1");
  128  
  129                    quer yByParamet er.addChil dWithAttri bute("init ialQuantit y", "value ", "1");
  130                    Elem ent parame terList =  queryByPar ameter.add Child("par ameterList ");
  131                    Elem ent living SubjectBir thTime = p arameterLi st.addChil d("livingS ubjectBirt hTime");
  132  
  133                    if ( patientInf o != null  && patient Info.getNa me() != nu ll) {
  134                             living SubjectBir thTime.add ChildWithA ttribute(" value", "v alue", pat ientInfo.g etDob());
  135                             living SubjectBir thTime.add Child("sem anticsText ").addElem entValue(" Date of Bi rth");
  136  
  137                             Elemen t livingSu bjectId =  parameterL ist.addChi ld("living SubjectId" );
  138                             living SubjectId. addChildWi thAttribut es(VALUE,  idAttribut es,
  139                                               new String [] { "2.16 .840.1.113 883.4.1",  patientInf o.getSsn()  });
  140                             living SubjectId. addChild(" semanticsT ext").addE lementValu e("SSN");
  141  
  142                             Elemen t livingSu bjectName  = paramete rList.addC hild("livi ngSubjectN ame");
  143                             Elemen t livingSu bjectFullN ame = livi ngSubjectN ame.addChi ldWithAttr ibute("val ue", "use" , "L");
  144                             living SubjectFul lName.addC hild("fami ly").addEl ementValue (patientIn fo.getName ().getLast Name());
  145                             living SubjectFul lName.addC hild("give n").addEle mentValue( patientInf o.getName( ).getFirst Name());
  146                             living SubjectNam e.addChild ("semantic sText").ad dElementVa lue("Legal  Name");
  147  
  148                             Elemen t patientT elecom = p arameterLi st.addChil d("patient Telecom");
  149                             patien tTelecom.a ddChildWit hAttribute ("value",  "value", " 5556667777 ");
  150                             patien tTelecom.a ddChild("s emanticsTe xt").addEl ementValue ("Home Pho ne");
  151                    }
  152           }
  153  
  154           pr ivate void  createDat aEntererEl ement(Elem ent contro lActProces s) {
  155                    Elem ent dataEn terer = co ntrolActPr ocess.addC hild("data Enterer")
  156                                      .addAttr ibutes(new  String[]  { "typeCod e", "conte xtControlC ode" }, ne w String[]  { "ENT",  "AP" });
  157                    Elem ent assign edPerson =  dataEnter er.addChil d("assigne dPerson"). addAttribu te("classC ode", "ASS IGNED");
  158                    assi gnedPerson .addChild( ID).addAtt ributes(ne w String[]  { "extens ion", ROOT  },
  159                                      new Stri ng[] { sen derId, "2. 16.840.1.1 13883.777. 999" });
  160  
  161                    Elem ent assign edPerson2  = assigned Person.add Child("ass ignedPerso n")
  162                                      .addAttr ibutes(new  String[]  { "classCo de", "dete rminerCode " }, new S tring[] {  "PSN", "IN STANCE" }) ;
  163                    Elem ent name1  = assigned Person2.ad dChild("na me").addEl ementValue ("DST");
  164                    if ( name1 != n ull)
  165                             logger .info("cre ate Data E nterer Ele ment");
  166  
  167           }
  168   }