dock_health_api 0.5.10 → 0.5.11

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: b2af1c1407e571857886d5e50fcc2316eaa54133fa4337d4de31127686f50d57
4
- data.tar.gz: b3d2f3e11c255f1a36d6b70ae1cca858599e57b6731b0757a79e6b4f45e547f0
3
+ metadata.gz: ac355746c2d674991a044253ee10526e0b7469ffeb4c25b520504d9fd9b65801
4
+ data.tar.gz: aaf3551aa450f68fcc12e40f8a905ae94bc805bec72297eacf07e95f3291d59d
5
5
  SHA512:
6
- metadata.gz: '08bce4c99c414cdffbad1a4abcc3d19fff2d42fae49d5f923a0be3f938bb2c3becc150aae028de15d767974848b12c74e51a18e99e3b923860af0e3e759348ed'
7
- data.tar.gz: 83bdcc745db915f1ba250d8eedf00f463777bd7f755bd2e36c48a2ae96d7496d5f77e466f78245cd8d85c646e0babcd9c030027a03cf7f2dfddf75ece71b78da
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.10)
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.10"
2
+ VERSION = "0.5.11"
3
3
  end
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.10
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-09 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