sufyanadam/simple_hl7_parser

View on GitHub

Showing 1 of 1 total issue

Method parse has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

def self.parse(hl7)
current_parent_obr = nil
segments = hl7.split("\n").map do |line|
segment_data = line.split('|')
segment_type = segment_data.first
Severity: Minor
Found in lib/simple_hl7_parser/hl7.rb - About 55 mins to fix
Severity
Category
Status
Source
Language