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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f62aa99da193e378457e56e3a055b4d52973c4cae2bb4944f2e300e51287064
4
- data.tar.gz: e399c7debeefac7f7608579f056db93cdf3ea24ace47e4173c96adb0d176f87f
3
+ metadata.gz: 2a04274fe6b193425214ff4ce3e9902c60bdfa79027cbd9f72bb74e196a116b5
4
+ data.tar.gz: d04ba0886f6e0d5fb2bee7440d6ba607a523af611ce499d0db9f9430c77cb19b
5
5
  SHA512:
6
- metadata.gz: 3654a26917f7d18de3661921fe72253fbdbc9b7d518f6a9465cde9ee84d5ef65b0ad62e480213618ad676cdf6b74ff6b510bad05e917603c5c2956b69d9c8318
7
- data.tar.gz: 82f90067272574222de2a8009b49c0109696a626aea6800c0b415e842a17026b1efa75c8f65cddc5e7493d4616163cee0e4df9e12f44a60514488c7eadc4a611
6
+ metadata.gz: bee31024d1d3d54e35cb4312350381bda97d0929b80c822583406c19125e7eb451c5eede1452c9ffb70254285797e01fe9c6698998d94b8f38ea9b134d91153c
7
+ data.tar.gz: 0e072daa8c4a7567d6caaa77e595d017aa307c4fb954d933449a54fb0ba56b80d90b3cfa58184b4b4de63492af0f26e2a2cda8246c1ae1a68a640f386c42f58b
@@ -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.0] - [UNRELEASED]
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.0]: https://github.com/WeInfuse/updox/compare/v0.12.0...HEAD
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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Updox
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
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.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-02-26 00:00:00.000000000 Z
11
+ date: 2020-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty