class YAHL7::V2::DataType::NDL
This is the HL7 data type for a name with a date and location.
Public Class Methods
new(value)
click to toggle source
# File lib/yahl7/v2/data_type/ndl.rb, line 28 def initialize(value) @value = if value.nil? [] elsif value.is_a?(String) || value[0].is_a?(String) [value] else value end end
repeated?(value)
click to toggle source
# File lib/yahl7/v2/data_type/ndl.rb, line 50 def self.repeated?(value) !value.nil? && value[0].is_a?(Array) && value[0][0].is_a?(Array) end
Public Instance Methods
bare_name_family_first()
click to toggle source
# File lib/yahl7/v2/data_type/ndl.rb, line 46 def bare_name_family_first name&.bare_name_family_first end
bare_name_given_first()
click to toggle source
# File lib/yahl7/v2/data_type/ndl.rb, line 42 def bare_name_given_first name&.bare_name_given_first end
full_name()
click to toggle source
# File lib/yahl7/v2/data_type/ndl.rb, line 38 def full_name name&.full_name end