module Medic::HKConstants

Constants

AUTHORIZATION_STATUSES
BIOLOGICAL_SEXES
BLOOD_TYPES
ERROR_CODES
SLEEP_ANALYSES
UPDATE_FREQUENCIES

Public Instance Methods

authorization_status(auth_status) click to toggle source
# File lib/medic/hk_constants.rb, line 59
def authorization_status(auth_status)
  auth_status.is_a?(Symbol) ? AUTHORIZATION_STATUSES[auth_status] : auth_status
end
biological_sex(sex) click to toggle source
# File lib/medic/hk_constants.rb, line 63
def biological_sex(sex)
  sex.is_a?(Symbol) ? BIOLOGICAL_SEXES[sex] : sex
end
blood_type(blood) click to toggle source
# File lib/medic/hk_constants.rb, line 67
def blood_type(blood)
  blood.is_a?(Symbol) ? BLOOD_TYPES[blood] : blood
end
error_code(error) click to toggle source
# File lib/medic/hk_constants.rb, line 51
def error_code(error)
  error.is_a?(Symbol) ? ERROR_CODES[error] : error
end
sleep_analysis(sleep) click to toggle source
# File lib/medic/hk_constants.rb, line 71
def sleep_analysis(sleep)
  sleep.is_a?(Symbol) ? SLEEP_ANALYSES[sleep] : sleep
end
update_frequency(freq) click to toggle source
# File lib/medic/hk_constants.rb, line 55
def update_frequency(freq)
  freq.is_a?(Symbol) ? UPDATE_FREQUENCIES[freq] : freq
end