anchor.diff:  
   -spec init() -> ok | error().
   init() ->
  -    erlang:load_nif("priv/ehl7", 0).
  +    PrivDir = case code:priv_dir(?APP) of
  +                  {error, bad_name} -> "priv";
  +                  PrivDir1          -> PrivDir1
  +              end,
  +    erlang:load_nif(filename:join(PrivDir, "ehl7"), 0).
   
   
   -spec decode(buffer()) -> msg() | error().
  
positive.code: 
  -on_load(init/0).
  
  -type field_index()                             :: non_neg_integer() | [non_neg_integer()].
  -type field_data_type()                         :: string | integer | date | float.
  -type field_length()                            :: non_neg_integer().
  
negative.code: %%%-------------------------------------------------------------------
  %%% @author Juan Jose Comellas <juanjo@comellas.org>
  %%% @copyright (C) 2011 Juan Jose Comellas
  %%% @doc Module that parses and generates HL7 messages.
  %%% @end
  %%%-------------------------------------------------------------------
  -module(ehl7).
  -author('Juan Jose Comellas <juanjo@comellas.org>').
  