var utils = exports

utils.segmentIsHeader = function(segment) {
  if (segment.hasOwnProperty('SegmentType')) {
    return utils.segmentTypeIsHeader(segment.SegmentType)
  }
  return false
}

utils.segmentTypeIsHeader = function(type) {
  return type === 'MSH'
}

var utils = exports

utils.segmentIsHeader = function(segment) {
  if (segment) {
    return segment.parsed.SegmentType === 'MSH'
  }
  return false
}

utils.segmentTypeIsHeader = function(type) {
  return type === 'MSH'
}

Update for change in the way a Segment is stored
Update for change in the way a Segment is stored
