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

276.1 Files compared

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

276.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 7 162
Changed 6 12
Inserted 0 0
Removed 0 0

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

276.4 Active regular expressions

No regular expressions were active.

276.5 Comparison detail

  1   Given(/^I  am able to  post a pe rsistent c ommunicati on request $/) do |ta ble|
  2     type = {  'Content- Type' => ' applicatio n/json' }
  3     resource  = RDKQuer y.new('com munication request-ad d')
  4  
  5     table.ma p_headers!  { |header | header.d owncase.to _sym }
  6  
  7     table.ha shes.each  do |row|
  8       json =  { 'resour ceType' =>  'Communic ationReque st',
  9                 'sender ' => { 're ference' = > row[:sen der] },
  10                 'recipi ent' => [{  'referenc e' => row[ :recipient ] }],
  11                 'subjec t' => { 'r eference'  => row[:su bject] },
  12                 'priori ty' => { ' coding' =>  [{ 'code'  => row[:p riority] } ] },
  13                 'payloa d' => [{ ' contentStr ing' => ro w[:payload ] }] }.to_ json
  14       #puts  resource.p ath, json,  type
  15       @respo nse = HTTP artyRDK.po st(resourc e.path, js on, type)
  16     end
  17   end
  18  
  19   Then(/^I a m able to  retrieve c omm reques ts for pro vider "([^ "]*)"$/) d o |provide r|
  20       #http:// IP                /resource/ fhir/commu nicationre quest/9E7A ;100000002 70
  21     resource  = RDKQuer y.new('com munication request-ad d')
  22     path = r esource.pa th + '/' +  provider
  23     @respons e = HTTPar tyRDK.get( path)
  24   end
  25  
  26   Then(/^I a m able to  retrieve c omm reques ts for pat ient "([^" ]*)" of pr ovider "([ ^"]*)"$/)  do |patien t, provide r|
  27       #http:// IP                /resource/ fhir/commu nicationre quest/9E7A ;100000002 70?subject =patient/9 E7A;253
  28     resource  = RDKQuer y.new('com munication request-ad d')
  29     path = r esource.pa th + '/' +  provider  + '?subjec t=patient/ ' + patien t
  30     @respons e = HTTPar tyRDK.get( path)
  31     #p @resp onse.body
  32   end
  33  
  34   Then(/^I a m able to  retrieve c ounters fo r unread n otificatio ns for pro vider "([^ "]*)"$/) d o |provide r|
  35       #http:// IP                /resource/ fhir/commu nicationre quest/9E7A ;100000002 70&status= received&c ount=true
  36     resource  = RDKQuer y.new('com munication request-ad d')
  37     path = r esource.pa th + '/' +  provider  + '?status =received& count=true '
  38     @respons e = HTTPar tyRDK.get( path)
  39     p @respo nse.body
  40     response _body = @r esponse.bo dy
  41     expect(r esponse_bo dy.include ? 'count') .to be_tru e
  42   end
  43  
  44   Then(/^I a m able to  retrieve l ists of un read notif ications f or provide r "([^"]*) "$/) do |p rovider|
  45       #http:// IP                /resource/ fhir/commu nicationre quest/9E7A ;100000002 70?status= received
  46     resource  = RDKQuer y.new('com munication request-ad d')
  47     path = r esource.pa th + '/' +  provider  + '?status =received'
  48     @respons e = HTTPar tyRDK.get( path)
  49     #p @resp onse.body
  50   end
  51  
  52   Then(/^I a m able to  mark a not ification  as read as  provider  "([^"]*)"$ /) do |pro vider|
  53       #http:// IP                /resource/ fhir/commu nicationre quest/sets tatus/read /9E7A;1000 0000270/<I D>
  54     type = {  'Content- Type' => ' applicatio n/json' }
  55     resource  = RDKQuer y.new('com munication request-ad d')
  56  
  57     getpath  = resource .path + '/ ' + provid er
  58     @respons e = HTTPar tyRDK.get( getpath)
  59  
  60     for i in  0..JSON.p arse(@resp onse.body) .length do
  61       if JSO N.parse(@r esponse.bo dy)[i]["st atus"] ==  "received"
  62         brea k
  63       end
  64     end
  65  
  66     id = JSO N.parse(@r esponse.bo dy)[i]["id "]
  67  
  68     putpath  = resource .path + '/ setstatus/ read/' + p rovider +  "/" + id
  69     json = { }.to_json
  70     #puts re source.pat h, json, t ype
  71     @respons e = HTTPar tyRDK.put( putpath, j son, type)
  72   end
  73  
  74   Then(/^I a m able to  mark a not ification  as complet ed as prov ider "([^" ]*)"$/) do  |provider |
  75       #http:// IP                /resource/ fhir/commu nicationre quest/sets tatus/comp leted/9E7A ;100000002 70/<ID>
  76     type = {  'Content- Type' => ' applicatio n/json' }
  77     resource  = RDKQuer y.new('com munication request-ad d')
  78  
  79     getpath  = resource .path + '/ ' + provid er
  80     @respons e = HTTPar tyRDK.get( getpath)
  81     id = JSO N.parse(@r esponse.bo dy)[0]["id "]
  82  
  83     putpath  = resource .path + '/ setstatus/ completed/ ' + provid er + "/" +  id
  84     json = { }.to_json
  85     #puts re source.pat h, json, t ype
  86     @respons e = HTTPar tyRDK.put( putpath, j son, type)
  87   end