Sha256: 092e14aee9729111985cb889787a7cc8a93d5ed01f7f3daa3e691b55fd52d66e

Contents?: true

Size: 564 Bytes

Versions: 9

Compression:

Stored size: 564 Bytes

Contents

require 'roqua/healthy/a19/name_parser'

module Roqua
  module Healthy
    module A19
      # The CDIS EPD returns names in a format different from most other EPD vendors.
      # This parser overrides some methods that are affected by the differences.
      class CdisNameParser < NameParser
        def firstname
          names[:legal].fetch('PID.5.2')
        end

        def initials
          names[:legal].fetch('PID.5.3')
        end

        def lastname
          names[:legal].fetch('PID.5.1').fetch('PID.5.1.3')
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
roqua-healthy-1.1.5 lib/roqua/healthy/a19/cdis_name_parser.rb
roqua-healthy-1.1.4 lib/roqua/healthy/a19/cdis_name_parser.rb
roqua-healthy-1.1.3 lib/roqua/healthy/a19/cdis_name_parser.rb
roqua-healthy-1.1.2 lib/roqua/healthy/a19/cdis_name_parser.rb
roqua-healthy-1.1.1 lib/roqua/healthy/a19/cdis_name_parser.rb
roqua-healthy-1.1.0 lib/roqua/healthy/a19/cdis_name_parser.rb
roqua-healthy-1.0.2 lib/roqua/healthy/a19/cdis_name_parser.rb
roqua-healthy-1.0.1 lib/roqua/healthy/a19/cdis_name_parser.rb
roqua-healthy-1.0.0 lib/roqua/healthy/a19/cdis_name_parser.rb