hippo 0.0.4

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.
Files changed (203) hide show
  1. data/.gitignore +6 -0
  2. data/CHANGELOG +9 -0
  3. data/Gemfile +11 -0
  4. data/Guardfile +14 -0
  5. data/README.md +227 -0
  6. data/Rakefile +12 -0
  7. data/bin/demo_270.rb +280 -0
  8. data/bin/demo_276.rb +296 -0
  9. data/bin/demo_835.rb +170 -0
  10. data/hippo.gemspec +24 -0
  11. data/lib/hippo/exceptions.rb +8 -0
  12. data/lib/hippo/field.rb +6 -0
  13. data/lib/hippo/loop.rb +0 -0
  14. data/lib/hippo/parser.rb +92 -0
  15. data/lib/hippo/samples/835.edi +88 -0
  16. data/lib/hippo/samples/sample_835_with.rb +272 -0
  17. data/lib/hippo/samples/sample_parsed.rb +1162 -0
  18. data/lib/hippo/segments/AK1.rb +32 -0
  19. data/lib/hippo/segments/AK2.rb +31 -0
  20. data/lib/hippo/segments/AK9.rb +82 -0
  21. data/lib/hippo/segments/AMT.rb +31 -0
  22. data/lib/hippo/segments/BHT.rb +55 -0
  23. data/lib/hippo/segments/BPR.rb +175 -0
  24. data/lib/hippo/segments/CAS.rb +159 -0
  25. data/lib/hippo/segments/CL1.rb +39 -0
  26. data/lib/hippo/segments/CLM.rb +223 -0
  27. data/lib/hippo/segments/CLP.rb +119 -0
  28. data/lib/hippo/segments/CN1.rb +55 -0
  29. data/lib/hippo/segments/CR1.rb +87 -0
  30. data/lib/hippo/segments/CR2.rb +104 -0
  31. data/lib/hippo/segments/CR3.rb +47 -0
  32. data/lib/hippo/segments/CR4.rb +239 -0
  33. data/lib/hippo/segments/CR5.rb +151 -0
  34. data/lib/hippo/segments/CR6.rb +175 -0
  35. data/lib/hippo/segments/CR7.rb +33 -0
  36. data/lib/hippo/segments/CR8.rb +79 -0
  37. data/lib/hippo/segments/CRC.rb +63 -0
  38. data/lib/hippo/segments/CTP.rb +212 -0
  39. data/lib/hippo/segments/CTX.rb +105 -0
  40. data/lib/hippo/segments/CUR.rb +175 -0
  41. data/lib/hippo/segments/DMG.rb +115 -0
  42. data/lib/hippo/segments/DN1.rb +39 -0
  43. data/lib/hippo/segments/DN2.rb +55 -0
  44. data/lib/hippo/segments/DSB.rb +71 -0
  45. data/lib/hippo/segments/DTM.rb +55 -0
  46. data/lib/hippo/segments/DTP.rb +31 -0
  47. data/lib/hippo/segments/FRM.rb +47 -0
  48. data/lib/hippo/segments/GE.rb +19 -0
  49. data/lib/hippo/segments/GS.rb +52 -0
  50. data/lib/hippo/segments/HCP.rb +127 -0
  51. data/lib/hippo/segments/HI.rb +919 -0
  52. data/lib/hippo/segments/HL.rb +44 -0
  53. data/lib/hippo/segments/HSD.rb +72 -0
  54. data/lib/hippo/segments/IEA.rb +19 -0
  55. data/lib/hippo/segments/IK3.rb +40 -0
  56. data/lib/hippo/segments/IK4.rb +63 -0
  57. data/lib/hippo/segments/IK5.rb +55 -0
  58. data/lib/hippo/segments/IMM.rb +55 -0
  59. data/lib/hippo/segments/ISA.rb +95 -0
  60. data/lib/hippo/segments/K3.rb +147 -0
  61. data/lib/hippo/segments/LIN.rb +255 -0
  62. data/lib/hippo/segments/LQ.rb +23 -0
  63. data/lib/hippo/segments/LX.rb +21 -0
  64. data/lib/hippo/segments/MEA.rb +219 -0
  65. data/lib/hippo/segments/MIA.rb +199 -0
  66. data/lib/hippo/segments/MOA.rb +79 -0
  67. data/lib/hippo/segments/N1.rb +55 -0
  68. data/lib/hippo/segments/N2.rb +23 -0
  69. data/lib/hippo/segments/N3.rb +23 -0
  70. data/lib/hippo/segments/N4.rb +63 -0
  71. data/lib/hippo/segments/NM1.rb +103 -0
  72. data/lib/hippo/segments/NTE.rb +23 -0
  73. data/lib/hippo/segments/OI.rb +55 -0
  74. data/lib/hippo/segments/PAT.rb +79 -0
  75. data/lib/hippo/segments/PER.rb +79 -0
  76. data/lib/hippo/segments/PLB.rb +191 -0
  77. data/lib/hippo/segments/PRV.rb +75 -0
  78. data/lib/hippo/segments/PS1.rb +31 -0
  79. data/lib/hippo/segments/PWK.rb +116 -0
  80. data/lib/hippo/segments/QTY.rb +155 -0
  81. data/lib/hippo/segments/RDM.rb +135 -0
  82. data/lib/hippo/segments/REF.rb +83 -0
  83. data/lib/hippo/segments/SBR.rb +79 -0
  84. data/lib/hippo/segments/SE.rb +24 -0
  85. data/lib/hippo/segments/ST.rb +31 -0
  86. data/lib/hippo/segments/STC.rb +187 -0
  87. data/lib/hippo/segments/SV1.rb +267 -0
  88. data/lib/hippo/segments/SV2.rb +147 -0
  89. data/lib/hippo/segments/SV3.rb +223 -0
  90. data/lib/hippo/segments/SV4.rb +211 -0
  91. data/lib/hippo/segments/SV5.rb +123 -0
  92. data/lib/hippo/segments/SV6.rb +155 -0
  93. data/lib/hippo/segments/SV7.rb +55 -0
  94. data/lib/hippo/segments/SVC.rb +183 -0
  95. data/lib/hippo/segments/SVD.rb +116 -0
  96. data/lib/hippo/segments/TOO.rb +67 -0
  97. data/lib/hippo/segments/TRN.rb +39 -0
  98. data/lib/hippo/segments/TS2.rb +159 -0
  99. data/lib/hippo/segments/TS3.rb +199 -0
  100. data/lib/hippo/segments/UR.rb +23 -0
  101. data/lib/hippo/segments/base.rb +148 -0
  102. data/lib/hippo/segments.rb +85 -0
  103. data/lib/hippo/transaction_sets/HIPAA_276/L2000A.rb +28 -0
  104. data/lib/hippo/transaction_sets/HIPAA_276/L2000B.rb +28 -0
  105. data/lib/hippo/transaction_sets/HIPAA_276/L2000C.rb +28 -0
  106. data/lib/hippo/transaction_sets/HIPAA_276/L2000D.rb +45 -0
  107. data/lib/hippo/transaction_sets/HIPAA_276/L2000E.rb +45 -0
  108. data/lib/hippo/transaction_sets/HIPAA_276/L2100A.rb +20 -0
  109. data/lib/hippo/transaction_sets/HIPAA_276/L2100B.rb +20 -0
  110. data/lib/hippo/transaction_sets/HIPAA_276/L2100C.rb +19 -0
  111. data/lib/hippo/transaction_sets/HIPAA_276/L2100D.rb +19 -0
  112. data/lib/hippo/transaction_sets/HIPAA_276/L2100E.rb +20 -0
  113. data/lib/hippo/transaction_sets/HIPAA_276/L2200D.rb +116 -0
  114. data/lib/hippo/transaction_sets/HIPAA_276/L2200E.rb +116 -0
  115. data/lib/hippo/transaction_sets/HIPAA_276/L2210D.rb +36 -0
  116. data/lib/hippo/transaction_sets/HIPAA_276/L2210E.rb +36 -0
  117. data/lib/hippo/transaction_sets/HIPAA_276/base.rb +86 -0
  118. data/lib/hippo/transaction_sets/HIPAA_276.rb +21 -0
  119. data/lib/hippo/transaction_sets/HIPAA_277/L2000A.rb +35 -0
  120. data/lib/hippo/transaction_sets/HIPAA_277/L2000B.rb +35 -0
  121. data/lib/hippo/transaction_sets/HIPAA_277/L2000C.rb +35 -0
  122. data/lib/hippo/transaction_sets/HIPAA_277/L2000D.rb +35 -0
  123. data/lib/hippo/transaction_sets/HIPAA_277/L2000E.rb +35 -0
  124. data/lib/hippo/transaction_sets/HIPAA_277/L2100A.rb +19 -0
  125. data/lib/hippo/transaction_sets/HIPAA_277/L2100B.rb +20 -0
  126. data/lib/hippo/transaction_sets/HIPAA_277/L2100C.rb +19 -0
  127. data/lib/hippo/transaction_sets/HIPAA_277/L2100D.rb +20 -0
  128. data/lib/hippo/transaction_sets/HIPAA_277/L2100E.rb +20 -0
  129. data/lib/hippo/transaction_sets/HIPAA_277/L2200A.rb +41 -0
  130. data/lib/hippo/transaction_sets/HIPAA_277/L2200B.rb +66 -0
  131. data/lib/hippo/transaction_sets/HIPAA_277/L2200C.rb +73 -0
  132. data/lib/hippo/transaction_sets/HIPAA_277/L2200D.rb +73 -0
  133. data/lib/hippo/transaction_sets/HIPAA_277/L2200E.rb +103 -0
  134. data/lib/hippo/transaction_sets/HIPAA_277/L2220D.rb +56 -0
  135. data/lib/hippo/transaction_sets/HIPAA_277/L2220E.rb +43 -0
  136. data/lib/hippo/transaction_sets/HIPAA_277/base.rb +77 -0
  137. data/lib/hippo/transaction_sets/HIPAA_277.rb +24 -0
  138. data/lib/hippo/transaction_sets/HIPAA_835/L1000A.rb +71 -0
  139. data/lib/hippo/transaction_sets/HIPAA_835/L1000B.rb +47 -0
  140. data/lib/hippo/transaction_sets/HIPAA_835/L2000.rb +37 -0
  141. data/lib/hippo/transaction_sets/HIPAA_835/L2100.rb +182 -0
  142. data/lib/hippo/transaction_sets/HIPAA_835/L2110.rb +85 -0
  143. data/lib/hippo/transaction_sets/HIPAA_835/base.rb +112 -0
  144. data/lib/hippo/transaction_sets/HIPAA_835.rb +12 -0
  145. data/lib/hippo/transaction_sets/HIPAA_837/L1000A.rb +30 -0
  146. data/lib/hippo/transaction_sets/HIPAA_837/L1000B.rb +21 -0
  147. data/lib/hippo/transaction_sets/HIPAA_837/L2000A.rb +65 -0
  148. data/lib/hippo/transaction_sets/HIPAA_837/L2000B.rb +49 -0
  149. data/lib/hippo/transaction_sets/HIPAA_837/L2000C.rb +42 -0
  150. data/lib/hippo/transaction_sets/HIPAA_837/L2010AA.rb +57 -0
  151. data/lib/hippo/transaction_sets/HIPAA_837/L2010AB.rb +33 -0
  152. data/lib/hippo/transaction_sets/HIPAA_837/L2010AC.rb +51 -0
  153. data/lib/hippo/transaction_sets/HIPAA_837/L2010BA.rb +74 -0
  154. data/lib/hippo/transaction_sets/HIPAA_837/L2010BB.rb +48 -0
  155. data/lib/hippo/transaction_sets/HIPAA_837/L2010CA.rb +72 -0
  156. data/lib/hippo/transaction_sets/HIPAA_837/L2300.rb +510 -0
  157. data/lib/hippo/transaction_sets/HIPAA_837/L2310A.rb +26 -0
  158. data/lib/hippo/transaction_sets/HIPAA_837/L2310B.rb +37 -0
  159. data/lib/hippo/transaction_sets/HIPAA_837/L2310C.rb +52 -0
  160. data/lib/hippo/transaction_sets/HIPAA_837/L2310D.rb +27 -0
  161. data/lib/hippo/transaction_sets/HIPAA_837/L2310E.rb +34 -0
  162. data/lib/hippo/transaction_sets/HIPAA_837/L2310F.rb +34 -0
  163. data/lib/hippo/transaction_sets/HIPAA_837/L2320.rb +122 -0
  164. data/lib/hippo/transaction_sets/HIPAA_837/L2330A.rb +43 -0
  165. data/lib/hippo/transaction_sets/HIPAA_837/L2330B.rb +92 -0
  166. data/lib/hippo/transaction_sets/HIPAA_837/L2330C.rb +26 -0
  167. data/lib/hippo/transaction_sets/HIPAA_837/L2330D.rb +26 -0
  168. data/lib/hippo/transaction_sets/HIPAA_837/L2330E.rb +27 -0
  169. data/lib/hippo/transaction_sets/HIPAA_837/L2330F.rb +27 -0
  170. data/lib/hippo/transaction_sets/HIPAA_837/L2330G.rb +26 -0
  171. data/lib/hippo/transaction_sets/HIPAA_837/L2400.rb +475 -0
  172. data/lib/hippo/transaction_sets/HIPAA_837/L2410.rb +30 -0
  173. data/lib/hippo/transaction_sets/HIPAA_837/L2420A.rb +37 -0
  174. data/lib/hippo/transaction_sets/HIPAA_837/L2420B.rb +26 -0
  175. data/lib/hippo/transaction_sets/HIPAA_837/L2420C.rb +41 -0
  176. data/lib/hippo/transaction_sets/HIPAA_837/L2420D.rb +27 -0
  177. data/lib/hippo/transaction_sets/HIPAA_837/L2420E.rb +51 -0
  178. data/lib/hippo/transaction_sets/HIPAA_837/L2420F.rb +26 -0
  179. data/lib/hippo/transaction_sets/HIPAA_837/L2420G.rb +34 -0
  180. data/lib/hippo/transaction_sets/HIPAA_837/L2420H.rb +34 -0
  181. data/lib/hippo/transaction_sets/HIPAA_837/L2430.rb +44 -0
  182. data/lib/hippo/transaction_sets/HIPAA_837/L2440.rb +23 -0
  183. data/lib/hippo/transaction_sets/HIPAA_837/base.rb +81 -0
  184. data/lib/hippo/transaction_sets/HIPAA_837.rb +45 -0
  185. data/lib/hippo/transaction_sets/HIPAA_999/L2000 - AK2.rb +30 -0
  186. data/lib/hippo/transaction_sets/HIPAA_999/L2000AK2.rb +30 -0
  187. data/lib/hippo/transaction_sets/HIPAA_999/L2100 - AK2.rb +37 -0
  188. data/lib/hippo/transaction_sets/HIPAA_999/L2100AK2.rb +37 -0
  189. data/lib/hippo/transaction_sets/HIPAA_999/L2110 - AK2.rb +23 -0
  190. data/lib/hippo/transaction_sets/HIPAA_999/L2110AK2.rb +23 -0
  191. data/lib/hippo/transaction_sets/HIPAA_999/base.rb +46 -0
  192. data/lib/hippo/transaction_sets/HIPAA_999.rb +10 -0
  193. data/lib/hippo/transaction_sets/base.rb +136 -0
  194. data/lib/hippo/transaction_sets.rb +11 -0
  195. data/lib/hippo/version.rb +3 -0
  196. data/lib/hippo.rb +15 -0
  197. data/samples/835_4010.edi +1 -0
  198. data/samples/837_4010A1.edi +1 -0
  199. data/test/test_helper.rb +118 -0
  200. data/test/test_hipaa_837.rb +396 -0
  201. data/test/test_segments_base.rb +106 -0
  202. data/test/test_transaction_sets_base.rb +85 -0
  203. metadata +277 -0
