Sha256: d760348f495b1f62681312c71dcffae1eb6b6afb2a6e462c7d6c54bd2ac811fc

Contents?: true

Size: 615 Bytes

Versions: 97

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/pathology"
require_dependency "renalware/feeds"
require "subscription_registry"

module Renalware
  module Patients
    module_function

    def table_name_prefix
      "patient_"
    end

    def configure
      # Note that we no longer create all patients that coe in from the HL7 feed, so
      # MessageListener has been removed from the registry.
      # SubscriptionRegistry.instance.register(Feeds::MessageProcessor, MessageListener)
    end

    def self.cast_user(user)
      ActiveType.cast(user, ::Renalware::Patients::User)
    end
  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
renalware-core-2.0.113 app/models/renalware/patients.rb
renalware-core-2.0.112 app/models/renalware/patients.rb
renalware-core-2.0.111 app/models/renalware/patients.rb
renalware-core-2.0.110 app/models/renalware/patients.rb
renalware-core-2.0.109 app/models/renalware/patients.rb
renalware-core-2.0.108 app/models/renalware/patients.rb
renalware-core-2.0.106 app/models/renalware/patients.rb
renalware-core-2.0.105 app/models/renalware/patients.rb
renalware-core-2.0.104 app/models/renalware/patients.rb
renalware-core-2.0.103 app/models/renalware/patients.rb
renalware-core-2.0.102 app/models/renalware/patients.rb
renalware-core-2.0.101 app/models/renalware/patients.rb
renalware-core-2.0.100 app/models/renalware/patients.rb
renalware-core-2.0.99 app/models/renalware/patients.rb
renalware-core-2.0.98 app/models/renalware/patients.rb
renalware-core-2.0.97 app/models/renalware/patients.rb
renalware-core-2.0.96 app/models/renalware/patients.rb
renalware-core-2.0.95 app/models/renalware/patients.rb
renalware-core-2.0.94 app/models/renalware/patients.rb
renalware-core-2.0.93 app/models/renalware/patients.rb