allscripts_unity_client 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md
CHANGED
@@ -121,6 +121,8 @@ A number of helper methods exist that abstract away the details of the Magic ope
|
|
121
121
|
- `save_task(userid, patientid, task_type = nil, target_user = nil, work_object_id = nil, comments = nil)`
|
122
122
|
- `save_task_status(userid, transaction_id = nil, param = nil, delegate_id = nil, comment = nil)`
|
123
123
|
- `search_meds(userid, patientid, search = nil)`
|
124
|
+
- `search_patients(search)`
|
125
|
+
- `search_pharmacies(search)`
|
124
126
|
|
125
127
|
All magic helper methods not on this list currently raise `NotImplementedError`. More helper methods will be added in future releases. Pull requests welcome.
|
126
128
|
|
@@ -26,7 +26,6 @@ Gem::Specification.new do |gem|
|
|
26
26
|
gem.add_runtime_dependency "httpi", "~> 2.1.0"
|
27
27
|
gem.add_runtime_dependency "net-http-persistent", "~> 2.9.0"
|
28
28
|
gem.add_runtime_dependency "tzinfo", "~> 0.3.29"
|
29
|
-
gem.add_runtime_dependency "tzinfo-data", "~> 1.2013.7"
|
30
29
|
gem.add_runtime_dependency "nokogiri", "< 1.6", ">= 1.4.0"
|
31
30
|
gem.add_runtime_dependency "nori", "~> 2.3.0"
|
32
31
|
|
@@ -557,16 +557,24 @@ module AllscriptsUnityClient
|
|
557
557
|
magic(magic_parameters)
|
558
558
|
end
|
559
559
|
|
560
|
-
def search_patients
|
561
|
-
|
560
|
+
def search_patients(search)
|
561
|
+
magic_parameters = {
|
562
|
+
:action => "SearchPatients",
|
563
|
+
:parameter1 => search
|
564
|
+
}
|
565
|
+
magic(magic_parameters)
|
562
566
|
end
|
563
567
|
|
564
568
|
def search_patients_rxhub5
|
565
569
|
raise NotImplementedError, "SearchPatientsRXHub5 magic action not implemented"
|
566
570
|
end
|
567
571
|
|
568
|
-
def search_pharmacies
|
569
|
-
|
572
|
+
def search_pharmacies(search)
|
573
|
+
magic_parameters = {
|
574
|
+
:action => "SearchPharmacies",
|
575
|
+
:parameter1 => search
|
576
|
+
}
|
577
|
+
magic(magic_parameters)
|
570
578
|
end
|
571
579
|
|
572
580
|
def search_problem_codes
|
@@ -4,7 +4,7 @@ require "date"
|
|
4
4
|
module AllscriptsUnityClient
|
5
5
|
class Utilities
|
6
6
|
DATETIME_REGEX = /^((\d{1,2}[-\/]\d{1,2}[-\/]\d{4})|(\d{4}[-\/]\d{1,2}[-\/]\d{1,2}))(T| )\d{1,2}:\d{2}(:\d{2})?(\.\d+)?( ?PM|AM|pm|am)?((-|\+)\d{2}:?\d{2})?Z?$/
|
7
|
-
DATE_REGEX = /^((\d{1,2}[-\/]\d{1,2}[-\/]\d{4})|(\d{4}[-\/]\d{1,2}[-\/]\d{1,2}))$/
|
7
|
+
DATE_REGEX = /^((\d{1,2}[-\/]\d{1,2}[-\/]\d{4})|(\d{4}[-\/]\d{1,2}[-\/]\d{1,2})|(\d{1,2}-[A-Za-z]{3,4}-\d{4}))$/
|
8
8
|
|
9
9
|
def self.try_to_encode_as_date(possible_date)
|
10
10
|
if possible_date.nil?
|
data/spec/client_spec.rb
CHANGED
@@ -366,18 +366,13 @@ describe 'Client' do
|
|
366
366
|
end
|
367
367
|
|
368
368
|
describe '#search_meds'
|
369
|
-
|
370
|
-
describe '#search_patients' do
|
371
|
-
it { expect { subject.search_patients }.to raise_error(NotImplementedError) }
|
372
|
-
end
|
369
|
+
describe '#search_patients'
|
373
370
|
|
374
371
|
describe '#search_patients_rxhub5' do
|
375
372
|
it { expect { subject.search_patients_rxhub5 }.to raise_error(NotImplementedError) }
|
376
373
|
end
|
377
374
|
|
378
|
-
describe '#search_pharmacies'
|
379
|
-
it { expect { subject.search_pharmacies }.to raise_error(NotImplementedError) }
|
380
|
-
end
|
375
|
+
describe '#search_pharmacies'
|
381
376
|
|
382
377
|
describe '#search_problem_codes' do
|
383
378
|
it { expect { subject.search_problem_codes }.to raise_error(NotImplementedError) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allscripts_unity_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-11-
|
13
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: savon
|
@@ -76,22 +76,6 @@ dependencies:
|
|
76
76
|
- - ~>
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: 0.3.29
|
79
|
-
- !ruby/object:Gem::Dependency
|
80
|
-
name: tzinfo-data
|
81
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
|
-
requirements:
|
84
|
-
- - ~>
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: 1.2013.7
|
87
|
-
type: :runtime
|
88
|
-
prerelease: false
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - ~>
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 1.2013.7
|
95
79
|
- !ruby/object:Gem::Dependency
|
96
80
|
name: nokogiri
|
97
81
|
requirement: !ruby/object:Gem::Requirement
|