allscripts_unity_client 5.1.3 → 5.1.4.pre.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7073d2701219bf8cbcab2372761f29cdab885ba6e0d65d460d07e79284ab3781
4
- data.tar.gz: ace9a76f26fa6cdff0294c290b1fdd423a4dd20cbe84f4f8d11b461fe130231c
3
+ metadata.gz: 5ba12a7ebe3adb5d2e8cd917d4738368511f73bdaa758e15f1e72bf0023e103b
4
+ data.tar.gz: 1c64e17837b5dcf21bac3a28505035e73eb9563b8541013d0569a18ea2eaccfa
5
5
  SHA512:
6
- metadata.gz: 8e7c983c0e64b9b06d524786929abdc8119e6e3d0ed456fed4f1dd0a8d3a811f12c4cec6faeda30adb51c886fc461052e467f67caa369d8da0c2da7f6cfc097c
7
- data.tar.gz: db293a0b4528518ec746da24587ef2b744b2e652f877171b8288c42f4a25cbb1fec1e9f23f5f4eaa38f745e9a36ffc0bfed1e2492ab6ced73fadcf4222b12e95
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
@@ -1,3 +1,3 @@
1
1
  module AllscriptsUnityClient
2
- VERSION = '5.1.3'.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.3
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: 2024-01-16 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: