Produced by Araxis Merge on 5/24/2018 2:23:10 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | CUI-v2.5.0-release-source.zip\app\services | mvi.rb | Fri Mar 23 17:02:06 2018 UTC |
| 2 | CUI-v2.5.0-release-source.zip\app\services | mvi.rb | Thu May 17 13:24:41 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 134 |
| Changed | 2 | 6 |
| Inserted | 0 | 0 |
| 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 | 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 ', | |
| 10 | 'xmlns:par tns' => 'h ttp:// URL ', | |
| 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 do | |
| 19 | wsdl(R ails.root. join("app" , "service s", "mvi", "IdmWebSe rvice_wsdl _1305_1301 _xsd_file. txt").to_s ) | |
| 20 | endpoi nt(MVI_END POINT_URL) | |
| 21 | elemen t_form_def ault(:unqu alified) | |
| 22 | log(tr ue) | |
| 23 | logger (Rails.log ger) | |
| 24 | pretty _print_xml (true) | |
| 25 | ssl_ce rt_file(Ra ils.root.j oin("ssl", "dev","www .dev-cui.v a.gov.crt" ).to_s) | |
| 26 | ssl_ce rt_key_fil e(Rails.ro ot.join("s sl","dev", "www.dev-c ui.va.gov. key").to_s ) | |
| 27 | end | |
| 28 | ||
| 29 | # basic response e rror for u nexpected errors | |
| 30 | class Mv iApiError < RuntimeE rror; end | |
| 31 | ||
| 32 | # respon se contain s fault ta g | |
| 33 | class Mv iApiFaultE rror < Mvi ApiError; end | |
| 34 | ||
| 35 | # Person Not Found errors | |
| 36 | class Mv iPersonNot FoundError < MviApiE rror; end | |
| 37 | ||
| 38 | # MVI se rvice retu rns an app lication e rror | |
| 39 | class Mv iApplicati onError < MviApiErro r; end | |
| 40 | ||
| 41 | # MVI se rvice syst em downtim e | |
| 42 | class Mv iApplicati onReject < MviApiErr or; end | |
| 43 | ||
| 44 | class << self | |
| 45 | ||
| 46 | def en code_mvi_d ate(date) | |
| 47 | date .strftime( MVI_DATE_F ORMAT) | |
| 48 | end | |
| 49 | ||
| 50 | # MVI requires a soap head er even if its empty | |
| 51 | def ad d_default_ header xml | |
| 52 | doc = Nokogiri ::XML(xml) | |
| 53 | doc. at_xpath(' //env:Enve lope').chi ldren.firs t.add_prev ious_sibli ng(Nokogir i::XML::No de.new("He ader", doc )) | |
| 54 | doc. to_xml | |
| 55 | end | |
| 56 | ||
| 57 | def re move_names paces requ est_xml | |
| 58 | rege x = %r{ | |
| 59 | \s + | |
| 60 | (x mlns:xsd=\ "http:\/\/ www.w3.org \/2001\/XM LSchema\") | |
| 61 | \s + | |
| 62 | (x mlns:xsi=\ "http:\/\/ www.w3.org \/2001\/XM LSchema-in stance\") | |
| 63 | \s + | |
| 64 | (xmlns:par tns=\"http : URL \") | |
| 65 | }x | |
| 66 | requ est_xml.su b(regex, " ") | |
| 67 | end | |
| 68 | end | |
| 69 | ||
| 70 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.