254. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/7/2018 11:36: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.

254.1 Files compared

# Location File Last Modified
1 C:\SCRUB\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\test\watir-ruby\module\database MySqlUtility.rb Mon Oct 22 23:25:20 2018 UTC
2 C:\MHED-scrubbed\MHED\MHED\VAR 4.10.0\var-web-release-4.10@e10f18de1ef\veteran-appointment-requests\test\watir-ruby\module\database MySqlUtility.rb Fri Dec 7 13:25:40 2018 UTC

254.2 Comparison summary

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

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

254.4 Active regular expressions

No regular expressions were active.

254.5 Comparison detail

  1   require 'r ubygems'
  2   require 'w atir-webdr iver'
  3   require 'm ysql'
  4  
  5   module MyS qlUtility
  6     DBVsID         PW_R edacted    "
  7     USER = " root"
  8     SCHEMA =  "HADB"
  9     AUTHSCHE MA = "AUTH DB"
  10     MOCKSCHE MA = "MOCK DB"
  11     VARSCHEM A = "VARDB "
  12  
  13     CDWHOST  = "192.168 .25.154"
  14     PORTNUM  = 1433
  15     CDWSCHEM A = "OIA_M obileHealt h"
  16     CDWUSER  = "OIA_Cli nicInHand_ APP"
  17       CDWPWD = " PW_R e d a cte d      "
  18  
  19  
  20     def sele ctDataFrom CDWProblem List(patie ntICN, sta rtDate, en dDate, act iveFlag)
  21       con =  Mysql.new( CDWHOST, C DWUSER, CD WPWD, CDWS CHEMA, POR TNUM)
  22       rs = c on.query(" SELECT ICD Descriptio n, OnsetDa te FROM ap p.ProblemL ist WHERE  OnsetDate  BETWEEN "  + startDat e + " AND  " + endDat e + " AND  PatientICN  = '" + pa tientICN +  "' AND Ac tiveFlag =  '" + acti veFlag + " ' ORDER BY  OnsetDate  desc")
  23       rsDesc Arry = []
  24       rsOnse tDtArry =  []
  25       if rs. nil? == fa lse then
  26         puts  "Number o f rows ret urned: " +  rs.num_ro ws.to_s
  27         i =  0
  28         whil e row = rs .fetch_has h do
  29           i  = i + 1
  30           pu ts row["IC DDescripti on"].strip  + ", " +  row["Onset Date"].to_ datetime.s trftime("% m/%d/%Y"). to_s
  31           rs DesArry[i]  = row["IC DDescripti on"].strip
  32           rs OnsetDtArr y[i] = row ["OnsetDat e"].to_dat etime.strf time("%m/% d/%Y").to_ s
  33         end
  34  
  35       else
  36         puts  "No recor ds found b y " + pati entId
  37         retu rn ""
  38       end
  39       con.cl ose
  40       return  rsDesArry , rsOnsetD tArry
  41     end
  42  
  43     def dele teUserFrom RightOfAcc ess(patien tId)
  44       con =  Mysql.new( 'localhost ', USER, D BPASSWORD,  SCHEMA)
  45       rs = c on.query(' DELETE FRO M USER_RIG HTOFACCESS  WHERE USE R_ID="' +  patientId  + '"')
  46       con.cl ose
  47       puts " Deleted RO A for User ID=" + pat ientId
  48  
  49     end
  50  
  51     def setD efaultROAF orPatient( patientId)
  52       con =  Mysql.new( 'localhost ', USER, D BPASSWORD,  SCHEMA)
  53       rs = c on.query(' SELECT * F ROM USER_R IGHTOFACCE SS WHERE U SER_ID="'  + patientI d + '"')
  54       entry  = rs.fetch _hash
  55       if ent ry == nil  then
  56         con. query('INS ERT INTO U SER_RIGHTO FACCESS (U SER_ID, RO A_STATE, R OA_DATE, R OA_FORM) V ALUES ("'  + patientI d + '", "1 ", "2014-0 9-18 18:59 :59", "emp ty")')
  57       end
  58       con.cl ose
  59       puts " Updated RO A State"
  60     end
  61  
  62     def exec uteQuery(s ql, schema )
  63       con =  Mysql.new( 'localhost ', USER, D BPASSWORD,  schema)
  64       #rs =  con.query( 'update Co mmunicatio ns set LOG _TIME="' +  timeLog +  '" where  PATIENT_ID ="' + pati entId + '"  and subje ct="' + su bject + '" ')
  65       rs = c on.query(s ql)
  66       con.cl ose
  67       puts " Executed Q uery: sql  " + sql
  68     end
  69  
  70   end