Sha256: 18daec06df0699aef4e6fd925623f126af9b966ecc17c895456fd4f756780c32

Contents?: true

Size: 599 Bytes

Versions: 10

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

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

module Renalware
  module Pathology
    module_function

    def table_name_prefix
      "pathology_"
    end

    def cast_patient(patient)
      ActiveType.cast(patient, ::Renalware::Pathology::Patient)
    end

    def configure
      SubscriptionRegistry.instance.register(Feeds::MessageProcessor, MessageListener)
    end

    class MissingRequestDescriptionError < StandardError; end

    class MissingObservationDescriptionError < StandardError; end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/pathology.rb
renalware-core-2.1.0 app/models/renalware/pathology.rb
renalware-core-2.0.167 app/models/renalware/pathology.rb
renalware-core-2.0.166 app/models/renalware/pathology.rb
renalware-core-2.0.165 app/models/renalware/pathology.rb
renalware-core-2.0.164 app/models/renalware/pathology.rb
renalware-core-2.0.163 app/models/renalware/pathology.rb
renalware-core-2.0.162 app/models/renalware/pathology.rb
renalware-core-2.0.161 app/models/renalware/pathology.rb
renalware-core-2.0.160 app/models/renalware/pathology.rb