Sha256: 27feb77afd3994b87a5e0a856762228e3d6f34bc304b187a03fb7cb9da3f3405

Contents?: true

Size: 513 Bytes

Versions: 8

Compression:

Stored size: 513 Bytes

Contents

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    class MessageListener
      def message_processed(message_payload)
        pathology_params = parse_pathology_params(message_payload)
        create_observations(pathology_params)
      end

      private

      def parse_pathology_params(message_payload)
        MessageParamParser.new.parse(message_payload)
      end

      def create_observations(params)
        CreateObservations.new.call(params)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/models/renalware/pathology/message_listener.rb
renalware-core-2.0.0.pre.beta10 app/models/renalware/pathology/message_listener.rb
renalware-core-2.0.0.pre.beta9 app/models/renalware/pathology/message_listener.rb
renalware-core-2.0.0.pre.beta8 app/models/renalware/pathology/message_listener.rb
renalware-core-2.0.0.pre.beta7 app/models/renalware/pathology/message_listener.rb
renalware-core-2.0.0.pre.beta6 app/models/renalware/pathology/message_listener.rb
renalware-core-2.0.0.pre.beta5 app/models/renalware/pathology/message_listener.rb
renalware-core-2.0.0.pre.beta4 app/models/renalware/pathology/message_listener.rb