anchor.diff:  %% @doc Decode the QAK (Query acknowledgment) segment
   decode(qak, Segment) ->
       #qak{
  -        query_tag = get_field(1, string, 32, Segment),
  -        query_response_status = get_field(2, string, 4, Segment),
  +        query_tag = get_field([1], string, 32, Segment),
  +        query_response_status = get_field([2], string, 4, Segment),
           query_id = get_component([3,1], string, 14, Segment),
           query_name = get_component([3,2], string, 30, Segment)
          };
  
positive.code: %% @doc Decode the RCP (Response control parameter) segment
  decode(rcp, Segment) ->
      #rcp{
          query_priority = get_field(1, string, 1, Segment),
          response_limit = get_component([2,1], integer, 10, Segment),
          response_unit = get_subcomponent([2,2,1], string, 2, Segment),
          response_modality_id = get_component([3,1], string, 10, Segment),
          execution_date = get_field(4, date, 12, Segment),
          sort_by = get_field(6, string, 512, Segment)
         };
  %% @doc Decode the RF1 (Referral information) segment
  decode(rf1, Segment) ->
  
negative.code:         authorization_status = get_component([3,1], string, 4, Segment),
          authorization_status_text = get_component([3,2], string, 15, Segment),
          pre_authorization_id = get_component([4,1], string, 15, Segment),
          pre_authorization_date = get_field([5], string, 8, Segment),
          copay = get_subcomponent([6,1,1], string, 10, Segment),
          copay_currency = get_subcomponent([6,1,2], string, 10, Segment)
         };
  %% @doc Decode the ZIN (Additional insurance information) segment
  decode(zin, Segment) ->
      #zin{
          eligibility_indicator = get_field([1], string, 1, Segment),
          patient_vat_status = get_component([2,1], string, 4, Segment),
          patient_vat_status_text = get_component([2,2], string, 7, Segment)
         };
  