allscripts_unity_client 3.1.2 → 3.1.3

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: 3f1efe85d50c95f9d89fce59ef22a581d73a74b5
4
- data.tar.gz: cb520c70a5266bcf3ad63e7a1e4109c5fdbb3a49
3
+ metadata.gz: c9eb595bfeb7e803d824615172bd5ac8f4c82f2a
4
+ data.tar.gz: 3da333723cd25ad2faf17f179645fb03f49c280a
5
5
  SHA512:
6
- metadata.gz: 8fd93057b918e5a9f4b26fd9a31ad35cd869c238883f761cbf41a5ed943ed8c6a53fc699609d84e66338514cf16f2d7965b9b9a9228e4686ea3df3afd2be5d18
7
- data.tar.gz: eb356537391ee7841a80e74c0b4f2bccc988e896a840da799e850d66b5fa80bfdd176dc168d735a4799e3911b4ad9b10e2975ebe1fef80943a3d32301219830d
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
- def get_encounter_list(userid, patientid, encounter_type, when_param = nil, nostradamus = nil, show_past_flag = nil, billing_provider_user_name = nil, show_all = false)
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
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '3.1.2'
2
+ VERSION = '3.1.3'
3
3
  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.2
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-09-16 00:00:00.000000000 Z
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.5
285
+ rubygems_version: 2.4.3
286
286
  signing_key:
287
287
  specification_version: 4
288
288
  summary: Allscripts Unity API client