Packages

A parser for EDI X12

Retired package: Release invalid - Missing priv files breaking compilation

Current section

6 Versions

Jump to

Compare versions

35 files changed
+987 additions
-113 deletions
  @@ -2,13 +2,16 @@
2 2 [{<<"Changelog">>,<<"https://hexdocs.pm/edi_x12/changelog.html">>},
3 3 {<<"GitHub">>,<<"https://github.com/GRoguelon/edi_x12">>}]}.
4 4 {<<"name">>,<<"edi_x12">>}.
5 - {<<"version">>,<<"0.1.0">>}.
5 + {<<"version">>,<<"0.1.1">>}.
6 6 {<<"description">>,<<"A parser for EDI X12">>}.
7 7 {<<"elixir">>,<<"~> 1.15">>}.
8 8 {<<"app">>,<<"edi_x12">>}.
9 9 {<<"files">>,
10 10 [<<"lib">>,<<"lib/edi">>,<<"lib/edi/x12">>,<<"lib/edi/x12/hipaa">>,
11 - <<"lib/edi/x12/hipaa/r5010">>,<<"lib/edi/x12/hipaa/r5010/elements">>,
11 + <<"lib/edi/x12/hipaa/r5010">>,
12 + <<"lib/edi/x12/hipaa/r5010/transaction_sets">>,
13 + <<"lib/edi/x12/hipaa/r5010/transaction_sets/health_care_eligibility_benefit_response.ex">>,
14 + <<"lib/edi/x12/hipaa/r5010/elements">>,
12 15 <<"lib/edi/x12/hipaa/r5010/elements/composite_unit_of_measure.ex">>,
13 16 <<"lib/edi/x12/hipaa/r5010/elements/composite_medical_procedure_identifier.ex">>,
14 17 <<"lib/edi/x12/hipaa/r5010/elements/medicare_status_code.ex">>,
  @@ -5,7 +5,7 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeDiagnosisCodePointer do
5 5 To identify one or more diagnosis code pointers
6 6 """
7 7
8 - use Edi.X12.Parser
8 + use Edi.X12.Parser, parser: :element
9 9
10 10 import NimbleParsec
11 11
  @@ -50,10 +50,7 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeDiagnosisCodePointer do
50 50
51 51 # Parse element (1328 - Diagnosis Code Pointer) and tag as: :diagnosis_code_pointer_1
52 52 |> unwrap_and_tag(
53 - map(
54 - ascii_string([?-], min: 0, max: 1) |> ascii_string([?0..?9, ?., ?|], min: 1, max: 2),
55 - {Parser, :number2, [0]}
56 - ),
53 + map(ascii_string([?-, ?0..?9, ?., ?|], min: 1, max: 2), {Parser, :number2, [0]}),
57 54 :diagnosis_code_pointer_1
58 55 )
59 56
  @@ -61,10 +58,7 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeDiagnosisCodePointer do
61 58 |> optional(
62 59 ignore(string(@element_seperator))
63 60 |> unwrap_and_tag(
64 - map(
65 - ascii_string([?-], min: 0, max: 1) |> ascii_string([?0..?9, ?., ?|], min: 0, max: 2),
66 - {Parser, :number2, [0]}
67 - ),
61 + map(ascii_string([?-, ?0..?9, ?., ?|], min: 0, max: 2), {Parser, :number2, [0]}),
68 62 :diagnosis_code_pointer_2
69 63 )
70 64 )
  @@ -73,10 +67,7 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeDiagnosisCodePointer do
73 67 |> optional(
74 68 ignore(string(@element_seperator))
75 69 |> unwrap_and_tag(
76 - map(
77 - ascii_string([?-], min: 0, max: 1) |> ascii_string([?0..?9, ?., ?|], min: 0, max: 2),
78 - {Parser, :number2, [0]}
79 - ),
70 + map(ascii_string([?-, ?0..?9, ?., ?|], min: 0, max: 2), {Parser, :number2, [0]}),
80 71 :diagnosis_code_pointer_3
81 72 )
82 73 )
  @@ -85,14 +76,11 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeDiagnosisCodePointer do
85 76 |> optional(
86 77 ignore(string(@element_seperator))
87 78 |> unwrap_and_tag(
88 - map(
89 - ascii_string([?-], min: 0, max: 1) |> ascii_string([?0..?9, ?., ?|], min: 0, max: 2),
90 - {Parser, :number2, [0]}
91 - ),
79 + map(ascii_string([?-, ?0..?9, ?., ?|], min: 0, max: 2), {Parser, :number2, [0]}),
92 80 :diagnosis_code_pointer_4
93 81 )
94 82 )
95 83
96 84 @doc false
97 - defparsec(:parse, combinator, export_combinator: false, inline: Mix.env() == :prod)
85 + defparsec(:element, combinator, export_combinator: true, inline: Mix.env() == :prod)
98 86 end
\ No newline at end of file
  @@ -5,7 +5,7 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeMedicalProcedureIdentifier do
5 5 To identify a medical procedure by its standardized codes and applicable modifiers
6 6 """
7 7
8 - use Edi.X12.Parser
8 + use Edi.X12.Parser, parser: :element
9 9
10 10 import NimbleParsec
11 11
  @@ -140,5 +140,5 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeMedicalProcedureIdentifier do
140 140 )
141 141
142 142 @doc false
143 - defparsec(:parse, combinator, export_combinator: false, inline: Mix.env() == :prod)
143 + defparsec(:element, combinator, export_combinator: true, inline: Mix.env() == :prod)
144 144 end
\ No newline at end of file
  @@ -5,7 +5,7 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeRaceOrEthnicityInformation do
5 5 To send general and detailed information on race or ethnicity
6 6 """
7 7
8 - use Edi.X12.Parser
8 + use Edi.X12.Parser, parser: :element
9 9
10 10 import NimbleParsec
11 11
  @@ -90,5 +90,5 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeRaceOrEthnicityInformation do
90 90 )
91 91
92 92 @doc false
93 - defparsec(:parse, combinator, export_combinator: false, inline: Mix.env() == :prod)
93 + defparsec(:element, combinator, export_combinator: true, inline: Mix.env() == :prod)
94 94 end
\ No newline at end of file
  @@ -7,7 +7,7 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeUnitOfMeasure do
7 7 (See Figures Appendix for examples of use)
8 8 """
9 9
10 - use Edi.X12.Parser
10 + use Edi.X12.Parser, parser: :element
11 11
12 12 import NimbleParsec
13 13
  @@ -272,5 +272,5 @@ defmodule Edi.X12.Hipaa.R5010.Elements.CompositeUnitOfMeasure do
272 272 )
273 273
274 274 @doc false
275 - defparsec(:parse, combinator, export_combinator: false, inline: Mix.env() == :prod)
275 + defparsec(:element, combinator, export_combinator: true, inline: Mix.env() == :prod)
276 276 end
\ No newline at end of file
Loading more files…