allscripts_unity_client 3.1.2 → 3.1.3
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/lib/allscripts_unity_client/client.rb +31 -3
- data/lib/allscripts_unity_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9eb595bfeb7e803d824615172bd5ac8f4c82f2a
|
4
|
+
data.tar.gz: 3da333723cd25ad2faf17f179645fb03f49c280a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9827c3fca7729455312d688bcb65bde7dcdf165e37299468faaf28e7819788290a72bc46f09678201d3355063c32003101ed157c19e1024a8d44c319657b5596
|
7
|
+
data.tar.gz: aef135aee196aca6f2206c931abe36e046c08d270fc5a902a8c03add0a086b8013b3b64e40800e30c6b370d08c837f1429348b056423bcae8dc59bb9c8035d22
|
@@ -211,7 +211,31 @@ module AllscriptsUnityClient
|
|
211
211
|
raise NotImplementedError, 'GetEncounterDate magic action not implemented'
|
212
212
|
end
|
213
213
|
|
214
|
-
|
214
|
+
# GetEncounterList helper method.
|
215
|
+
# @param [Object] userid
|
216
|
+
# @param [Object] patientid
|
217
|
+
# @param [String, nil] encounter_type encounter type to filter
|
218
|
+
# on. A value of `nil` filters nothing. Defaults to `nil`.
|
219
|
+
# @param [Object] when_param
|
220
|
+
# @param [Fixnum, nil] nostradamus how many days to look into the
|
221
|
+
# future. Defaults to `0`.
|
222
|
+
# @param [Object] show_past_flag whether to show previous
|
223
|
+
# encounters. All truthy values aside from the string `"N"` are
|
224
|
+
# considered to be true (or `"Y"`) all other values are
|
225
|
+
# considered to be false (or `"N"`). Defaults to `true`.
|
226
|
+
# @param [Object] billing_provider_user_name filter by user
|
227
|
+
# name. Defaults to `nil`.
|
228
|
+
# @param [Object] show_all
|
229
|
+
# @return [Array<Hash>] the filtered encounter list.
|
230
|
+
def get_encounter_list(
|
231
|
+
userid,
|
232
|
+
patientid,
|
233
|
+
encounter_type = nil,
|
234
|
+
when_param = nil,
|
235
|
+
nostradamus = 0,
|
236
|
+
show_past_flag = true,
|
237
|
+
billing_provider_user_name = nil,
|
238
|
+
show_all = false)
|
215
239
|
magic_parameters = {
|
216
240
|
action: 'GetEncounterList',
|
217
241
|
userid: userid,
|
@@ -219,10 +243,13 @@ module AllscriptsUnityClient
|
|
219
243
|
parameter1: encounter_type,
|
220
244
|
parameter2: when_param,
|
221
245
|
parameter3: nostradamus,
|
222
|
-
parameter4: show_past_flag,
|
246
|
+
parameter4: show_past_flag && show_past_flag != 'N' ? 'Y' : 'N',
|
223
247
|
parameter5: billing_provider_user_name,
|
248
|
+
# According to the developer guide this parameter is no longer
|
249
|
+
# used.
|
224
250
|
parameter6: show_all ? 'all' : nil
|
225
251
|
}
|
252
|
+
|
226
253
|
response = magic(magic_parameters)
|
227
254
|
|
228
255
|
unless response.is_a?(Array)
|
@@ -677,6 +704,7 @@ module AllscriptsUnityClient
|
|
677
704
|
xml.delegated('value' => taskchanges[:delegated]) unless taskchanges.nil? || taskchanges[:delegated].nil?
|
678
705
|
xml.taskstatus('value' => taskchanges[:taskstatus]) unless taskchanges.nil? || taskchanges[:taskstatus].nil?
|
679
706
|
xml.removereason('value' => taskchanges[:removereason]) unless taskchanges.nil? || taskchanges[:removereason].nil?
|
707
|
+
xml.denyreason('value' => taskchanges[:denyreason]) unless taskchanges.nil? || taskchanges[:denyreason].nil?
|
680
708
|
}
|
681
709
|
end
|
682
710
|
|
@@ -783,4 +811,4 @@ module AllscriptsUnityClient
|
|
783
811
|
builder.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip
|
784
812
|
end
|
785
813
|
end
|
786
|
-
end
|
814
|
+
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.1.
|
4
|
+
version: 3.1.3
|
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
|
+
date: 2015-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -282,7 +282,7 @@ 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.3
|
286
286
|
signing_key:
|
287
287
|
specification_version: 4
|
288
288
|
summary: Allscripts Unity API client
|