allscripts_unity_client 5.1.4.pre.1 → 5.1.4
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:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: a993add7d05fe2cffd3826d074b8f81a01e5a31e5c1614f953a9d9e1d543bb6e
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 90f10242dcf1aff22295dad3c2ef65a3b183e078abb30d2a729a6022ed51d220
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5eb80f009dbbb38a4f4a037a3f7f15abe6116fe1612aa532ad1103f91ceb4e083ec6e7016d35ef5df04f85fb3ccff0345345eaf3a1c7e7ea16cf4dadefb798cb
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: f1d76441b1418cc92239a4e5b49e961b78c2cc2283e32ee7f1a6d049d3586a423dfa1d503be3f4819068fa5f0e270a50c478ab140ee6f3263b56475681dde482
         
     | 
| 
         @@ -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]
         
     | 
| 
         @@ -32,6 +32,7 @@ module AllscriptsUnityClient 
     | 
|
| 
       32 
32 
     | 
    
         
             
                  @timeout = options[:timeout]
         
     | 
| 
       33 
33 
     | 
    
         
             
                  @ehr_userid = options[:ehr_userid]
         
     | 
| 
       34 
34 
     | 
    
         
             
                  @ehr_password = options[:ehr_password]
         
     | 
| 
      
 35 
     | 
    
         
            +
                  @use_ubiquity = options[:use_ubiquity] || false
         
     | 
| 
       35 
36 
     | 
    
         | 
| 
       36 
37 
     | 
    
         
             
                  self.timezone = options[:timezone]
         
     | 
| 
       37 
38 
     | 
    
         
             
                  self.base_unity_url = options[:base_unity_url]
         
     | 
| 
         @@ -63,11 +64,11 @@ module AllscriptsUnityClient 
     | 
|
| 
       63 
64 
     | 
    
         
             
                  @base_unity_url = base_unity_url.gsub(/\/$/, '')
         
     | 
| 
       64 
65 
     | 
    
         
             
                end
         
     | 
| 
       65 
66 
     | 
    
         | 
| 
       66 
     | 
    
         
            -
                # Mutator for @ 
     | 
| 
      
 67 
     | 
    
         
            +
                # Mutator for @use_ubiquity.
         
     | 
| 
       67 
68 
     | 
    
         
             
                #
         
     | 
| 
       68 
69 
     | 
    
         
             
                # defaults value to false if nil
         
     | 
| 
       69 
     | 
    
         
            -
                def  
     | 
| 
       70 
     | 
    
         
            -
                  @ 
     | 
| 
      
 70 
     | 
    
         
            +
                def use_ubiquity=(use_ubiquity)
         
     | 
| 
      
 71 
     | 
    
         
            +
                  @use_ubiquity = use_ubiquity || false
         
     | 
| 
       71 
72 
     | 
    
         
             
                end
         
     | 
| 
       72 
73 
     | 
    
         | 
| 
       73 
74 
     | 
    
         
             
                # 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 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 5.1.4
         
     | 
| 
       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
         
     | 
| 
         @@ -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:  
     | 
| 
      
 265 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       266 
266 
     | 
    
         
             
            requirements: []
         
     | 
| 
       267 
267 
     | 
    
         
             
            rubygems_version: 3.0.3
         
     | 
| 
       268 
268 
     | 
    
         
             
            signing_key: 
         
     |