allscripts_unity_client 3.1.3 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9eb595bfeb7e803d824615172bd5ac8f4c82f2a
4
- data.tar.gz: 3da333723cd25ad2faf17f179645fb03f49c280a
3
+ metadata.gz: 3d522475a4f4d31f2c9c8ed94e9ef66812d3b733
4
+ data.tar.gz: 93defb7b4fdb3b2721daa0ca6ebe0d76dc238e8f
5
5
  SHA512:
6
- metadata.gz: 9827c3fca7729455312d688bcb65bde7dcdf165e37299468faaf28e7819788290a72bc46f09678201d3355063c32003101ed157c19e1024a8d44c319657b5596
7
- data.tar.gz: aef135aee196aca6f2206c931abe36e046c08d270fc5a902a8c03add0a086b8013b3b64e40800e30c6b370d08c837f1429348b056423bcae8dc59bb9c8035d22
6
+ metadata.gz: 2d113d323bb05f75eed175fd596f5fc186f9fdc195b46be183271a4927e97bbd80184a04ddf321383e483d726ab796063e80d68d41b1e76edccacf36a443f991
7
+ data.tar.gz: fdb94e2675be2b9ec0d5708b6c3adbed9937b26b936a08f144544e483953a61c73a722d8767d6b13cb756178bca71e1a6713b9799802956db2e26845ebe18a17
data/.travis.yml CHANGED
@@ -2,4 +2,8 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
- - 2.1.2
5
+ - 2.1.2
6
+
7
+ install:
8
+ - "gem install bundler"
9
+ - "bundle install --jobs=3 --retry=3"
data/README.md CHANGED
@@ -152,6 +152,7 @@ about which API calls are supported
152
152
 
153
153
  A number of helper methods exist that abstract away the details of the Magic operation:
154
154
 
155
+ - `get_account`
155
156
  - `get_changed_patients(since = nil)`
156
157
  - `get_chart_item_details(userid, patientid, section)`
157
158
  - `get_clinical_summary(userid, patientid)`
@@ -110,7 +110,10 @@ module AllscriptsUnityClient
110
110
  end
111
111
 
112
112
  def get_account
113
- raise NotImplementedError, 'GetAccount magic action not implemented'
113
+ magic_parameters = {
114
+ action: 'GetAccount'
115
+ }
116
+ magic(magic_parameters)
114
117
  end
115
118
 
116
119
  def get_changed_patients(since = nil)
@@ -222,7 +225,7 @@ module AllscriptsUnityClient
222
225
  # @param [Object] show_past_flag whether to show previous
223
226
  # encounters. All truthy values aside from the string `"N"` are
224
227
  # considered to be true (or `"Y"`) all other values are
225
- # considered to be false (or `"N"`). Defaults to `true`.
228
+ # considered to be false (or `"N"`). Defaults to `true`.
226
229
  # @param [Object] billing_provider_user_name filter by user
227
230
  # name. Defaults to `nil`.
228
231
  # @param [Object] show_all
@@ -689,9 +692,9 @@ module AllscriptsUnityClient
689
692
  magic(magic_parameters)
690
693
  end
691
694
 
692
- def save_task_status(userid, transaction_id = nil, status = nil, delegate_id = nil, comment = nil, taskchanges = nil)
693
- if transaction_id.nil? && param.nil? && delegate_id.nil? && comment.nil?
694
- raise ArugmentError, 'task_type, target_user, work_object_id, and comments can not all be nil'
695
+ def save_task_status(userid, transaction_id = nil, status = nil, delegate_id = nil, comment = nil, taskchanges = nil, patient_id = nil)
696
+ if transaction_id.nil? && delegate_id.nil? && comment.nil?
697
+ raise ArugmentError, 'transaction_id, delegate_id, and comment can not all be nil'
695
698
  end
696
699
 
697
700
  # Generate XML structure for rxxml
@@ -717,6 +720,11 @@ module AllscriptsUnityClient
717
720
  parameter4: comment,
718
721
  parameter6: nokogiri_to_string(builder)
719
722
  }
723
+
724
+ if patient_id
725
+ magic_parameters.update(patientid: patient_id)
726
+ end
727
+
720
728
  magic(magic_parameters)
721
729
  end
722
730
 
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '3.1.3'
2
+ VERSION = '3.2.0'
3
3
  end
data/spec/client_spec.rb CHANGED
@@ -55,9 +55,7 @@ describe AllscriptsUnityClient::Client do
55
55
 
56
56
  describe '#echo'
57
57
 
58
- describe '#get_account' do
59
- it { expect { subject.get_account }.to raise_error(NotImplementedError) }
60
- end
58
+ describe '#get_account'
61
59
 
62
60
  describe '#get_changed_patients'
63
61
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allscripts_unity_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucian Cesca
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -282,9 +282,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  version: '0'
283
283
  requirements: []
284
284
  rubyforge_project:
285
- rubygems_version: 2.4.3
285
+ rubygems_version: 2.4.6
286
286
  signing_key:
287
287
  specification_version: 4
288
288
  summary: Allscripts Unity API client
289
289
  test_files: []
290
- has_rdoc: