```ruby
module Renalware
  module Letters
    def self.table_name_prefix
      "letter_"
    end
  end
end```

Use module_function to cast the module patient
user
```ruby
module Renalware
  module Letters
    module_function

    def self.table_name_prefix
      "letter_"
    end

    def cast_patient(patient)
      ActiveType.cast(patient, ::Renalware::Letters::Patient)
    end
  end
end```
assistant