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 CHANGED
@@ -1,4 +1,6 @@
1
- 0.0.8 - TBD
1
+ 0.0.9 - 2011/11/29
2
+ * Update Enveloping structures for 5010.
3
+ 0.0.8 - 2011/11/15
2
4
  * Add ability to use Regexp with TransactionSet::Base#find_by_name.
3
5
  0.0.7 - 2011/11/15
4
6
  * Add TransactionSet::Base#find_by_name to allow searching for components
@@ -3,17 +3,21 @@ module Hippo::Segments
3
3
 
4
4
  segment_identifier 'GE'
5
5
 
6
- field :name => 'NumberOfTransactionSetsIncluded',
7
- :datatype => :alpha_numeric,
8
- :minimum => 1,
9
- :maximum => 6,
10
- :required => false
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 => 'GroupControlNumber',
13
- :datatype => :alpha_numeric,
14
- :minimum => 1,
15
- :maximum => 9,
16
- :required => false
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
@@ -3,50 +3,69 @@ module Hippo::Segments
3
3
 
4
4
  segment_identifier 'GS'
5
5
 
6
- field :name => 'FunctionalIdentifierCode',
7
- :datatype => :list,
8
- :list => [ 'AA','AB','AC','AD','AE','AF','AG','AH','AI','AK','AL','AM','AN','AO','AP','AQ','AR','AS','AT','AU','AV','AW','AX','AY','AZ','BA','BB','BC','BD','BE','BF','BL','BS','CA','CB','CC','CD','CE','CF','CH','CI','CJ','CK','CL','CM','CN','CO','CP','CQ','CR','CS','CT','CU','CV','CW','D3','D4','D5','DA','DD','DF','DI','DM','DS','DX','EC','ED','EI','EP','ER','ES','EV','EX','FA','FB','FC','FG','FH','FR','FT','GB','GC','GE','GF','GL','GP','GR','GT','HB','HC','HI','HN','HP','HR','HS','HU','HV','IA','IB','IC','ID','IE','IF','IG','IH','IJ','IM','IN','IO','IR','IS','JB','KM','LA','LB','LI','LN','LR','LS','LT','MA','MC','MD','ME','MF','MG','MH','MI','MJ','MK','MM','MN','MO','MP','MQ','MR','MS','MT','MV','MW','MX','MY','MZ','NC','NL','NP','NR','NT','OC','OG','OR','OW','PA','PB','PC','PD','PE','PF','PG','PH','PI','PJ','PK','PL','PN','PO','PQ','PR','PS','PT','PU','PV','PW','PY','QG','QM','QO','RA','RB','RC','RD','RE','RF','RG','RH','RI','RJ','RK','RL','RM','RN','RO','RP','RQ','RR','RS','RT','RU','RV','RW','RX','RY','RZ','SA','SB','SC','SD','SE','SG','SH','SI','SJ','SL','SM','SN','SO','SP','SQ','SR','SS','ST','SU','SV','SW','TA','TB','TD','TE','TF','TI','TM','TN','TO','TP','TR','TS','TT','TU','TX','UA','UB','UC','UD','UI','UP','UW','VA','VB','VC','VD','VE','VH','VI','VS','WA','WB','WG','WI','WL','WR','WT'],
9
- :required => false
10
-
11
- field :name => 'ApplicationSendersCode',
12
- :datatype => :alpha_numeric,
13
- :minimum => 2,
14
- :maximum => 15,
15
- :required => false
16
-
17
- field :name => 'ApplicationReceiversCode',
18
- :datatype => :alpha_numeric,
19
- :minimum => 2,
20
- :maximum => 15,
21
- :required => false
22
-
23
- field :name => 'Date',
24
- :datatype => :alpha_numeric,
25
- :minimum => 8,
26
- :maximum => 8,
27
- :required => false
28
-
29
- field :name => 'Time',
30
- :datatype => :alpha_numeric,
31
- :minimum => 4,
32
- :maximum => 8,
33
- :required => false
34
-
35
- field :name => 'GroupControlNumber',
36
- :datatype => :alpha_numeric,
37
- :minimum => 1,
38
- :maximum => 9,
39
- :required => false
40
-
41
- field :name => 'ResponsibleAgencyCode',
42
- :datatype => :list,
43
- :list => [ 'T','X'],
44
- :required => false
45
-
46
- field :name => 'VersionReleaseIndustryIdentifierCode',
47
- :datatype => :list,
48
- :list => [ '001000','002000','002001','002002','002003','002031','002040','002041','002042','003000','003010','003011','003012','003020','003021','003022','003030','003031','003032','003040','003041','003042','003050','003051','003052','003060','003061','003062','003070','003071','003072','004000','004010','004011','004012','004020','004021','004022','004030','004031','004032','004040','004041','004042','004050'],
49
- :required => false
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
@@ -3,17 +3,21 @@ module Hippo::Segments
3
3
 
