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 | 14_load.rb | Tue Dec 15 14:05:18 2015 UTC |
| 2 | ehmp.zip\ehmp\ehmp\product\tests\data_load_scripts | 14_load.rb | Tue Oct 3 14:29:31 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 352 |
| Changed | 1 | 2 |
| 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 | broker = V istaRPC4r: :RPCBroker Connection .new(" REDACTED .compute-1 .amazonaws .com", REDACTED , " REDACTED ", " REDACTED ", false) | |
| 4 | broker.con nect | |
| 5 | broker.set Context('O R CPRS GUI CHART') | |
| 6 | ||
| 7 | patients = [ | |
| 8 | { | |
| 9 | name : "CDSSEVE N,PATIENT" , | |
| 10 | sex: "FEMALE", | |
| 11 | dob: "01/01/19 62", | |
| 12 | bp: "121/36", | |
| 13 | heig ht: "70\"" , | |
| 14 | weig ht: "245lb " | |
| 15 | }, | |
| 16 | { | |
| 17 | name : "CDSEIGH T,PATIENT" , | |
| 18 | sex: "MALE", | |
| 19 | dob: "01/01/19 43", | |
| 20 | bp: "116/54", | |
| 21 | heig ht: "72\"" , | |
| 22 | weig ht: "243lb " | |
| 23 | }, | |
| 24 | { | |
| 25 | name : "CDSNINE ,PATIENT", | |
| 26 | sex: "MALE", | |
| 27 | dob: "01/01/19 69", | |
| 28 | bp: "174/38", | |
| 29 | heig ht: "74\"" , | |
| 30 | weig ht: "191lb " | |
| 31 | }, | |
| 32 | { | |
| 33 | name : "CDSTEN, PATIENT", | |
| 34 | sex: "FEMALE", | |
| 35 | dob: "01/01/19 46", | |
| 36 | bp: "145/107", | |
| 37 | heig ht: "71\"" , | |
| 38 | weig ht: "150lb lb" | |
| 39 | }, | |
| 40 | { | |
| 41 | name : "CDSELEV EN,PATIENT ", | |
| 42 | sex: "FEMALE", | |
| 43 | dob: "01/01/19 40", | |
| 44 | bp: "124/46", | |
| 45 | heig ht: "69\"" , | |
| 46 | weig ht: "115lb " | |
| 47 | }, | |
| 48 | { | |
| 49 | name : "CDSTWEL VE,PATIENT ", | |
| 50 | sex: "FEMALE", | |
| 51 | dob: "01/01/19 64", | |
| 52 | bp: "128/88", | |
| 53 | heig ht: "61\"" , | |
| 54 | weig ht: "140lb " | |
| 55 | }, | |
| 56 | { | |
| 57 | name : "CDSTHIR TEEN,PATIE NT", | |
| 58 | sex: "FEMALE", | |
| 59 | dob: "01/01/19 45", | |
| 60 | bp: "170/30", | |
| 61 | heig ht: "69\"" , | |
| 62 | weig ht: "230lb " | |
| 63 | }, | |
| 64 | { | |
| 65 | name : "CDSFOUR TEEN,PATIE NT", | |
| 66 | sex: "MALE", | |
| 67 | dob: "01/01/19 83", | |
| 68 | bp: "144/78", | |
| 69 | heig ht: "72\"" , | |
| 70 | weig ht: "189lb " | |
| 71 | }, | |
| 72 | { | |
| 73 | name : "CDSFIFT EEN,PATIEN T", | |
| 74 | sex: "FEMALE", | |
| 75 | dob: "01/01/19 33", | |
| 76 | bp: "149/108", | |
| 77 | heig ht: "72\"" , | |
| 78 | weig ht: "189lb " | |
| 79 | }, | |
| 80 | { | |
| 81 | name : "CDSSIXT EEN,PATIEN T", | |
| 82 | sex: "MALE", | |
| 83 | dob: "01/01/19 47", | |
| 84 | bp: "97/44", | |
| 85 | heig ht: "68\"" , | |
| 86 | weig ht: "120lb " | |
| 87 | }, | |
| 88 | { | |
| 89 | name : "CDSSEVE NTEEN,PATI ENT", | |
| 90 | sex: "MALE", | |
| 91 | dob: "01/01/19 42", | |
| 92 | bp: "204/39", | |
| 93 | heig ht: "62\"" , | |
| 94 | weig ht: "170lb " | |
| 95 | }, | |
| 96 | { | |
| 97 | name : "CDSEIGH TEEN,PATIE NT", | |
| 98 | sex: "MALE", | |
| 99 | dob: "01/01/19 55", | |
| 100 | bp: "158/59", | |
| 101 | heig ht: "73\"" , | |
| 102 | weig ht: "245lb " | |
| 103 | }, | |
| 104 | { | |
| 105 | name : "CDSNINE TEEN,PATIE NT", | |
| 106 | sex: "FEMALE", | |
| 107 | dob: "01/01/19 71", | |
| 108 | bp: "170/76", | |
| 109 | heig ht: "73\"" , | |
| 110 | weig ht: "178lb " | |
| 111 | }, | |
| 112 | { | |
| 113 | name : "CDSTWEN TY,PATIENT ", | |
| 114 | sex: "MALE", | |
| 115 | dob: "01/01/19 72", | |
| 116 | bp: "152/43", | |
| 117 | heig ht: "66\"" , | |
| 118 | weig ht: "160lb " | |
| 119 | } | |
| 120 | ] | |
| 121 | ||
| 122 | patients.e ach do |pa tient| | |
| 123 | pa tient_rpc = VistaRPC 4r::VistaR PC.new("IS I IMPORT P AT", Vista RPC4r::RPC Response:: ARRAY) | |
| 124 | pa tient_rpc. params = [ [ | |
| 125 | ["1" , "TEMPLAT E^DEFAULT" ], | |
| 126 | ["2" , "IMP_TYP E^I"], | |
| 127 | ["3" , "NAME^#{ patient[:n ame]}"], | |
| 128 | ["4" , "SEX^#{p atient[:se x]}"], | |
| 129 | ["5" , "DOB^#{p atient[:do b]}"] | |
| 130 | ]] | |
| 131 | ||
| 132 | pa tient_resp = broker. execute(pa tient_rpc) | |
| 133 | so cial = pat ient_resp. value.last .split('^' )[1] | |
| 134 | ||
| 135 | pu ts social | |
| 136 | vi tals_rpc = VistaRPC4 r::VistaRP C.new("ISI IMPORT VI TALS", Vis taRPC4r::R PCResponse ::ARRAY) | |
| 137 | ||
| 138 | vi tals_rpc.p arams = [[ | |
| 139 | ["1" , "PAT_SSN ^#{social} "], | |
| 140 | ["2" , "VITAL_T YPE^BLOOD PRESSURE"] , | |
| 141 | ["3" , "RATE^#{ patient[:b p]}"], | |
| 142 | ["4" , "DT_TAKE N^T"], | |
| 143 | ["5" , "LOCATIO N^GENERAL MEDICINE"] , | |
| 144 | ["6" , "ENTERED _BY^NURSE, TEN"] | |
| 145 | ]] | |
| 146 | ||
| 147 | vi tals_resp = broker.e xecute(vit als_rpc) | |
| 148 | pu ts vitals_ resp | |
| 149 | ||
| 150 | vi tals_rpc.p arams = [[ | |
| 151 | ["1" , "PAT_SSN ^#{social} "], | |
| 152 | ["2" , "VITAL_T YPE^HEIGHT "], | |
| 153 | ["3" , "RATE^#{ patient[:h eight]}"], | |
| 154 | ["4" , "DT_TAKE N^T"], | |
| 155 | ["5" , "LOCATIO N^GENERAL MEDICINE"] , | |
| 156 | ["6" , "ENTERED _BY^NURSE, TEN"] | |
| 157 | ]] | |
| 158 | ||
| 159 | vi tals_resp = broker.e xecute(vit als_rpc) | |
| 160 | pu ts vitals_ resp | |
| 161 | ||
| 162 | vi tals_rpc.p arams = [[ | |
| 163 | ["1" , "PAT_SSN ^#{social} "], | |
| 164 | ["2" , "VITAL_T YPE^WEIGHT "], | |
| 165 | ["3" , "RATE^#{ patient[:w eight]}"], | |
| 166 | ["4" , "DT_TAKE N^T"], | |
| 167 | ["5" , "LOCATIO N^GENERAL MEDICINE"] , | |
| 168 | ["6" , "ENTERED _BY^NURSE, TEN"] | |
| 169 | ]] | |
| 170 | ||
| 171 | vi tals_resp = broker.e xecute(vit als_rpc) | |
| 172 | pu ts vitals_ resp | |
| 173 | end | |
| 174 | ||
| 175 | puts "pati ents loade d" | |
| 176 | ||
| 177 | broker.clo se |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.