@@ -0,0 +1,34 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2310F < Hippo::TransactionSets::Base
5
+ loop_name 'L2310F' #Ambulance Drop-off Location
6
+
7
+ #Ambulance Drop-off Location
8
+ segment Hippo::Segments::NM1,
9
+ :name => 'Ambulance Drop-off Location',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 2500,
13
+ :defaults => {
14
+ 'NM101' => '45',
15
+ 'NM102' => '2'
16
+ }
17
+
18
+ #Ambulance Drop-off Location Address
19
+ segment Hippo::Segments::N3,
20
+ :name => 'Ambulance Drop-off Location Address',
21
+ :minimum => 1,
22
+ :maximum => 1,
23
+ :position => 2650
24
+
25
+ #Ambulance Drop-off Location City, State, ZIP Code
26
+ segment Hippo::Segments::N4,
27
+ :name => 'Ambulance Drop-off Location City, State, ZIP Code',
28
+ :minimum => 1,
29
+ :maximum => 1,
30
+ :position => 2700
31
+
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,122 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2320 < Hippo::TransactionSets::Base
5
+ loop_name 'L2320' #Other Subscriber Information
6
+
7
+ #Other Subscriber Information
8
+ segment Hippo::Segments::SBR,
9
+ :name => 'Other Subscriber Information',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 2900
13
+
14
+ #Claim Level Adjustments
15
+ segment Hippo::Segments::CAS,
16
+ :name => 'Claim Level Adjustments',
17
+ :minimum => 0,
18
+ :maximum => 5,
19
+ :position => 2950
20
+
21
+ #Coordination of Benefits (COB) Payer Paid Amount
22
+ segment Hippo::Segments::AMT,
23
+ :name => 'Coordination of Benefits (COB) Payer Paid Amount',
24
+ :minimum => 0,
25
+ :maximum => 1,
26
+ :position => 3000,
27
+ :defaults => {
28
+ 'AMT01' => 'D'
29
+ }
30
+
31
+ #Coordination of Benefits (COB) Total Non-Covered Amount
32
+ segment Hippo::Segments::AMT,
33
+ :name => 'Coordination of Benefits (COB) Total Non-Covered Amount',
34
+ :minimum => 0,
35
+ :maximum => 1,
36
+ :position => 3020,
37
+ :defaults => {
38
+ 'AMT01' => 'A8'
39
+ }
40
+
41
+ #Remaining Patient Liability
42
+ segment Hippo::Segments::AMT,
43
+ :name => 'Remaining Patient Liability',
44
+ :minimum => 0,
45
+ :maximum => 1,
46
+ :position => 3050,
47
+ :defaults => {
48
+ 'AMT01' => 'EAF'
49
+ }
50
+
51
+ #Other Insurance Coverage Information
52
+ segment Hippo::Segments::OI,
53
+ :name => 'Other Insurance Coverage Information',
54
+ :minimum => 1,
55
+ :maximum => 1,
56
+ :position => 3110
57
+
58
+ #Outpatient Adjudication Information
59
+ segment Hippo::Segments::MOA,
60
+ :name => 'Outpatient Adjudication Information',
61
+ :minimum => 0,
62
+ :maximum => 1,
63
+ :position => 3200
64
+
65
+ #Other Subscriber Name
66
+ loop Hippo::TransactionSets::HIPAA_837::L2330A,
67
+ :name => 'Other Subscriber Name',
68
+ :identified_by => {'NM1.NM101' => 'IL'},
69
+ :minimum => 1,
70
+ :maximum => 1,
71
+ :position => 3250
72
+
73
+ #Other Payer Name
74
+ loop Hippo::TransactionSets::HIPAA_837::L2330B,
75
+ :name => 'Other Payer Name',
76
+ :identified_by => {'NM1.NM101' => 'PR'},
77
+ :minimum => 1,
78
+ :maximum => 1,
79
+ :position => 3250
80
+
81
+ #Other Payer Referring Provider
82
+ loop Hippo::TransactionSets::HIPAA_837::L2330C,
83
+ :name => 'Other Payer Referring Provider',
84
+ :minimum => 0,
85
+ :maximum => 2,
86
+ :position => 3250
87
+
88
+ #Other Payer Rendering Provider
89
+ loop Hippo::TransactionSets::HIPAA_837::L2330D,
90
+ :name => 'Other Payer Rendering Provider',
91
+ :identified_by => {'NM1.NM101' => '82'},
92
+ :minimum => 0,
93
+ :maximum => 1,
94
+ :position => 3650
95
+
96
+ #Other Payer Service Facility Location
97
+ loop Hippo::TransactionSets::HIPAA_837::L2330E,
98
+ :name => 'Other Payer Service Facility Location',
99
+ :identified_by => {'NM1.NM101' => '77'},
100
+ :minimum => 0,
101
+ :maximum => 1,
102
+ :position => 4650
103
+
104
+ #Other Payer Supervising Provider
105
+ loop Hippo::TransactionSets::HIPAA_837::L2330F,
106
+ :name => 'Other Payer Supervising Provider',
107
+ :identified_by => {'NM1.NM101' => 'DQ'},
108
+ :minimum => 0,
109
+ :maximum => 1,
110
+ :position => 5650
111
+
112
+ #Other Payer Billing Provider
113
+ loop Hippo::TransactionSets::HIPAA_837::L2330G,
114
+ :name => 'Other Payer Billing Provider',
115
+ :identified_by => {'NM1.NM101' => '85'},
116
+ :minimum => 0,
117
+ :maximum => 1,
118
+ :position => 6350
119
+
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,43 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330A < Hippo::TransactionSets::Base
5
+ loop_name 'L2330A' #Other Subscriber Name
6
+
7
+ #Other Subscriber Name
8
+ segment Hippo::Segments::NM1,
9
+ :name => 'Other Subscriber Name',
10
+ :minimum => 1,
11
+ :maximum => 1,
12
+ :position => 3250,
13
+ :defaults => {
14
+ 'NM101' => 'IL'
15
+ }
16
+
17
+ #Other Subscriber Address
18
+ segment Hippo::Segments::N3,
19
+ :name => 'Other Subscriber Address',
20
+ :minimum => 0,
21
+ :maximum => 1,
22
+ :position => 3320
23
+
24
+ #Other Subscriber City, State, ZIP Code
25
+ segment Hippo::Segments::N4,
26
+ :name => 'Other Subscriber City, State, ZIP Code',
27
+ :minimum => 0,
28
+ :maximum => 1,
29
+ :position => 3400
30
+
31
+ #Other Subscriber Secondary Identification
32
+ segment Hippo::Segments::REF,
33
+ :name => 'Other Subscriber Secondary Identification',
34
+ :minimum => 0,
35
+ :maximum => 1,
36
+ :position => 3550,
37
+ :defaults => {
38
+ 'REF01' => 'SY'
39
+ }
40
+
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,92 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330B < Hippo::TransactionSets::Base
5
+ loop_name 'L2330B' #Other Payer Name
6
+
7
+ #Other Payer Name
8
+ segment Hippo::Segments::NM1,
9
+ :name => 'Other Payer Name',
10
+ :minimum => 1,
11
+ :maximum => 1,
12
+ :position => 3250,
13
+ :defaults => {
14
+ 'NM101' => 'PR',
15
+ 'NM102' => '2'
16
+ }
17
+
18
+ #Other Payer Address
19
+ segment Hippo::Segments::N3,
20
+ :name => 'Other Payer Address',
21
+ :minimum => 0,
22
+ :maximum => 1,
23
+ :position => 3320
24
+
25
+ #Other Payer City, State, ZIP Code
26
+ segment Hippo::Segments::N4,
27
+ :name => 'Other Payer City, State, ZIP Code',
28
+ :minimum => 0,
29
+ :maximum => 1,
30
+ :position => 3400
31
+
32
+ #Claim Check or Remittance Date
33
+ segment Hippo::Segments::DTP,
34
+ :name => 'Claim Check or Remittance Date',
35
+ :minimum => 0,
36
+ :maximum => 1,
37
+ :position => 3470,
38
+ :defaults => {
39
+ 'DTP01' => '573',
40
+ 'DTP02' => 'D8'
41
+ }
42
+
43
+ #Other Payer Secondary Identifier
44
+ segment Hippo::Segments::REF,
45
+ :name => 'Other Payer Secondary Identifier',
46
+ :minimum => 0,
47
+ :maximum => 2,
48
+ :position => 3550
49
+
50
+ #Other Payer Prior Authorization Number
51
+ segment Hippo::Segments::REF,
52
+ :name => 'Other Payer Prior Authorization Number',
53
+ :minimum => 0,
54
+ :maximum => 1,
55
+ :position => 3560,
56
+ :defaults => {
57
+ 'REF01' => 'G1'
58
+ }
59
+
60
+ #Other Payer Referral Number
61
+ segment Hippo::Segments::REF,
62
+ :name => 'Other Payer Referral Number',
63
+ :minimum => 0,
64
+ :maximum => 1,
65
+ :position => 3563,
66
+ :defaults => {
67
+ 'REF01' => '9F'
68
+ }
69
+
70
+ #Other Payer Claim Adjustment Indicator
71
+ segment Hippo::Segments::REF,
72
+ :name => 'Other Payer Claim Adjustment Indicator',
73
+ :minimum => 0,
74
+ :maximum => 1,
75
+ :position => 3570,
76
+ :defaults => {
77
+ 'REF01' => 'T4'
78
+ }
79
+
80
+ #Other Payer Claim Control Number
81
+ segment Hippo::Segments::REF,
82
+ :name => 'Other Payer Claim Control Number',
83
+ :minimum => 0,
84
+ :maximum => 1,
85
+ :position => 3575,
86
+ :defaults => {
87
+ 'REF01' => 'F8'
88
+ }
89
+
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,26 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330C < Hippo::TransactionSets::Base
5
+ loop_name 'L2330C' #Other Payer Referring Provider
6
+
7
+ #Other Payer Referring Provider
8
+ segment Hippo::Segments::NM1,
9
+ :name => 'Other Payer Referring Provider',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 3250,
13
+ :defaults => {
14
+ 'NM102' => '1'
15
+ }
16
+
17
+ #Other Payer Referring Provider Secondary Identification
18
+ segment Hippo::Segments::REF,
19
+ :name => 'Other Payer Referring Provider Secondary Identification',
20
+ :minimum => 1,
21
+ :maximum => 3,
22
+ :position => 3550
23
+
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330D < Hippo::TransactionSets::Base
5
+ loop_name 'L2330D' #Other Payer Rendering Provider
6
+
7
+ #Other Payer Rendering Provider
8
+ segment Hippo::Segments::NM1,
9
+ :name => 'Other Payer Rendering Provider',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 3650,
13
+ :defaults => {
14
+ 'NM101' => '82'
15
+ }
16
+
17
+ #Other Payer Rendering Provider Secondary Identification
18
+ segment Hippo::Segments::REF,
19
+ :name => 'Other Payer Rendering Provider Secondary Identification',
20
+ :minimum => 1,
21
+ :maximum => 3,
22
+ :position => 4150
23
+
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,27 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330E < Hippo::TransactionSets::Base
5
+ loop_name 'L2330E' #Other Payer Service Facility Location
6
+
7
+ #Other Payer Service Facility Location
8
+ segment Hippo::Segments::NM1,
9
+ :name => 'Other Payer Service Facility Location',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 4650,
13
+ :defaults => {
14
+ 'NM101' => '77',
15
+ 'NM102' => '2'
16
+ }
17
+
18
+ #Other Payer Service Facility Location Secondary Identification
19
+ segment Hippo::Segments::REF,
20
+ :name => 'Other Payer Service Facility Location Secondary Identification',
21
+ :minimum => 1,
22
+ :maximum => 3,
23
+ :position => 5550
24
+
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330F < Hippo::TransactionSets::Base
5
+ loop_name 'L2330F' #Other Payer Supervising Provider
6
+
7
+ #Other Payer Supervising Provider
8
+ segment Hippo::Segments::NM1,
9
+ :name => 'Other Payer Supervising Provider',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 5650,
13
+ :defaults => {
14
+ 'NM101' => 'DQ',
15
+ 'NM102' => '1'
16
+ }
17
+
18
+ #Other Payer Supervising Provider Secondary Identification
19
+ segment Hippo::Segments::REF,
20
+ :name => 'Other Payer Supervising Provider Secondary Identification',
21
+ :minimum => 1,
22
+ :maximum => 3,
23
+ :position => 6050
24
+
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,26 @@
1
+ module Hippo::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330G < Hippo::TransactionSets::Base
5
+ loop_name 'L2330G' #Other Payer Billing Provider
6
+
7
+ #Other Payer Billing Provider
8
+ segment Hippo::Segments::NM1,
9
+ :name => 'Other Payer Billing Provider',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 6350,
13
+ :defaults => {
14
+ 'NM101' => '85'
15
+ }
16
+
17
+ #Other Payer Billing Provider Secondary Identification
18
+ segment Hippo::Segments::REF,
19
+ :name => 'Other Payer Billing Provider Secondary Identification',
20
+ :minimum => 1,
21
+ :maximum => 2,
22
+ :position => 6600
23
+
24
+ end
25
+ end
26
+ end