hippo_eyeDoc 0.0.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.
Files changed (284) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +124 -0
  3. data/Gemfile +10 -0
  4. data/Guardfile +14 -0
  5. data/LICENSE +24 -0
  6. data/README.md +385 -0
  7. data/Rakefile +12 -0
  8. data/hippo_eyeDoc.gemspec +25 -0
  9. data/lib/hippo_eyeDoc.rb +15 -0
  10. data/lib/hippo_eyeDoc/code_lists.rb +10 -0
  11. data/lib/hippo_eyeDoc/code_lists/claim_adjustment_reason_codes.rb +2252 -0
  12. data/lib/hippo_eyeDoc/code_lists/claim_status_category_codes.rb +376 -0
  13. data/lib/hippo_eyeDoc/code_lists/claim_status_codes.rb +5456 -0
  14. data/lib/hippo_eyeDoc/code_lists/remittance_advice_remark_codes.rb +6280 -0
  15. data/lib/hippo_eyeDoc/code_lists/service_type_codes.rb +1299 -0
  16. data/lib/hippo_eyeDoc/code_lists/taxonomy_codes.rb +9224 -0
  17. data/lib/hippo_eyeDoc/exceptions.rb +10 -0
  18. data/lib/hippo_eyeDoc/field.rb +149 -0
  19. data/lib/hippo_eyeDoc/outputters.rb +4 -0
  20. data/lib/hippo_eyeDoc/outputters/html.rb +39 -0
  21. data/lib/hippo_eyeDoc/outputters/paper_claim.rb +7 -0
  22. data/lib/hippo_eyeDoc/outputters/pdf.rb +18 -0
  23. data/lib/hippo_eyeDoc/outputters/pretty_string.rb +45 -0
  24. data/lib/hippo_eyeDoc/parser.rb +70 -0
  25. data/lib/hippo_eyeDoc/parser/segment.rb +35 -0
  26. data/lib/hippo_eyeDoc/parser/transaction_set.rb +45 -0
  27. data/lib/hippo_eyeDoc/segments.rb +111 -0
  28. data/lib/hippo_eyeDoc/segments/AAA.rb +39 -0
  29. data/lib/hippo_eyeDoc/segments/AK1.rb +31 -0
  30. data/lib/hippo_eyeDoc/segments/AK2.rb +31 -0
  31. data/lib/hippo_eyeDoc/segments/AK3.rb +39 -0
  32. data/lib/hippo_eyeDoc/segments/AK4.rb +59 -0
  33. data/lib/hippo_eyeDoc/segments/AK5.rb +55 -0
  34. data/lib/hippo_eyeDoc/segments/AK9.rb +79 -0
  35. data/lib/hippo_eyeDoc/segments/AMT.rb +31 -0
  36. data/lib/hippo_eyeDoc/segments/BHT.rb +55 -0
  37. data/lib/hippo_eyeDoc/segments/BPR.rb +175 -0
  38. data/lib/hippo_eyeDoc/segments/CAS.rb +159 -0
  39. data/lib/hippo_eyeDoc/segments/CL1.rb +39 -0
  40. data/lib/hippo_eyeDoc/segments/CLM.rb +223 -0
  41. data/lib/hippo_eyeDoc/segments/CLP.rb +119 -0
  42. data/lib/hippo_eyeDoc/segments/CN1.rb +55 -0
  43. data/lib/hippo_eyeDoc/segments/CR1.rb +87 -0
  44. data/lib/hippo_eyeDoc/segments/CR2.rb +103 -0
  45. data/lib/hippo_eyeDoc/segments/CR3.rb +47 -0
  46. data/lib/hippo_eyeDoc/segments/CR4.rb +239 -0
  47. data/lib/hippo_eyeDoc/segments/CR5.rb +151 -0
  48. data/lib/hippo_eyeDoc/segments/CR6.rb +175 -0
  49. data/lib/hippo_eyeDoc/segments/CR7.rb +31 -0
  50. data/lib/hippo_eyeDoc/segments/CR8.rb +79 -0
  51. data/lib/hippo_eyeDoc/segments/CRC.rb +63 -0
  52. data/lib/hippo_eyeDoc/segments/CTP.rb +211 -0
  53. data/lib/hippo_eyeDoc/segments/CTX.rb +99 -0
  54. data/lib/hippo_eyeDoc/segments/CUR.rb +175 -0
  55. data/lib/hippo_eyeDoc/segments/DMG.rb +115 -0
  56. data/lib/hippo_eyeDoc/segments/DN1.rb +39 -0
  57. data/lib/hippo_eyeDoc/segments/DN2.rb +55 -0
  58. data/lib/hippo_eyeDoc/segments/DSB.rb +71 -0
  59. data/lib/hippo_eyeDoc/segments/DTM.rb +55 -0
  60. data/lib/hippo_eyeDoc/segments/DTP.rb +31 -0
  61. data/lib/hippo_eyeDoc/segments/EB.rb +207 -0
  62. data/lib/hippo_eyeDoc/segments/EM.rb +63 -0
  63. data/lib/hippo_eyeDoc/segments/EQ.rb +135 -0
  64. data/lib/hippo_eyeDoc/segments/FRM.rb +47 -0
  65. data/lib/hippo_eyeDoc/segments/GE.rb +23 -0
  66. data/lib/hippo_eyeDoc/segments/GS.rb +71 -0
  67. data/lib/hippo_eyeDoc/segments/HCP.rb +127 -0
  68. data/lib/hippo_eyeDoc/segments/HI.rb +919 -0
  69. data/lib/hippo_eyeDoc/segments/HL.rb +44 -0
  70. data/lib/hippo_eyeDoc/segments/HSD.rb +71 -0
  71. data/lib/hippo_eyeDoc/segments/IEA.rb +23 -0
  72. data/lib/hippo_eyeDoc/segments/III.rb +195 -0
  73. data/lib/hippo_eyeDoc/segments/IK3.rb +39 -0
  74. data/lib/hippo_eyeDoc/segments/IK4.rb +59 -0
  75. data/lib/hippo_eyeDoc/segments/IK5.rb +55 -0
  76. data/lib/hippo_eyeDoc/segments/IMM.rb +55 -0
  77. data/lib/hippo_eyeDoc/segments/INS.rb +171 -0
  78. data/lib/hippo_eyeDoc/segments/ISA.rb +136 -0
  79. data/lib/hippo_eyeDoc/segments/K3.rb +147 -0
  80. data/lib/hippo_eyeDoc/segments/LE.rb +15 -0
  81. data/lib/hippo_eyeDoc/segments/LIN.rb +255 -0
  82. data/lib/hippo_eyeDoc/segments/LQ.rb +23 -0
  83. data/lib/hippo_eyeDoc/segments/LS.rb +15 -0
  84. data/lib/hippo_eyeDoc/segments/LX.rb +20 -0
  85. data/lib/hippo_eyeDoc/segments/MEA.rb +219 -0
  86. data/lib/hippo_eyeDoc/segments/MIA.rb +199 -0
  87. data/lib/hippo_eyeDoc/segments/MOA.rb +79 -0
  88. data/lib/hippo_eyeDoc/segments/MPI.rb +63 -0
  89. data/lib/hippo_eyeDoc/segments/MSG.rb +31 -0
  90. data/lib/hippo_eyeDoc/segments/N1.rb +55 -0
  91. data/lib/hippo_eyeDoc/segments/N2.rb +23 -0
  92. data/lib/hippo_eyeDoc/segments/N3.rb +23 -0
  93. data/lib/hippo_eyeDoc/segments/N4.rb +63 -0
  94. data/lib/hippo_eyeDoc/segments/NM1.rb +103 -0
  95. data/lib/hippo_eyeDoc/segments/NTE.rb +23 -0
  96. data/lib/hippo_eyeDoc/segments/OI.rb +55 -0
  97. data/lib/hippo_eyeDoc/segments/PAT.rb +79 -0
  98. data/lib/hippo_eyeDoc/segments/PCT.rb +23 -0
  99. data/lib/hippo_eyeDoc/segments/PDP.rb +31 -0
  100. data/lib/hippo_eyeDoc/segments/PDR.rb +39 -0
  101. data/lib/hippo_eyeDoc/segments/PER.rb +79 -0
  102. data/lib/hippo_eyeDoc/segments/PID.rb +79 -0
  103. data/lib/hippo_eyeDoc/segments/PKD.rb +47 -0
  104. data/lib/hippo_eyeDoc/segments/PLB.rb +191 -0
  105. data/lib/hippo_eyeDoc/segments/PRV.rb +75 -0
  106. data/lib/hippo_eyeDoc/segments/PS1.rb +31 -0
  107. data/lib/hippo_eyeDoc/segments/PWK.rb +115 -0
  108. data/lib/hippo_eyeDoc/segments/QTY.rb +155 -0
  109. data/lib/hippo_eyeDoc/segments/RDM.rb +135 -0
  110. data/lib/hippo_eyeDoc/segments/REF.rb +83 -0
  111. data/lib/hippo_eyeDoc/segments/SBR.rb +79 -0
  112. data/lib/hippo_eyeDoc/segments/SD1.rb +71 -0
  113. data/lib/hippo_eyeDoc/segments/SE.rb +23 -0
  114. data/lib/hippo_eyeDoc/segments/ST.rb +31 -0
  115. data/lib/hippo_eyeDoc/segments/STC.rb +187 -0
  116. data/lib/hippo_eyeDoc/segments/SV1.rb +263 -0
  117. data/lib/hippo_eyeDoc/segments/SV2.rb +147 -0
  118. data/lib/hippo_eyeDoc/segments/SV3.rb +219 -0
  119. data/lib/hippo_eyeDoc/segments/SV4.rb +211 -0
  120. data/lib/hippo_eyeDoc/segments/SV5.rb +123 -0
  121. data/lib/hippo_eyeDoc/segments/SV6.rb +151 -0
  122. data/lib/hippo_eyeDoc/segments/SV7.rb +55 -0
  123. data/lib/hippo_eyeDoc/segments/SVC.rb +183 -0
  124. data/lib/hippo_eyeDoc/segments/SVD.rb +115 -0
  125. data/lib/hippo_eyeDoc/segments/TA1.rb +46 -0
  126. data/lib/hippo_eyeDoc/segments/TOO.rb +67 -0
  127. data/lib/hippo_eyeDoc/segments/TRN.rb +39 -0
  128. data/lib/hippo_eyeDoc/segments/TS2.rb +159 -0
  129. data/lib/hippo_eyeDoc/segments/TS3.rb +199 -0
  130. data/lib/hippo_eyeDoc/segments/UR.rb +23 -0
  131. data/lib/hippo_eyeDoc/segments/VEH.rb +159 -0
  132. data/lib/hippo_eyeDoc/segments/base.rb +190 -0
  133. data/lib/hippo_eyeDoc/separator.rb +79 -0
  134. data/lib/hippo_eyeDoc/transaction_sets.rb +16 -0
  135. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270.rb +15 -0
  136. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2000A.rb +43 -0
  137. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2000B.rb +42 -0
  138. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2000C.rb +52 -0
  139. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2000D.rb +41 -0
  140. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2100A.rb +21 -0
  141. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2100B.rb +55 -0
  142. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2100C.rb +97 -0
  143. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2100D.rb +0 -0
  144. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2110C.rb +67 -0
  145. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2110D.rb +47 -0
  146. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/base.rb +47 -0
  147. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271.rb +19 -0
  148. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2000A.rb +55 -0
  149. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2000B.rb +43 -0
  150. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2000C.rb +52 -0
  151. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2000D.rb +41 -0
  152. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2100A.rb +43 -0
  153. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2100B.rb +67 -0
  154. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2100C.rb +124 -0
  155. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2100D.rb +124 -0
  156. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2110C.rb +98 -0
  157. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2110D.rb +98 -0
  158. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2115C.rb +16 -0
  159. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2115D.rb +16 -0
  160. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2120C.rb +54 -0
  161. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2120D.rb +54 -0
  162. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/base.rb +47 -0
  163. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276.rb +19 -0
  164. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000A.rb +32 -0
  165. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000B.rb +32 -0
  166. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000C.rb +32 -0
  167. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000D.rb +52 -0
  168. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000E.rb +50 -0
  169. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100A.rb +21 -0
  170. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100B.rb +21 -0
  171. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100C.rb +21 -0
  172. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100D.rb +21 -0
  173. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100E.rb +20 -0
  174. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2200D.rb +117 -0
  175. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2200E.rb +117 -0
  176. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2210D.rb +37 -0
  177. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2210E.rb +37 -0
  178. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/base.rb +90 -0
  179. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277.rb +22 -0
  180. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000A.rb +42 -0
  181. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000B.rb +42 -0
  182. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000C.rb +52 -0
  183. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000D.rb +41 -0
  184. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000E.rb +40 -0
  185. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100A.rb +21 -0
  186. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100B.rb +21 -0
  187. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100C.rb +21 -0
  188. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100D.rb +21 -0
  189. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100E.rb +20 -0
  190. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200A.rb +41 -0
  191. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200B.rb +69 -0
  192. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200C.rb +79 -0
  193. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200D.rb +77 -0
  194. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200E.rb +104 -0
  195. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2220D.rb +57 -0
  196. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2220E.rb +44 -0
  197. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/base.rb +70 -0
  198. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835.rb +10 -0
  199. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L1000A.rb +74 -0
  200. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L1000B.rb +54 -0
  201. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L2000.rb +41 -0
  202. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L2100.rb +213 -0
  203. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L2110.rb +106 -0
  204. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/base.rb +122 -0
  205. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837.rb +43 -0
  206. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L1000A.rb +32 -0
  207. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L1000B.rb +21 -0
  208. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2000A.rb +88 -0
  209. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2000B.rb +87 -0
  210. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2000C.rb +54 -0
  211. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010AA.rb +65 -0
  212. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010AB.rb +34 -0
  213. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010AC.rb +55 -0
  214. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010BA.rb +76 -0
  215. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010BB.rb +55 -0
  216. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010CA.rb +76 -0
  217. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2300.rb +570 -0
  218. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310A.rb +30 -0
  219. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310B.rb +41 -0
  220. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310C.rb +55 -0
  221. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310D.rb +30 -0
  222. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310E.rb +34 -0
  223. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310F.rb +34 -0
  224. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2320.rb +157 -0
  225. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330A.rb +45 -0
  226. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330B.rb +96 -0
  227. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330C.rb +30 -0
  228. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330D.rb +30 -0
  229. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330E.rb +30 -0
  230. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330F.rb +30 -0
  231. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330G.rb +30 -0
  232. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2400.rb +537 -0
  233. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2410.rb +36 -0
  234. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420A.rb +41 -0
  235. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420B.rb +30 -0
  236. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420C.rb +44 -0
  237. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420D.rb +30 -0
  238. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420E.rb +55 -0
  239. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420F.rb +30 -0
  240. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420G.rb +34 -0
  241. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420H.rb +34 -0
  242. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2430.rb +47 -0
  243. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2440.rb +26 -0
  244. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/base.rb +71 -0
  245. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_997.rb +7 -0
  246. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_997/L2000.rb +36 -0
  247. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_997/L2100.rb +29 -0
  248. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_997/base.rb +49 -0
  249. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999.rb +8 -0
  250. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2000 - AK2.rb +30 -0
  251. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2000AK2.rb +36 -0
  252. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2100 - AK2.rb +37 -0
  253. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2100AK2.rb +43 -0
  254. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2110 - AK2.rb +23 -0
  255. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2110AK2.rb +26 -0
  256. data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/base.rb +49 -0
  257. data/lib/hippo_eyeDoc/transaction_sets/base.rb +236 -0
  258. data/lib/hippo_eyeDoc/transaction_sets/component.rb +96 -0
  259. data/lib/hippo_eyeDoc/transaction_sets/repeating_component.rb +48 -0
  260. data/lib/hippo_eyeDoc/utilities.rb +37 -0
  261. data/lib/hippo_eyeDoc/version.rb +3 -0
  262. data/samples/005010X221A1_business_scenario_1.edi +1 -0
  263. data/samples/005010X221A1_tmhp_example.edi +1 -0
  264. data/samples/005010X222A1_anesthesia.edi +1 -0
  265. data/samples/005010X222A1_commercial_health_insurance.edi +1 -0
  266. data/samples/005010X231A1_01.edi +11 -0
  267. data/samples/005010X231A1_02.edi +11 -0
  268. data/samples/200823.EDI +22 -0
  269. data/samples/837_L2000A_01.edi +1 -0
  270. data/samples/837_L2000A_02.edi +1 -0
  271. data/samples/parse_277.rb +127 -0
  272. data/samples/parse_999.rb +122 -0
  273. data/samples/sample835.html +1 -0
  274. data/samples/sample835.pretty_string +28 -0
  275. data/samples/sample837.html +1 -0
  276. data/test/test_helper.rb +155 -0
  277. data/test/test_hipaa_835.rb +229 -0
  278. data/test/test_hipaa_837.rb +596 -0
  279. data/test/test_html_outputter.rb +22 -0
  280. data/test/test_parser.rb +138 -0
  281. data/test/test_pretty_string_outputter.rb +33 -0
  282. data/test/test_segments_base.rb +201 -0
  283. data/test/test_transaction_sets_base.rb +122 -0
  284. metadata +356 -0
