allscripts_unity_client 5.1.3 → 5.1.4.pre.2

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
  SHA256:
3
- metadata.gz: 7073d2701219bf8cbcab2372761f29cdab885ba6e0d65d460d07e79284ab3781
4
- data.tar.gz: ace9a76f26fa6cdff0294c290b1fdd423a4dd20cbe84f4f8d11b461fe130231c
3
+ metadata.gz: 1cd419db9464103231d2e1b7044c34840f542135bb2d4518faa9d41fc88daff7
4
+ data.tar.gz: 9526031d5892f9027b4187c43af8a6f1e729778c8f92e3e4eff76c80dbb37595
5
5
  SHA512:
6
- metadata.gz: 8e7c983c0e64b9b06d524786929abdc8119e6e3d0ed456fed4f1dd0a8d3a811f12c4cec6faeda30adb51c886fc461052e467f67caa369d8da0c2da7f6cfc097c
7
- data.tar.gz: db293a0b4528518ec746da24587ef2b744b2e652f877171b8288c42f4a25cbb1fec1e9f23f5f4eaa38f745e9a36ffc0bfed1e2492ab6ced73fadcf4222b12e95
6
+ metadata.gz: fe8d74bc4de10e786383520be7087e5f0b54f11ebf15c215122dc6fd7050edfc60ec19ad746523c6602c4cc3e6aa18f40f14d24f907a52fd89bce849ce6872df
7
+ data.tar.gz: ee1b9965206af242b19f121b32deda6d5f0773cfed21be2f510169afc2626b29b69f3a60e4b18d2f4e2f350b70e8fb29f716255815f97088f39f51da4970976a
@@ -3,7 +3,7 @@ module AllscriptsUnityClient
3
3
  # Contains various options for Unity configuration.
4
4
  class ClientOptions
5
5
  attr_accessor :proxy, :logger, :ca_file, :ca_path, :timeout, :ehr_userid, :ehr_password
6
- attr_reader :base_unity_url, :username, :password, :appname, :timezone, :raw_dates
6
+ attr_reader :base_unity_url, :username, :password, :appname, :timezone, :raw_dates, :use_ubiquity
7
7
 
8
8
  # Constructor.
9
9
  #
@@ -20,6 +20,7 @@ module AllscriptsUnityClient
20
20
  # - :base_unity_url - The URL where a Unity server is located (i.e. https://unity.server.com) __(required)__
21
21
  # - :ehr_userid - Allscripts EHR Username for user authentication __(required)__.
22
22
  # - :ehr_password - EHR Password for user authentication __(required)__.
23
+ # - :use_ubiquity - Specifies whether the base_unity_url is a ubiquity endpoint
23
24
  def initialize(options = {})
24
25
  @username = options[:username]
25
26
  @password = options[:password]
@@ -62,6 +63,13 @@ module AllscriptsUnityClient
62
63
  @base_unity_url = base_unity_url.gsub(/\/$/, '')
63
64
  end
64
65
 
66
+ # Mutator for @use_ubiquity.
67
+ #
68
+ # defaults value to false if nil
69
+ def use_ubiquity=(use_ubiquity)
70
+ @use_ubiquity = use_ubiquity || false
71
+ end
72
+
65
73
  # Mutator for username.
66
74
  #
67
75
  # Ensures username is not nil,
@@ -8,6 +8,7 @@ module AllscriptsUnityClient
8
8
  attr_accessor :json_base_url, :connection, :security_token
9
9
 
10
10
  UNITY_JSON_ENDPOINT = '/Unity/UnityService.svc/json'
11
+ UBIQUITY_JSON_ENDPOINT = '/UnityService.svc/json'
11
12
  TOKEN_REGEX = /^"?(\w|-)+"?$/
12
13
 
13
14
  def initialize(options)
@@ -40,7 +41,8 @@ module AllscriptsUnityClient
40
41
  end
41
42
 
42
43
  def build_uri(request_location)
43
- "#{@options.base_unity_url}#{[UNITY_JSON_ENDPOINT, request_location].join('/')}"
44
+ endpoint = @options.use_ubiquity ? UBIQUITY_JSON_ENDPOINT : UNITY_JSON_ENDPOINT
45
+ "#{@options.base_unity_url}#{[endpoint, request_location].join('/')}"
44
46
  end
45
47
 
46
48
  def client_type
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '5.1.3'.freeze
2
+ VERSION = '5.1.4.pre.2'.freeze
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: 5.1.3
4
+ version: 5.1.4.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - healthfinch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
11
+ date: 2024-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -227,7 +227,7 @@ dependencies:
227
227
  - !ruby/object:Gem::Version
228
228
  version: 0.11.3
229
229
  description: Provides a simple interface to the Allscripts Unity API using JSON. Developed
230
- at healthfinch http://healthfinch.com
230
+ at healthfinch by Health Catalyst https://healthcatalyst.com
231
231
  email:
232
232
  - engineering@healthfinch.com
233
233
  executables: []
@@ -260,9 +260,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
260
260
  version: 2.4.2
261
261
  required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  requirements:
263
- - - ">="
263
+ - - ">"
264
264
  - !ruby/object:Gem::Version
265
- version: '0'
265
+ version: 1.3.1
266
266
  requirements: []
267
267
  rubygems_version: 3.0.3
268
268
  signing_key: