luma 0.0.3 → 0.0.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 +4 -4
- data/CHANGELOG.md +25 -0
- data/lib/luma/appointment_type.rb +0 -6
- data/lib/luma/facilities.rb +15 -0
- data/lib/luma/provider.rb +0 -6
- data/lib/luma/version.rb +1 -1
- data/lib/luma.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c4e179f650da2d209031f9ed57933d2dac374805c6664ac89c89300031103ff
|
4
|
+
data.tar.gz: 47bb4a75845df4cf3df393320d5dc8af6c662cfebb368454e17c88f83be45b18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f23b67e267845f151baf2463eadc176ed48fe126184c7722a258ad6ccbb83e2fcc2fa6fa77abc9859fb031c42b9a780b3a7db2a7ec2d5a4c3224d1dbf2febba8
|
7
|
+
data.tar.gz: 35c0833ce16929953ae46fd13bd8e08892f932ccef57e02b954d02d0c350f2c0bc560816b026c57b52a47acb39b7b41858868f99357678fd6d49124fbdbf141b
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,29 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [0.0.4] - 2021-09-7
|
4
|
+
|
5
|
+
### Added
|
6
|
+
|
7
|
+
- Added API Access for creating a facility (POST)
|
8
|
+
|
9
|
+
## [0.0.3] - 2021-08-30
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Models to have better inheritance and DRYer code
|
14
|
+
|
15
|
+
### Added
|
16
|
+
|
17
|
+
- Added API access for creating a provider (POST)
|
18
|
+
|
19
|
+
## [0.0.2] - 2021-08-26
|
20
|
+
|
21
|
+
### Added
|
22
|
+
|
23
|
+
- Added API access for creating and finding appointment types (GET and POST)
|
24
|
+
|
1
25
|
## [0.0.1] - 2021-05-28
|
26
|
+
|
2
27
|
- Initial Create
|
3
28
|
|
4
29
|
[0.1.1]: https://github.com/WeInfuse/luma/compare/0.1.0...0.1.1
|
@@ -2,14 +2,8 @@ module Luma
|
|
2
2
|
class AppointmentType < Connection
|
3
3
|
APPOINTMENT_TYPE_ENDPOINT = '/api/appointmentTypes'.freeze
|
4
4
|
|
5
|
-
include HTTParty
|
6
|
-
|
7
5
|
base_uri 'https://api.lumahealth.io/'.freeze
|
8
6
|
|
9
|
-
headers 'Content-Type' => 'application/json'
|
10
|
-
|
11
|
-
format :json
|
12
|
-
|
13
7
|
def view_appointment_types(endpoint: APPOINTMENT_TYPE_ENDPOINT, auth: true, name: nil, description: nil, debug_output: $stdout)
|
14
8
|
self.add_headers_and_body if auth
|
15
9
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Luma
|
2
|
+
class Facilities < Connection
|
3
|
+
FACILITY_ENDPOINT = '/api/facilities'.freeze
|
4
|
+
|
5
|
+
base_uri 'https://api.lumahealth.io/'.freeze
|
6
|
+
|
7
|
+
def create_facility(endpoint: FACILITY_ENDPOINT, body: nil, headers: {}, auth: true, verb: :post, debug_output: $stdout)
|
8
|
+
@body = body
|
9
|
+
self.add_headers_and_body if auth
|
10
|
+
|
11
|
+
result = self.class.send(verb.to_s, endpoint, body: @body, headers: @headers)
|
12
|
+
{ result: result, headers: @headers }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/luma/provider.rb
CHANGED
@@ -2,14 +2,8 @@ module Luma
|
|
2
2
|
class Provider < Connection
|
3
3
|
PROVIDER_ENDPOINT = '/api/providers'.freeze
|
4
4
|
|
5
|
-
include HTTParty
|
6
|
-
|
7
5
|
base_uri 'https://api.lumahealth.io/'.freeze
|
8
6
|
|
9
|
-
headers 'Content-Type' => 'application/json'
|
10
|
-
|
11
|
-
format :json
|
12
|
-
|
13
7
|
def create_provider(endpoint: PROVIDER_ENDPOINT, name: "", npi: nil, headers: {}, auth: true, verb: :post)
|
14
8
|
@body = {
|
15
9
|
name: name,
|
data/lib/luma/version.rb
CHANGED
data/lib/luma.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Angela Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- lib/luma/appointment_type.rb
|
145
145
|
- lib/luma/authentication.rb
|
146
146
|
- lib/luma/connection.rb
|
147
|
+
- lib/luma/facilities.rb
|
147
148
|
- lib/luma/luma_exception.rb
|
148
149
|
- lib/luma/provider.rb
|
149
150
|
- lib/luma/version.rb
|