6. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 11/16/2017 4:02:22 PM Eastern Standard 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.

6.1 Files compared

# Location File Last Modified
1 CUI-CPP-v2.3.1-release.zip\app\services mvi.rb Fri Oct 20 20:13:45 2017 UTC
2 CUI-CPP-v2.3.1-release.zip\app\services mvi.rb Thu Nov 16 18:05:34 2017 UTC

6.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 4 130
Changed 3 14
Inserted 0 0
Removed 0 0

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

6.4 Active regular expressions

No regular expressions were active.

6.5 Comparison detail

  1   require_re l 'mvi/**/ *.rb'
  2  
  3   module MVI
  4  
  5     MVI_DATE _FORMAT =  "%Y%m%d%H% M%S"
  6     APP_NAME         =  "200CUIE"
  7     MSG_TAG_ ATTRIBUTES       = {
  8       'xmlns ' => 'urn: hl7-org:v3 ',
  9         'xmlns:ps'  => 'http: // URL           .va.gov',
  10         'xmlns:par tns' => 'h ttp:// URL           .va.gov',
  11       'xmlns :xsi' => ' http://www .w3.org/20 01/XMLSche ma-instanc e',
  12       'xsi:s chemaLocat ion' => 'u rn:hl7-org :v3 ../../ schema/HL7 V3/NE2008/ multicache schemas/PR PA_IN20130 5UV02.xsd' ,
  13       'ITSVe rsion' =>  'XML_1.0'
  14     }
  15  
  16     # these  are dev en v urls
  17       MVI_ENDPOI NT_URL_NON SSL = "htt p:// DNS  : PORT /psim_webs ervice/IdM WebService "
  18       MVI_ENDPOI NT_URL_SSL       = "https:/ / DNS /psim_webs ervice/IdM WebService "
  19       MVI_ENDPOI NT_URL_VAA FI    = "https:/ / URL : PORT /psim_webs ervice/dev /IdMWebSer vice"
  20       MVI_ENDPOI NT_URL = " https:// URL : PORT /psim_webs ervice/dev /IdMWebSer vice"
  21  
  22     MVI_CLIE NT = Savon .client(
  23       wsdl:  File.read( Rails.root .join("app ", "servic es", "mvi" , "IdmWebS ervice_wsd l_1305_130 1_xsd_file .txt")),  
  24       endpoi nt: MVI_EN DPOINT_URL ,
  25       elemen t_form_def ault: :unq ualified,
  26       log: t rue,
  27       logger : Rails.lo gger,
  28       pretty _print_xml : true
  29     )
  30  
  31     # basic  response e rror for u nexpected  errors
  32     class Mv iApiError  < RuntimeE rror; end
  33  
  34     # respon se contain s fault ta
  35     class Mv iApiFaultE rror < Mvi ApiError;  end
  36  
  37     # Person  Not Found  errors
  38     class Mv iPersonNot FoundError  < MviApiE rror; end
  39  
  40     # MVI se rvice retu rns an app lication e rror
  41     class Mv iApplicati onError <  MviApiErro r; end
  42  
  43     # MVI se rvice syst em downtim e
  44     class Mv iApplicati onReject <  MviApiErr or; end
  45  
  46     class <<  self
  47       
  48       def en code_mvi_d ate(date)
  49         date .strftime( MVI_DATE_F ORMAT)
  50       end
  51  
  52       # MVI  requires a  soap head er even if  its empty
  53       def ad d_default_ header xml
  54         doc  = Nokogiri ::XML(xml)
  55         doc. at_xpath(' //env:Enve lope').chi ldren.firs t.add_prev ious_sibli ng(Nokogir i::XML::No de.new("He ader", doc ))
  56         doc. to_xml
  57       end
  58  
  59       def re move_names paces requ est_xml
  60         rege x = %r{
  61           \s +
  62           (x mlns:xsd=\ "http:\/\/ www.w3.org \/2001\/XM LSchema\")
  63           \s +
  64           (x mlns:xsi=\ "http:\/\/ www.w3.org \/2001\/XM LSchema-in stance\")
  65           \s +
  66             (xmlns:par tns=\"http :\/\/ URL           \")
  67         }x
  68         requ est_xml.su b(regex, " ")
  69       end
  70     end
  71  
  72   end