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.
- checksums.yaml +7 -0
- data/CHANGELOG +124 -0
- data/Gemfile +10 -0
- data/Guardfile +14 -0
- data/LICENSE +24 -0
- data/README.md +385 -0
- data/Rakefile +12 -0
- data/hippo_eyeDoc.gemspec +25 -0
- data/lib/hippo_eyeDoc.rb +15 -0
- data/lib/hippo_eyeDoc/code_lists.rb +10 -0
- data/lib/hippo_eyeDoc/code_lists/claim_adjustment_reason_codes.rb +2252 -0
- data/lib/hippo_eyeDoc/code_lists/claim_status_category_codes.rb +376 -0
- data/lib/hippo_eyeDoc/code_lists/claim_status_codes.rb +5456 -0
- data/lib/hippo_eyeDoc/code_lists/remittance_advice_remark_codes.rb +6280 -0
- data/lib/hippo_eyeDoc/code_lists/service_type_codes.rb +1299 -0
- data/lib/hippo_eyeDoc/code_lists/taxonomy_codes.rb +9224 -0
- data/lib/hippo_eyeDoc/exceptions.rb +10 -0
- data/lib/hippo_eyeDoc/field.rb +149 -0
- data/lib/hippo_eyeDoc/outputters.rb +4 -0
- data/lib/hippo_eyeDoc/outputters/html.rb +39 -0
- data/lib/hippo_eyeDoc/outputters/paper_claim.rb +7 -0
- data/lib/hippo_eyeDoc/outputters/pdf.rb +18 -0
- data/lib/hippo_eyeDoc/outputters/pretty_string.rb +45 -0
- data/lib/hippo_eyeDoc/parser.rb +70 -0
- data/lib/hippo_eyeDoc/parser/segment.rb +35 -0
- data/lib/hippo_eyeDoc/parser/transaction_set.rb +45 -0
- data/lib/hippo_eyeDoc/segments.rb +111 -0
- data/lib/hippo_eyeDoc/segments/AAA.rb +39 -0
- data/lib/hippo_eyeDoc/segments/AK1.rb +31 -0
- data/lib/hippo_eyeDoc/segments/AK2.rb +31 -0
- data/lib/hippo_eyeDoc/segments/AK3.rb +39 -0
- data/lib/hippo_eyeDoc/segments/AK4.rb +59 -0
- data/lib/hippo_eyeDoc/segments/AK5.rb +55 -0
- data/lib/hippo_eyeDoc/segments/AK9.rb +79 -0
- data/lib/hippo_eyeDoc/segments/AMT.rb +31 -0
- data/lib/hippo_eyeDoc/segments/BHT.rb +55 -0
- data/lib/hippo_eyeDoc/segments/BPR.rb +175 -0
- data/lib/hippo_eyeDoc/segments/CAS.rb +159 -0
- data/lib/hippo_eyeDoc/segments/CL1.rb +39 -0
- data/lib/hippo_eyeDoc/segments/CLM.rb +223 -0
- data/lib/hippo_eyeDoc/segments/CLP.rb +119 -0
- data/lib/hippo_eyeDoc/segments/CN1.rb +55 -0
- data/lib/hippo_eyeDoc/segments/CR1.rb +87 -0
- data/lib/hippo_eyeDoc/segments/CR2.rb +103 -0
- data/lib/hippo_eyeDoc/segments/CR3.rb +47 -0
- data/lib/hippo_eyeDoc/segments/CR4.rb +239 -0
- data/lib/hippo_eyeDoc/segments/CR5.rb +151 -0
- data/lib/hippo_eyeDoc/segments/CR6.rb +175 -0
- data/lib/hippo_eyeDoc/segments/CR7.rb +31 -0
- data/lib/hippo_eyeDoc/segments/CR8.rb +79 -0
- data/lib/hippo_eyeDoc/segments/CRC.rb +63 -0
- data/lib/hippo_eyeDoc/segments/CTP.rb +211 -0
- data/lib/hippo_eyeDoc/segments/CTX.rb +99 -0
- data/lib/hippo_eyeDoc/segments/CUR.rb +175 -0
- data/lib/hippo_eyeDoc/segments/DMG.rb +115 -0
- data/lib/hippo_eyeDoc/segments/DN1.rb +39 -0
- data/lib/hippo_eyeDoc/segments/DN2.rb +55 -0
- data/lib/hippo_eyeDoc/segments/DSB.rb +71 -0
- data/lib/hippo_eyeDoc/segments/DTM.rb +55 -0
- data/lib/hippo_eyeDoc/segments/DTP.rb +31 -0
- data/lib/hippo_eyeDoc/segments/EB.rb +207 -0
- data/lib/hippo_eyeDoc/segments/EM.rb +63 -0
- data/lib/hippo_eyeDoc/segments/EQ.rb +135 -0
- data/lib/hippo_eyeDoc/segments/FRM.rb +47 -0
- data/lib/hippo_eyeDoc/segments/GE.rb +23 -0
- data/lib/hippo_eyeDoc/segments/GS.rb +71 -0
- data/lib/hippo_eyeDoc/segments/HCP.rb +127 -0
- data/lib/hippo_eyeDoc/segments/HI.rb +919 -0
- data/lib/hippo_eyeDoc/segments/HL.rb +44 -0
- data/lib/hippo_eyeDoc/segments/HSD.rb +71 -0
- data/lib/hippo_eyeDoc/segments/IEA.rb +23 -0
- data/lib/hippo_eyeDoc/segments/III.rb +195 -0
- data/lib/hippo_eyeDoc/segments/IK3.rb +39 -0
- data/lib/hippo_eyeDoc/segments/IK4.rb +59 -0
- data/lib/hippo_eyeDoc/segments/IK5.rb +55 -0
- data/lib/hippo_eyeDoc/segments/IMM.rb +55 -0
- data/lib/hippo_eyeDoc/segments/INS.rb +171 -0
- data/lib/hippo_eyeDoc/segments/ISA.rb +136 -0
- data/lib/hippo_eyeDoc/segments/K3.rb +147 -0
- data/lib/hippo_eyeDoc/segments/LE.rb +15 -0
- data/lib/hippo_eyeDoc/segments/LIN.rb +255 -0
- data/lib/hippo_eyeDoc/segments/LQ.rb +23 -0
- data/lib/hippo_eyeDoc/segments/LS.rb +15 -0
- data/lib/hippo_eyeDoc/segments/LX.rb +20 -0
- data/lib/hippo_eyeDoc/segments/MEA.rb +219 -0
- data/lib/hippo_eyeDoc/segments/MIA.rb +199 -0
- data/lib/hippo_eyeDoc/segments/MOA.rb +79 -0
- data/lib/hippo_eyeDoc/segments/MPI.rb +63 -0
- data/lib/hippo_eyeDoc/segments/MSG.rb +31 -0
- data/lib/hippo_eyeDoc/segments/N1.rb +55 -0
- data/lib/hippo_eyeDoc/segments/N2.rb +23 -0
- data/lib/hippo_eyeDoc/segments/N3.rb +23 -0
- data/lib/hippo_eyeDoc/segments/N4.rb +63 -0
- data/lib/hippo_eyeDoc/segments/NM1.rb +103 -0
- data/lib/hippo_eyeDoc/segments/NTE.rb +23 -0
- data/lib/hippo_eyeDoc/segments/OI.rb +55 -0
- data/lib/hippo_eyeDoc/segments/PAT.rb +79 -0
- data/lib/hippo_eyeDoc/segments/PCT.rb +23 -0
- data/lib/hippo_eyeDoc/segments/PDP.rb +31 -0
- data/lib/hippo_eyeDoc/segments/PDR.rb +39 -0
- data/lib/hippo_eyeDoc/segments/PER.rb +79 -0
- data/lib/hippo_eyeDoc/segments/PID.rb +79 -0
- data/lib/hippo_eyeDoc/segments/PKD.rb +47 -0
- data/lib/hippo_eyeDoc/segments/PLB.rb +191 -0
- data/lib/hippo_eyeDoc/segments/PRV.rb +75 -0
- data/lib/hippo_eyeDoc/segments/PS1.rb +31 -0
- data/lib/hippo_eyeDoc/segments/PWK.rb +115 -0
- data/lib/hippo_eyeDoc/segments/QTY.rb +155 -0
- data/lib/hippo_eyeDoc/segments/RDM.rb +135 -0
- data/lib/hippo_eyeDoc/segments/REF.rb +83 -0
- data/lib/hippo_eyeDoc/segments/SBR.rb +79 -0
- data/lib/hippo_eyeDoc/segments/SD1.rb +71 -0
- data/lib/hippo_eyeDoc/segments/SE.rb +23 -0
- data/lib/hippo_eyeDoc/segments/ST.rb +31 -0
- data/lib/hippo_eyeDoc/segments/STC.rb +187 -0
- data/lib/hippo_eyeDoc/segments/SV1.rb +263 -0
- data/lib/hippo_eyeDoc/segments/SV2.rb +147 -0
- data/lib/hippo_eyeDoc/segments/SV3.rb +219 -0
- data/lib/hippo_eyeDoc/segments/SV4.rb +211 -0
- data/lib/hippo_eyeDoc/segments/SV5.rb +123 -0
- data/lib/hippo_eyeDoc/segments/SV6.rb +151 -0
- data/lib/hippo_eyeDoc/segments/SV7.rb +55 -0
- data/lib/hippo_eyeDoc/segments/SVC.rb +183 -0
- data/lib/hippo_eyeDoc/segments/SVD.rb +115 -0
- data/lib/hippo_eyeDoc/segments/TA1.rb +46 -0
- data/lib/hippo_eyeDoc/segments/TOO.rb +67 -0
- data/lib/hippo_eyeDoc/segments/TRN.rb +39 -0
- data/lib/hippo_eyeDoc/segments/TS2.rb +159 -0
- data/lib/hippo_eyeDoc/segments/TS3.rb +199 -0
- data/lib/hippo_eyeDoc/segments/UR.rb +23 -0
- data/lib/hippo_eyeDoc/segments/VEH.rb +159 -0
- data/lib/hippo_eyeDoc/segments/base.rb +190 -0
- data/lib/hippo_eyeDoc/separator.rb +79 -0
- data/lib/hippo_eyeDoc/transaction_sets.rb +16 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270.rb +15 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2000A.rb +43 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2000B.rb +42 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2000C.rb +52 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2000D.rb +41 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2100A.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2100B.rb +55 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2100C.rb +97 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2100D.rb +0 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2110C.rb +67 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/L2110D.rb +47 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_270/base.rb +47 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271.rb +19 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2000A.rb +55 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2000B.rb +43 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2000C.rb +52 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2000D.rb +41 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2100A.rb +43 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2100B.rb +67 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2100C.rb +124 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2100D.rb +124 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2110C.rb +98 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2110D.rb +98 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2115C.rb +16 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2115D.rb +16 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2120C.rb +54 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/L2120D.rb +54 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_271/base.rb +47 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276.rb +19 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000A.rb +32 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000B.rb +32 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000C.rb +32 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000D.rb +52 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2000E.rb +50 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100A.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100B.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100C.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100D.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2100E.rb +20 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2200D.rb +117 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2200E.rb +117 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2210D.rb +37 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/L2210E.rb +37 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_276/base.rb +90 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277.rb +22 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000A.rb +42 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000B.rb +42 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000C.rb +52 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000D.rb +41 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2000E.rb +40 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100A.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100B.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100C.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100D.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2100E.rb +20 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200A.rb +41 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200B.rb +69 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200C.rb +79 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200D.rb +77 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2200E.rb +104 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2220D.rb +57 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/L2220E.rb +44 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_277/base.rb +70 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835.rb +10 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L1000A.rb +74 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L1000B.rb +54 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L2000.rb +41 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L2100.rb +213 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/L2110.rb +106 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_835/base.rb +122 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837.rb +43 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L1000A.rb +32 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L1000B.rb +21 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2000A.rb +88 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2000B.rb +87 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2000C.rb +54 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010AA.rb +65 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010AB.rb +34 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010AC.rb +55 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010BA.rb +76 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010BB.rb +55 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2010CA.rb +76 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2300.rb +570 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310A.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310B.rb +41 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310C.rb +55 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310D.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310E.rb +34 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2310F.rb +34 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2320.rb +157 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330A.rb +45 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330B.rb +96 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330C.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330D.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330E.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330F.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2330G.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2400.rb +537 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2410.rb +36 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420A.rb +41 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420B.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420C.rb +44 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420D.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420E.rb +55 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420F.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420G.rb +34 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2420H.rb +34 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2430.rb +47 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/L2440.rb +26 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_837/base.rb +71 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_997.rb +7 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_997/L2000.rb +36 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_997/L2100.rb +29 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_997/base.rb +49 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999.rb +8 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2000 - AK2.rb +30 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2000AK2.rb +36 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2100 - AK2.rb +37 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2100AK2.rb +43 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2110 - AK2.rb +23 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/L2110AK2.rb +26 -0
- data/lib/hippo_eyeDoc/transaction_sets/HIPAA_999/base.rb +49 -0
- data/lib/hippo_eyeDoc/transaction_sets/base.rb +236 -0
- data/lib/hippo_eyeDoc/transaction_sets/component.rb +96 -0
- data/lib/hippo_eyeDoc/transaction_sets/repeating_component.rb +48 -0
- data/lib/hippo_eyeDoc/utilities.rb +37 -0
- data/lib/hippo_eyeDoc/version.rb +3 -0
- data/samples/005010X221A1_business_scenario_1.edi +1 -0
- data/samples/005010X221A1_tmhp_example.edi +1 -0
- data/samples/005010X222A1_anesthesia.edi +1 -0
- data/samples/005010X222A1_commercial_health_insurance.edi +1 -0
- data/samples/005010X231A1_01.edi +11 -0
- data/samples/005010X231A1_02.edi +11 -0
- data/samples/200823.EDI +22 -0
- data/samples/837_L2000A_01.edi +1 -0
- data/samples/837_L2000A_02.edi +1 -0
- data/samples/parse_277.rb +127 -0
- data/samples/parse_999.rb +122 -0
- data/samples/sample835.html +1 -0
- data/samples/sample835.pretty_string +28 -0
- data/samples/sample837.html +1 -0
- data/test/test_helper.rb +155 -0
- data/test/test_hipaa_835.rb +229 -0
- data/test/test_hipaa_837.rb +596 -0
- data/test/test_html_outputter.rb +22 -0
- data/test/test_parser.rb +138 -0
- data/test/test_pretty_string_outputter.rb +33 -0
- data/test/test_segments_base.rb +201 -0
- data/test/test_transaction_sets_base.rb +122 -0
- metadata +356 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
module Hippo_eyeDoc::TransactionSets
|
|
2
|
+
module HIPAA_276
|
|
3
|
+
|
|
4
|
+
class L2200E < Hippo_eyeDoc::TransactionSets::Base
|
|
5
|
+
loop_name 'L2200E' #Claim Status Tracking Number
|
|
6
|
+
|
|
7
|
+
#Claim Status Tracking Number
|
|
8
|
+
segment Hippo_eyeDoc::Segments::TRN,
|
|
9
|
+
:name => 'Claim Status Tracking Number',
|
|
10
|
+
:minimum => 1,
|
|
11
|
+
:maximum => 1,
|
|
12
|
+
:position => 900,
|
|
13
|
+
:identified_by => {
|
|
14
|
+
'TRN01' => '1'
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#Payer Claim Control Number
|
|
18
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
19
|
+
:name => 'Payer Claim Control Number',
|
|
20
|
+
:minimum => 0,
|
|
21
|
+
:maximum => 1,
|
|
22
|
+
:position => 1000,
|
|
23
|
+
:identified_by => {
|
|
24
|
+
'REF01' => '1K'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
#Institutional Bill Type Identification
|
|
28
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
29
|
+
:name => 'Institutional Bill Type Identification',
|
|
30
|
+
:minimum => 0,
|
|
31
|
+
:maximum => 1,
|
|
32
|
+
:position => 1010,
|
|
33
|
+
:identified_by => {
|
|
34
|
+
'REF01' => 'BLT'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#Application or Location System Identifier
|
|
38
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
39
|
+
:name => 'Application or Location System Identifier',
|
|
40
|
+
:minimum => 0,
|
|
41
|
+
:maximum => 1,
|
|
42
|
+
:position => 1030,
|
|
43
|
+
:identified_by => {
|
|
44
|
+
'REF01' => 'LU'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#Group Number
|
|
48
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
49
|
+
:name => 'Group Number',
|
|
50
|
+
:minimum => 0,
|
|
51
|
+
:maximum => 1,
|
|
52
|
+
:position => 1035,
|
|
53
|
+
:identified_by => {
|
|
54
|
+
'REF01' => '6P'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#Patient Control Number
|
|
58
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
59
|
+
:name => 'Patient Control Number',
|
|
60
|
+
:minimum => 0,
|
|
61
|
+
:maximum => 1,
|
|
62
|
+
:position => 1040,
|
|
63
|
+
:identified_by => {
|
|
64
|
+
'REF01' => 'EJ'
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#Pharmacy Prescription Number
|
|
68
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
69
|
+
:name => 'Pharmacy Prescription Number',
|
|
70
|
+
:minimum => 0,
|
|
71
|
+
:maximum => 1,
|
|
72
|
+
:position => 1045,
|
|
73
|
+
:identified_by => {
|
|
74
|
+
'REF01' => 'XZ'
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
#Claim Identification Number For Clearinghouses and Other Transmission Intermediaries
|
|
78
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
79
|
+
:name => 'Claim Identification Number For Clearinghouses and Other Transmission Intermediaries',
|
|
80
|
+
:minimum => 0,
|
|
81
|
+
:maximum => 1,
|
|
82
|
+
:position => 1050,
|
|
83
|
+
:identified_by => {
|
|
84
|
+
'REF01' => 'D9'
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#Claim Submitted Charges
|
|
88
|
+
segment Hippo_eyeDoc::Segments::AMT,
|
|
89
|
+
:name => 'Claim Submitted Charges',
|
|
90
|
+
:minimum => 0,
|
|
91
|
+
:maximum => 1,
|
|
92
|
+
:position => 1100,
|
|
93
|
+
:identified_by => {
|
|
94
|
+
'AMT01' => 'T3'
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
#Claim Service Date
|
|
98
|
+
segment Hippo_eyeDoc::Segments::DTP,
|
|
99
|
+
:name => 'Claim Service Date',
|
|
100
|
+
:minimum => 0,
|
|
101
|
+
:maximum => 1,
|
|
102
|
+
:position => 1200,
|
|
103
|
+
:identified_by => {
|
|
104
|
+
'DTP01' => '472',
|
|
105
|
+
'DTP02' => ["D8", "RD8"]
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
#Service Line Information
|
|
109
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_276::L2210E,
|
|
110
|
+
:name => 'Service Line Information',
|
|
111
|
+
:minimum => 0,
|
|
112
|
+
:maximum => 99999,
|
|
113
|
+
:position => 1300
|
|
114
|
+
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module Hippo_eyeDoc::TransactionSets
|
|
2
|
+
module HIPAA_276
|
|
3
|
+
|
|
4
|
+
class L2210D < Hippo_eyeDoc::TransactionSets::Base
|
|
5
|
+
loop_name 'L2210D' #Service Line Information
|
|
6
|
+
|
|
7
|
+
#Service Line Information
|
|
8
|
+
segment Hippo_eyeDoc::Segments::SVC,
|
|
9
|
+
:name => 'Service Line Information',
|
|
10
|
+
:minimum => 0,
|
|
11
|
+
:maximum => 1,
|
|
12
|
+
:position => 1300
|
|
13
|
+
|
|
14
|
+
#Service Line Item Identification
|
|
15
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
16
|
+
:name => 'Service Line Item Identification',
|
|
17
|
+
:minimum => 0,
|
|
18
|
+
:maximum => 1,
|
|
19
|
+
:position => 1400,
|
|
20
|
+
:identified_by => {
|
|
21
|
+
'REF01' => 'FJ'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#Service Line Date
|
|
25
|
+
segment Hippo_eyeDoc::Segments::DTP,
|
|
26
|
+
:name => 'Service Line Date',
|
|
27
|
+
:minimum => 1,
|
|
28
|
+
:maximum => 1,
|
|
29
|
+
:position => 1500,
|
|
30
|
+
:identified_by => {
|
|
31
|
+
'DTP01' => '472',
|
|
32
|
+
'DTP02' => ["D8", "RD8"]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module Hippo_eyeDoc::TransactionSets
|
|
2
|
+
module HIPAA_276
|
|
3
|
+
|
|
4
|
+
class L2210E < Hippo_eyeDoc::TransactionSets::Base
|
|
5
|
+
loop_name 'L2210E' #Service Line Information
|
|
6
|
+
|
|
7
|
+
#Service Line Information
|
|
8
|
+
segment Hippo_eyeDoc::Segments::SVC,
|
|
9
|
+
:name => 'Service Line Information',
|
|
10
|
+
:minimum => 0,
|
|
11
|
+
:maximum => 1,
|
|
12
|
+
:position => 1300
|
|
13
|
+
|
|
14
|
+
#Service Line Item Identification
|
|
15
|
+
segment Hippo_eyeDoc::Segments::REF,
|
|
16
|
+
:name => 'Service Line Item Identification',
|
|
17
|
+
:minimum => 0,
|
|
18
|
+
:maximum => 1,
|
|
19
|
+
:position => 1400,
|
|
20
|
+
:identified_by => {
|
|
21
|
+
'REF01' => 'FJ'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#Service Line Date
|
|
25
|
+
segment Hippo_eyeDoc::Segments::DTP,
|
|
26
|
+
:name => 'Service Line Date',
|
|
27
|
+
:minimum => 1,
|
|
28
|
+
:maximum => 1,
|
|
29
|
+
:position => 1500,
|
|
30
|
+
:identified_by => {
|
|
31
|
+
'DTP01' => '472',
|
|
32
|
+
'DTP02' => ["D8", "RD8"]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
module Hippo_eyeDoc::TransactionSets
|
|
2
|
+
module HIPAA_276
|
|
3
|
+
|
|
4
|
+
class Base < Hippo_eyeDoc::TransactionSets::Base
|
|
5
|
+
|
|
6
|
+
#Transaction Set Header
|
|
7
|
+
segment Hippo_eyeDoc::Segments::ST,
|
|
8
|
+
:name => 'Transaction Set Header',
|
|
9
|
+
:minimum => 1,
|
|
10
|
+
:maximum => 1,
|
|
11
|
+
:position => 100,
|
|
12
|
+
:identified_by => {
|
|
13
|
+
'ST01' => '276'
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#Beginning of Hierarchical Transaction
|
|
17
|
+
segment Hippo_eyeDoc::Segments::BHT,
|
|
18
|
+
:name => 'Beginning of Hierarchical Transaction',
|
|
19
|
+
:minimum => 1,
|
|
20
|
+
:maximum => 1,
|
|
21
|
+
:position => 200,
|
|
22
|
+
:identified_by => {
|
|
23
|
+
'BHT01' => '0010',
|
|
24
|
+
'BHT02' => '13'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
#Information Source Level
|
|
28
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_276::L2000A,
|
|
29
|
+
:name => 'Information Source Level',
|
|
30
|
+
:minimum => 1,
|
|
31
|
+
:maximum => 99999,
|
|
32
|
+
:position => 100,
|
|
33
|
+
:identified_by => {
|
|
34
|
+
'HL.HL03' => '20',
|
|
35
|
+
'HL.HL04' => '1'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#Information Receiver Level
|
|
39
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_276::L2000B,
|
|
40
|
+
:name => 'Information Receiver Level',
|
|
41
|
+
:minimum => 1,
|
|
42
|
+
:maximum => 99999,
|
|
43
|
+
:position => 100,
|
|
44
|
+
:identified_by => {
|
|
45
|
+
'HL.HL03' => '21',
|
|
46
|
+
'HL.HL04' => '1'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#Service Provider Level
|
|
50
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_276::L2000C,
|
|
51
|
+
:name => 'Service Provider Level',
|
|
52
|
+
:minimum => 1,
|
|
53
|
+
:maximum => 99999,
|
|
54
|
+
:position => 100,
|
|
55
|
+
:identified_by => {
|
|
56
|
+
'HL.HL03' => '19',
|
|
57
|
+
'HL.HL04' => '1'
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#Subscriber Level
|
|
61
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_276::L2000D,
|
|
62
|
+
:name => 'Subscriber Level',
|
|
63
|
+
:minimum => 1,
|
|
64
|
+
:maximum => 99999,
|
|
65
|
+
:position => 100,
|
|
66
|
+
:identified_by => {
|
|
67
|
+
'HL.HL03' => '22',
|
|
68
|
+
'HL.HL04' => ["0", "1"]
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
#Dependent Level
|
|
72
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_276::L2000E,
|
|
73
|
+
:name => 'Dependent Level',
|
|
74
|
+
:minimum => 0,
|
|
75
|
+
:maximum => 99999,
|
|
76
|
+
:position => 100,
|
|
77
|
+
:identified_by => {
|
|
78
|
+
'HL.HL03' => '23'
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#Transaction Set Trailer
|
|
82
|
+
segment Hippo_eyeDoc::Segments::SE,
|
|
83
|
+
:name => 'Transaction Set Trailer',
|
|
84
|
+
:minimum => 1,
|
|
85
|
+
:maximum => 1,
|
|
86
|
+
:position => 1600
|
|
87
|
+
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Hippo_eyeDoc::TransactionSets
|
|
2
|
+
module HIPAA_277
|
|
3
|
+
autoload_relative :Base, 'HIPAA_277/base'
|
|
4
|
+
autoload_relative :L2000A, 'HIPAA_277/L2000A'
|
|
5
|
+
autoload_relative :L2000B, 'HIPAA_277/L2000B'
|
|
6
|
+
autoload_relative :L2000C, 'HIPAA_277/L2000C'
|
|
7
|
+
autoload_relative :L2000D, 'HIPAA_277/L2000D'
|
|
8
|
+
autoload_relative :L2000E, 'HIPAA_277/L2000E'
|
|
9
|
+
autoload_relative :L2100A, 'HIPAA_277/L2100A'
|
|
10
|
+
autoload_relative :L2100B, 'HIPAA_277/L2100B'
|
|
11
|
+
autoload_relative :L2100C, 'HIPAA_277/L2100C'
|
|
12
|
+
autoload_relative :L2100D, 'HIPAA_277/L2100D'
|
|
13
|
+
autoload_relative :L2100E, 'HIPAA_277/L2100E'
|
|
14
|
+
autoload_relative :L2200A, 'HIPAA_277/L2200A'
|
|
15
|
+
autoload_relative :L2200B, 'HIPAA_277/L2200B'
|
|
16
|
+
autoload_relative :L2200C, 'HIPAA_277/L2200C'
|
|
17
|
+
autoload_relative :L2200D, 'HIPAA_277/L2200D'
|
|
18
|
+
autoload_relative :L2200E, 'HIPAA_277/L2200E'
|
|
19
|
+
autoload_relative :L2220D, 'HIPAA_277/L2220D'
|
|
20
|
+
autoload_relative :L2220E, 'HIPAA_277/L2220E'
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module Hippo_eyeDoc::TransactionSets
|
|
2
|
+
module HIPAA_277
|
|
3
|
+
|
|
4
|
+
class L2000A < Hippo_eyeDoc::TransactionSets::Base
|
|
5
|
+
loop_name 'L2000A' #Information Source Level
|
|
6
|
+
|
|
7
|
+
#Information Source Level
|
|
8
|
+
segment Hippo_eyeDoc::Segments::HL,
|
|
9
|
+
:name => 'Information Source Level',
|
|
10
|
+
:minimum => 1,
|
|
11
|
+
:maximum => 1,
|
|
12
|
+
:position => 100,
|
|
13
|
+
:identified_by => {
|
|
14
|
+
'HL03' => '20',
|
|
15
|
+
'HL04' => '1'
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#Information Source Name
|
|
19
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_277::L2100A,
|
|
20
|
+
:name => 'Information Source Name',
|
|
21
|
+
:minimum => 1,
|
|
22
|
+
:maximum => 1,
|
|
23
|
+
:position => 500,
|
|
24
|
+
:identified_by => {
|
|
25
|
+
'NM1.NM101' => ["AY", "PR"],
|
|
26
|
+
'NM1.NM102' => '2',
|
|
27
|
+
'NM1.NM108' => ["46", "FI", "PI", "XV"]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#Transmission Receipt Control Identifier
|
|
31
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_277::L2200A,
|
|
32
|
+
:name => 'Transmission Receipt Control Identifier',
|
|
33
|
+
:minimum => 1,
|
|
34
|
+
:maximum => 1,
|
|
35
|
+
:position => 900,
|
|
36
|
+
:identified_by => {
|
|
37
|
+
'TRN.TRN01' => '1'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module Hippo_eyeDoc::TransactionSets
|
|
2
|
+
module HIPAA_277
|
|
3
|
+
|
|
4
|
+
class L2000B < Hippo_eyeDoc::TransactionSets::Base
|
|
5
|
+
loop_name 'L2000B' #Information Receiver Level
|
|
6
|
+
|
|
7
|
+
#Information Receiver Level
|
|
8
|
+
segment Hippo_eyeDoc::Segments::HL,
|
|
9
|
+
:name => 'Information Receiver Level',
|
|
10
|
+
:minimum => 1,
|
|
11
|
+
:maximum => 1,
|
|
12
|
+
:position => 100,
|
|
13
|
+
:identified_by => {
|
|
14
|
+
'HL03' => '21',
|
|
15
|
+
'HL04' => ["0", "1"]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#Information Receiver Name
|
|
19
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_277::L2100B,
|
|
20
|
+
:name => 'Information Receiver Name',
|
|
21
|
+
:minimum => 1,
|
|
22
|
+
:maximum => 1,
|
|
23
|
+
:position => 500,
|
|
24
|
+
:identified_by => {
|
|
25
|
+
'NM1.NM101' => '41',
|
|
26
|
+
'NM1.NM102' => ["1", "2"],
|
|
27
|
+
'NM1.NM108' => '46'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#Information Receiver Application Trace Identifier
|
|
31
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_277::L2200B,
|
|
32
|
+
:name => 'Information Receiver Application Trace Identifier',
|
|
33
|
+
:minimum => 1,
|
|
34
|
+
:maximum => 1,
|
|
35
|
+
:position => 900,
|
|
36
|
+
:identified_by => {
|
|
37
|
+
'TRN.TRN01' => '2'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module Hippo_eyeDoc::TransactionSets
|
|
2
|
+
module HIPAA_277
|
|
3
|
+
|
|
4
|
+
class L2000C < Hippo_eyeDoc::TransactionSets::Base
|
|
5
|
+
loop_name 'L2000C' #Billing Provider of Service Level
|
|
6
|
+
|
|
7
|
+
#Billing Provider of Service Level
|
|
8
|
+
segment Hippo_eyeDoc::Segments::HL,
|
|
9
|
+
:name => 'Billing Provider of Service Level',
|
|
10
|
+
:minimum => 0,
|
|
11
|
+
:maximum => 1,
|
|
12
|
+
:position => 100,
|
|
13
|
+
:identified_by => {
|
|
14
|
+
'HL03' => '19',
|
|
15
|
+
'HL04' => ["0", "1"]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#Billing Provider Name
|
|
19
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_277::L2100C,
|
|
20
|
+
:name => 'Billing Provider Name',
|
|
21
|
+
:minimum => 1,
|
|
22
|
+
:maximum => 1,
|
|
23
|
+
:position => 500,
|
|
24
|
+
:identified_by => {
|
|
25
|
+
'NM1.NM101' => '85',
|
|
26
|
+
'NM1.NM102' => ["1", "2"],
|
|
27
|
+
'NM1.NM108' => ["FI", "XX"]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#Provider of Service Information Trace Identifier
|
|
31
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_277::L2200C,
|
|
32
|
+
:name => 'Provider of Service Information Trace Identifier',
|
|
33
|
+
:minimum => 0,
|
|
34
|
+
:maximum => 1,
|
|
35
|
+
:position => 900,
|
|
36
|
+
:identified_by => {
|
|
37
|
+
'TRN.TRN01' => '1'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#Patient Level
|
|
41
|
+
loop Hippo_eyeDoc::TransactionSets::HIPAA_277::L2000D,
|
|
42
|
+
:name => 'Patient Level',
|
|
43
|
+
:minimum => 0,
|
|
44
|
+
:maximum => 99999,
|
|
45
|
+
:position => 100,
|
|
46
|
+
:identified_by => {
|
|
47
|
+
'HL.HL03' => 'PT'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|