Produced by Araxis Merge on 10/3/2017 11:16:06 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | ehmp.zip\ehmp\ehmp\product\tests\acceptance-tests\features-arch\old_ehmp_features_ruby\steps\helper | QueryRDK.rb | Tue Dec 15 14:05:18 2015 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\tests\acceptance-tests\features-arch\old_ehmp_features_ruby\steps\helper | QueryRDK.rb | Mon Oct 2 20:09:57 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 222 |
| Changed | 2 | 4 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 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 | class Buil dQuery | |
| 6 | ||
| 7 | def init ialize | |
| 8 | @path = '' | |
| 9 | @numbe r_paramete rs = 0 | |
| 10 | ||
| 11 | end | |
| 12 | ||
| 13 | def add_ parameter( param, val ue) | |
| 14 | if @nu mber_param eters == 0 | |
| 15 | @pat h.concat(" ?") | |
| 16 | else | |
| 17 | @pat h.concat(" &") | |
| 18 | end | |
| 19 | @numbe r_paramete rs = @numb er_paramet ers + 1 | |
| 20 | @path. concat(par am) | |
| 21 | @path. concat("=" ) | |
| 22 | @path. concat(val ue) | |
| 23 | end | |
| 24 | ||
| 25 | def path | |
| 26 | p @pat h | |
| 27 | return @path | |
| 28 | end | |
| 29 | end | |
| 30 | ||
| 31 | class Quer yRDKAudit < BuildQue ry | |
| 32 | def init ialize(sea rchterm, s earchvalue ) | |
| 33 | super( ) | |
| 34 | @path. concat(Def aultLogin. rdk_url) | |
| 35 | @path. concat("/a udit/searc h") | |
| 36 | add_pa rameter(se archterm, searchvalu e) | |
| 37 | end | |
| 38 | end | |
| 39 | ||
| 40 | class Quer yRDKSync < BuildQuer y | |
| 41 | def init ialize(com mand, pid = nil) | |
| 42 | super( ) | |
| 43 | @path. concat(Def aultLogin. rdk_url) | |
| 44 | @path. concat("/s ync/") | |
| 45 | @path. concat(com mand) | |
| 46 | ||
| 47 | add_pa rameter("p id", pid) unless pid .nil? | |
| 48 | end | |
| 49 | end | |
| 50 | ||
| 51 | class Quer yRDKDomain < BuildQu ery | |
| 52 | # http:/ /127.0.0.1 :8888/pati entrecord/ domain/all ergy?pid=1 | |
| 53 | def init ialize(dat atype, pid = nil) | |
| 54 | super( ) | |
| 55 | @path. concat(Def aultLogin. rdk_url) | |
| 56 | @path. concat("/p atientreco rd/domain/ ") | |
| 57 | @path. concat(dat atype) | |
| 58 | @numbe r_paramete rs = 0 | |
| 59 | add_pa rameter("p id", pid) unless pid .nil? | |
| 60 | end | |
| 61 | end | |
| 62 | ||
| 63 | class Quer yRDK < Bui ldQuery | |
| 64 | # http:// IP /patientre cord/labsb yorder?pid =11016&ord erUid=urn: va:order:9 E7A:227:16 682 | |
| 65 | def init ialize(dat atype, pid , auto_ack nowledge = "true") | |
| 66 | @path = String.n ew(Default Login.rdk_ api_url) | |
| 67 | @path. concat("/p atientreco rd/labsbyo rder?pid=" ) | |
| 68 | @path. concat(pid ) | |
| 69 | @path. concat("&o rderUid=") | |
| 70 | @path. concat(dat atype) | |
| 71 | @numbe r_paramete rs = 0 | |
| 72 | add_ac knowledge( auto_ackno wledge) | |
| 73 | end | |
| 74 | ||
| 75 | def add_ parameter( param, val ue) | |
| 76 | if @nu mber_param eters == 0 | |
| 77 | @pat h.concat(" ?") | |
| 78 | else | |
| 79 | @pat h.concat(" &") | |
| 80 | end | |
| 81 | @numbe r_paramete rs = @numb er_paramet ers + 1 | |
| 82 | @path. concat(par am) | |
| 83 | @path. concat("=" ) | |
| 84 | @path. concat(val ue) | |
| 85 | end | |
| 86 | ||
| 87 | def add_ acknowledg e(ack) | |
| 88 | add_pa rameter("_ ack", ack) | |
| 89 | end | |
| 90 | ||
| 91 | def path | |
| 92 | return @path | |
| 93 | end | |
| 94 | end # clas s | |
| 95 | ||
| 96 | #https:// IP /fhir/pati ent/_searc h?name=EIG HT,PATIENT &_format=j son&_skip= 0&_count=2 0&_ack=tru e | |
| 97 | class Sear chRDK < Bu ildQuery | |
| 98 | ||
| 99 | def init ialize(res ultsRecord Type = nil ) | |
| 100 | super( ) | |
| 101 | @path. concat(Def aultLogin. rdk_url) | |
| 102 | @path. concat("/p atient-sea rch") | |
| 103 | @path. concat("/# {resultsRe cordType}" ) unless r esultsReco rdType.nil ? | |
| 104 | @numbe r_paramete rs = 0 | |
| 105 | end | |
| 106 | end | |
| 107 | ||
| 108 | if __FILE_ _ == $PROG RAM_NAME | |
| 109 | q= Query RDKSync.ne w("one", " two") | |
| 110 | p q.path | |
| 111 | ||
| 112 | p QueryR DK.new("ui d", "3", " false").pa th | |
| 113 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.