allscripts_unity_client 3.2.0 → 3.2.1

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: 3d522475a4f4d31f2c9c8ed94e9ef66812d3b733
4
- data.tar.gz: 93defb7b4fdb3b2721daa0ca6ebe0d76dc238e8f
3
+ metadata.gz: 8b4d1d0ec579e0cc563c6da328ba213ec4c248ac
4
+ data.tar.gz: 9803794fa5de5d1790618c35dbd56782274b6550
5
5
  SHA512:
6
- metadata.gz: 2d113d323bb05f75eed175fd596f5fc186f9fdc195b46be183271a4927e97bbd80184a04ddf321383e483d726ab796063e80d68d41b1e76edccacf36a443f991
7
- data.tar.gz: fdb94e2675be2b9ec0d5708b6c3adbed9937b26b936a08f144544e483953a61c73a722d8767d6b13cb756178bca71e1a6713b9799802956db2e26845ebe18a17
6
+ metadata.gz: e33b37029cfa5e5c31cae06efb481cb0dd8df686aa2005b2a8c348838f3fe0d64e410423da02e79cde619e5ae603d52aa85a624f95823c8a42921aa5928a3c3f
7
+ data.tar.gz: beb19b25e227b2d5608371d4669b766ad5ac66b03d7d08637a95d47b58a1317e3db21a86e1a88936202ea9d3387aeb2222b94214c6590b609cb8c1261691d306
data/README.md CHANGED
@@ -155,7 +155,7 @@ A number of helper methods exist that abstract away the details of the Magic ope
155
155
  - `get_account`
156
156
  - `get_changed_patients(since = nil)`
157
157
  - `get_chart_item_details(userid, patientid, section)`
158
- - `get_clinical_summary(userid, patientid)`
158
+ - `get_clinical_summary(userid, patientid, extra_med_data = false)`
159
159
  - `get_dictionary(dictionary_name, userid = nil, site = nil)`
160
160
  - `get_encounter_list(userid, patientid, encounter_type, when_param = nil, nostradamus = nil, show_past_flag = nil, billing_provider_user_name = nil)`
161
161
  - `get_medication_by_trans_id(userid, patientid, transaction_id)`
@@ -15,8 +15,8 @@ Gem::Specification.new do |gem|
15
15
  gem.summary = 'Allscripts Unity API client'
16
16
  gem.description = 'Provides a simple interface to the Allscripts Unity API using JSON. Developed at healthfinch http://healthfinch.com'
17
17
 
18
- gem.authors = ['Lucian Cesca']
19
- gem.email = %w(lucian@healthfinch.com)
18
+ gem.authors = ['healthfinch']
19
+ gem.email = %w(darkarts@healthfinch.com)
20
20
 
21
21
  gem.require_paths = ['lib']
22
22
 
@@ -501,11 +501,14 @@ module AllscriptsUnityClient
501
501
  magic(magic_parameters)
502
502
  end
503
503
 
504
- def get_task_list(userid = nil, since = nil, delegated = nil)
504
+ # delegated is an undocumented parameter
505
+ def get_task_list(userid = nil, since = nil, delegated = nil, task_types = nil, task_statuses = nil)
505
506
  magic_parameters = {
506
507
  action: 'GetTaskList',
507
508
  userid: userid,
508
509
  parameter1: since,
510
+ parameter2: task_types,
511
+ parameter3: task_statuses,
509
512
  parameter4: delegated
510
513
  }
511
514
  response = magic(magic_parameters)
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '3.2.0'
2
+ VERSION = '3.2.1'
3
3
  end
data/spec/client_spec.rb CHANGED
@@ -49,6 +49,23 @@ describe AllscriptsUnityClient::Client do
49
49
  end
50
50
  end
51
51
 
52
+ describe '#get_task_list' do
53
+ it 'does stuff' do
54
+ subject.client_driver = double(magic: 'magic')
55
+ subject.get_task_list(123, Date.yesterday.strftime("%m/%d/%Y"),
56
+ 'Y', 'Something|okj', 'Ready|go')
57
+ magicified_parameters = {
58
+ action: 'GetTaskList',
59
+ userid: 123,
60
+ parameter1: Date.yesterday.strftime("%m/%d/%Y"),
61
+ parameter2: 'Something|okj',
62
+ parameter3: 'Ready|go',
63
+ parameter4: 'Y'
64
+ }
65
+ expect(subject.client_driver).to have_received(:magic).with(magicified_parameters)
66
+ end
67
+ end
68
+
52
69
  describe '#commit_charges' do
53
70
  it { expect { subject.commit_charges }.to raise_error(NotImplementedError) }
54
71
  end
@@ -391,4 +408,4 @@ describe AllscriptsUnityClient::Client do
391
408
  end
392
409
  end
393
410
  end
394
- end
411
+ end
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.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
- - Lucian Cesca
7
+ - healthfinch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-02 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -195,7 +195,7 @@ dependencies:
195
195
  description: Provides a simple interface to the Allscripts Unity API using JSON. Developed
196
196
  at healthfinch http://healthfinch.com
197
197
  email:
198
- - lucian@healthfinch.com
198
+ - darkarts@healthfinch.com
199
199
  executables: []
200
200
  extensions: []
201
201
  extra_rdoc_files: []