updox 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/lib/updox/models/patient.rb +21 -0
- data/lib/updox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a04274fe6b193425214ff4ce3e9902c60bdfa79027cbd9f72bb74e196a116b5
|
4
|
+
data.tar.gz: d04ba0886f6e0d5fb2bee7440d6ba607a523af611ce499d0db9f9430c77cb19b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bee31024d1d3d54e35cb4312350381bda97d0929b80c822583406c19125e7eb451c5eede1452c9ffb70254285797e01fe9c6698998d94b8f38ea9b134d91153c
|
7
|
+
data.tar.gz: 0e072daa8c4a7567d6caaa77e595d017aa307c4fb954d933449a54fb0ba56b80d90b3cfa58184b4b4de63492af0f26e2a2cda8246c1ae1a68a640f386c42f58b
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [1.0.
|
7
|
+
## [1.0.1] - [2020-03-27]
|
8
|
+
### Added
|
9
|
+
- Patient#reminderMethodId to set reminder preferences
|
10
|
+
|
11
|
+
## [1.0.0] - [2020-02-25]
|
8
12
|
### Added
|
9
13
|
- Aliases canceled to cancelled
|
10
14
|
- Patient#exists?
|
@@ -98,7 +102,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
98
102
|
### Added
|
99
103
|
- Initial Release with ability to ping Updox api
|
100
104
|
|
101
|
-
[1.0.
|
105
|
+
[1.0.1]: https://github.com/WeInfuse/updox/compare/v1.0.0...v1.0.1
|
106
|
+
[1.0.0]: https://github.com/WeInfuse/updox/compare/v0.12.0...v1.0.0
|
102
107
|
[0.12.0]: https://github.com/WeInfuse/updox/compare/v0.11.0...v0.12.0
|
103
108
|
[0.11.0]: https://github.com/WeInfuse/updox/compare/v0.10.0...v0.11.0
|
104
109
|
[0.10.0]: https://github.com/WeInfuse/updox/compare/v0.9.0...v0.10.0
|
data/lib/updox/models/patient.rb
CHANGED
@@ -6,6 +6,15 @@ module Updox
|
|
6
6
|
SYNC_ENDPOINT = '/PatientsSync'.freeze
|
7
7
|
SYNC_LIST_TYPE = 'patients'.freeze
|
8
8
|
|
9
|
+
REMINDER_PREFERENCES = {
|
10
|
+
practice: 0,
|
11
|
+
email: 1,
|
12
|
+
home_phone: 2,
|
13
|
+
mobile_phone: 3,
|
14
|
+
mobile_text: 4,
|
15
|
+
off: 5
|
16
|
+
}
|
17
|
+
|
9
18
|
property :id
|
10
19
|
property :internalId, required: true, from: :internal_id
|
11
20
|
property :firstName, from: :first_name
|
@@ -17,6 +26,7 @@ module Updox
|
|
17
26
|
property :workPhone, from: :work_phone
|
18
27
|
property :mobileNumber, from: :mobile_number
|
19
28
|
property :mobileNumber, from: :mobile_phone
|
29
|
+
property :reminderMethodId, from: :reminder_method_id
|
20
30
|
property :active, default: true
|
21
31
|
|
22
32
|
alias_method :email, :emailAddress
|
@@ -29,6 +39,17 @@ module Updox
|
|
29
39
|
alias_method :work_phone, :workPhone
|
30
40
|
alias_method :mobile_number, :mobileNumber
|
31
41
|
alias_method :mobile_phone, :mobileNumber
|
42
|
+
alias_method :reminder_preference, :reminderMethodId
|
43
|
+
|
44
|
+
def reminder_preference=(value)
|
45
|
+
if Updox::Models::Patient::REMINDER_PREFERENCES.include?(value)
|
46
|
+
self[:reminderMethodId] = Updox::Models::Patient::REMINDER_PREFERENCES[value]
|
47
|
+
else
|
48
|
+
self[:reminderMethodId] = value
|
49
|
+
end
|
50
|
+
|
51
|
+
self
|
52
|
+
end
|
32
53
|
|
33
54
|
def save(account_id: )
|
34
55
|
self.class.sync([self], account_id: account_id)
|
data/lib/updox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: updox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Crockett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|