933. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/3/2017 11:16:05 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.

933.1 Files compared

# Location File Last Modified
1 ehmp.zip\ehmp\ehmp\product\tests\acceptance-tests\features\steps\helper QueryFhir.rb Tue Dec 15 14:05:18 2015 UTC
2 ehmp.zip\ehmp\ehmp\product\tests\acceptance-tests\features\steps\helper QueryFhir.rb Mon Oct 2 20:08:43 2017 UTC

933.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 122
Changed 2 6
Inserted 0 0
Removed 0 0

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

933.4 Active regular expressions

No regular expressions were active.

933.5 Comparison detail

  1   path = Fil e.expand_p ath '..',  __FILE__
  2   $LOAD_PATH .unshift p ath unless  $LOAD_PAT H.include? (path)
  3   require 'D efaultHmpL ogin.rb'
  4  
  5   #https:// IP        /fhir/pati ent/_searc h?name=EIG HT,PATIENT &_format=j son&_ack=t rue
  6   #https:// IP        /fhir/pati ent?identi fier=10108 &_format=j son&_ack=f alse
  7   class Quer yFhir
  8     def init ialize(dat atype)
  9       @path  = String.n ew(Default Login.fhir _url)
  10       @path. concat("/f hir/")
  11       @path. concat(dat atype)
  12       @numbe r_paramete rs = 0
  13     end
  14  
  15     def add_ parameter( param, val ue)
  16       if @nu mber_param eters == 0
  17         @pat h.concat(" ?")
  18       else
  19         @pat h.concat(" &")
  20       end
  21       @numbe r_paramete rs = @numb er_paramet ers + 1
  22       @path. concat(par am)
  23       @path. concat("=" )
  24       @path. concat(val ue)
  25     end
  26  
  27     def add_ acknowledg e(ack)
  28       add_pa rameter("_ ack", ack)
  29     end
  30  
  31     def add_ format(req uested_for mat)
  32       add_pa rameter("_ format", r equested_f ormat)
  33     end
  34  
  35     def path
  36       return  @path
  37     end
  38   end
  39  
  40   #https:// IP        /fhir/pati ent/_searc h?name=EIG HT,PATIENT &_format=j son&_skip= 0&_count=2 0&_ack=tru e
  41   class Sear chFhir < Q ueryFhir
  42     
  43     def init ialize(sea rch_type,  search_val ue)
  44       @path  = String.n ew(Default Login.fhir _url)
  45       @path. concat("/f hir/patien t/_search" )
  46       @numbe r_paramete rs = 0
  47       add_pa rameter(se arch_type,  search_va lue)
  48       add_pa rameter("_ format", " json")
  49       add_pa rameter("_ skip", "0" )
  50       add_pa rameter("_ count", "5 00")
  51       add_pa rameter("_ ack", "tru e")
  52     end
  53   end
  54  
  55   if __FILE_ _ == $PROG RAM_NAME
  56     p '----- --- WAS HE RE ------- ----'
  57     temp = Q ueryFhir.n ew("Advers eReaction" )
  58     temp.add _parameter ("subject. identifier ", "5")
  59     temp.add _format("j son")
  60     #p temp. path
  61     
  62     search =  SearchFhi r.new("nam e", "bob")
  63     p search
  64   end