hippo 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -1
- data/lib/hippo/segments/GE.rb +14 -10
- data/lib/hippo/segments/GS.rb +63 -44
- data/lib/hippo/segments/IEA.rb +14 -10
- data/lib/hippo/segments/ISA.rb +127 -86
- data/lib/hippo/version.rb +1 -1
- metadata +6 -6
data/CHANGELOG
CHANGED
data/lib/hippo/segments/GE.rb
CHANGED
@@ -3,17 +3,21 @@ module Hippo::Segments
|
|
3
3
|
|
4
4
|
segment_identifier 'GE'
|
5
5
|
|
6
|
-
field :name
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
10
|
-
:
|
6
|
+
field :name => 'NumberOfTransactionSetsIncluded',
|
7
|
+
:sequence => 1,
|
8
|
+
:datatype => :string,
|
9
|
+
:minimum => 1,
|
10
|
+
:maximum => 6,
|
11
|
+
:required => true,
|
12
|
+
:data_element_number => 97
|
11
13
|
|
12
|
-
field :name
|
13
|
-
:
|
14
|
-
:
|
15
|
-
:
|
16
|
-
:
|
14
|
+
field :name => 'GroupControlNumber',
|
15
|
+
:sequence => 2,
|
16
|
+
:datatype => :string,
|
17
|
+
:minimum => 1,
|
18
|
+
:maximum => 9,
|
19
|
+
:required => true,
|
20
|
+
:data_element_number => 28
|
17
21
|
|
18
22
|
end
|
19
23
|
end
|
data/lib/hippo/segments/GS.rb
CHANGED
@@ -3,50 +3,69 @@ module Hippo::Segments
|
|
3
3
|
|
4
4
|
segment_identifier 'GS'
|
5
5
|
|
6
|
-
field :name
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
10
|
-
|
11
|
-
|
12
|
-
:
|
13
|
-
|
14
|
-
|
15
|
-
:
|
16
|
-
|
17
|
-
|
18
|
-
:
|
19
|
-
:
|
20
|
-
:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
:datatype
|
25
|
-
:minimum
|
26
|
-
:maximum
|
27
|
-
:required
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
:
|
32
|
-
:
|
33
|
-
:
|
34
|
-
|
35
|
-
|
36
|
-
:
|
37
|
-
|
38
|
-
|
39
|
-
:
|
40
|
-
|
41
|
-
|
42
|
-
:
|
43
|
-
:
|
44
|
-
:
|
45
|
-
|
46
|
-
field :name
|
47
|
-
:
|
48
|
-
:
|
49
|
-
:
|
6
|
+
field :name => 'FunctionalIdentifierCode',
|
7
|
+
:sequence => 1,
|
8
|
+
:datatype => :string,
|
9
|
+
:minimum => 2,
|
10
|
+
:maximum => 2,
|
11
|
+
:required => true,
|
12
|
+
:data_element_number => 479
|
13
|
+
|
14
|
+
field :name => 'ApplicationSendersCode',
|
15
|
+
:sequence => 2,
|
16
|
+
:datatype => :string,
|
17
|
+
:minimum => 2,
|
18
|
+
:maximum => 15,
|
19
|
+
:required => true,
|
20
|
+
:data_element_number => 142
|
21
|
+
|
22
|
+
field :name => 'ApplicationReceiversCode',
|
23
|
+
:sequence => 3,
|
24
|
+
:datatype => :string,
|
25
|
+
:minimum => 2,
|
26
|
+
:maximum => 15,
|
27
|
+
:required => true,
|
28
|
+
:data_element_number => 124
|
29
|
+
|
30
|
+
field :name => 'Date',
|
31
|
+
:sequence => 4,
|
32
|
+
:datatype => :string,
|
33
|
+
:minimum => 8,
|
34
|
+
:maximum => 8,
|
35
|
+
:required => true,
|
36
|
+
:data_element_number => 373
|
37
|
+
|
38
|
+
field :name => 'Time',
|
39
|
+
:sequence => 5,
|
40
|
+
:datatype => :string,
|
41
|
+
:minimum => 4,
|
42
|
+
:maximum => 8,
|
43
|
+
:required => true,
|
44
|
+
:data_element_number => 337
|
45
|
+
|
46
|
+
field :name => 'GroupControlNumber',
|
47
|
+
:sequence => 6,
|
48
|
+
:datatype => :string,
|
49
|
+
:minimum => 1,
|
50
|
+
:maximum => 9,
|
51
|
+
:required => true,
|
52
|
+
:data_element_number => 28
|
53
|
+
|
54
|
+
field :name => 'ResponsibleAgencyCode',
|
55
|
+
:sequence => 7,
|
56
|
+
:datatype => :string,
|
57
|
+
:minimum => 1,
|
58
|
+
:maximum => 2,
|
59
|
+
:required => true,
|
60
|
+
:data_element_number => 455
|
61
|
+
|
62
|
+
field :name => 'VersionReleaseIndustryIdentifierCode',
|
63
|
+
:sequence => 8,
|
64
|
+
:datatype => :string,
|
65
|
+
:minimum => 1,
|
66
|
+
:maximum => 12,
|
67
|
+
:required => true,
|
68
|
+
:data_element_number => 480
|
50
69
|
|
51
70
|
end
|
52
71
|
end
|
data/lib/hippo/segments/IEA.rb
CHANGED
@@ -3,17 +3,21 @@ module Hippo::Segments
|
|
3
3
|
|
4
4
|
segment_identifier 'IEA'
|
5
5
|
|
6
|
-
field :name
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
10
|
-
:
|
6
|
+
field :name => 'NumberOfIncludedFunctionalGroups',
|
7
|
+
:sequence => 1,
|
8
|
+
:datatype => :string,
|
9
|
+
:minimum => 1,
|
10
|
+
:maximum => 5,
|
11
|
+
:required => true,
|
12
|
+
:data_element_number => 'I16'
|
11
13
|
|
12
|
-
field :name
|
13
|
-
:
|
14
|
-
:
|
15
|
-
:
|
16
|
-
:
|
14
|
+
field :name => 'InterchangeControlNumber',
|
15
|
+
:sequence => 2,
|
16
|
+
:datatype => :string,
|
17
|
+
:minimum => 9,
|
18
|
+
:maximum => 9,
|
19
|
+
:required => true,
|
20
|
+
:data_element_number => 'I12'
|
17
21
|
|
18
22
|
end
|
19
23
|
end
|
data/lib/hippo/segments/ISA.rb
CHANGED
@@ -4,92 +4,133 @@ module Hippo::Segments
|
|
4
4
|
segment_identifier 'ISA'
|
5
5
|
segment_fixed_width
|
6
6
|
|
7
|
-
field :name
|
8
|
-
:
|
9
|
-
:
|
10
|
-
:
|
11
|
-
:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
:
|
17
|
-
|
18
|
-
|
19
|
-
:
|
20
|
-
:
|
21
|
-
:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
:datatype
|
26
|
-
:
|
27
|
-
:
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
:
|
33
|
-
:
|
34
|
-
|
35
|
-
|
36
|
-
:
|
37
|
-
:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
:datatype
|
42
|
-
:
|
43
|
-
:
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
:
|
49
|
-
|
50
|
-
|
51
|
-
:
|
52
|
-
:
|
53
|
-
:
|
54
|
-
|
55
|
-
field :name
|
56
|
-
:
|
57
|
-
:
|
58
|
-
:
|
59
|
-
|
60
|
-
|
61
|
-
:
|
62
|
-
|
63
|
-
|
64
|
-
:
|
65
|
-
|
66
|
-
|
67
|
-
:
|
68
|
-
:
|
69
|
-
:
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
:datatype
|
74
|
-
:
|
75
|
-
:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
:
|
81
|
-
:
|
82
|
-
|
83
|
-
|
84
|
-
:
|
85
|
-
:
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
:
|
91
|
-
:maximum
|
92
|
-
:required
|
7
|
+
field :name => 'AuthorizationInformationQualifier',
|
8
|
+
:sequence => 1,
|
9
|
+
:datatype => :string,
|
10
|
+
:minimum => 2,
|
11
|
+
:maximum => 2,
|
12
|
+
:required => true,
|
13
|
+
:data_element_number => 'I01'
|
14
|
+
|
15
|
+
field :name => 'AuthorizationInformation',
|
16
|
+
:sequence => 2,
|
17
|
+
:datatype => :string,
|
18
|
+
:minimum => 10,
|
19
|
+
:maximum => 10,
|
20
|
+
:required => true,
|
21
|
+
:data_element_number => 'I02'
|
22
|
+
|
23
|
+
field :name => 'SecurityInformationQualifier',
|
24
|
+
:sequence => 3,
|
25
|
+
:datatype => :string,
|
26
|
+
:minimum => 2,
|
27
|
+
:maximum => 2,
|
28
|
+
:required => true,
|
29
|
+
:data_element_number => 'I03'
|
30
|
+
|
31
|
+
field :name => 'SecurityInformation',
|
32
|
+
:sequence => 4,
|
33
|
+
:datatype => :string,
|
34
|
+
:minimum => 10,
|
35
|
+
:maximum => 10,
|
36
|
+
:required => true,
|
37
|
+
:data_element_number => 'I04'
|
38
|
+
|
39
|
+
field :name => 'InterchangeIdQualifier',
|
40
|
+
:sequence => 5,
|
41
|
+
:datatype => :string,
|
42
|
+
:minimum => 2,
|
43
|
+
:maximum => 2,
|
44
|
+
:required => true,
|
45
|
+
:data_element_number => 'I05'
|
46
|
+
|
47
|
+
field :name => 'InterchangeSenderId',
|
48
|
+
:sequence => 6,
|
49
|
+
:datatype => :string,
|
50
|
+
:minimum => 15,
|
51
|
+
:maximum => 15,
|
52
|
+
:required => true,
|
53
|
+
:data_element_number => 'I06'
|
54
|
+
|
55
|
+
field :name => 'InterchangeIdQualifier',
|
56
|
+
:sequence => 7,
|
57
|
+
:datatype => :string,
|
58
|
+
:minimum => 2,
|
59
|
+
:maximum => 2,
|
60
|
+
:required => true,
|
61
|
+
:data_element_number => 'I05'
|
62
|
+
|
63
|
+
field :name => 'InterchangeReceiverId',
|
64
|
+
:sequence => 8,
|
65
|
+
:datatype => :string,
|
66
|
+
:minimum => 15,
|
67
|
+
:maximum => 15,
|
68
|
+
:required => true,
|
69
|
+
:data_element_number => 'I07'
|
70
|
+
|
71
|
+
field :name => 'InterchangeDate',
|
72
|
+
:sequence => 9,
|
73
|
+
:datatype => :string,
|
74
|
+
:minimum => 6,
|
75
|
+
:maximum => 6,
|
76
|
+
:required => true,
|
77
|
+
:data_element_number => 'I08'
|
78
|
+
|
79
|
+
field :name => 'InterchangeTime',
|
80
|
+
:sequence => 10,
|
81
|
+
:datatype => :string,
|
82
|
+
:minimum => 4,
|
83
|
+
:maximum => 4,
|
84
|
+
:required => true,
|
85
|
+
:data_element_number => 'I09'
|
86
|
+
|
87
|
+
field :name => 'RepetitionSeparator',
|
88
|
+
:sequence => 11,
|
89
|
+
:datatype => :string,
|
90
|
+
:minimum => 1,
|
91
|
+
:maximum => 1,
|
92
|
+
:required => true,
|
93
|
+
:data_element_number => 'I65'
|
94
|
+
|
95
|
+
field :name => 'InterchangeControlVersionNumber',
|
96
|
+
:sequence => 12,
|
97
|
+
:datatype => :string,
|
98
|
+
:minimum => 5,
|
99
|
+
:maximum => 5,
|
100
|
+
:required => true,
|
101
|
+
:data_element_number => 'I11'
|
102
|
+
|
103
|
+
field :name => 'InterchangeControlNumber',
|
104
|
+
:sequence => 13,
|
105
|
+
:datatype => :string,
|
106
|
+
:minimum => 9,
|
107
|
+
:maximum => 9,
|
108
|
+
:required => true,
|
109
|
+
:data_element_number => 'I12'
|
110
|
+
|
111
|
+
field :name => 'AcknowledgmentRequested',
|
112
|
+
:sequence => 14,
|
113
|
+
:datatype => :string,
|
114
|
+
:minimum => 1,
|
115
|
+
:maximum => 1,
|
116
|
+
:required => true,
|
117
|
+
:data_element_number => 'I13'
|
118
|
+
|
119
|
+
field :name => 'InterchangeUsageIndicator',
|
120
|
+
:sequence => 15,
|
121
|
+
:datatype => :string,
|
122
|
+
:minimum => 1,
|
123
|
+
:maximum => 1,
|
124
|
+
:required => true,
|
125
|
+
:data_element_number => 'I14'
|
126
|
+
|
127
|
+
field :name => 'ComponentElementSeparator',
|
128
|
+
:sequence => 16,
|
129
|
+
:datatype => :string,
|
130
|
+
:minimum => 1,
|
131
|
+
:maximum => 1,
|
132
|
+
:required => true,
|
133
|
+
:data_element_number => 'I15'
|
93
134
|
|
94
135
|
end
|
95
136
|
end
|
data/lib/hippo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hippo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-11-
|
13
|
+
date: 2011-11-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
17
|
-
requirement: &
|
17
|
+
requirement: &70242081494540 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70242081494540
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rake
|
28
|
-
requirement: &
|
28
|
+
requirement: &70242081494040 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 0.9.2
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70242081494040
|
37
37
|
description: HIPAA Transaction Set Generator/Parser
|
38
38
|
email:
|
39
39
|
- robertj@promedicalinc.com
|