allscripts_unity_client 5.1.4.pre.1 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cd419db9464103231d2e1b7044c34840f542135bb2d4518faa9d41fc88daff7
|
4
|
+
data.tar.gz: 9526031d5892f9027b4187c43af8a6f1e729778c8f92e3e4eff76c80dbb37595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,7 +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
|
-
# - :
|
23
|
+
# - :use_ubiquity - Specifies whether the base_unity_url is a ubiquity endpoint
|
24
24
|
def initialize(options = {})
|
25
25
|
@username = options[:username]
|
26
26
|
@password = options[:password]
|
@@ -63,11 +63,11 @@ module AllscriptsUnityClient
|
|
63
63
|
@base_unity_url = base_unity_url.gsub(/\/$/, '')
|
64
64
|
end
|
65
65
|
|
66
|
-
# Mutator for @
|
66
|
+
# Mutator for @use_ubiquity.
|
67
67
|
#
|
68
68
|
# defaults value to false if nil
|
69
|
-
def
|
70
|
-
@
|
69
|
+
def use_ubiquity=(use_ubiquity)
|
70
|
+
@use_ubiquity = use_ubiquity || false
|
71
71
|
end
|
72
72
|
|
73
73
|
# Mutator for username.
|
@@ -41,7 +41,7 @@ module AllscriptsUnityClient
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def build_uri(request_location)
|
44
|
-
endpoint = @options.
|
44
|
+
endpoint = @options.use_ubiquity ? UBIQUITY_JSON_ENDPOINT : UNITY_JSON_ENDPOINT
|
45
45
|
"#{@options.base_unity_url}#{[endpoint, request_location].join('/')}"
|
46
46
|
end
|
47
47
|
|
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.4.pre.
|
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-
|
11
|
+
date: 2024-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|