dock_health_api 0.5.9 → 0.5.11

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: 3d1832a40bbc54875371a1f819afe18ea48072ba29254aac0fbf4d535cbbf25d
4
- data.tar.gz: faa6758f0cd9b27186921934898640fa7833360d47106a4b2d740d94aef26106
3
+ metadata.gz: ac355746c2d674991a044253ee10526e0b7469ffeb4c25b520504d9fd9b65801
4
+ data.tar.gz: aaf3551aa450f68fcc12e40f8a905ae94bc805bec72297eacf07e95f3291d59d
5
5
  SHA512:
6
- metadata.gz: 49846f61f1b202289521fbacc162e63f976378692f7152c496c37ddff66b87cf9b1bdc2e26f32b251d7db619f84b2dfddbbfa3a9c4042846577f9c95fea78e20
7
- data.tar.gz: 7e79857806c080d7f5bf156a1438befead22c8ee3f07984ca0f73357bdb94ec36071815c251039c3543b101da27cfa3a4b8142fdbd607acce0580adf4de92b4a
6
+ metadata.gz: ce9142fd06a7ddef4a024175a49f7e37b17cf22151c2d462aac2262cf215e4d85f49934e43e72d3f0e113616f628ccf55845a2290a2c66358c1956e91ff9f825
7
+ data.tar.gz: 6a4fad9a3928ec6b53f12011c5c7d701cca77038da64683234ff51233314090b7703073cc74a9403e73e2026588c12cee65dd409ea81cbeba5849c2567f5006c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dock_health_api (0.5.9)
4
+ dock_health_api (0.5.11)
5
5
  oauth2 (~> 1.4)
6
6
  ostruct
7
7
  rspec (~> 3.0)
data/README.md CHANGED
@@ -75,8 +75,6 @@ params = { description: "task description", id: "<task ID>" }
75
75
  DockHealthApi::Task.update(params)
76
76
  # Delete task
77
77
  DockHealthApi::Task.delete(id: "<task ID>")
78
- # List All Organizations
79
- DockHealthApi::Organization.list
80
78
 
81
79
  # Create tasklist with tasklist name
82
80
  DockHealthApi::TaskList.create(listName: "tasklist name")
@@ -113,6 +111,8 @@ DockHealthApi::Webhook.put(params)
113
111
  # Delete webhook
114
112
  DockHealthApi::Webhook.delete(id: "<webhook id>")
115
113
 
114
+ # List All Organizations
115
+ DockHealthApi::Organization.list
116
116
  # Get Specific Organization
117
117
  DockHealthApi::Organization.get('id of organization')
118
118
  # Create Organization
@@ -139,6 +139,11 @@ params = { comment: "comment text here", id: "<comment id>" }
139
139
  DockHealthApi::Task::Comment.update(params)
140
140
  # Delete a specific comment
141
141
  DockHealthApi::Task::Comment.delete(id: "<comment id>")
142
+
143
+ # List all CustomStatus
144
+ DockHealthApi::CustomStatus.list
145
+ # Search CustomStatus by attribute
146
+ DockHealthApi::CustomStatus.list(name: "<status name>")
142
147
  ```
143
148
 
144
149
  # Patient Data Format
Binary file
@@ -1,7 +1,7 @@
1
1
  module DockHealthApi
2
2
  module Crud
3
3
  module Create
4
- def create(**params)
4
+ def create(params={})
5
5
  execute_request(:post, resource_url, headers: headers, body_params: params)
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module DockHealthApi
2
2
  module Crud
3
3
  module Delete
4
- def delete(**params)
4
+ def delete(params={})
5
5
  id = params.delete(:id)
6
6
  execute_request(:delete, "#{resource_url}/#{id}", headers: headers, body_params: params)
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module DockHealthApi
2
2
  module Crud
3
3
  module List
4
- def list(**params)
4
+ def list(params={})
5
5
  response = execute_request(:get, "#{resource_url}", headers: headers)
6
6
  return response if client.config.debug || params.empty?
7
7
  search_result = response
@@ -1,7 +1,7 @@
1
1
  module DockHealthApi
2
2
  module Crud
3
3
  module Put
4
- def put(**params)
4
+ def put(params={})
5
5
  id = params.delete(:id)
6
6
  response = execute_request(:put, "#{resource_url}/#{id}", headers: headers, body_params: params)
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module DockHealthApi
2
2
  module Crud
3
3
  module Update
4
- def update(**params)
4
+ def update(params={})
5
5
  if params.key?(:organizationId) && params.key?(:userId)
6
6
  resource_url_fixed = "#{Organization.resource_url}/#{params[:organizationId]}/user"
7
7
  params[:id] = params[:userId]
@@ -1,3 +1,3 @@
1
1
  module DockHealthApi
2
- VERSION = "0.5.9"
2
+ VERSION = "0.5.11"
3
3
  end
@@ -49,7 +49,7 @@ module DockHealthApi
49
49
  def_delegators :@config, :iframe_base_url, :iframe_base_url=
50
50
 
51
51
  def receive_iframe_token
52
- @receive_iframe_token ||= Client.instance.iframe_token_connection
52
+ Client.instance.iframe_token_connection
53
53
  end
54
54
 
55
55
  def iframe_token
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dock_health_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Magomero
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-02-06 00:00:00.000000000 Z
12
+ date: 2023-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
@@ -96,6 +96,7 @@ files:
96
96
  - Rakefile
97
97
  - bin/console
98
98
  - bin/setup
99
+ - dock_health_api-0.5.10.oldgem
99
100
  - dock_health_api.gemspec
100
101
  - lib/dock_health_api.rb
101
102
  - lib/dock_health_api/client.rb