gm_x12 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/x12/segment.rb +1 -1
- data/lib/x12/version.rb +1 -1
- data/misc/834.xml +2 -2
- data/x12.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f1bcc094caf7e3e3f7af7e53bcb00da330f9bd1334d1369140a0dc876c6b302
|
4
|
+
data.tar.gz: 6ce9ae9cb4c8c3631ebd49337b9a99c1cf821583467af81f8dc433f622cd7864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e07c57701bfab03dc5900e65f061114b457a63519bdb5da4d603498123e071ea5c7463fa7204280ec112b96f02cefae948e707a9abc792e57b51195bfe69cd0
|
7
|
+
data.tar.gz: 395d7c2731f066fda669cb24dbfe095666e51768a5844a37077e6f55f19325f243a7584efdc82f2616289164ca0b8a6f58ea3f3829521039dd734d8665514f59
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ If running Ubuntu, you may need to install libxml2-dev
|
|
26
26
|
|
27
27
|
Add this line to your application's Gemfile:
|
28
28
|
|
29
|
-
gem '
|
29
|
+
gem 'gm_x12'
|
30
30
|
|
31
31
|
And then execute:
|
32
32
|
|
@@ -34,7 +34,7 @@ And then execute:
|
|
34
34
|
|
35
35
|
Or install it yourself as:
|
36
36
|
|
37
|
-
$ gem install
|
37
|
+
$ gem install gm_x12
|
38
38
|
|
39
39
|
|
40
40
|
|
@@ -56,7 +56,7 @@ The authors of the project were inspired by the following works:
|
|
56
56
|
* The Ruby port of the above by Chris Parker, rubyforge.org/projects/x12-parser/
|
57
57
|
* This project originated from App Design's X12 parser.
|
58
58
|
* Project was forked by Sean Walberg, creating version 1.2.0 in April 2012.
|
59
|
-
* Project was forked by Marty Petersen in November 2012, creating
|
59
|
+
* Project was forked by Marty Petersen in November 2012, creating gm_x12.
|
60
60
|
* Project was forked by GoodMeasures, Jun 2021, trying to make it work for large eligibility files, and work for Ruby 2.7.1. In particular, work for a file of about 9000 members from Wellcare.
|
61
61
|
|
62
62
|
|
data/lib/x12/segment.rb
CHANGED
@@ -35,7 +35,7 @@ module X12
|
|
35
35
|
s = str
|
36
36
|
# puts "Parsing segment #{name} from #{s[0..10]} with regexp [#{regexp.source}]"
|
37
37
|
quick_match = s.start_with?("#{name}#{field_separator}")
|
38
|
-
puts "#{name} #{s[0..10]} with regexp [#{regexp.source}] matched #{quick_match ? s[0..10] : 'nothing'}"
|
38
|
+
# puts "#{name} #{s[0..10]} with regexp [#{regexp.source}] matched #{quick_match ? s[0..10] : 'nothing'}"
|
39
39
|
|
40
40
|
return nil unless quick_match
|
41
41
|
m = regexp.match(s)
|
data/lib/x12/version.rb
CHANGED
data/misc/834.xml
CHANGED
@@ -42,7 +42,7 @@
|
|
42
42
|
<Segment name="REF" min="3" max="3" required="y" comment="Subscriber Identifier, Member Policy Number, Member Supplemental Identifier"/>
|
43
43
|
<Loop name="L2100A" max="1" required="n" comment="2100A" >
|
44
44
|
<Segment name="NM1" max="1" required="y" comment="Member Name"/>
|
45
|
-
<Segment name="PER" max="
|
45
|
+
<Segment name="PER" max="3" required="n" comment="Member Communications Numbers"/>
|
46
46
|
<Segment name="N3" max="1" required="n" comment="Member Residence Street Address"/>
|
47
47
|
<Segment name="N4" max="1" required="n" comment="Member City, State, Zip Code"/>
|
48
48
|
<Segment name="DMG" max="1" required="n" comment="Member Demographics"/>
|
@@ -64,7 +64,7 @@
|
|
64
64
|
<Segment name="NM1" max="1" required="y" comment="Provider Name"/>
|
65
65
|
<Segment name="N3" max="1" required="y" comment="Provider Residence Street Address"/>
|
66
66
|
<Segment name="N4" max="1" required="n" comment="Provider City, State, Zip Code"/>
|
67
|
-
<Segment name="PER" max="1" required="n" comment="Provider
|
67
|
+
<Segment name="PER" max="1" required="n" comment="Provider Contact."/>
|
68
68
|
<Loop name="L2320" required="n" comment="COB information">
|
69
69
|
<Segment name="COB" max="1" required="y"/>
|
70
70
|
<Segment name="DTP" min="1" max="1" required="y" comment="Health Coverage Date"/>
|
data/x12.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.description = %q{A useful X12 parser that can handle large files using a callback per record. Currently tested with Ruby >= 2.7.1. Gem supports X12 EDI transactions 834, 270, 997, 837p and 835. Anyone wanting to create additional XML files for other transactions welcomed. }
|
10
10
|
gem.summary = %q{A gem to handle parsing and generation of ANSI X12 documents}
|
11
11
|
gem.homepage = "https://github.com/goodmeasuresllc/x12"
|
12
|
-
gem.licenses = 'GPL-2'
|
12
|
+
gem.licenses = 'GPL-2.0'
|
13
13
|
|
14
14
|
gem.files = `git ls-files`.split($\)
|
15
15
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gm_x12
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mathews
|
@@ -1903,7 +1903,7 @@ files:
|
|
1903
1903
|
- x12.gemspec
|
1904
1904
|
homepage: https://github.com/goodmeasuresllc/x12
|
1905
1905
|
licenses:
|
1906
|
-
- GPL-2
|
1906
|
+
- GPL-2.0
|
1907
1907
|
metadata: {}
|
1908
1908
|
post_install_message:
|
1909
1909
|
rdoc_options: []
|