281. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:41 AM 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.

281.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\tests\acceptance-tests\features\steps problemList.rb Mon Aug 21 12:51:01 2017 UTC
2 rdk.zip\rdk\product\tests\acceptance-tests\features\steps problemList.rb Tue Oct 3 20:13:07 2017 UTC

281.2 Comparison summary

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

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

281.4 Active regular expressions

No regular expressions were active.

281.5 Comparison detail

  1   #Zzzretire doneninete en,Patient
  2  
  3   path = Fil e.expand_p ath '..',  __FILE__
  4   $LOAD_PATH .unshift p ath unless  $LOAD_PAT H.include? (path)
  5   path = Fil e.expand_p ath '../.. /../shared -test-ruby ', __FILE_ _
  6   $LOAD_PATH .unshift p ath unless  $LOAD_PAT H.include? (path)
  7   require "s elenium-we bdriver"
  8   require "W ebDriverFa ctory.rb"
  9   require "S eleniumCom mand.rb"
  10   require 'u ri'
  11   require 'n et/http'
  12   require 'j son'
  13   require 'c gi'
  14  
  15   When(/^cli ent reques ts problem s in RDK f ormat$/) d o
  16     url = Qu eryGeneric RDK.new("p roblems"). path
  17     url = ur l.concat(" /adk")
  18     @respons e = HTTPar tyRDK.get( url)
  19     #p @resp onse
  20     expect(@ response.c ode).to eq (200)
  21   end
  22  
  23   Then(/^the  VPR resul t contains  more than  (\d+) rec ords$/) do  |_count|
  24     json = J SON.parse( @response. body)
  25     ValueArr ay = json[ "data"]["i tems"]
  26     p ValueA rray.count
  27     expect(V alueArray. count).to  be > 0
  28   end
  29  
  30   Then(/^the  kind fiel d is "(.*? )" for eve ry record$ /) do |kin d|
  31     json = J SON.parse( @response. body)
  32     ValueArr ay = json[ "data"]["i tems"]
  33     ValueArr ay.each do  |localVal |
  34       # puts  localVal[ "kind"]
  35       expect (localVal[ "kind"]).t o be == ki nd
  36     end
  37   end
  38  
  39   Then(/^the  VPR resul t contains $/) do |ta ble|
  40     @json_ob ject = JSO N.parse(@r esponse.bo dy)
  41     json_ver ify = Json Verifier.n ew
  42     result_a rray = @js on_object[ "data"]["i tems"]
  43     search_j son(result _array, ta ble)
  44   end
  45  
  46   #@US1892_P roblem_Lis t_Writebac k
  47   When(/^the  client pu ts data "( .*?)" usin g Postman$ /) do |arg 1|
  48     values =  arg1.spli t("|")
  49       
  50     jsonreq  = { :MST = > values[0 ], :dateOf Onset => v alues[1],  :dateRecor ded => val ues[2], :e nteredBy = > values[3 ], :entere dByIEN =>  values[4],  :headOrNe ckCancer = > values[5 ], :lexico nCode => v alues[6],  :patientIE N => value s[7], :pat ientName = > values[8 ], :proble mName => v alues[9],  :problemTe xt => valu es[10], :p roviderIEN  => values [11], :rec ordingProv ider => va lues[12],  :responsib leProvider  => values [13], :res ponsiblePr oviderIEN  => values[ 14], :serv ice => val ues[15], : status =>  values[16] , :userIEB N => value s[17] }
  51     request  = jsonreq. to_json
  52     url = Qu eryGeneric RDK.new("p roblems"). path
  53     url = ur l.concat(" /adk")
  54     @respons e =  HTTPa rtyRDK.put (url, requ est)
  55     #puts @r esponse.co de  
  56   end
  57  
  58   Then(/^the  successfu l response  is return ed$/) do
  59     #p @resp onse
  60     expect(@ response.c ode.to_i). to eq(200) , "respons e code was  #{@respon se.code}:  response b ody #{@res ponse.body }"
  61   end
  62  
  63   Then(/^the  500 respo nse is ret urned$/) d o
  64     expect(@ response.c ode.to_i). to eq(500)
  65   end
  66  
  67   When(/^the  client ch ecks in JD S$/) do
  68     path =De faultLogin .jds_url
  69     urlpath   = path+"/ vpr/all/fi nd/problem ?filter=li ke(problem Text, \"AT OZ\%\")"
  70     encoded_ url = URI. encode(url path)
  71     #uri = U RI.parse(u rlpath)
  72     @respons e = HTTPar tyRDK.get( encoded_ur l)
  73     #p @resp onse.body
  74   end
  75  
  76   Then(/^the  results c ontain a p roblemText  with the  written va lue$/) do
  77     json = J SON.parse( @response. body)
  78     text ="A TOZ"
  79     ValueArr ay = json[ "data"]["i tems"]
  80     ValueArr ay.each do  |localVal |
  81       expect ((localVal ["problemT ext"]).mat ch text) = = nil
  82     end
  83   end
  84  
  85   #http:// IP                /vpr/all/f ind/proble m?filter=l ike(proble mText, "Yo urKeyWordT oCheckFor% 25")
  86   #http:// IP                /vpr/all/f ind/proble m?filter=l ike(proble mText, \"A TOZ%25\")"
  87   #@US2679_P roblem_Lis t_Search
  88   When(/^the  client se arches for  problems  with searc h criteria  "(.*?)" i n VPR form at from RD K API$/) d o |arg1|
  89     urlpath  = QueryGen ericRDK.ne w("problem s")
  90     urlpath. add_parame ter("searc hfor", arg 1)
  91     @respons e = HTTPar tyRDK.get( urlpath.pa th)
  92     expect(@ response.c ode).to eq (200)
  93   end
  94  
  95   Then(/^the  problemTe xt field s tarts with  search ch aracter "( .*?)"$/) d o |arg1|
  96     json = J SON.parse( @response. body)
  97     values =  json["dat a"]["items "]
  98     values.e ach do |lo calVal|
  99       expect ((localVal ["problemT ext"]).mat ch arg1)== nil
  100     end
  101   end
  102  
  103   #@US2645_P roblem_Lis t_Update
  104   When(/^the  client po sts data " (.*?)" usi ng postman $/) do |ar g1|
  105     values =  arg1.spli t("|")
  106     jsonreq  = { :respo nsibleProv iderIEN =>  values[0] , :provide rIEN => va lues[1], : responsibl eProvider  => values[ 2], :userI EN => valu es[3], :st atus => va lues[4], : problemNam e => value s[5], :pro blemText = > values[6 ], :proble mNumber =>  values[7] , :dateLas tModified  => values[ 8], :dateO fOnset =>  values[9],  :recordin gProvider  => values[ 10], :acui ty => valu es[11], :h eadOrNeckC ancer => v alues[12],  :service  => values[ 13] }
  107     #jsonreq ["///"] =" /"
  108     request  = jsonreq. to_json
  109     #puts re quest
  110     url = Qu eryGeneric RDK.new("p roblems"). path
  111     #p url
  112     @respons e =  HTTPa rtyRDK.pos t(url, req uest, { "C ontent-Typ e"=>"appli cation/jso n" })
  113     #puts @r esponse.co de  
  114   end
  115  
  116   Then(/^the  results c ontain the  problemTe xt with th e written  value "(.* ?)"$/) do  |arg1|
  117     pelem =   @driver.f ind_elemen ts(:css, " #results>d l>dd>a") 
  118     # @respo nse = HTTP artyRDK.ge t_with_aut horization (app_path)
  119     pvalue =  pelem[2]. text
  120     presult  = pvalue.s plit('/')
  121     puts pre sult[1]
  122     @driver. quit 
  123     expect(p value).to  eq(arg1)
  124   end
  125  
  126   #US2887_Pr oblem_List _Remove @o nc
  127   When(/^the  client ru ns data "( .*?)" usin g postman$ /) do |arg 1|
  128     values =  arg1.spli t("|")
  129     jsonreq  = { 
  130       :probl emIEN => v alues[0], 
  131       :provi derID => v alues[1]
  132     }
  133     request  = jsonreq. to_json
  134     urlobj =  QueryGene ricRDK.new ("problems ")
  135       urlobj.add _parameter ("accessCo de", " REDACT ")
  136       urlobj.add _parameter ("verifyCo de", " REDACTED ")
  137       urlobj.add _parameter ("site", " R E D A CTED ")
  138     url = ur lobj.path
  139     p url
  140     puts req uest
  141     @respons e =  HTTPa rtyRDK.del ete(url, r equest, {  "Content-T ype"=>"app lication/j son" })
  142     p "befor e resp"
  143     puts @re sponse
  144   end
  145  
  146   When(/^the  client qu eries JDS$ /) do
  147     path =De faultLogin .jds_url
  148       urlpath    = path+"/v pr/ R E D A CTED ;3/find/pr oblem?filt er=like(lo calId,\"49 9\")"
  149     encoded_ url = URI. encode(url path)
  150     #uri = U RI.parse(u rlpath)
  151     @respons e = HTTPar tyRDK.get( encoded_ur l)
  152   end
  153  
  154   Then(/^the  results c ontain rem oved with  the writte n value "( .*?)"$/) d o |flag|
  155     json1 =  JSON.parse (@response .body)
  156     text = f lag.to_s
  157     ValueArr ay = json1 ["data"][" items"]
  158     puts Val ueArray
  159     ValueArr ay.each do  |localVal |
  160       reval  = localVal ["removed" ].to_s
  161       expect (reval.mat ch text) = = nil
  162     end
  163   end
  164  
  165   Then(/^the  results w ill have C ondition H IDDEN$/) d o
  166     pelem =   @driver.f ind_elemen ts(:css, " #results>d l>dd")
  167     # @respo nse = HTTP artyRDK.ge t_with_aut horization (app_path)
  168     pvalue =  pelem[11] .text
  169     puts pva lue
  170     @driver. quit 
  171     expect(p value).to  eq(arg1)
  172   end