lib/roqua/healthy/a19/transformer.rb in roqua-healthy-1.1.1 vs lib/roqua/healthy/a19/transformer.rb in roqua-healthy-1.1.2

- old
+ new

@@ -71,9 +71,14 @@ def phone_cell phone_cell_record = message.fetch('PID').fetch('PID.13').find do |record| record.fetch('PID.13.2', :unknown_type_of_phone_record) == 'ORN' end + + phone_cell_record ||= message.fetch('PID').fetch('PID.13').find do |record| + record.fetch('PID.13.1', '') =~ /\A06/ + end + return nil unless phone_cell_record phone_cell_record.fetch('PID.13.1', "") end \ No newline at end of file