Class: Roqua::Healthy::A19::CdisNameParser

Inherits:
NameParser
  • Object
show all
Defined in:
lib/roqua/healthy/a19/cdis_name_parser.rb

Overview

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.

Instance Attribute Summary

Attributes inherited from NameParser

#message

Instance Method Summary collapse

Methods inherited from NameParser

#display_name, #initialize

Constructor Details

This class inherits a constructor from Roqua::Healthy::A19::NameParser

Instance Method Details

#firstnameObject



9
10
11
# File 'lib/roqua/healthy/a19/cdis_name_parser.rb', line 9

def firstname
  names[:legal].fetch('PID.5.2')
end

#initialsObject



13
14
15
# File 'lib/roqua/healthy/a19/cdis_name_parser.rb', line 13

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

#lastnameObject



17
18
19
# File 'lib/roqua/healthy/a19/cdis_name_parser.rb', line 17

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