Class: Roqua::Healthy::A19::ImpulseNameParser
- Inherits:
-
NameParser
- Object
- NameParser
- Roqua::Healthy::A19::ImpulseNameParser
- Defined in:
- lib/roqua/healthy/a19/impulse_name_parser.rb
Overview
The Impulse user epd hl7 format almost matches the xmcare one, except for maiden names-married names being combined in PID 5.1.1
Instance Attribute Summary
Attributes inherited from NameParser
Instance Method Summary collapse
Methods inherited from NameParser
#display_name, #firstname, #initialize, #initials
Constructor Details
This class inherits a constructor from Roqua::Healthy::A19::NameParser
Instance Method Details
#lastname ⇒ Object
10 11 12 |
# File 'lib/roqua/healthy/a19/impulse_name_parser.rb', line 10 def lastname names[:legal].fetch('PID.5.1').fetch('PID.5.1.1') end |
#nickname ⇒ Object
14 15 16 17 |
# File 'lib/roqua/healthy/a19/impulse_name_parser.rb', line 14 def nickname return unless names[:nick] names[:nick].fetch('PID.5.2') end |