Financial Class (FC) -- HL7v2 composite data type.
Used to classify patient financial responsibility.
2 components:
- Financial Class Code (IS) -- Table 0064
- Effective Date (TS) -- sub-components delimited by
&
Summary
Types
@type t() :: %HL7v2.Type.FC{ effective_date: HL7v2.Type.TS.t() | nil, financial_class_code: binary() | nil }
Functions
Encodes an FC to a list of component strings.
Examples
iex> HL7v2.Type.FC.encode(%HL7v2.Type.FC{financial_class_code: "01"})
["01"]
iex> HL7v2.Type.FC.encode(nil)
[]
Parses an FC from a list of components.
Examples
iex> HL7v2.Type.FC.parse(["01"])
%HL7v2.Type.FC{financial_class_code: "01"}
iex> HL7v2.Type.FC.parse(["01", "20260322"])
%HL7v2.Type.FC{financial_class_code: "01", effective_date: %HL7v2.Type.TS{time: %HL7v2.Type.DTM{year: 2026, month: 3, day: 22}}}
iex> HL7v2.Type.FC.parse([])
%HL7v2.Type.FC{}