allscripts_unity_client 5.1.2 → 5.1.4.pre.1

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: 6e3c1de17519bfaffd2999f2d1fa8b33b9e65b16212e27a36fad2ffa4106b71f
4
- data.tar.gz: 6c37e7d42bbf802d79f3ffbe9b7f852f05afeba39e249e8966c8061a566285db
3
+ metadata.gz: 5ba12a7ebe3adb5d2e8cd917d4738368511f73bdaa758e15f1e72bf0023e103b
4
+ data.tar.gz: 1c64e17837b5dcf21bac3a28505035e73eb9563b8541013d0569a18ea2eaccfa
5
5
  SHA512:
6
- metadata.gz: 497b561873e117e3245b7a8b9572dd2ddfe834b1b8de839c0e188c0f3f5dc7f58799dde643cd3ac3ac792d138decfb8a6b9833bd256a04c0e52db9f096cdf1ec
7
- data.tar.gz: 6edd6b08f8ee65c95e9595d3a2561f5a6a7c61eb568c28e06c3821964fb75f2b1c61739967f0448fcfb67a610989997bea5c4eaca45a39e148727864d5bcd7be
6
+ metadata.gz: 6e4dc65ce049504d12b2575207ff62dbd186948776e96cb248e8d5a712bfb578a17e1c3090b4807066295c1dd863b0f47c192991e8ded7a33dbc0779d3b1a3aa
7
+ data.tar.gz: 4e203653e9ae7da11c44973593ad39835f15bf32b45acc19455a767e8b84e176f2e2926e0c1f8556fff9fb236deab8acb7e5b883d81a7f79f8eb8323075efb5e
@@ -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, :is_ubiquity_url
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
+ # - :is_ubiquity_url - 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 @is_ubiquity_url.
67
+ #
68
+ # defaults value to false if nil
69
+ def is_ubiquity_url=(is_ubiquity_url)
70
+ @is_ubiquity_url = is_ubiquity_url || 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.is_ubiquity_url ? 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
@@ -48,10 +50,6 @@ module AllscriptsUnityClient
48
50
  end
49
51
 
50
52
  def magic(parameters = {})
51
- unless user_authenticated? || parameters[:action] == 'GetUserAuthentication'
52
- raise UnauthenticatedError, "#{parameters[:action]} for #{@options.base_unity_url}"
53
- end
54
-
55
53
  request = JSONUnityRequest.new(parameters, @options.timezone, @options.appname, @security_token, @options.raw_dates)
56
54
  request_hash = request.to_hash
57
55
  request_data = MultiJson.dump(request_hash)
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '5.1.2'.freeze
2
+ VERSION = '5.1.4.pre.1'.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.2
4
+ version: 5.1.4.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - healthfinch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-15 00:00:00.000000000 Z
11
+ date: 2024-09-19 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: