Edi.X12.Hipaa.R5010.Segments.Trace (EDI X12 v0.1.4)
View SourceTRN - Trace
To uniquely identify a transaction to an application
Summary
Types
@type t() :: %Edi.X12.Hipaa.R5010.Segments.Trace{ originating_company_identifier: nil | binary(), reference_identification_1: binary(), reference_identification_2: nil | binary(), trace_type_code: Edi.X12.Identifier.t() }
Functions
@spec parse(binary()) :: {:ok, t()} | {:error, binary()}
@spec parse(keyword() | map()) :: {:ok, t()} | {:error, binary()}
Convert the list into a struct.
Examples
iex> parse(elem_1: "Y", elem_2: "ZZ")
{:ok, %Struct{elem_1: "Y", elem_2: "ZZ"}}
Convert the list into a struct.
Examples
iex> parse!(elem_1: "Y", elem_2: "ZZ")
%Struct{
elem_1: "Y",
elem_2: "ZZ"
}