@@ -0,0 +1,30 @@
1
+ module Hippo_eyeDoc::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330C < Hippo_eyeDoc::TransactionSets::Base
5
+ loop_name 'L2330C' #Other Payer Referring Provider
6
+
7
+ #Other Payer Referring Provider
8
+ segment Hippo_eyeDoc::Segments::NM1,
9
+ :name => 'Other Payer Referring Provider',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 3250,
13
+ :identified_by => {
14
+ 'NM101' => ["DN", "P3"],
15
+ 'NM102' => '1'
16
+ }
17
+
18
+ #Other Payer Referring Provider Secondary Identification
19
+ segment Hippo_eyeDoc::Segments::REF,
20
+ :name => 'Other Payer Referring Provider Secondary Identification',
21
+ :minimum => 1,
22
+ :maximum => 3,
23
+ :position => 3550,
24
+ :identified_by => {
25
+ 'REF01' => ["0B", "1G", "G2"]
26
+ }
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ module Hippo_eyeDoc::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330D < Hippo_eyeDoc::TransactionSets::Base
5
+ loop_name 'L2330D' #Other Payer Rendering Provider
6
+
7
+ #Other Payer Rendering Provider
8
+ segment Hippo_eyeDoc::Segments::NM1,
9
+ :name => 'Other Payer Rendering Provider',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 3650,
13
+ :identified_by => {
14
+ 'NM101' => '82',
15
+ 'NM102' => ["1", "2"]
16
+ }
17
+
18
+ #Other Payer Rendering Provider Secondary Identification
19
+ segment Hippo_eyeDoc::Segments::REF,
20
+ :name => 'Other Payer Rendering Provider Secondary Identification',
21
+ :minimum => 1,
22
+ :maximum => 3,
23
+ :position => 4150,
24
+ :identified_by => {
25
+ 'REF01' => ["0B", "1G", "G2", "LU"]
26
+ }
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ module Hippo_eyeDoc::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330E < Hippo_eyeDoc::TransactionSets::Base
5
+ loop_name 'L2330E' #Other Payer Service Facility Location
6
+
7
+ #Other Payer Service Facility Location
8
+ segment Hippo_eyeDoc::Segments::NM1,
9
+ :name => 'Other Payer Service Facility Location',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 4650,
13
+ :identified_by => {
14
+ 'NM101' => '77',
15
+ 'NM102' => '2'
16
+ }
17
+
18
+ #Other Payer Service Facility Location Secondary Identification
19
+ segment Hippo_eyeDoc::Segments::REF,
20
+ :name => 'Other Payer Service Facility Location Secondary Identification',
21
+ :minimum => 1,
22
+ :maximum => 3,
23
+ :position => 5550,
24
+ :identified_by => {
25
+ 'REF01' => ["0B", "G2", "LU"]
26
+ }
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ module Hippo_eyeDoc::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330F < Hippo_eyeDoc::TransactionSets::Base
5
+ loop_name 'L2330F' #Other Payer Supervising Provider
6
+
7
+ #Other Payer Supervising Provider
8
+ segment Hippo_eyeDoc::Segments::NM1,
9
+ :name => 'Other Payer Supervising Provider',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 5650,
13
+ :identified_by => {
14
+ 'NM101' => 'DQ',
15
+ 'NM102' => '1'
16
+ }
17
+
18
+ #Other Payer Supervising Provider Secondary Identification
19
+ segment Hippo_eyeDoc::Segments::REF,
20
+ :name => 'Other Payer Supervising Provider Secondary Identification',
21
+ :minimum => 1,
22
+ :maximum => 3,
23
+ :position => 6050,
24
+ :identified_by => {
25
+ 'REF01' => ["0B", "1G", "G2", "LU"]
26
+ }
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ module Hippo_eyeDoc::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2330G < Hippo_eyeDoc::TransactionSets::Base
5
+ loop_name 'L2330G' #Other Payer Billing Provider
6
+
7
+ #Other Payer Billing Provider
8
+ segment Hippo_eyeDoc::Segments::NM1,
9
+ :name => 'Other Payer Billing Provider',
10
+ :minimum => 0,
11
+ :maximum => 1,
12
+ :position => 6350,
13
+ :identified_by => {
14
+ 'NM101' => '85',
15
+ 'NM102' => ["1", "2"]
16
+ }
17
+
18
+ #Other Payer Billing Provider Secondary Identification
19
+ segment Hippo_eyeDoc::Segments::REF,
20
+ :name => 'Other Payer Billing Provider Secondary Identification',
21
+ :minimum => 1,
22
+ :maximum => 2,
23
+ :position => 6600,
24
+ :identified_by => {
25
+ 'REF01' => ["G2", "LU"]
26
+ }
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,537 @@
1
+ module Hippo_eyeDoc::TransactionSets
2
+ module HIPAA_837
3
+
4
+ class L2400 < Hippo_eyeDoc::TransactionSets::Base
5
+ loop_name 'L2400' #Service Line Number
6
+
7
+ #Service Line Number
8
+ segment Hippo_eyeDoc::Segments::LX,
9
+ :name => 'Service Line Number',
10
+ :minimum => 1,
11
+ :maximum => 1,
12
+ :position => 3650
13
+
14
+ #Professional Service
15
+ segment Hippo_eyeDoc::Segments::SV1,
16
+ :name => 'Professional Service',
17
+ :minimum => 1,
18
+ :maximum => 1,
19
+ :position => 3700,
20
+ :identified_by => {
21
+ 'SV103' => ["MJ", "UN"]
22
+ }
23
+
24
+ #Durable Medical Equipment Service
25
+ segment Hippo_eyeDoc::Segments::SV5,
26
+ :name => 'Durable Medical Equipment Service',
27
+ :minimum => 0,
28
+ :maximum => 1,
29
+ :position => 4000,
30
+ :identified_by => {
31
+ 'SV502' => 'DA',
32
+ 'SV506' => ["1", "4", "6"]
33
+ }
34
+
35
+ #Line Supplemental Information
36
+ segment Hippo_eyeDoc::Segments::PWK,
37
+ :name => 'Line Supplemental Information',
38
+ :minimum => 0,
39
+ :maximum => 10,
40
+ :position => 4200,
41
+ :identified_by => {
42
+ 'PWK01' => ["03", "04", "05", "06", "07", "08", "09", "10", "11", "13", "15", "21", "A3", "A4", "AM", "AS", "B2", "B3", "B4", "BR", "BS", "BT", "CB", "CK", "CT", "D2", "DA", "DB", "DG", "DJ", "DS", "EB", "HC", "HR", "I5", "IR", "LA", "M1", "MT", "NN", "OB", "OC", "OD", "OE", "OX", "OZ", "P4", "P5", "PE", "PN", "PO", "PQ", "PY", "PZ", "RB", "RR", "RT", "RX", "SG", "V5", "XP"],
43
+ 'PWK02' => ["AA", "BM", "EL", "EM", "FT", "FX"]
44
+ }
45
+
46
+ #Durable Medical Equipment Certificate of Medical Necessity Indicator
47
+ segment Hippo_eyeDoc::Segments::PWK,
48
+ :name => 'Durable Medical Equipment Certificate of Medical Necessity Indicator',
49
+ :minimum => 0,
50
+ :maximum => 1,
51
+ :position => 4220,
52
+ :identified_by => {
53
+ 'PWK01' => 'CT',
54
+ 'PWK02' => ["AB", "AD", "AF", "AG", "NS"]
55
+ }
56
+
57
+ #Ambulance Transport Information
58
+ segment Hippo_eyeDoc::Segments::CR1,
59
+ :name => 'Ambulance Transport Information',
60
+ :minimum => 0,
61
+ :maximum => 1,
62
+ :position => 4250,
63
+ :identified_by => {
64
+ 'CR104' => ["A", "B", "C", "D", "E"],
65
+ 'CR105' => 'DH'
66
+ }
67
+
68
+ #Durable Medical Equipment Certification
69
+ segment Hippo_eyeDoc::Segments::CR3,
70
+ :name => 'Durable Medical Equipment Certification',
71
+ :minimum => 0,
72
+ :maximum => 1,
73
+ :position => 4350,
74
+ :identified_by => {
75
+ 'CR301' => ["I", "R", "S"],
76
+ 'CR302' => 'MO'
77
+ }
78
+
79
+ #Ambulance Certification
80
+ segment Hippo_eyeDoc::Segments::CRC,
81
+ :name => 'Ambulance Certification',
82
+ :minimum => 0,
83
+ :maximum => 3,
84
+ :position => 4500,
85
+ :identified_by => {
86
+ 'CRC01' => '07',
87
+ 'CRC02' => ["N", "Y"],
88
+ 'CRC03' => ["01", "04", "05", "06", "07", "08", "09", "12"]
89
+ }
90
+
91
+ #Hospice Employee Indicator
92
+ segment Hippo_eyeDoc::Segments::CRC,
93
+ :name => 'Hospice Employee Indicator',
94
+ :minimum => 0,
95
+ :maximum => 1,
96
+ :position => 4520,
97
+ :identified_by => {
98
+ 'CRC01' => '70',
99
+ 'CRC02' => ["N", "Y"],
100
+ 'CRC03' => '65'
101
+ }
102
+
103
+ #Condition Indicator/Durable Medical Equipment
104
+ segment Hippo_eyeDoc::Segments::CRC,
105
+ :name => 'Condition Indicator/Durable Medical Equipment',
106
+ :minimum => 0,
107
+ :maximum => 1,
108
+ :position => 4530,
109
+ :identified_by => {
110
+ 'CRC01' => '09',
111
+ 'CRC02' => ["N", "Y"],
112
+ 'CRC03' => ["38", "ZV"]
113
+ }
114
+
115
+ #Date - Service Date
116
+ segment Hippo_eyeDoc::Segments::DTP,
117
+ :name => 'Date - Service Date',
118
+ :minimum => 1,
119
+ :maximum => 1,
120
+ :position => 4550,
121
+ :identified_by => {
122
+ 'DTP01' => '472',
123
+ 'DTP02' => ["D8", "RD8"]
124
+ }
125
+
126
+ #Date - Prescription Date
127
+ segment Hippo_eyeDoc::Segments::DTP,
128
+ :name => 'Date - Prescription Date',
129
+ :minimum => 0,
130
+ :maximum => 1,
131
+ :position => 4555,
132
+ :identified_by => {
133
+ 'DTP01' => '471',
134
+ 'DTP02' => 'D8'
135
+ }
136
+
137
+ #DATE - Certification Revision/Recertification Date
138
+ segment Hippo_eyeDoc::Segments::DTP,
139
+ :name => 'DATE - Certification Revision/Recertification Date',
140
+ :minimum => 0,
141
+ :maximum => 1,
142
+ :position => 4560,
143
+ :identified_by => {
144
+ 'DTP01' => '607',
145
+ 'DTP02' => 'D8'
146
+ }
147
+
148
+ #Date - Begin Therapy Date
149
+ segment Hippo_eyeDoc::Segments::DTP,
150
+ :name => 'Date - Begin Therapy Date',
151
+ :minimum => 0,
152
+ :maximum => 1,
153
+ :position => 4580,
154
+ :identified_by => {
155
+ 'DTP01' => '463',
156
+ 'DTP02' => 'D8'
157
+ }
158
+
159
+ #Date - Last Certification Date
160
+ segment Hippo_eyeDoc::Segments::DTP,
161
+ :name => 'Date - Last Certification Date',
162
+ :minimum => 0,
163
+ :maximum => 1,
164
+ :position => 4590,
165
+ :identified_by => {
166
+ 'DTP01' => '461',
167
+ 'DTP02' => 'D8'
168
+ }
169
+
170
+ #Date - Last Seen Date
171
+ segment Hippo_eyeDoc::Segments::DTP,
172
+ :name => 'Date - Last Seen Date',
173
+ :minimum => 0,
174
+ :maximum => 1,
175
+ :position => 45,
176
+ :identified_by => {
177
+ 'DTP01' => '304',
178
+ 'DTP02' => 'D8'
179
+ }
180
+
181
+ #Date - Test Date
182
+ segment Hippo_eyeDoc::Segments::DTP,
183
+ :name => 'Date - Test Date',
184
+ :minimum => 0,
185
+ :maximum => 2,
186
+ :position => 45,
187
+ :identified_by => {
188
+ 'DTP01' => ["738", "739"],
189
+ 'DTP02' => 'D8'
190
+ }
191
+
192
+ #Date - Shipped Date
193
+ segment Hippo_eyeDoc::Segments::DTP,
194
+ :name => 'Date - Shipped Date',
195
+ :minimum => 0,
196
+ :maximum => 1,
197
+ :position => 45,
198
+ :identified_by => {
199
+ 'DTP01' => '011',
200
+ 'DTP02' => 'D8'
201
+ }
202
+
203
+ #Date - Last X-ray Date
204
+ segment Hippo_eyeDoc::Segments::DTP,
205
+ :name => 'Date - Last X-ray Date',
206
+ :minimum => 0,
207
+ :maximum => 1,
208
+ :position => 45,
209
+ :identified_by => {
210
+ 'DTP01' => '455',
211
+ 'DTP02' => 'D8'
212
+ }
213
+
214
+ #Date - Initial Treatment Date
215
+ segment Hippo_eyeDoc::Segments::DTP,
216
+ :name => 'Date - Initial Treatment Date',
217
+ :minimum => 0,
218
+ :maximum => 1,
219
+ :position => 45,
220
+ :identified_by => {
221
+ 'DTP01' => '454',
222
+ 'DTP02' => 'D8'
223
+ }
224
+
225
+ #Ambulance Patient Count
226
+ segment Hippo_eyeDoc::Segments::QTY,
227
+ :name => 'Ambulance Patient Count',
228
+ :minimum => 0,
229
+ :maximum => 1,
230
+ :position => 4600,
231
+ :identified_by => {
232
+ 'QTY01' => 'PT'
233
+ }
234
+
235
+ #Obstetric Anesthesia Additional Units
236
+ segment Hippo_eyeDoc::Segments::QTY,
237
+ :name => 'Obstetric Anesthesia Additional Units',
238
+ :minimum => 0,
239
+ :maximum => 1,
240
+ :position => 4610,
241
+ :identified_by => {
242
+ 'QTY01' => 'FL'
243
+ }
244
+
245
+ #Test Result
246
+ segment Hippo_eyeDoc::Segments::MEA,
247
+ :name => 'Test Result',
248
+ :minimum => 0,
249
+ :maximum => 5,
250
+ :position => 4620,
251
+ :identified_by => {
252
+ 'MEA01' => ["OG", "TR"],
253
+ 'MEA02' => ["HT", "R1", "R2", "R3", "R4"]
254
+ }
255
+
256
+ #Contract Information
257
+ segment Hippo_eyeDoc::Segments::CN1,
258
+ :name => 'Contract Information',
259
+ :minimum => 0,
260
+ :maximum => 1,
261
+ :position => 4650,
262
+ :identified_by => {
263
+ 'CN101' => ["01", "02", "03", "04", "05", "06", "09"]
264
+ }
265
+
266
+ #Repriced Line Item Reference Number
267
+ segment Hippo_eyeDoc::Segments::REF,
268
+ :name => 'Repriced Line Item Reference Number',
269
+ :minimum => 0,
270
+ :maximum => 1,
271
+ :position => 4700,
272
+ :identified_by => {
273
+ 'REF01' => '9B'
274
+ }
275
+
276
+ #Adjusted Repriced Line Item Reference Number
277
+ segment Hippo_eyeDoc::Segments::REF,
278
+ :name => 'Adjusted Repriced Line Item Reference Number',
279
+ :minimum => 0,
280
+ :maximum => 1,
281
+ :position => 4710,
282
+ :identified_by => {
283
+ 'REF01' => '9D'
284
+ }
285
+
286
+ #Prior Authorization
287
+ segment Hippo_eyeDoc::Segments::REF,
288
+ :name => 'Prior Authorization',
289
+ :minimum => 0,
290
+ :maximum => 5,
291
+ :position => 4730,
292
+ :identified_by => {
293
+ 'REF01' => 'G1'
294
+ }
295
+
296
+ #Line Item Control Number
297
+ segment Hippo_eyeDoc::Segments::REF,
298
+ :name => 'Line Item Control Number',
299
+ :minimum => 0,
300
+ :maximum => 1,
301
+ :position => 47,
302
+ :identified_by => {
303
+ 'REF01' => '6R'
304
+ }
305
+
306
+ #Mammography Certification Number
307
+ segment Hippo_eyeDoc::Segments::REF,
308
+ :name => 'Mammography Certification Number',
309
+ :minimum => 0,
310
+ :maximum => 1,
311
+ :position => 47,
312
+ :identified_by => {
313
+ 'REF01' => 'EW'
314
+ }
315
+
316
+ #Clinical Laboratory Improvement Amendment (CLIA) Number
317
+ segment Hippo_eyeDoc::Segments::REF,
318
+ :name => 'Clinical Laboratory Improvement Amendment (CLIA) Number',
319
+ :minimum => 0,
320
+ :maximum => 1,
321
+ :position => 47,
322
+ :identified_by => {
323
+ 'REF01' => 'X4'
324
+ }
325
+
326
+ #Referring Clinical Laboratory Improvement Amendment (CLIA) Facility Identification
327
+ segment Hippo_eyeDoc::Segments::REF,
328
+ :name => 'Referring Clinical Laboratory Improvement Amendment (CLIA) Facility Identification',
329
+ :minimum => 0,
330
+ :maximum => 1,
331
+ :position => 47,
332
+ :identified_by => {
333
+ 'REF01' => 'F4'
334
+ }
335
+
336
+ #Immunization Batch Number
337
+ segment Hippo_eyeDoc::Segments::REF,
338
+ :name => 'Immunization Batch Number',
339
+ :minimum => 0,
340
+ :maximum => 1,
341
+ :position => 47,
342
+ :identified_by => {
343
+ 'REF01' => 'BT'
344
+ }
345
+
346
+ #Referral Number
347
+ segment Hippo_eyeDoc::Segments::REF,
348
+ :name => 'Referral Number',
349
+ :minimum => 0,
350
+ :maximum => 5,
351
+ :position => 47,
352
+ :identified_by => {
353
+ 'REF01' => '9F'
354
+ }
355
+
356
+ #Sales Tax Amount
357
+ segment Hippo_eyeDoc::Segments::AMT,
358
+ :name => 'Sales Tax Amount',
359
+ :minimum => 0,
360
+ :maximum => 1,
361
+ :position => 4810,
362
+ :identified_by => {
363
+ 'AMT01' => 'T'
364
+ }
365
+
366
+ #Postage Claimed Amount
367
+ segment Hippo_eyeDoc::Segments::AMT,
368
+ :name => 'Postage Claimed Amount',
369
+ :minimum => 0,
370
+ :maximum => 1,
371
+ :position => 4830,
372
+ :identified_by => {
373
+ 'AMT01' => 'F4'
374
+ }
375
+
376
+ #File Information
377
+ segment Hippo_eyeDoc::Segments::K3,
378
+ :name => 'File Information',
379
+ :minimum => 0,
380
+ :maximum => 10,
381
+ :position => 4850
382
+
383
+ #Line Note
384
+ segment Hippo_eyeDoc::Segments::NTE,
385
+ :name => 'Line Note',
386
+ :minimum => 0,
387
+ :maximum => 1,
388
+ :position => 4860,
389
+ :identified_by => {
390
+ 'NTE01' => ["ADD", "DCP"]
391
+ }
392
+
393
+ #Third Party Organization Notes
394
+ segment Hippo_eyeDoc::Segments::NTE,
395
+ :name => 'Third Party Organization Notes',
396
+ :minimum => 0,
397
+ :maximum => 1,
398
+ :position => 4865,
399
+ :identified_by => {
400
+ 'NTE01' => 'TPO'
401
+ }
402
+
403
+ #Purchased Service Information
404
+ segment Hippo_eyeDoc::Segments::PS1,
405
+ :name => 'Purchased Service Information',
406
+ :minimum => 0,
407
+ :maximum => 1,
408
+ :position => 4880
409
+
410
+ #Line Pricing/Repricing Information
411
+ segment Hippo_eyeDoc::Segments::HCP,
412
+ :name => 'Line Pricing/Repricing Information',
413
+ :minimum => 0,
414
+ :maximum => 1,
415
+ :position => 4920,
416
+ :identified_by => {
417
+ 'HCP01' => ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14"]
418
+ }
419
+
420
+ #Drug Identification
421
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2410,
422
+ :name => 'Drug Identification',
423
+ :minimum => 0,
424
+ :maximum => 1,
425
+ :position => 4940,
426
+ :identified_by => {
427
+ 'LIN.LIN02' => ["EN", "EO", "HI", "N4", "ON", "UK", "UP"]
428
+ }
429
+
430
+ #Rendering Provider Name
431
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2420A,
432
+ :name => 'Rendering Provider Name',
433
+ :minimum => 0,
434
+ :maximum => 1,
435
+ :position => 5000,
436
+ :identified_by => {
437
+ 'NM1.NM101' => '82',
438
+ 'NM1.NM102' => ["1", "2"]
439
+ }
440
+
441
+ #Purchased Service Provider Name
442
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2420B,
443
+ :name => 'Purchased Service Provider Name',
444
+ :minimum => 0,
445
+ :maximum => 1,
446
+ :position => 5000,
447
+ :identified_by => {
448
+ 'NM1.NM101' => 'QB',
449
+ 'NM1.NM102' => ["1", "2"]
450
+ }
451
+
452
+ #Service Facility Location Name
453
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2420C,
454
+ :name => 'Service Facility Location Name',
455
+ :minimum => 0,
456
+ :maximum => 1,
457
+ :position => 5000,
458
+ :identified_by => {
459
+ 'NM1.NM101' => '77',
460
+ 'NM1.NM102' => '2'
461
+ }
462
+
463
+ #Supervising Provider Name
464
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2420D,
465
+ :name => 'Supervising Provider Name',
466
+ :minimum => 0,
467
+ :maximum => 1,
468
+ :position => 5000,
469
+ :identified_by => {
470
+ 'NM1.NM101' => 'DQ',
471
+ 'NM1.NM102' => '1'
472
+ }
473
+
474
+ #Ordering Provider Name
475
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2420E,
476
+ :name => 'Ordering Provider Name',
477
+ :minimum => 0,
478
+ :maximum => 1,
479
+ :position => 5000,
480
+ :identified_by => {
481
+ 'NM1.NM101' => 'DK',
482
+ 'NM1.NM102' => '1'
483
+ }
484
+
485
+ #Referring Provider Name
486
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2420F,
487
+ :name => 'Referring Provider Name',
488
+ :minimum => 0,
489
+ :maximum => 2,
490
+ :position => 5000,
491
+ :identified_by => {
492
+ 'NM1.NM101' => ["DN", "P3"],
493
+ 'NM1.NM102' => '1'
494
+ }
495
+
496
+ #Ambulance Pick-up Location
497
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2420G,
498
+ :name => 'Ambulance Pick-up Location',
499
+ :minimum => 0,
500
+ :maximum => 1,
501
+ :position => 5310,
502
+ :identified_by => {
503
+ 'NM1.NM101' => 'PW',
504
+ 'NM1.NM102' => '2'
505
+ }
506
+
507
+ #Ambulance Drop-off Location
508
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2420H,
509
+ :name => 'Ambulance Drop-off Location',
510
+ :minimum => 0,
511
+ :maximum => 1,
512
+ :position => 5380,
513
+ :identified_by => {
514
+ 'NM1.NM101' => '45',
515
+ 'NM1.NM102' => '2'
516
+ }
517
+
518
+ #Line Adjudication Information
519
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2430,
520
+ :name => 'Line Adjudication Information',
521
+ :minimum => 0,
522
+ :maximum => 15,
523
+ :position => 5400
524
+
525
+ #Form Identification Code
526
+ loop Hippo_eyeDoc::TransactionSets::HIPAA_837::L2440,
527
+ :name => 'Form Identification Code',
528
+ :minimum => 0,
529
+ :maximum => 99999,
530
+ :position => 5510,
531
+ :identified_by => {
532
+ 'LQ.LQ01' => ["AS", "UT"]
533
+ }
534
+
535
+ end
536
+ end
537
+ end