vistarpc4r 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/{lib/vistarpc4r → examples}/add_problems.rb +0 -0
- data/examples/add_vitals.rb +48 -0
- data/{lib/vistarpc4r → examples}/test.rb +0 -0
- data/vistarpc4r.gemspec +5 -4
- metadata +7 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
File without changes
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'vistarpc4r'
|
3
|
+
|
4
|
+
broker = VistaRPC4r::RPCBrokerConnection.new('openvista.medsphere.org', 9201, 'PU1234', 'PU1234!!', false)
|
5
|
+
|
6
|
+
broker.connect
|
7
|
+
broker.setContext('OR CPRS GUI CHART')
|
8
|
+
|
9
|
+
#wardsrpc = VistaRPC4r::VistaRPC.new("ORQPT WARDS", VistaRPC4r::RPCResponse::ARRAY)
|
10
|
+
#wardsresponse = broker.execute(wardsrpc)
|
11
|
+
#wardsresponse.value.each do |d|
|
12
|
+
# puts d
|
13
|
+
#end
|
14
|
+
|
15
|
+
|
16
|
+
# preset some variables
|
17
|
+
dfn = "4" # internal id of the patient, CLINICAL, Male
|
18
|
+
provider ="42" #internal id of care provider Physican, User
|
19
|
+
location = "1" # hospital location ICU=1 MED/SURG=2 PSYCH=3
|
20
|
+
thedate = "3110525"
|
21
|
+
thedatetime = "3110525.160100"
|
22
|
+
# Vitals
|
23
|
+
puts "Vitals-------------------------------------"
|
24
|
+
patientrpc = VistaRPC4r::VistaRPC.new("ORQQVI VITALS", VistaRPC4r::RPCResponse::ARRAY)
|
25
|
+
patientrpc.params[0]=dfn #patient ien
|
26
|
+
patientresponse = broker.execute(patientrpc)
|
27
|
+
patientresponse.value.each do |d|
|
28
|
+
puts d
|
29
|
+
end
|
30
|
+
|
31
|
+
# Add a new problem
|
32
|
+
vrpc = VistaRPC4r::VistaRPC.new("ORQQVI2 VITALS VAL & STORE", VistaRPC4r::RPCResponse::ARRAY)
|
33
|
+
vrpc.params[0] = [
|
34
|
+
["1", "VST^DT^#{thedatetime}"], # Vital date
|
35
|
+
["2", "VST^PT^#{dfn}"], # Patient
|
36
|
+
["3", "VST^HL^#{location}"], # location
|
37
|
+
["4", "VIT^BP^^^120/60^#{provider}^^#{thedatetime}"]
|
38
|
+
]
|
39
|
+
resp=broker.execute(vrpc)
|
40
|
+
puts resp
|
41
|
+
|
42
|
+
puts "Vitals-------------------------------------"
|
43
|
+
patientrpc = VistaRPC4r::VistaRPC.new("ORQQVI VITALS", VistaRPC4r::RPCResponse::ARRAY)
|
44
|
+
patientrpc.params[0]=dfn #patient ien
|
45
|
+
patientresponse = broker.execute(patientrpc)
|
46
|
+
patientresponse.value.each do |d|
|
47
|
+
puts d
|
48
|
+
end
|
File without changes
|
data/vistarpc4r.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vistarpc4r}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Mike Cham"]
|
12
|
-
s.date = %q{2011-05-
|
12
|
+
s.date = %q{2011-05-26}
|
13
13
|
s.description = %q{more}
|
14
14
|
s.email = %q{mike@blenderhouse.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -24,11 +24,12 @@ Gem::Specification.new do |s|
|
|
24
24
|
"README.rdoc",
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION",
|
27
|
+
"examples/add_problems.rb",
|
28
|
+
"examples/add_vitals.rb",
|
29
|
+
"examples/test.rb",
|
27
30
|
"lib/vistarpc4r.rb",
|
28
|
-
"lib/vistarpc4r/add_problems.rb",
|
29
31
|
"lib/vistarpc4r/rpc_broker_connection.rb",
|
30
32
|
"lib/vistarpc4r/rpc_response.rb",
|
31
|
-
"lib/vistarpc4r/test.rb",
|
32
33
|
"lib/vistarpc4r/vista_rpc.rb",
|
33
34
|
"test/helper.rb",
|
34
35
|
"test/test_vistarpc4r.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vistarpc4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mike Cham
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-26 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -95,11 +95,12 @@ files:
|
|
95
95
|
- README.rdoc
|
96
96
|
- Rakefile
|
97
97
|
- VERSION
|
98
|
+
- examples/add_problems.rb
|
99
|
+
- examples/add_vitals.rb
|
100
|
+
- examples/test.rb
|
98
101
|
- lib/vistarpc4r.rb
|
99
|
-
- lib/vistarpc4r/add_problems.rb
|
100
102
|
- lib/vistarpc4r/rpc_broker_connection.rb
|
101
103
|
- lib/vistarpc4r/rpc_response.rb
|
102
|
-
- lib/vistarpc4r/test.rb
|
103
104
|
- lib/vistarpc4r/vista_rpc.rb
|
104
105
|
- test/helper.rb
|
105
106
|
- test/test_vistarpc4r.rb
|