57. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/2/2017 7:00:31 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.

57.1 Files compared

# Location File Last Modified
1 cds.zip\cds\product\tests\acceptance-tests\features\steps\helper QueryRDK.rb Thu Mar 16 15:17:48 2017 UTC
2 cds.zip\cds\product\tests\acceptance-tests\features\steps\helper QueryRDK.rb Thu Sep 28 17:26:30 2017 UTC

57.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 10 674
Changed 9 20
Inserted 0 0
Removed 0 0

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

57.4 Active regular expressions

No regular expressions were active.

57.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 efaultLogi n.rb'
  4  
  5   class Buil dQuery
  6     def init ialize
  7       @path  = ''
  8       @numbe r_paramete rs = 0
  9     end
  10  
  11     def add_ parameter( param, val ue)
  12       if @nu mber_param eters == 0
  13         @pat h.concat(" ?")
  14       else
  15         @pat h.concat(" &")
  16       end
  17       @numbe r_paramete rs += 1
  18       @path. concat(par am)
  19       @path. concat("=" )
  20       @path. concat(val ue)
  21     end
  22  
  23     def add_ acknowledg e(ack)
  24       add_pa rameter("_ ack", ack)
  25     end
  26  
  27     def path
  28       #p URI .encode(@p ath)
  29       return  URI.encod e(@path)
  30     end
  31   end
  32  
  33   class Pagi nationQuer y < BuildQ uery
  34     def init ialize
  35       super( )
  36     end
  37  
  38     def add_ start(star t)
  39       add_pa rameter("s tart", sta rt)
  40     end
  41  
  42     def add_ limit(limi t)
  43       add_pa rameter("l imit", lim it)
  44     end
  45   end
  46  
  47   class RDKQ uery < Bui ldQuery
  48     def init ialize(tit le)
  49       super( )
  50       domain _path = RD Class.reso urcedirect ory_fetch. get_url(ti tle)
  51       p "dom ain path:  #{domain_p ath}"
  52       @path. concat(dom ain_path)
  53     end
  54   end
  55  
  56   class RDKQ ueryPagina tion < Pag inationQue ry
  57     def init ialize(tit le)
  58       super( )
  59       domain _path = RD Class.reso urcedirect ory_fetch. get_url(ti tle)
  60       p "dom ain path:  #{domain_p ath}"
  61       @path. concat(dom ain_path)
  62     end
  63   end
  64  
  65   class RDKQ ueryPickli st < Build Query
  66     def init ialize(tit le)
  67       super( )
  68       domain _path = RD Class.reso urcedirect ory_pickli st.get_url (title)
  69       p "dom ain path:  #{domain_p ath}"
  70       @path. concat(dom ain_path)
  71     end
  72   end
  73  
  74   class Quer yRDKSync <  BuildQuer y
  75     def init ialize(com mand, pid  = nil)
  76       super( )
  77  
  78       title  = "synchro nization-# {command}"
  79       domain _path = RD Class.reso urcedirect ory_fetch. get_url(ti tle)
  80       @path. concat(dom ain_path)
  81       add_pa rameter("p id", pid)  unless pid .nil?
  82     end
  83   end
  84  
  85   class RDCl ass
  86     @@resour cedirector y_fetch =  nil
  87     @@resour cedirector y_writebac k = nil
  88     @@resour cedirector y_picklist  = nil
  89  
  90     def self .resourced irectory_f etch
  91       if @@r esourcedir ectory_fet ch.nil?
  92         p "F IRST TIME:  DISCOVER  PATHS"
  93         base _url = Def aultLogin. rdk_fetch_ url
  94         path  = "#{base _url}/reso urce/resou rcedirecto ry"
  95         p ba se_url
  96         @res ponse =  H TTParty.ge t(path)
  97         @@re sourcedire ctory_fetc h= FetchRe sourceDire ctory.new( JSON.parse (@response .body), ba se_url)
  98       end #  if
  99       return  @@resourc edirectory _fetch
  100     end #def  self.reso urcedirect ory_fetch
  101  
  102     def self .resourced irectory_w riteback
  103       if @@r esourcedir ectory_wri teback.nil ?
  104         p "F IRST TIME:  DISCOVER  PATHS"
  105         base _url = Def aultLogin. rdk_writeb ack_url
  106         path  = "#{base _url}/reso urce/write -health-da ta/resourc edirectory "
  107         p ba se_url
  108         @res ponse =  H TTParty.ge t(path)
  109         @@re sourcedire ctory_writ eback= Fet chResource Directory. new(JSON.p arse(@resp onse.body) , base_url )
  110       end #  if
  111       return  @@resourc edirectory _writeback
  112     end #def  self.reso urcedirect ory_writeb ack
  113  
  114     def self .resourced irectory_p icklist
  115       if @@r esourcedir ectory_pic klist.nil?
  116         p "F IRST TIME:  DISCOVER  PATHS"
  117         base _url = Def aultLogin. rdk_pickli st_url
  118         path  = "#{base _url}/reso urce/write -pick-list /resourced irectory"
  119         p ba se_url
  120         @res ponse =  H TTParty.ge t(path)
  121         @@re sourcedire ctory_pick list= Fetc hResourceD irectory.n ew(JSON.pa rse(@respo nse.body),  base_url)
  122       end #  if
  123       return  @@resourc edirectory _picklist
  124     end #def  self.reso urcedirect ory_pickli st
  125   end
  126  
  127   class Quer yRDKDomain  < BuildQu ery
  128     # http:/ /127.0.0.1 :8888/pati entrecord/ domain/all ergy?pid=1
  129     def init ialize(dat atype, pid  = nil)
  130       super( )
  131       title  = "patient -record-#{ datatype}"
  132       domain _path = RD Class.reso urcedirect ory_fetch. get_url(ti tle)
  133  
  134       @path. concat(dom ain_path)
  135       @numbe r_paramete rs = 0
  136       add_pa rameter("p id", pid)  unless pid .nil?
  137     end
  138   end
  139  
  140   class Quer yRDKVisitA PI < Build Query
  141     def init ialize(com mand, pid  = nil, fco de = nil)
  142       super( )
  143       domain _path = RD Class.reso urcedirect ory_fetch. get_url("v isits-#{co mmand}")
  144       @path. concat(dom ain_path)
  145       @numbe r_paramete rs = 0
  146       add_pa rameter("p id", pid)  unless pid .nil?
  147       add_pa rameter("f acility.co de", fcode ) unless f code.nil?
  148     end
  149   end # clas s
  150  
  151   class Quer yGenericRD K < BuildQ uery
  152       # http:// IP                /visits/pr oviders
  153     def init ialize(com mand, pid  = nil, act ion = nil)
  154       super( )
  155       @numbe r_paramete rs = 0
  156       @path  = String.n ew(Default Login.rdk_ fetch_url)
  157       @path. concat("/# {command}" )
  158  
  159       if pid  != nil
  160         @pat h.concat(" /#{pid}")
  161       end
  162       if act ion != nil
  163         @pat h.concat(" /#{action} ")
  164       end
  165     end
  166  
  167     def add_ parameter( param, val ue)
  168       if @nu mber_param eters == 0
  169         @pat h.concat(" ?")
  170       else
  171         @pat h.concat(" &")
  172       end
  173       @numbe r_paramete rs += 1
  174       @path. concat(par am)
  175       @path. concat("=" )
  176       @path. concat(val ue)
  177     end
  178  
  179     def add_ acknowledg e(ack)
  180       add_pa rameter("_ ack", ack)
  181     end
  182  
  183     def path
  184       return  @path
  185     end
  186   end # clas s
  187  
  188   #http:// IP                /patientre cord/searc h/text?que ry=documen t&pid=9E7A ;100022
  189   class Quer yRDK < Bui ldQuery
  190     p "insid e class Qu eryRDK"
  191     def init ialize(pid , type)
  192       super( )
  193       domain _path = RD Class.reso urcedirect ory_fetch. get_url("p atient-rec ord-search -text")
  194       @path. concat(dom ain_path)
  195       add_pa rameter("q uery", typ e)
  196       add_pa rameter("p id", pid)
  197       #add_p arameter(" query", te xt)
  198     end
  199   end
  200  
  201   #http:// IP                /fhir/pati ent/urn:va :patient:9 E7A:100716 :100716
  202   class Quer yRDKDemogr aphics < B uildQuery
  203     def init ialize(typ e, uid)
  204       super( )
  205       @path  = String.n ew(Default Login.rdk_ fetch_url)
  206       @path. concat("/r esource/fh ir/" + typ e + "/" +  uid)
  207     end
  208  
  209     def add_ acknowledg e(ack)
  210       add_pa rameter("_ ack", ack)
  211     end
  212   end
  213  
  214   #http:// IP                /resource/ fhir/patie nt/9E7A;25 3/observat ion
  215   class Quer yRDKFhir <  BuildQuer y
  216     def init ialize(uid , domain)
  217       super( )
  218       @path  = String.n ew(Default Login.rdk_ fetch_url)
  219       @path. concat("/r esource/fh ir/patient " + "/" +  uid + "/"  + domain)
  220     end
  221  
  222     def add_ acknowledg e(ack)
  223       add_pa rameter("_ ack", ack)
  224     end
  225   end
  226  
  227   #http:// IP             /resource/ vler/9E7A; 8/toc?enco unterUid=u rn:va:visi t:9E7A:8:1 218
  228   class Quer yRDKVler <  BuildQuer y
  229     def init ialize(typ e)
  230       super( )
  231       @path  = String.n ew(Default Login.rdk_ fetch_url)
  232       @path. concat("/r esource/vl er/" + typ e + "/toc" )
  233     end
  234  
  235     def add_ encount(en count)
  236       add_pa rameter("e ncounterUi d", encoun t)
  237     end
  238  
  239     def add_ acknowledg e(ack)
  240       add_pa rameter("_ ack", ack)
  241     end
  242   end
  243  
  244   if __FILE_ _ == $PROG RAM_NAME
  245     q= Query RDKSync.ne w("one", " two")
  246     p q.path
  247     p QueryR DKAPI.new( "uid", "3" , "false") .path
  248   end
  249  
  250   #http:// IP                /patientre cord/domai n/document ?pid=10108 V420871&fi lter=eq(ki nd,"Progre ss Note")
  251   class Quer yRDKFilter BySummary  < BuildQue ry
  252     p "insid e class Qu eryRDKFilt erBySummar y"
  253     def init ialize(pid  = nil, fi lter = nil )
  254       super( )
  255       @path  = String.n ew(Default Login.rdk_ fetch_url)
  256       @path. concat("/r esource/pa tient-reco rd/domain/ document")
  257       if pid  != nil
  258         add_ parameter( "pid", pid )
  259       end
  260       if fil ter != nil
  261         add_ parameter( "filter",  filter)
  262       end
  263     end
  264   end
  265  
  266   #http:// IP                /resource/ tasks/star tprocess?d eploymentI d=All&proc essDefId=p roject1.Fo llowUpWork flow&
  267   #patientid =1234567&p atientname =EightPati ent&descri ption=Firs tHumanTask &where=VA& when=date& site=9E7A& accessCode = REDACTED &verifyCod e= REDACTED
  268   class RDKS tartProces s< BuildQu ery
  269     def init ialize(pDe fId = nil,  pid = nil , pname =  nil, descr iption = n il, pwhere  = nil, pw hen = nil)
  270       super( )
  271       @path  = String.n ew(Default Login.rdk_ fetch_url)
  272       @path. concat("/r esource/ta sks/startp rocess")
  273       add_pa rameter("d eploymentI d", "All")
  274       add_pa rameter("p rocessDefI d", pDefId ) unless p DefId.nil?
  275       add_pa rameter("p atientid",  pid) unle ss pid.nil ?
  276       add_pa rameter("p atientname ", pname)  unless pna me.nil?
  277       add_pa rameter("d escription ", descrip tion) unle ss descrip tion.nil?
  278       add_pa rameter("w here", pwh ere) unles s pwhere.n il?
  279       add_pa rameter("w hen", pwhe n) unless  pwhen.nil?
  280     end
  281   end
  282  
  283   class Quer yGenericVI STA < Buil dQuery
  284       # http:// IP                /visits/pr oviders
  285     def init ialize(com mand, pid  = nil, act ion = nil)
  286       super( )
  287       @numbe r_paramete rs = 0
  288       @path  = String.n ew(Default Login.vist a_url)
  289       @path. concat("/# {command}" )
  290       # @pat h.concat(p id)
  291       if pid  != nil
  292         @pat h.concat(" /#{pid}")
  293       end
  294       if act ion != nil
  295         @pat h.concat(" /#{action} ")
  296       end
  297     end
  298   end
  299  
  300   #http:// IP                /resource/ patient/re cord/domai n/vital?fi lter=and(D ATEFILTER) &pid=10107 V395912
  301   class Quer yRDKCCB <  BuildQuery
  302     def init ialize(typ e)
  303       super( )
  304       @path  = String.n ew(Default Login.rdk_ fetch_url)
  305       @path. concat("/r esource/pa tient/reco rd/domain/ vital?filt er=and(ne( r350407%22 %2C%222015 0420235959 %22))%2C%2 0ne(result %2CPass)&p id=" + typ e)
  306     end
  307   end
  308  
  309   class Quer yCDSInvoca tion < Bui ldQuery
  310     def init ialize
  311       super( )
  312       @path  = String.n ew(Default Login.cdsi nvocation_ url)
  313     end
  314   end
  315  
  316   class Quer yRDKCDS <  BuildQuery
  317     def init ialize
  318       super( )
  319       @path  = String.n ew(Default Login.rdk_ fetch_url)
  320       @path. concat("/r esource/cd s")
  321     end
  322   end
  323  
  324   class Quer yRDKCDSMet rics < Bui ldQuery
  325     def init ialize
  326       super( )
  327       @path  = String.n ew(Default Login.rdk_ fetch_url)
  328       @path. concat("/r esource/cd s/metrics" )
  329     end
  330   end
  331  
  332   class Quer yRDKCDSfhi r < BuildQ uery
  333     def init ialize
  334       super( )
  335       @path  = String.n ew(Default Login.rdk_ fetch_url)
  336       @path. concat("/r esource/fh ir")
  337     end
  338   end
  339  
  340   #query RDK  Patient R ecord Doma in
  341   class Quer yRDKPRD <  BuildQuery
  342     def init ialize
  343       super( )
  344       @path  = String.n ew(Default Login.rdk_ fetch_url)
  345       @path. concat("/r esource/pa tient/reco rd/domain/ patient?pi d=")
  346     end
  347   end