anchor.diff:  %% @doc Decode the EVN (Event type) segment
   decode(evn, Segment) ->
       #evn{
  -        recorded_date = get_field(2, date, 14, Segment),
  -        planned_event_date = get_field(3, date, 14, Segment)
  +        recorded_date = get_field([2], date, 14, Segment),
  +        planned_event_date = get_field([3], date, 14, Segment)
          };
   %% @doc Decode the IN1 (Insurance) segment
   decode(in1, Segment) ->
       #in1{
  -        set_id = get_field(1, integer, 4, Segment),
  +        set_id = get_field([1], integer, 4, Segment),
           plan_id = get_component([2,1], string, 20, Segment),
           plan_name = get_component([2,2], string, 30, Segment),
           company_id = get_component([3,1], string, 6, Segment),
  
positive.code: %% @doc Decode the MSA (Message acknowledgment) segment
  decode(msa, Segment) ->
      #msa{
          ack_code = get_field(1, string, 2, Segment),
          message_control_id = get_field(2, string, 20, Segment),
          error_code = get_component([6,1], string, 10, Segment),
          error_text = get_component([6,2], string, 40, Segment)
         };
  %% @doc Decode the MSH (Message header) segment
  decode(msh, Segment) ->
      #msh{
          field_separator = get_field(1, string, 1, Segment),
          encoding_characters = get_field(2, string, 4, Segment),
          sending_application_id = get_component([3,1], string, 12, Segment),
          sending_facility_id = get_component([4,1], string, 12, Segment),
          sending_facility_universal_id = get_component([4,2], string, 20, Segment),
  
negative.code:         referral_type_id = get_component([3,1], string, 5, Segment),
          referral_type_description = get_component([3,2], string, 15, Segment),
          originating_referral_id = get_component([6,1], string, 15, Segment),
          effective_date = get_field([7], date, 12, Segment),
          expiration_date = get_field([8], date, 12, Segment),
          process_date = get_field([9], date, 12, Segment),
          referral_reason_id = get_component([10,1], string, 21, Segment)
         };
  %% @doc Decode the ZAU (Procedure authorization information) segment
  