anchor.diff:                  {"GO", false} -> %% End of file, buggy
                       {error, unexpected_eof};
                   {"RE", true} ->
  -                    Recept2 = finalize_recept(append_to_recept(Recept, Data)),
  +                    Date = list_to_binary(extract_re_date(Data)),
  +                    Recept2 = finalize_recept(append_to_recept(Recept#recept{date=Date}, Data)),
                       {ok, {ReceptTemplate, [Recept2|Records], ReceptTemplate}};
                   {"RE", false} ->
  -                    {ok, {append_to_recept(ReceptTemplate, Data), Records, ReceptTemplate}};
  +                    Date = list_to_binary(extract_re_date(Data)),
  +                    Recept2 = append_to_recept(ReceptTemplate#recept{date=Date}, Data),
  +                    {ok, {Recept2, Records, ReceptTemplate}};
                   {_, true} ->
                       {ok, {append_to_recept(Recept, Data), Records, ReceptTemplate}};
                   {_, false} ->
  
positive.code: 
  default_extractor(Record) -> Record.
  
  extract_date(Col) ->
      case proplists:get_value(<<"請求年月">>, Col) of
          undefined -> undefined;
          DateBin ->
              [P,Y0,Y1,M0,M1] = binary_to_list(DateBin),
  
negative.code:                     {ok, {undefined, [finalize_recept(Recept)|Records], #recept{}}};
                  {"IR", false} -> %% remember hospital ID
                      NewHospitalID = extract_hospital(Data),
                      Date = list_to_binary(extract_ir_date(Data)),
                      NewReceptTemplate = ReceptTemplate#recept{date=Date,
                                                                hospital_id=NewHospitalID},
                      {ok, {undefined, Records, NewReceptTemplate}};
                  {"IR", true} ->
                      NewHospitalID = extract_hospital(Data),
                      Date = list_to_binary(extract_ir_date(Data)),
                      NewReceptTemplate = ReceptTemplate#recept{date=Date,
                                                                hospital_id=NewHospitalID},
                      {ok, {undefined, [finalize_recept(Recept)|Records], NewReceptTemplate}};
  