21. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 7/10/2017 1:01:42 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.

21.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IV-ehmp_cif\CoreValueObjects\main\src\java\gov\va\med\imaging\mix\business\fhir Series.java Thu Jun 29 17:22:23 2017 UTC
2 C:\AraxisMergeCompare\Pri_re\IV-ehmp_cif\CoreValueObjects\main\src\java\gov\va\med\imaging\mix\business\fhir Series.java Thu Jul 6 15:00:11 2017 UTC

21.2 Comparison summary

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

21.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

21.4 Active regular expressions

No regular expressions were active.

21.5 Comparison detail

  1   package go v.va.med.i maging.mix .business. fhir;
  2  
  3   import gov .va.med.Mo ckDataGene rationFiel d;
  4   import gov .va.med.im aging.GUID ;
  5   import gov .va.med.im aging.mix. business.I nstanceCom parator;
  6   import gov .va.med.im aging.exch ange.enums .ObjectOri gin;
  7  
  8   import jav a.io.Seria lizable;
  9   import jav a.util.*;
  10   /**
  11    * @author   DNS  TITTOC
  12    *
  13    * This Se ries class  is for FH IR Imaging Study mode l support  (referring  to the eq uivalent D ICOM Serie s term)
  14    * Cardina lity: Pati ent 1..* D iagnosticR eport 0..*  ImagingSt udy 0..* S eries 0..*  Instance
  15    */
  16   public cla ss Series
  17   implements  Serializa ble, Itera ble<Instan ce>, Compa rable<Seri es>
  18   {
  19           pr ivate stat ic final l ong serial VersionUID  = -746774 0571635450 273L;
  20           @M ockDataGen erationFie ld(pattern ="[a-z0-9] {6,6}")
  21           pr ivate Stri ng seriesI en;        // only fo r VA serie s
  22           @M ockDataGen erationFie ld(pattern ="[0-9]{1, 3}")
  23           pr ivate Stri ng number;            // Numeric  identifie r of this  series
  24           @M ockDataGen erationFie ld(pattern ="[A-Z]{2, 2}")
  25           pr ivate Stri ng modalit y;         // string  representa tion of a  modality ( CT, CR, MR , etc) tha t created  this serie s
  26           @M ockDataGen erationFie ld(pattern =MockDataG enerationF ield.UID_P ATTERN)
  27           pr ivate Stri ng uid;                       //  R! DICOM  Series UID  (64)
  28           @M ockDataGen erationFie ld(compone ntValueTyp e="gov.va. med.imagin g.mix.busi ness.Insta nce")
  29           pr ivate Stri ng descrip tion;      // max 64/ DICOM
  30           pr ivate Stri ng availab ility; //  ONLINE | O FFLINE | N EARLINE |  UNAVAILABL E -- only  ONLINE dat a is maint ained for  exchange
  31           pr ivate Stri ng url;               // Locatio n of the r eferenced  instance(s ) –- not m aintained
  32           pr ivate Stri ng bodySit e;         // Body pa rt examine d –- not m aintained  ENUM
  33           pr ivate Stri ng lateral ity;       // 'L' or  'R': body  part later ality 
  34           pr ivate Stri ng startDa teTime;    // when se ries acqui sition sta rted (YYYY MMDD.HHMIS S)
  35           pr ivate Inte ger number OfInstance s;      // R! -- supp osed to ma tch instan ces SET si ze
  36           pr ivate Sort edSet<Inst ance> inst ances = ne w TreeSet< Instance>( new Instan ceComparat or());
  37           @M ockDataGen erationFie ld()
  38           pr ivate Obje ctOrigin o bjectOrigi n; // VA o r DOD
  39           
  40           /* *
  41            *  @param st udyIen
  42            *  @param de faultSerie sNumber
  43            *  @return
  44            * /
  45           pu blic stati c Series c reate(Obje ctOrigin o bjectOrigi n, String  seriesIen,  String se riesNumber )
  46           {
  47                    Seri es series  = new Seri es();
  48                    
  49                    seri es.setObje ctOrigin(o bjectOrigi n);
  50                    seri es.setSeri esIen(seri esIen);
  51                    seri es.setNumb er(seriesN umber);
  52                    
  53                    retu rn series;
  54           }
  55           
  56           pu blic Serie s()
  57           {
  58                    //im ages = new  TreeSet<I nstance>() ;
  59                    uid  = seriesIe n = number  = modalit y = url =  bodySite =  lateralit y = startD ateTime =  "";
  60                    avai lability =  "ONLINE";
  61                    numb erOfInstan ces=0;
  62                    obje ctOrigin =  ObjectOri gin.VA;
  63           }
  64           
  65           pu blic int g etNumberOf Instances( )
  66           {
  67                    retu rn numberO fInstances ; // this. instances. size();
  68           }
  69           
  70           @D eprecated
  71           pu blic Set<I nstance> g etImages()  
  72           {
  73                    retu rn Collect ions.unmod ifiableSet (instances );
  74           }
  75                    
  76           pu blic void  replaceIns tance(Inst ance oldIn stance, In stance new Instance)
  77           {
  78                    inst ances.remo ve(oldInst ance);
  79                    inst ances.add( newInstanc e);
  80           }
  81           
  82           /* *
  83            *  Add insta nce to the  Series as  a child.
  84            *  @param im age
  85            * /
  86           pu blic void  addInstanc e(Instance  instance)  
  87           {
  88                    sync hronized(i nstances)
  89                    {
  90                             instan ces.add(in stance);
  91                             number OfInstance s++;
  92                    }
  93           }
  94  
  95           /* *
  96            *  Add all o f the inst ances in t he given S et to the  Series as  children.
  97            *  @param im ages
  98            * /
  99           pu blic void  addInstanc es(SortedS et<Instanc e> instanc es) 
  100           {
  101                    sync hronized(t his.instan ces)
  102                    {
  103                             this.i nstances.a ddAll(inst ances);
  104                             number OfInstance s += insta nces.size( );
  105                    }
  106           }
  107  
  108           @O verride
  109           pu blic Itera tor<Instan ce> iterat or()
  110           {
  111                    retu rn instanc es.iterato r();
  112           }
  113  
  114           /* *
  115            *  @return t he seriesI en
  116            * /
  117           pu blic Strin g getSerie sIen() {
  118                    retu rn seriesI en;
  119           }
  120  
  121           /* *
  122            *  @param se riesIen th e seriesIe n to set
  123            * /
  124           pu blic void  setSeriesI en(String  seriesIen)  {
  125                    this .seriesIen  = seriesI en;
  126           }
  127  
  128           pu blic stati c Series c reateMockS eries(Stri ng number)  {
  129                    Seri es series  = new  Ser ies();
  130                    seri es.seriesI en = new G UID().toSh ortString( );
  131                    seri es.uid = n ew GUID(). toShortStr ing();
  132                    seri es.number  = number;
  133                    retu rn series;
  134           }
  135  
  136           /*  (non-Java doc)
  137            *  @see java .lang.Obje ct#toStrin g()
  138            * /
  139           @O verride
  140           pu blic Strin g toString () {
  141                    Stri ng output  = "Series  Details ["  + this.se riesIen +  "] \t Seri es UID ["  + this.uid  + "]\t Se ries Numbe r [" + thi s.number +  "]\n"
  142                             + "mod ality [" +  this.moda lity + "]\ t Contains  " + insta nces.size( ) + " imag es\n";
  143                    Iter ator<Insta nce> image Iter = ins tances.ite rator();
  144                    whil e(imageIte r.hasNext( )) {
  145                             Instan ce instanc e = imageI ter.next() ;
  146                             output  += "\t IE N[" + (ins tance == n ull ? "<nu ll instanc e>" : inst ance.getIe n()) + 
  147                                      "] UID["  + (instan ce == null  ? "<ni>"  : instance .getUid())  + 
  148                                      "] \t In stance#["  + (instanc e == null  ? "<ni>" :  instance. getNumber( )) + 
  149   //                                 "] \t Di sp Seq # [ " + (insta nce == nul l ? "<ni>"  : instanc e.getDicom SequenceNu mberForDis play()) + 
  150                                      "] \n";
  151                    }
  152                    
  153                    retu rn output;
  154           }
  155  
  156           pu blic Strin g getNumbe r() {
  157                    retu rn number;
  158           }
  159  
  160           pu blic void  setNumber( String num ber) {
  161                    this .number =  number;
  162           }
  163  
  164           /* *
  165            *  Returns t he string  representa tion of a  modality ( CT, CR, MR , etc)
  166            * /
  167           pu blic Strin g getModal ity() {
  168                    retu rn modalit y;
  169           }
  170  
  171           /* *
  172            *  @param mo dality Set s the stri ng represe ntation of  a modalit y (CT, CR,  MR, etc)
  173            * /
  174           pu blic void  setModalit y(String m odality) {
  175                    this .modality  = modality ;
  176           }
  177  
  178           pu blic Strin g getUid()  {
  179                    retu rn uid;
  180           }
  181  
  182           pu blic void  setUid(Str ing uid) {
  183                    this .uid = uid ;
  184           }
  185  
  186           pu blic Strin g getDescr iption() {
  187                    retu rn descrip tion;
  188           }
  189  
  190           pu blic void  setDescrip tion(Strin g descript ion) {
  191                    this .descripti on = descr iption;
  192           }
  193  
  194           pu blic Strin g getAvail ability()  {
  195                    retu rn availab ility;
  196           }
  197  
  198           pu blic void  setAvailab ility(Stri ng availab ility) {
  199                    this .availabil ity = avai lability;
  200           }
  201  
  202           pu blic Strin g getUrl()  {
  203                    retu rn url;
  204           }
  205  
  206           pu blic void  setUrl(Str ing url) {
  207                    this .url = url ;
  208           }
  209  
  210           pu blic Strin g getBodyS ite() {
  211                    retu rn bodySit e;
  212           }
  213  
  214           pu blic void  setBodySit e(String b odySite) {
  215                    this .bodySite  = bodySite ;
  216           }
  217  
  218           pu blic Strin g getLater ality() {
  219                    retu rn lateral ity;
  220           }
  221  
  222           pu blic void  setLateral ity(String  lateralit y) {
  223                    this .lateralit y = latera lity;
  224           }
  225  
  226           pu blic Strin g getStart DateTime()  {
  227                    retu rn startDa teTime;
  228           }
  229  
  230           pu blic void  setStartDa teTime(Str ing startD ateTime) {
  231                    this .startDate Time = sta rtDateTime ;
  232           }
  233  
  234           /* *
  235            *  @return t he objectO rigin
  236            * /
  237           pu blic Objec tOrigin ge tObjectOri gin() {
  238                    retu rn objectO rigin;
  239           }
  240  
  241           /* *
  242            *  @param ob jectOrigin  the objec tOrigin to  set
  243            * /
  244           pu blic void  setObjectO rigin(Obje ctOrigin o bjectOrigi n) {
  245                    this .objectOri gin = obje ctOrigin;
  246           }
  247  
  248           pu blic Sorte dSet<Insta nce> getIn stances()  {
  249                    retu rn instanc es;
  250           }
  251  
  252           pu blic void  setInstanc es(SortedS et<Instanc e> instanc es) {
  253                    this .instances  = instanc es;
  254           }
  255           @O verride
  256           pu blic int c ompareTo(S eries that
  257           {
  258                    retu rn this.ui d.compareT o(that.uid );
  259           }
  260  
  261   }