Sha256: 7fb1d25d67b541c2f94a90b001e8601318c0566c4ae9f2d419c6d2710e01110e

Contents?: true

Size: 461 Bytes

Versions: 52

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/feeds"

module Renalware
  module Feeds
    # Responsible for parsing a raw HL7 message as a string and creates a
    # message object.
    #
    class MessageParser
      def self.parse(*args)
        new.parse(*args)
      end

      def parse(message_string)
        lines = message_string.split("\n").join("\r").lines
        HL7Message.new(::HL7::Message.new(lines))
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/feeds/message_parser.rb
renalware-core-2.1.0 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.167 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.166 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.165 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.164 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.163 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.162 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.161 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.160 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.159 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.158 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.157 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.156 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.155 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.153 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.152 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.151 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.149 app/models/renalware/feeds/message_parser.rb
renalware-core-2.0.148 app/models/renalware/feeds/message_parser.rb