Produced by Araxis Merge on 10/3/2017 11:16:07 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\data_load_scripts\domain_loaders | vitals.rb | Tue Jan 10 16:20:50 2017 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\tests\data_load_scripts\domain_loaders | vitals.rb | Tue Oct 3 14:28:50 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 104 |
| 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 | require 'v istarpc4r' | |
| 2 | ||
| 3 | # options | |
| 4 | #--------- ---------- ---------- ------- | |
| 5 | serve_ip = " IP " | |
| 6 | vital_amou nt = 50000 00 # up to 212 | |
| 7 | patient_id = "100841 " # alpha test | |
| 8 | #--------- ---------- ---------- ------- | |
| 9 | ||
| 10 | ||
| 11 | broker = V istaRPC4r: :RPCBroker Connection .new(serve _ip, 9210, " REDACTED ", " REDACTED ", false) | |
| 12 | broker.con nect | |
| 13 | broker.set Context('O R CPRS GUI CHART') | |
| 14 | ||
| 15 | ||
| 16 | # get the SSN for th e patient | |
| 17 | patient_rp c = VistaR PC4r::Vist aRPC.new(" ORWPT ID I NFO", Vist aRPC4r::RP CResponse: :SINGLE_VA LUE) | |
| 18 | patient_rp c.params = [ | |
| 19 | pa tient_id | |
| 20 | ] | |
| 21 | ||
| 22 | patient_re sp = broke r.execute( patient_rp c) | |
| 23 | social = p atient_res p.value.sp lit("^")[0 ] | |
| 24 | ||
| 25 | ||
| 26 | rpc = Vist aRPC4r::Vi staRPC.new ("ISI IMPO RT VITALS" , VistaRPC 4r::RPCRes ponse::ARR AY) | |
| 27 | ||
| 28 | ||
| 29 | load_time = Time.now | |
| 30 | ||
| 31 | count = 0 | |
| 32 | ||
| 33 | vital_amou nt.times d o |f| | |
| 34 | ti me = load _time - (6 0 * count) | |
| 35 | ||
| 36 | fo rmated_tim e = time.s trftime "3 %y%m%d.%H% M" | |
| 37 | ||
| 38 | pr ng = Rando m.new | |
| 39 | nu mber = prn g.rand(98. .104) | |
| 40 | ||
| 41 | rp c.params = [[ | |
| 42 | ["1" ,"PAT_SSN^ #{social}" ], | |
| 43 | ["2" , "VITAL_T YPE^TEMPER ATURE"], | |
| 44 | ["3" , "RATE^#{ number}"], | |
| 45 | ["4" , "LOCATIO N^GENERAL MEDICINE"] , | |
| 46 | ["5" , "DT_TAKE N^#{format ed_time}"] , | |
| 47 | ["6" , "ENTERED _BY^PROVID ER,ONE"] | |
| 48 | ]] | |
| 49 | re sp = broke r.execute( rpc) | |
| 50 | ||
| 51 | pu ts "#{form ated_time} #{resp.va lue} #{cou nt}" | |
| 52 | ||
| 53 | co unt = coun t + 1 | |
| 54 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.