Class: Roqua::Healthy::A19::CdisNameParser
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
Instance Method Details
#firstname ⇒ Object
9
10
11
|
# File 'lib/roqua/healthy/a19/cdis_name_parser.rb', line 9
def firstname
names[:legal].fetch('PID.5.2')
end
|
#initials ⇒ Object
13
14
15
|
# File 'lib/roqua/healthy/a19/cdis_name_parser.rb', line 13
def initials
names[:legal].fetch('PID.5.3')
end
|
#lastname ⇒ Object
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
|