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

286.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\tests\acceptance-tests\features\steps vitals_fhir_steps.rb Mon Aug 21 12:51:01 2017 UTC
2 rdk.zip\rdk\product\tests\acceptance-tests\features\steps vitals_fhir_steps.rb Tue Oct 3 17:27:39 2017 UTC

286.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 154
Changed 1 2
Inserted 0 0
Removed 0 0

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

286.4 Active regular expressions

No regular expressions were active.

286.5 Comparison detail

  1   When(/^the  client re quests vit als with _ count of " (\d+)" for  the patie nt "(.*?)"  in FHIR f ormat$/) d o |count,  pid|
  2     temp = Q ueryRDKCDS fhir.new
  3     path = t emp.path +  "/patient /#{pid}/ob servation? _count=" +  count
  4     @respons e = HTTPar tyRDK.get( path)
  5     puts @re sponse.bod y
  6   end
  7  
  8   Then(/^the  FHIR resu lts contai n "(\d+)"  vitals/) d o |count|
  9     @json_ob ject = JSO N.parse(@r esponse.bo dy)
  10     json_ver ify = Json Verifier.n ew
  11  
  12     result_a rray = @js on_object[ "entry"]
  13     expect(r esult_arra y.length.t o_s).to eq (count)
  14   end
  15  
  16   When(/^the  client re quests vit als for th e patient  "(.*?)" in  FHIR form at$/) do | pid|
  17     temp = Q ueryRDKCDS fhir.new
  18     path = t emp.path +  "/patient /#{pid}/ob servation"
  19     @respons e = HTTPar tyRDK.get( path)
  20     puts @re sponse.bod y
  21   end
  22  
  23   When(/^the  client "( .*?)" requ ests vital s for the  patient "( .*?)" in F HIR format $/) do |us er, pid|
  24     temp = Q ueryRDKCDS fhir.new
  25     path = t emp.path +  "/patient /#{pid}/ob servation"
  26       @response  = HTTParty RDK.get_as _user(path , user, " REDACTED ")
  27     puts @re sponse.bod y
  28   end
  29  
  30   Then(/^the  FHIR resu lts contai n vitals/)  do |table |
  31     # the da teformat f or vitals  appears to  be differ ent that w hat was de fined as d efault
  32     dateform at = /\d{4 }[-\/]\d{1 ,2}[-\/]\d {1,2}T\d\d :\d\d:\d\d [\+\-]\d\d :\d\d/
  33  
  34     @json_ob ject = JSO N.parse(@r esponse.bo dy)
  35     json_ver ify = Json Verifier.n ew
  36  
  37     result_a rray = @js on_object[ "entry"]
  38     table.ro ws.each do  |fieldpat h, fieldva luestring|
  39       json_v erify.rese t_output
  40       if fie ldvaluestr ing.eql? " IS_FORMATT ED_DATE"
  41         foun d = json_v erify.all_ matches_da te_format( fieldpath,  dateforma t, result_ array)
  42       elsif  fieldvalue string.eql ? "IS_FHIR _FORMATTED _DATE"
  43         foun d = json_v erify.all_ matches_fh ir_date_fo rmat(field path, date format, re sult_array )
  44       elsif  fieldvalue string.eql ? "IS_NOT_ SET"
  45         foun d = json_v erify.not_ defined?([ fieldpath] , result_a rray)
  46       elsif  fieldvalue string.eql ? "IS_SET"
  47         foun d = json_v erify.defi ned?([fiel dpath], re sult_array )
  48       elsif  fieldvalue string.sta rt_with? " CONTAINS"
  49         term  = fieldva luestring. split(' ')
  50         fiel dvalue = [ term[1]]
  51         foun d = json_v erify.obje ct_contain s_partial_ value(fiel dpath, fie ldvalue, r esult_arra y)
  52       else
  53         foun d = json_v erify.buil d_subarray (fieldpath , fieldval uestring,  result_arr ay)
  54         resu lt_array =  json_veri fy.subarry
  55       end
  56  
  57       # p "s ubarray #{ found} #{f ieldvalues tring} #{j son_verify .subarry.l ength}"
  58       # p "- ---------- ---------- ---"
  59       if fou nd == fals e
  60         # ou tput = jso n_verify.o utput()
  61         # ou tput.each  do | msg|
  62         # p  msg
  63         # en d #output. each
  64         puts  json_veri fy.error_m essage
  65         #
  66       end #  if found = = false
  67       expect (found).to  eq(true)
  68       expect (result_ar ray.length ).to_not e q(0)
  69     end # ta ble.rows.e ach
  70   end
  71  
  72   When(/^the  client re quests "(. *?)" vital s for the  patient "( .*?)" in F HIR format $/) do |li mit, pid|
  73     temp = R DKQuery.ne w('vitals- observatio n')
  74     temp.add _parameter ("subject. identifier ", pid)
  75     temp.add _parameter ("_count",  limit)
  76     p temp.p ath
  77     @respons e = HTTPar tyRDK.get( temp.path)
  78   end