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 +4 -4
- data/.travis.yml +5 -1
- data/README.md +1 -0
- data/lib/allscripts_unity_client/client.rb +13 -5
- data/lib/allscripts_unity_client/version.rb +1 -1
- data/spec/client_spec.rb +1 -3
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d522475a4f4d31f2c9c8ed94e9ef66812d3b733
|
4
|
+
data.tar.gz: 93defb7b4fdb3b2721daa0ca6ebe0d76dc238e8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d113d323bb05f75eed175fd596f5fc186f9fdc195b46be183271a4927e97bbd80184a04ddf321383e483d726ab796063e80d68d41b1e76edccacf36a443f991
|
7
|
+
data.tar.gz: fdb94e2675be2b9ec0d5708b6c3adbed9937b26b936a08f144544e483953a61c73a722d8767d6b13cb756178bca71e1a6713b9799802956db2e26845ebe18a17
|
data/.travis.yml
CHANGED
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
|
-
|
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? &&
|
694
|
-
raise ArugmentError, '
|
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
|
|
data/spec/client_spec.rb
CHANGED
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.
|
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:
|
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.
|
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:
|