pd_x12 1.4.0 → 1.4.2
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 +8 -8
- data/lib/x12/version.rb +1 -1
- data/misc/835.xml +26 -29
- data/test/tc_parse_835.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGI5ODJhMDA1YTJmYjJjOWM1YWQ0MzYwYjk4OWJiMDQzOTdmMmRmYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODU3NDk3ZWUzN2NjYmJlMTc3MjJlZTliYzAyZmFhZWVlYThjNTU5OA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODkzZThiOGY1NzZmY2I3MjY2OGE5Mjg4ZWU4NjgwZTQ3ZmM0NGU0MjVhOGI4
|
10
|
+
NzZmYzhmNzY2NmIwZmI2NjEwOTg3YWMwY2NiYWY5MjU5ZDg5ZmQ2YjkwMDc3
|
11
|
+
YWY1OTQ0ZjFmZGQ4YmIwMTQyZDI2OWQzN2YzOWJhMWY0OTllNDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGZlMzBiNDc2ZDgzZjNiMzRmNGJmYWRhYzkwNzA1ZjExM2JmYzM3ZWEzYzUw
|
14
|
+
ZThlMGM0YTUzODBmOTU4YjMxMjVjNzEwMTlhZDFiNWVmZjA5NTNhYWEwNjU1
|
15
|
+
OWFiOTNlYjczOGYyYmZlZDM3OGJjNjFhMDhlMzNmNThmMTgzMjQ=
|
data/lib/x12/version.rb
CHANGED
data/misc/835.xml
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
<!--
|
2
2
|
This file is part of the X12Parser library that provides tools to
|
3
|
-
manipulate X12 messages using Ruby native syntax.
|
4
|
-
|
5
|
-
http://x12parser.rubyforge.org
|
3
|
+
manipulate X12 messages using Ruby native syntax.
|
6
4
|
|
7
5
|
Copyright (C) 2012 P&D Technical Solutions, LLC
|
8
6
|
|
@@ -20,7 +18,7 @@
|
|
20
18
|
License along with this library; if not, write to the Free Software
|
21
19
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
22
20
|
|
23
|
-
$Id:
|
21
|
+
$Id: 835.xml 2012-11-23 mjp using version 5010 $
|
24
22
|
-->
|
25
23
|
|
26
24
|
<Definition>
|
@@ -39,44 +37,43 @@
|
|
39
37
|
<Segment name="N3" max="1" required="y" />
|
40
38
|
<Segment name="N4" max="1" required="y" />
|
41
39
|
<Segment name="REF" max="4" required="n" />
|
42
|
-
<Segment name="PER" min="1" max="inf" required="y" />
|
40
|
+
<Segment name="PER" min="1" max="inf" required="y" comment="4010 allows for 1 segment, 5010 allows for more than 1 segment"/>
|
43
41
|
</Loop>
|
44
42
|
<Loop name="L1000B" max="1" required="y" comment="Payee Identification" >
|
45
43
|
<Segment name="N1" max="1" required="y" />
|
46
44
|
<Segment name="N3" max="1" required="n" />
|
47
45
|
<Segment name="N4" max="1" required="y" />
|
48
|
-
<Segment name="REF" required="n" />
|
46
|
+
<Segment name="REF" max="inf" required="n" />
|
49
47
|
<Segment name="RDM" max="1" required="n" />
|
50
48
|
</Loop>
|
51
49
|
<Loop name="L2000" required="n" comment="Claim Payment Information" >
|
52
50
|
<Segment name="LX" max="1" required="n" />
|
53
51
|
<Segment name="TS3" max="1" required="n" />
|
54
|
-
<Segment name="TS2" max="1" required="n" />
|
55
|
-
|
56
|
-
|
57
|
-
<Segment name="CLP" max="1" required="y" />
|
58
|
-
<Segment name="CAS" max="99" required="n" />
|
59
|
-
<Segment name="CLP" max="1" required="y" />
|
60
|
-
<Segment name="NM1" max="1" required="y" />
|
61
|
-
<Segment name="NM1" max="6" required="n" />
|
62
|
-
<Segment name="MIA" max="1" required="n" />
|
63
|
-
<Segment name="MOA" max="1" required="n" />
|
64
|
-
<Segment name="REF" max="15" required="n" />
|
65
|
-
<Segment name="DTM" max="4" required="n" />
|
66
|
-
<Segment name="PER" max="2" required="n" />
|
67
|
-
<Segment name="AMT" max="13" required="n" />
|
68
|
-
<Segment name="QTY" max="14" required="n" />
|
69
|
-
<Loop name="L2110" max="999" required="n" comment="Service Payment Information">
|
70
|
-
<Segment name="SVC" max="1" required="n" />
|
71
|
-
<Segment name="DTM" max="2" required="n" />
|
52
|
+
<Segment name="TS2" max="1" required="n" />
|
53
|
+
<Loop name="L2100" min="1" comment="The Loop 2100 CLP Claim Payment Information Segment begins data on each individual claim for a service provider within the 835 Transaction." >
|
54
|
+
<Segment name="CLP" max="1" required="y" />
|
72
55
|
<Segment name="CAS" max="99" required="n" />
|
73
|
-
<Segment name="
|
74
|
-
<Segment name="
|
75
|
-
<Segment name="
|
76
|
-
<Segment name="
|
56
|
+
<Segment name="CLP" max="1" required="y" />
|
57
|
+
<Segment name="NM1" min="1" max="7" required="y" />
|
58
|
+
<Segment name="MIA" max="1" required="n" />
|
59
|
+
<Segment name="MOA" max="1" required="n" />
|
60
|
+
<Segment name="REF" max="15" required="n" />
|
61
|
+
<Segment name="DTM" max="4" required="n" />
|
62
|
+
<Segment name="PER" max="2" required="n" />
|
63
|
+
<Segment name="AMT" max="13" required="n" />
|
64
|
+
<Segment name="QTY" max="14" required="n" />
|
65
|
+
<Loop name="L2110" max="999" required="n" comment="Service Payment Information">
|
66
|
+
<Segment name="SVC" max="1" required="n" />
|
67
|
+
<Segment name="DTM" max="2" required="n" />
|
68
|
+
<Segment name="CAS" max="99" required="n" />
|
69
|
+
<Segment name="REF" max="24" required="n" />
|
70
|
+
<Segment name="AMT" max="9" required="n" />
|
71
|
+
<Segment name="QTY" max="6" required="n" />
|
72
|
+
<Segment name="LQ" max="99" required="n" />
|
73
|
+
</Loop>
|
77
74
|
</Loop>
|
78
75
|
</Loop>
|
79
|
-
<Segment name="PLB" required="n" comment="Provider Level Adjustment" />
|
76
|
+
<Segment name="PLB" max="inf" required="n" comment="Provider Level Adjustment" />
|
80
77
|
<Segment name="SE" required="y" />
|
81
78
|
</Loop>
|
82
79
|
<Segment name="GE" max="1" required="y"/>
|
data/test/tc_parse_835.rb
CHANGED
@@ -133,6 +133,12 @@ IEA*1*000004592~"
|
|
133
133
|
|
134
134
|
end
|
135
135
|
|
136
|
+
def test_L2000_loop
|
137
|
+
assert_equal("1", @r.L2000.LX.AssignedNumber)
|
138
|
+
assert_equal("CLP*EDI DENIAL*1*1088*0*1088*HM*CLAIMNUMBER1*21~", @r.L2000.L2100[0].CLP.to_s)
|
139
|
+
assert_equal("CLP*EDI PAID*1*100*57.44*30*12*CLAIMNUMBER2*11~", @r.L2000[0].L2100[1].CLP.to_s)
|
140
|
+
end
|
141
|
+
|
136
142
|
|
137
143
|
def test_timing
|
138
144
|
start = Time::now
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pd_x12
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- App Design, Inc.
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-21 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: ! 'A gem to handle parsing and generation of ANSI X12 documents. Currently
|
16
16
|
tested with Ruby >= 1.9.2. Gem supports X12 EDI transactions 270, 997, 837p and
|