Sha256: cd2ffaff37a9893097263675a93f00bedb39d8d5bbbf812324fea1321042b370
Contents?: true
Size: 1.09 KB
Versions: 10
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true require_dependency "renalware" module Renalware module PD def self.table_name_prefix "pd_" end def self.cast_patient(patient) return patient if patient.is_a?(::Renalware::PD::Patient) ActiveType.cast(patient, ::Renalware::PD::Patient) end # PD-specific configuration # # You can override default settings here in an initializer in the host app like so: # Renalware::PD.configure do |config| # config.delivery_intervals = [2.days, 1.week, 3.weeks, 1.year] # end # # You can access PD configuration like so # Renalware::PD.config.delivery_intervals # class Configuration include ActiveSupport::Configurable config_accessor(:delivery_intervals) { [1.week, 2.weeks, 3.weeks, 4.weeks] } config_accessor(:training_durations) { (1..15).map(&:days) } end def self.config @config ||= Configuration.new end def self.configure yield config end module APD class NonUniqueOvernightVolumeError < StandardError end end end end
Version data entries
10 entries across 10 versions & 1 rubygems