4
4
  segment_identifier 'IEA'
5
5
 
6
- field :name => 'NumberOfIncludedFunctionalGroups',
7
- :datatype => :alpha_numeric,
8
- :minimum => 1,
9
- :maximum => 5,
10
- :required => false
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 => 'InterchangeControlNumber',
13
- :datatype => :alpha_numeric,
14
- :minimum => 9,
15
- :maximum => 9,
16
- :required => false
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
@@ -4,92 +4,133 @@ module Hippo::Segments
4
4
  segment_identifier 'ISA'
5
5
  segment_fixed_width
6
6
 
7
- field :name => 'AuthorizationInformationQualifier',
8
- :datatype => :list,
9
- :list => [ '00','01','02','03','04','05','06'],
10
- :maximum => 2,
11
- :required => false
12
-
13
- field :name => 'AuthorizationInformation',
14
- :datatype => :alpha_numeric,
15
- :maximum => 10,
16
- :required => false
17
-
18
- field :name => 'SecurityInformationQualifier',
19
- :datatype => :list,
20
- :list => [ '00','01'],
21
- :maximum => 2,
22
- :required => false
23
-
24
- field :name => 'SecurityInformation',
25
- :datatype => :alpha_numeric,
26
- :maximum => 10,
27
- :required => false
28
-
29
- field :name => 'InterchangeIdQualifier1',
30
- :datatype => :list,
31
- :list => [ '01','02','03','04','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','AM','NR','SN','ZZ'],
32
- :maximum => 2,
33
- :required => false
34
-
35
- field :name => 'InterchangeSenderId',
36
- :datatype => :alpha_numeric,
37
- :maximum => 15,
38
- :required => false
39
-
40
- field :name => 'InterchangeIdQualifier2',
41
- :datatype => :alpha_numeric,
42
- :maximum => 2,
43
- :required => false
44
-
45
- field :name => 'InterchangeReceiverId',
46
- :datatype => :alpha_numeric,
47
- :maximum => 15,
48
- :required => false
49
-
50
- field :name => 'InterchangeDate',
51
- :datatype => :alpha_numeric,
52
- :maximum => 6,
53
- :required => false
54
-
55
- field :name => 'InterchangeTime',
56
- :datatype => :alpha_numeric,
57
- :maximum => 4,
58
- :required => false
59
-
60
- field :name => 'InterchangeControlStandardsIdentifier',
61
- :datatype => :list,
62
- :list => [ 'U'],
63
- :maximum => 1,
64
- :required => false
65
-
66
- field :name => 'InterchangeControlVersionNumber',
67
- :datatype => :list,
68
- :list => [ '00200','00201','00204','00300','00301','00302','00303','00304','00305','00306','00307','00400','00401','00402'],
69
- :maximum => 5,
70
- :required => false
71
-
72
- field :name => 'InterchangeControlNumber',
73
- :datatype => :alpha_numeric,
74
- :maximum => 9,
75
- :required => false
76
-
77
- field :name => 'AcknowledgmentRequested',
78
- :datatype => :list,
79
- :list => [ '0','1'],
80
- :maximum => 1,
81
- :required => false
82
-
83
- field :name => 'UsageIndicator',
84
- :datatype => :list,
85
- :list => [ 'I','P','T'],
86
- :maximum => 1,
87
- :required => false
88
-
89
- field :name => 'ComponentElementSeparator',
90
- :datatype => :alpha_numeric,
91
- :maximum => 1,
92
- :required => false
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
@@ -1,3 +1,3 @@
1
1
  module Hippo
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
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-15 00:00:00.000000000 Z
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: &70362864845760 !ruby/object:Gem::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: *70362864845760
25
+ version_requirements: *70242081494540
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rake
28
- requirement: &70362864845260 !ruby/object:Gem::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: *70362864845260
36
+ version_requirements: *70242081494040
37
37
  description: HIPAA Transaction Set Generator/Parser
38
38
  email:
39
39
  - robertj@promedicalinc.com