class Updox::Models::Patient
Constants
- REMINDER_PREFERENCES
- SYNC_ENDPOINT
- SYNC_LIST_TYPE
Public Class Methods
exists?(patient_id, account_id: )
click to toggle source
# File lib/updox/models/patient.rb, line 58 def self.exists?(patient_id, account_id: ) Updox::Models::PatientMessage.exists?(patient_id, account_id: account_id) end
Public Instance Methods
reminder_preference=(value)
click to toggle source
# File lib/updox/models/patient.rb, line 44 def reminder_preference=(value) if Updox::Models::Patient::REMINDER_PREFERENCES.include?(value) self[:reminderMethodId] = Updox::Models::Patient::REMINDER_PREFERENCES[value] else self[:reminderMethodId] = value end self end
save(account_id: )
click to toggle source
# File lib/updox/models/patient.rb, line 54 def save(account_id: ) self.class.sync([self], account_id: account_id) end