allscripts_unity_client 3.2.0 → 3.2.1
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/allscripts_unity_client.gemspec +2 -2
- data/lib/allscripts_unity_client/client.rb +4 -1
- data/lib/allscripts_unity_client/version.rb +1 -1
- data/spec/client_spec.rb +18 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b4d1d0ec579e0cc563c6da328ba213ec4c248ac
|
4
|
+
data.tar.gz: 9803794fa5de5d1790618c35dbd56782274b6550
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = ['
|
19
|
-
gem.email = %w(
|
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
|
-
|
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)
|
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.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- healthfinch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
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
|
-
-
|
198
|
+
- darkarts@healthfinch.com
|
199
199
|
executables: []
|
200
200
|
extensions: []
|
201
201
|
extra_rdoc_files: []
|