10. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 2/21/2018 6:58:06 AM Central 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.

10.1 Files compared

# Location File Last Modified
1 CUI-CPP-v2.4.0-source-archive.zip\app\services mvi.rb Thu Dec 21 03:33:17 2017 UTC
2 CUI-CPP-v2.4.0-source-archive.zip\app\services mvi.rb Tue Feb 6 20:07:53 2018 UTC

10.2 Comparison summary

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

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

10.4 Active regular expressions

No regular expressions were active.

10.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           . DNS     ',
  10         'xmlns:par tns' => 'h ttp:// URL           . DNS     ',
  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     MVI_ENDP OINT_URL =  ENV['MVI_ API_URL']  + "IdmWebS ervice"
  17  
  18     MVI_CLIE NT = Savon .client(
  19       wsdl:  File.read( Rails.root .join("app ", "servic es", "mvi" , "IdmWebS ervice_wsd l_1305_130 1_xsd_file .txt")),  
  20       endpoi nt: MVI_EN DPOINT_URL ,
  21       elemen t_form_def ault: :unq ualified,
  22       log: t rue,
  23       logger : Rails.lo gger,
  24       pretty _print_xml : true
  25     )
  26  
  27     # basic  response e rror for u nexpected  errors
  28     class Mv iApiError  < RuntimeE rror; end
  29  
  30     # respon se contain s fault ta
  31     class Mv iApiFaultE rror < Mvi ApiError;  end
  32  
  33     # Person  Not Found  errors
  34     class Mv iPersonNot FoundError  < MviApiE rror; end
  35  
  36     # MVI se rvice retu rns an app lication e rror
  37     class Mv iApplicati onError <  MviApiErro r; end
  38  
  39     # MVI se rvice syst em downtim e
  40     class Mv iApplicati onReject <  MviApiErr or; end
  41  
  42     class <<  self
  43       
  44       def en code_mvi_d ate(date)
  45         date .strftime( MVI_DATE_F ORMAT)
  46       end
  47  
  48       # MVI  requires a  soap head er even if  its empty
  49       def ad d_default_ header xml
  50         doc  = Nokogiri ::XML(xml)
  51         doc. at_xpath(' //env:Enve lope').chi ldren.firs t.add_prev ious_sibli ng(Nokogir i::XML::No de.new("He ader", doc ))
  52         doc. to_xml
  53       end
  54  
  55       def re move_names paces requ est_xml
  56         rege x = %r{
  57           \s +
  58           (x mlns:xsd=\ "http:\/\/ www.w3.org \/2001\/XM LSchema\")
  59           \s +
  60           (x mlns:xsi=\ "http:\/\/ www.w3.org \/2001\/XM LSchema-in stance\")
  61           \s +
  62             (xmlns:par tns=\"http :\/\/ URL           . DNS     \")
  63         }x
  64         requ est_xml.su b(regex, " ")
  65       end
  66     end
  67  
  68   end