stupidedi 1.3.23 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2005) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/Rakefile +17 -92
  4. data/bin/edi-ed +8 -12
  5. data/bin/edi-obfuscate +8 -9
  6. data/bin/edi-pp +31 -25
  7. data/doc/{Transcribing.md → Defining.md} +0 -0
  8. data/doc/{unwritten/Parsing.md → Parsing.md} +0 -0
  9. data/doc/{unwritten/Tokenizing.md → Tokenizing.md} +0 -0
  10. data/doc/{unwritten/Validating.md → Validating.md} +0 -0
  11. data/lib/ruby/array.rb +1 -4
  12. data/lib/ruby/blank.rb +0 -3
  13. data/lib/ruby/exception.rb +13 -33
  14. data/lib/ruby/hash.rb +0 -2
  15. data/lib/ruby/module.rb +1 -3
  16. data/lib/ruby/object.rb +0 -13
  17. data/lib/ruby/string.rb +12 -3
  18. data/lib/ruby/to_d.rb +20 -25
  19. data/lib/ruby/to_date.rb +0 -3
  20. data/lib/ruby/to_time.rb +0 -3
  21. data/lib/ruby/try.rb +0 -3
  22. data/lib/stupidedi.rb +27 -41
  23. data/lib/stupidedi/builder.rb +3 -22
  24. data/lib/stupidedi/color.rb +4 -6
  25. data/lib/stupidedi/config.rb +77 -69
  26. data/lib/stupidedi/config/code_list_config.rb +0 -2
  27. data/lib/stupidedi/config/editor_config.rb +0 -2
  28. data/lib/stupidedi/config/functional_group_config.rb +3 -2
  29. data/lib/stupidedi/config/interchange_config.rb +5 -6
  30. data/lib/stupidedi/config/transaction_set_config.rb +17 -48
  31. data/lib/stupidedi/contrib.rb +41 -6
  32. data/lib/stupidedi/editor.rb +0 -3
  33. data/lib/stupidedi/editor/00401.rb +0 -3
  34. data/lib/stupidedi/editor/004010.rb +4 -8
  35. data/lib/stupidedi/editor/004010/N4.rb +0 -4
  36. data/lib/stupidedi/editor/00501.rb +0 -3
  37. data/lib/stupidedi/editor/005010.rb +5 -9
  38. data/lib/stupidedi/editor/005010/N4.rb +0 -4
  39. data/lib/stupidedi/editor/X12.rb +0 -5
  40. data/lib/stupidedi/editor/X222-HC837.rb +0 -5
  41. data/lib/stupidedi/editor/abstract_ed.rb +0 -2
  42. data/lib/stupidedi/editor/claim_ack.rb +0 -2
  43. data/lib/stupidedi/editor/implementation_ack.rb +2 -3
  44. data/lib/stupidedi/editor/interchange_ack.rb +0 -2
  45. data/lib/stupidedi/editor/result.rb +1 -6
  46. data/lib/stupidedi/editor/result_set.rb +1 -3
  47. data/lib/stupidedi/editor/transaction_set_ed.rb +23 -19
  48. data/lib/stupidedi/editor/transmission_ed.rb +0 -3
  49. data/lib/stupidedi/either.rb +0 -5
  50. data/lib/stupidedi/exceptions/invalid_element_error.rb +0 -2
  51. data/lib/stupidedi/exceptions/invalid_schema_error.rb +0 -2
  52. data/lib/stupidedi/exceptions/output_error.rb +0 -2
  53. data/lib/stupidedi/exceptions/parse_error.rb +0 -2
  54. data/lib/stupidedi/exceptions/stupidedi_error.rb +0 -2
  55. data/lib/stupidedi/exceptions/tokenize_error.rb +0 -2
  56. data/lib/stupidedi/exceptions/zipper_error.rb +0 -2
  57. data/lib/stupidedi/guides.rb +7 -3
  58. data/lib/stupidedi/inspect.rb +1 -4
  59. data/lib/stupidedi/interchanges.rb +11 -0
  60. data/lib/stupidedi/interchanges/00200.rb +12 -0
  61. data/lib/stupidedi/interchanges/00200/element_defs.rb +104 -0
  62. data/lib/stupidedi/interchanges/00200/interchange_def.rb +59 -0
  63. data/lib/stupidedi/interchanges/00200/segment_defs.rb +12 -0
  64. data/lib/stupidedi/interchanges/00200/segment_defs/IEA.rb +17 -0
  65. data/lib/stupidedi/interchanges/00200/segment_defs/ISA.rb +31 -0
  66. data/lib/stupidedi/interchanges/00200/segment_defs/TA1.rb +20 -0
  67. data/lib/stupidedi/interchanges/00300.rb +12 -0
  68. data/lib/stupidedi/interchanges/00300/element_defs.rb +105 -0
  69. data/lib/stupidedi/interchanges/00300/interchange_def.rb +59 -0
  70. data/lib/stupidedi/interchanges/00300/segment_defs.rb +12 -0
  71. data/lib/stupidedi/interchanges/00300/segment_defs/IEA.rb +17 -0
  72. data/lib/stupidedi/interchanges/00300/segment_defs/ISA.rb +31 -0
  73. data/lib/stupidedi/interchanges/00300/segment_defs/TA1.rb +20 -0
  74. data/lib/stupidedi/interchanges/00400.rb +12 -0
  75. data/lib/stupidedi/interchanges/00400/element_defs.rb +97 -0
  76. data/lib/stupidedi/interchanges/00400/interchange_def.rb +59 -0
  77. data/lib/stupidedi/interchanges/00400/segment_defs.rb +12 -0
  78. data/lib/stupidedi/interchanges/00400/segment_defs/IEA.rb +17 -0
  79. data/lib/stupidedi/interchanges/00400/segment_defs/ISA.rb +31 -0
  80. data/lib/stupidedi/interchanges/00400/segment_defs/TA1.rb +20 -0
  81. data/lib/stupidedi/interchanges/00401.rb +12 -0
  82. data/lib/stupidedi/interchanges/00401/element_defs.rb +96 -0
  83. data/lib/stupidedi/interchanges/00401/interchange_def.rb +59 -0
  84. data/lib/stupidedi/interchanges/00401/segment_defs.rb +12 -0
  85. data/lib/stupidedi/interchanges/00401/segment_defs/IEA.rb +17 -0
  86. data/lib/stupidedi/interchanges/00401/segment_defs/ISA.rb +31 -0
  87. data/lib/stupidedi/interchanges/00401/segment_defs/TA1.rb +20 -0
  88. data/lib/stupidedi/interchanges/00501.rb +12 -0
  89. data/lib/stupidedi/interchanges/00501/element_defs.rb +130 -0
  90. data/lib/stupidedi/interchanges/00501/interchange_def.rb +59 -0
  91. data/lib/stupidedi/interchanges/00501/segment_defs.rb +12 -0
  92. data/lib/stupidedi/interchanges/00501/segment_defs/IEA.rb +17 -0
  93. data/lib/stupidedi/interchanges/00501/segment_defs/ISA.rb +31 -0
  94. data/lib/stupidedi/interchanges/00501/segment_defs/ISB.rb +15 -0
  95. data/lib/stupidedi/interchanges/00501/segment_defs/ISE.rb +15 -0
  96. data/lib/stupidedi/interchanges/00501/segment_defs/TA1.rb +20 -0
  97. data/lib/stupidedi/interchanges/00501/segment_defs/TA3.rb +15 -0
  98. data/lib/stupidedi/interchanges/element_types.rb +11 -0
  99. data/lib/stupidedi/interchanges/element_types/separator_val.rb +79 -0
  100. data/lib/stupidedi/interchanges/element_types/special_val.rb +48 -0
  101. data/lib/stupidedi/parser.rb +32 -0
  102. data/lib/stupidedi/parser/builder_dsl.rb +289 -0
  103. data/lib/stupidedi/parser/constraint_table.rb +488 -0
  104. data/lib/stupidedi/parser/generation.rb +147 -0
  105. data/lib/stupidedi/parser/identifier_stack.rb +248 -0
  106. data/lib/stupidedi/parser/instruction.rb +112 -0
  107. data/lib/stupidedi/parser/instruction_table.rb +222 -0
  108. data/lib/stupidedi/parser/navigation.rb +786 -0
  109. data/lib/stupidedi/parser/state_machine.rb +62 -0
  110. data/lib/stupidedi/parser/states/abstract_state.rb +325 -0
  111. data/lib/stupidedi/parser/states/failure_state.rb +69 -0
  112. data/lib/stupidedi/parser/states/functional_group_state.rb +98 -0
  113. data/lib/stupidedi/parser/states/initial_state.rb +62 -0
  114. data/lib/stupidedi/parser/states/interchange_state.rb +93 -0
  115. data/lib/stupidedi/parser/states/loop_state.rb +80 -0
  116. data/lib/stupidedi/parser/states/table_state.rb +94 -0
  117. data/lib/stupidedi/parser/states/transaction_set_state.rb +118 -0
  118. data/lib/stupidedi/parser/states/transmission_state.rb +59 -0
  119. data/lib/stupidedi/parser/tokenization.rb +195 -0
  120. data/lib/stupidedi/reader.rb +0 -2
  121. data/lib/stupidedi/reader/input.rb +0 -3
  122. data/lib/stupidedi/reader/input/abstract_input.rb +4 -6
  123. data/lib/stupidedi/reader/input/delegated_input.rb +0 -5
  124. data/lib/stupidedi/reader/input/file_input.rb +10 -11
  125. data/lib/stupidedi/reader/position.rb +13 -8
  126. data/lib/stupidedi/reader/result.rb +5 -5
  127. data/lib/stupidedi/reader/segment_dict.rb +0 -3
  128. data/lib/stupidedi/reader/separators.rb +5 -4
  129. data/lib/stupidedi/reader/stream_reader.rb +3 -6
  130. data/lib/stupidedi/reader/token_reader.rb +0 -5
  131. data/lib/stupidedi/reader/tokens/component_element_tok.rb +4 -4
  132. data/lib/stupidedi/reader/tokens/composite_element_tok.rb +6 -5
  133. data/lib/stupidedi/reader/tokens/repeated_element_tok.rb +9 -2
  134. data/lib/stupidedi/reader/tokens/segment_tok.rb +7 -5
  135. data/lib/stupidedi/reader/tokens/simple_element_tok.rb +2 -4
  136. data/lib/stupidedi/schema.rb +17 -20
  137. data/lib/stupidedi/schema/abstract_def.rb +4 -6
  138. data/lib/stupidedi/schema/abstract_element_def.rb +35 -0
  139. data/lib/stupidedi/schema/abstract_element_use.rb +38 -0
  140. data/lib/stupidedi/schema/abstract_use.rb +6 -4
  141. data/lib/stupidedi/schema/code_list.rb +6 -5
  142. data/lib/stupidedi/schema/component_element_use.rb +74 -0
  143. data/lib/stupidedi/schema/composite_element_def.rb +103 -0
  144. data/lib/stupidedi/schema/composite_element_use.rb +73 -0
  145. data/lib/stupidedi/schema/element_req.rb +1 -4
  146. data/lib/stupidedi/schema/functional_group_def.rb +9 -3
  147. data/lib/stupidedi/schema/interchange_def.rb +9 -3
  148. data/lib/stupidedi/schema/loop_def.rb +11 -9
  149. data/lib/stupidedi/schema/repeat_count.rb +0 -3
  150. data/lib/stupidedi/schema/segment_def.rb +6 -4
  151. data/lib/stupidedi/schema/segment_req.rb +2 -3
  152. data/lib/stupidedi/schema/segment_use.rb +1 -4
  153. data/lib/stupidedi/schema/simple_element_def.rb +51 -0
  154. data/lib/stupidedi/schema/simple_element_use.rb +81 -0
  155. data/lib/stupidedi/schema/syntax_note.rb +1 -12
  156. data/lib/stupidedi/schema/table_def.rb +55 -18
  157. data/lib/stupidedi/schema/transaction_set_def.rb +25 -4
  158. data/lib/stupidedi/sets.rb +0 -3
  159. data/lib/stupidedi/transaction_sets.rb +14 -0
  160. data/lib/stupidedi/transaction_sets/002001.rb +11 -0
  161. data/lib/stupidedi/transaction_sets/002001/implementations.rb +23 -0
  162. data/lib/stupidedi/transaction_sets/002001/implementations/FA997.rb +66 -0
  163. data/lib/stupidedi/transaction_sets/002001/implementations/PO830.rb +160 -0
  164. data/lib/stupidedi/transaction_sets/002001/implementations/SH856.rb +190 -0
  165. data/lib/stupidedi/transaction_sets/002001/standards.rb +14 -0
  166. data/lib/stupidedi/transaction_sets/002001/standards/FA997.rb +31 -0
  167. data/lib/stupidedi/transaction_sets/002001/standards/PO830.rb +45 -0
  168. data/lib/stupidedi/transaction_sets/002001/standards/SH856.rb +38 -0
  169. data/lib/stupidedi/transaction_sets/003010.rb +11 -0
  170. data/lib/stupidedi/transaction_sets/003010/implementations.rb +24 -0
  171. data/lib/stupidedi/transaction_sets/003010/implementations/PC860.rb +140 -0
  172. data/lib/stupidedi/transaction_sets/003010/implementations/PO850.rb +132 -0
  173. data/lib/stupidedi/transaction_sets/003010/implementations/PS830.rb +150 -0
  174. data/lib/stupidedi/transaction_sets/003010/implementations/RA820.rb +158 -0
  175. data/lib/stupidedi/transaction_sets/003010/standards.rb +15 -0
  176. data/lib/stupidedi/transaction_sets/003010/standards/PC860.rb +49 -0
  177. data/lib/stupidedi/transaction_sets/003010/standards/PO850.rb +49 -0
  178. data/lib/stupidedi/transaction_sets/003010/standards/PS830.rb +49 -0
  179. data/lib/stupidedi/transaction_sets/003010/standards/RA820.rb +40 -0
  180. data/lib/stupidedi/transaction_sets/003040.rb +12 -0
  181. data/lib/stupidedi/transaction_sets/003040/implementations.rb +21 -0
  182. data/lib/stupidedi/transaction_sets/003040/implementations/WA142.rb +153 -0
  183. data/lib/stupidedi/transaction_sets/003040/standards.rb +12 -0
  184. data/lib/stupidedi/transaction_sets/003040/standards/WA142.rb +53 -0
  185. data/lib/stupidedi/transaction_sets/003050.rb +12 -0
  186. data/lib/stupidedi/transaction_sets/003050/implementations.rb +21 -0
  187. data/lib/stupidedi/transaction_sets/003050/implementations/PO850.rb +77 -0
  188. data/lib/stupidedi/transaction_sets/003050/standards.rb +12 -0
  189. data/lib/stupidedi/transaction_sets/003050/standards/PO850.rb +41 -0
  190. data/lib/stupidedi/transaction_sets/004010.rb +12 -0
  191. data/lib/stupidedi/transaction_sets/004010/implementations.rb +38 -0
  192. data/lib/stupidedi/transaction_sets/004010/implementations/AR943.rb +72 -0
  193. data/lib/stupidedi/transaction_sets/004010/implementations/FA997.rb +65 -0
  194. data/lib/stupidedi/transaction_sets/004010/implementations/GF990.rb +40 -0
  195. data/lib/stupidedi/transaction_sets/004010/implementations/IM210.rb +221 -0
  196. data/lib/stupidedi/transaction_sets/004010/implementations/OW940.rb +98 -0
  197. data/lib/stupidedi/transaction_sets/004010/implementations/PO850.rb +108 -0
  198. data/lib/stupidedi/transaction_sets/004010/implementations/PS830.rb +143 -0
  199. data/lib/stupidedi/transaction_sets/004010/implementations/QM214.rb +106 -0
  200. data/lib/stupidedi/transaction_sets/004010/implementations/RE944.rb +63 -0
  201. data/lib/stupidedi/transaction_sets/004010/implementations/SH856.rb +156 -0
  202. data/lib/stupidedi/transaction_sets/004010/implementations/SM204.rb +391 -0
  203. data/lib/stupidedi/transaction_sets/004010/implementations/SQ866.rb +103 -0
  204. data/lib/stupidedi/transaction_sets/004010/implementations/SS862.rb +154 -0
  205. data/lib/stupidedi/transaction_sets/004010/implementations/SW945.rb +99 -0
  206. data/lib/stupidedi/transaction_sets/004010/implementations/X091A1-HP835.rb +481 -0
  207. data/lib/stupidedi/transaction_sets/004010/standards.rb +28 -0
  208. data/lib/stupidedi/transaction_sets/004010/standards/AR943.rb +34 -0
  209. data/lib/stupidedi/transaction_sets/004010/standards/FA997.rb +31 -0
  210. data/lib/stupidedi/transaction_sets/004010/standards/GF990.rb +21 -0
  211. data/lib/stupidedi/transaction_sets/004010/standards/HP835.rb +61 -0
  212. data/lib/stupidedi/transaction_sets/004010/standards/IM210.rb +47 -0
  213. data/lib/stupidedi/transaction_sets/004010/standards/OW940.rb +43 -0
  214. data/lib/stupidedi/transaction_sets/004010/standards/PO850.rb +50 -0
  215. data/lib/stupidedi/transaction_sets/004010/standards/PR855.rb +35 -0
  216. data/lib/stupidedi/transaction_sets/004010/standards/PS830.rb +43 -0
  217. data/lib/stupidedi/transaction_sets/004010/standards/QM214.rb +41 -0
  218. data/lib/stupidedi/transaction_sets/004010/standards/RE944.rb +34 -0
  219. data/lib/stupidedi/transaction_sets/004010/standards/SC832.rb +37 -0
  220. data/lib/stupidedi/transaction_sets/004010/standards/SH856.rb +40 -0
  221. data/lib/stupidedi/transaction_sets/004010/standards/SM204.rb +85 -0
  222. data/lib/stupidedi/transaction_sets/004010/standards/SQ866.rb +32 -0
  223. data/lib/stupidedi/transaction_sets/004010/standards/SS862.rb +42 -0
  224. data/lib/stupidedi/transaction_sets/004010/standards/SW945.rb +43 -0
  225. data/lib/stupidedi/transaction_sets/005010.rb +11 -0
  226. data/lib/stupidedi/transaction_sets/005010/implementations.rb +88 -0
  227. data/lib/stupidedi/transaction_sets/005010/implementations/X212-HR276.rb +329 -0
  228. data/lib/stupidedi/transaction_sets/005010/implementations/X214-HN277.rb +356 -0
  229. data/lib/stupidedi/transaction_sets/005010/implementations/X220-BE834.rb +15 -0
  230. data/lib/stupidedi/transaction_sets/005010/implementations/X220A1-BE834.rb +623 -0
  231. data/lib/stupidedi/transaction_sets/005010/implementations/X221-HP835.rb +15 -0
  232. data/lib/stupidedi/transaction_sets/005010/implementations/X221A1-HP835.rb +556 -0
  233. data/lib/stupidedi/transaction_sets/005010/implementations/X222-HC837.rb +15 -0
  234. data/lib/stupidedi/transaction_sets/005010/implementations/X222-HC837P.rb +15 -0
  235. data/lib/stupidedi/transaction_sets/005010/implementations/X222A1-HC837.rb +2033 -0
  236. data/lib/stupidedi/transaction_sets/005010/implementations/X222A1-HC837P.rb +15 -0
  237. data/lib/stupidedi/transaction_sets/005010/implementations/X223-HC837.rb +15 -0
  238. data/lib/stupidedi/transaction_sets/005010/implementations/X223-HC837I.rb +15 -0
  239. data/lib/stupidedi/transaction_sets/005010/implementations/X223A1-HC837.rb +15 -0
  240. data/lib/stupidedi/transaction_sets/005010/implementations/X223A2-HC837.rb +2390 -0
  241. data/lib/stupidedi/transaction_sets/005010/implementations/X223A3-HC837.rb +2595 -0
  242. data/lib/stupidedi/transaction_sets/005010/implementations/X231-FA999.rb +15 -0
  243. data/lib/stupidedi/transaction_sets/005010/implementations/X231A1-FA999.rb +106 -0
  244. data/lib/stupidedi/transaction_sets/005010/implementations/X279-HB271.rb +749 -0
  245. data/lib/stupidedi/transaction_sets/005010/implementations/X279-HS270.rb +533 -0
  246. data/lib/stupidedi/transaction_sets/005010/implementations/X279A1-HB271.rb +751 -0
  247. data/lib/stupidedi/transaction_sets/005010/implementations/X279A1-HS270.rb +533 -0
  248. data/lib/stupidedi/transaction_sets/005010/standards.rb +22 -0
  249. data/lib/stupidedi/transaction_sets/005010/standards/BE834.rb +171 -0
  250. data/lib/stupidedi/transaction_sets/005010/standards/FA997.rb +31 -0
  251. data/lib/stupidedi/transaction_sets/005010/standards/FA999.rb +35 -0
  252. data/lib/stupidedi/transaction_sets/005010/standards/HB271.rb +95 -0
  253. data/lib/stupidedi/transaction_sets/005010/standards/HC837.rb +161 -0
  254. data/lib/stupidedi/transaction_sets/005010/standards/HI278.rb +62 -0
  255. data/lib/stupidedi/transaction_sets/005010/standards/HN277.rb +71 -0
  256. data/lib/stupidedi/transaction_sets/005010/standards/HP835.rb +65 -0
  257. data/lib/stupidedi/transaction_sets/005010/standards/HR276.rb +54 -0
  258. data/lib/stupidedi/transaction_sets/005010/standards/HS270.rb +50 -0
  259. data/lib/stupidedi/transaction_sets/005010/standards/RA820.rb +238 -0
  260. data/lib/stupidedi/transaction_sets/builder.rb +184 -0
  261. data/lib/stupidedi/transaction_sets/common.rb +8 -0
  262. data/lib/stupidedi/transaction_sets/common/implementations.rb +11 -0
  263. data/lib/stupidedi/transaction_sets/common/implementations/element_reqs.rb +37 -0
  264. data/lib/stupidedi/transaction_sets/common/implementations/segment_reqs.rb +31 -0
  265. data/lib/stupidedi/transaction_sets/validation.rb +9 -0
  266. data/lib/stupidedi/transaction_sets/validation/ambiguity.rb +391 -0
  267. data/lib/stupidedi/transaction_sets/validation/implementation.rb +12 -0
  268. data/lib/stupidedi/values.rb +0 -1
  269. data/lib/stupidedi/values/abstract_element_val.rb +0 -4
  270. data/lib/stupidedi/values/abstract_val.rb +3 -4
  271. data/lib/stupidedi/values/composite_element_val.rb +3 -8
  272. data/lib/stupidedi/values/functional_group_val.rb +3 -4
  273. data/lib/stupidedi/values/interchange_val.rb +3 -4
  274. data/lib/stupidedi/values/invalid_envelope_val.rb +2 -6
  275. data/lib/stupidedi/values/invalid_segment_val.rb +16 -9
  276. data/lib/stupidedi/values/loop_val.rb +3 -4
  277. data/lib/stupidedi/values/repeated_element_val.rb +5 -7
  278. data/lib/stupidedi/values/segment_val.rb +7 -11
  279. data/lib/stupidedi/values/segment_val_group.rb +0 -4
  280. data/lib/stupidedi/values/simple_element_val.rb +2 -7
  281. data/lib/stupidedi/values/table_val.rb +3 -4
  282. data/lib/stupidedi/values/transaction_set_val.rb +3 -4
  283. data/lib/stupidedi/values/transmission_val.rb +5 -5
  284. data/lib/stupidedi/version.rb +1 -2
  285. data/lib/stupidedi/versions.rb +11 -3
  286. data/lib/stupidedi/versions/002001.rb +14 -0
  287. data/lib/stupidedi/versions/002001/element_defs.rb +10576 -0
  288. data/lib/stupidedi/versions/002001/element_reqs.rb +12 -0
  289. data/lib/stupidedi/versions/002001/element_types.rb +28 -0
  290. data/lib/stupidedi/versions/002001/element_types/an.rb +11 -0
  291. data/lib/stupidedi/versions/002001/element_types/dt.rb +11 -0
  292. data/lib/stupidedi/versions/002001/element_types/float_val.rb +11 -0
  293. data/lib/stupidedi/versions/002001/element_types/id.rb +11 -0
  294. data/lib/stupidedi/versions/002001/element_types/nn.rb +11 -0
  295. data/lib/stupidedi/versions/002001/element_types/tm.rb +11 -0
  296. data/lib/stupidedi/versions/002001/functional_group_def.rb +24 -0
  297. data/lib/stupidedi/versions/002001/segment_defs.rb +88 -0
  298. data/lib/stupidedi/versions/002001/segment_defs/AK1.rb +17 -0
  299. data/lib/stupidedi/versions/002001/segment_defs/AK2.rb +17 -0
  300. data/lib/stupidedi/versions/002001/segment_defs/AK3.rb +18 -0
  301. data/lib/stupidedi/versions/002001/segment_defs/AK4.rb +20 -0
  302. data/lib/stupidedi/versions/002001/segment_defs/AK5.rb +22 -0
  303. data/lib/stupidedi/versions/002001/segment_defs/AK9.rb +23 -0
  304. data/lib/stupidedi/versions/002001/segment_defs/AT7.rb +29 -0
  305. data/lib/stupidedi/versions/002001/segment_defs/AT8.rb +25 -0
  306. data/lib/stupidedi/versions/002001/segment_defs/ATH.rb +21 -0
  307. data/lib/stupidedi/versions/002001/segment_defs/B1.rb +20 -0
  308. data/lib/stupidedi/versions/002001/segment_defs/B10.rb +26 -0
  309. data/lib/stupidedi/versions/002001/segment_defs/B2.rb +27 -0
  310. data/lib/stupidedi/versions/002001/segment_defs/B2A.rb +17 -0
  311. data/lib/stupidedi/versions/002001/segment_defs/BEG.rb +28 -0
  312. data/lib/stupidedi/versions/002001/segment_defs/BFR.rb +27 -0
  313. data/lib/stupidedi/versions/002001/segment_defs/BSN.rb +24 -0
  314. data/lib/stupidedi/versions/002001/segment_defs/CTT.rb +25 -0
  315. data/lib/stupidedi/versions/002001/segment_defs/CUR.rb +51 -0
  316. data/lib/stupidedi/versions/002001/segment_defs/DTM.rb +25 -0
  317. data/lib/stupidedi/versions/002001/segment_defs/FST.rb +24 -0
  318. data/lib/stupidedi/versions/002001/segment_defs/G61.rb +22 -0
  319. data/lib/stupidedi/versions/002001/segment_defs/G62.rb +22 -0
  320. data/lib/stupidedi/versions/002001/segment_defs/G69.rb +16 -0
  321. data/lib/stupidedi/versions/002001/segment_defs/GE.rb +18 -0
  322. data/lib/stupidedi/versions/002001/segment_defs/GS.rb +24 -0
  323. data/lib/stupidedi/versions/002001/segment_defs/HL.rb +20 -0
  324. data/lib/stupidedi/versions/002001/segment_defs/J2X.rb +18 -0
  325. data/lib/stupidedi/versions/002001/segment_defs/K1.rb +18 -0
  326. data/lib/stupidedi/versions/002001/segment_defs/L11.rb +21 -0
  327. data/lib/stupidedi/versions/002001/segment_defs/L3.rb +37 -0
  328. data/lib/stupidedi/versions/002001/segment_defs/L5.rb +29 -0
  329. data/lib/stupidedi/versions/002001/segment_defs/LFH.rb +25 -0
  330. data/lib/stupidedi/versions/002001/segment_defs/LH1.rb +29 -0
  331. data/lib/stupidedi/versions/002001/segment_defs/LH2.rb +32 -0
  332. data/lib/stupidedi/versions/002001/segment_defs/LH3.rb +21 -0
  333. data/lib/stupidedi/versions/002001/segment_defs/LIN.rb +47 -0
  334. data/lib/stupidedi/versions/002001/segment_defs/LX.rb +16 -0
  335. data/lib/stupidedi/versions/002001/segment_defs/M7.rb +21 -0
  336. data/lib/stupidedi/versions/002001/segment_defs/MAN.rb +17 -0
  337. data/lib/stupidedi/versions/002001/segment_defs/MEA.rb +22 -0
  338. data/lib/stupidedi/versions/002001/segment_defs/MS1.rb +33 -0
  339. data/lib/stupidedi/versions/002001/segment_defs/MS2.rb +22 -0
  340. data/lib/stupidedi/versions/002001/segment_defs/MS3.rb +21 -0
  341. data/lib/stupidedi/versions/002001/segment_defs/N1.rb +19 -0
  342. data/lib/stupidedi/versions/002001/segment_defs/N2.rb +17 -0
  343. data/lib/stupidedi/versions/002001/segment_defs/N3.rb +17 -0
  344. data/lib/stupidedi/versions/002001/segment_defs/N4.rb +25 -0
  345. data/lib/stupidedi/versions/002001/segment_defs/N7.rb +42 -0
  346. data/lib/stupidedi/versions/002001/segment_defs/N9.rb +25 -0
  347. data/lib/stupidedi/versions/002001/segment_defs/NTE.rb +18 -0
  348. data/lib/stupidedi/versions/002001/segment_defs/PER.rb +28 -0
  349. data/lib/stupidedi/versions/002001/segment_defs/PID.rb +29 -0
  350. data/lib/stupidedi/versions/002001/segment_defs/PLD.rb +21 -0
  351. data/lib/stupidedi/versions/002001/segment_defs/PO1.rb +52 -0
  352. data/lib/stupidedi/versions/002001/segment_defs/PO4.rb +20 -0
  353. data/lib/stupidedi/versions/002001/segment_defs/REF.rb +20 -0
  354. data/lib/stupidedi/versions/002001/segment_defs/S5.rb +29 -0
  355. data/lib/stupidedi/versions/002001/segment_defs/SDP.rb +17 -0
  356. data/lib/stupidedi/versions/002001/segment_defs/SE.rb +19 -0
  357. data/lib/stupidedi/versions/002001/segment_defs/SN1.rb +24 -0
  358. data/lib/stupidedi/versions/002001/segment_defs/ST.rb +17 -0
  359. data/lib/stupidedi/versions/002001/segment_defs/TD1.rb +27 -0
  360. data/lib/stupidedi/versions/002001/segment_defs/TD3.rb +20 -0
  361. data/lib/stupidedi/versions/002001/segment_defs/TD5.rb +21 -0
  362. data/lib/stupidedi/versions/002001/segment_defs/UNT.rb +16 -0
  363. data/lib/stupidedi/versions/002001/segment_defs/W01.rb +37 -0
  364. data/lib/stupidedi/versions/002001/segment_defs/W03.rb +25 -0
  365. data/lib/stupidedi/versions/002001/segment_defs/W04.rb +35 -0
  366. data/lib/stupidedi/versions/002001/segment_defs/W05.rb +24 -0
  367. data/lib/stupidedi/versions/002001/segment_defs/W06.rb +29 -0
  368. data/lib/stupidedi/versions/002001/segment_defs/W07.rb +30 -0
  369. data/lib/stupidedi/versions/002001/segment_defs/W08.rb +26 -0
  370. data/lib/stupidedi/versions/002001/segment_defs/W12.rb +43 -0
  371. data/lib/stupidedi/versions/002001/segment_defs/W14.rb +20 -0
  372. data/lib/stupidedi/versions/002001/segment_defs/W17.rb +26 -0
  373. data/lib/stupidedi/versions/002001/segment_defs/W20.rb +28 -0
  374. data/lib/stupidedi/versions/002001/segment_defs/W27.rb +26 -0
  375. data/lib/stupidedi/versions/002001/segment_defs/W66.rb +26 -0
  376. data/lib/stupidedi/versions/002001/segment_defs/W76.rb +24 -0
  377. data/lib/stupidedi/versions/002001/segment_reqs.rb +11 -0
  378. data/lib/stupidedi/versions/002001/syntax_notes.rb +14 -0
  379. data/lib/stupidedi/versions/003010.rb +14 -0
  380. data/lib/stupidedi/versions/003010/element_defs.rb +9152 -0
  381. data/lib/stupidedi/versions/003010/element_reqs.rb +13 -0
  382. data/lib/stupidedi/versions/003010/element_types.rb +28 -0
  383. data/lib/stupidedi/versions/003010/element_types/an.rb +11 -0
  384. data/lib/stupidedi/versions/003010/element_types/dt.rb +11 -0
  385. data/lib/stupidedi/versions/003010/element_types/float_val.rb +11 -0
  386. data/lib/stupidedi/versions/003010/element_types/id.rb +11 -0
  387. data/lib/stupidedi/versions/003010/element_types/nn.rb +11 -0
  388. data/lib/stupidedi/versions/003010/element_types/tm.rb +11 -0
  389. data/lib/stupidedi/versions/003010/functional_group_def.rb +24 -0
  390. data/lib/stupidedi/versions/003010/segment_defs.rb +94 -0
  391. data/lib/stupidedi/versions/003010/segment_defs/AK1.rb +17 -0
  392. data/lib/stupidedi/versions/003010/segment_defs/AK2.rb +17 -0
  393. data/lib/stupidedi/versions/003010/segment_defs/AK3.rb +18 -0
  394. data/lib/stupidedi/versions/003010/segment_defs/AK9.rb +23 -0
  395. data/lib/stupidedi/versions/003010/segment_defs/AT7.rb +29 -0
  396. data/lib/stupidedi/versions/003010/segment_defs/AT8.rb +25 -0
  397. data/lib/stupidedi/versions/003010/segment_defs/B1.rb +20 -0
  398. data/lib/stupidedi/versions/003010/segment_defs/B10.rb +26 -0
  399. data/lib/stupidedi/versions/003010/segment_defs/B2.rb +27 -0
  400. data/lib/stupidedi/versions/003010/segment_defs/B2A.rb +17 -0
  401. data/lib/stupidedi/versions/003010/segment_defs/BCH.rb +22 -0
  402. data/lib/stupidedi/versions/003010/segment_defs/BEG.rb +21 -0
  403. data/lib/stupidedi/versions/003010/segment_defs/BFR.rb +29 -0
  404. data/lib/stupidedi/versions/003010/segment_defs/BPS.rb +32 -0
  405. data/lib/stupidedi/versions/003010/segment_defs/BSN.rb +24 -0
  406. data/lib/stupidedi/versions/003010/segment_defs/CTT.rb +18 -0
  407. data/lib/stupidedi/versions/003010/segment_defs/CUR.rb +19 -0
  408. data/lib/stupidedi/versions/003010/segment_defs/DTM.rb +17 -0
  409. data/lib/stupidedi/versions/003010/segment_defs/FOB.rb +22 -0
  410. data/lib/stupidedi/versions/003010/segment_defs/FST.rb +24 -0
  411. data/lib/stupidedi/versions/003010/segment_defs/G61.rb +22 -0
  412. data/lib/stupidedi/versions/003010/segment_defs/G62.rb +22 -0
  413. data/lib/stupidedi/versions/003010/segment_defs/G69.rb +16 -0
  414. data/lib/stupidedi/versions/003010/segment_defs/GE.rb +18 -0
  415. data/lib/stupidedi/versions/003010/segment_defs/GS.rb +24 -0
  416. data/lib/stupidedi/versions/003010/segment_defs/HL.rb +20 -0
  417. data/lib/stupidedi/versions/003010/segment_defs/ITD.rb +28 -0
  418. data/lib/stupidedi/versions/003010/segment_defs/K1.rb +18 -0
  419. data/lib/stupidedi/versions/003010/segment_defs/L11.rb +21 -0
  420. data/lib/stupidedi/versions/003010/segment_defs/L3.rb +37 -0
  421. data/lib/stupidedi/versions/003010/segment_defs/L5.rb +29 -0
  422. data/lib/stupidedi/versions/003010/segment_defs/LE.rb +17 -0
  423. data/lib/stupidedi/versions/003010/segment_defs/LFH.rb +25 -0
  424. data/lib/stupidedi/versions/003010/segment_defs/LH1.rb +29 -0
  425. data/lib/stupidedi/versions/003010/segment_defs/LH2.rb +32 -0
  426. data/lib/stupidedi/versions/003010/segment_defs/LH3.rb +21 -0
  427. data/lib/stupidedi/versions/003010/segment_defs/LIN.rb +47 -0
  428. data/lib/stupidedi/versions/003010/segment_defs/LS.rb +16 -0
  429. data/lib/stupidedi/versions/003010/segment_defs/LX.rb +16 -0
  430. data/lib/stupidedi/versions/003010/segment_defs/M7.rb +21 -0
  431. data/lib/stupidedi/versions/003010/segment_defs/MAN.rb +23 -0
  432. data/lib/stupidedi/versions/003010/segment_defs/MEA.rb +22 -0
  433. data/lib/stupidedi/versions/003010/segment_defs/MS1.rb +33 -0
  434. data/lib/stupidedi/versions/003010/segment_defs/MS2.rb +22 -0
  435. data/lib/stupidedi/versions/003010/segment_defs/MS3.rb +21 -0
  436. data/lib/stupidedi/versions/003010/segment_defs/MSG.rb +17 -0
  437. data/lib/stupidedi/versions/003010/segment_defs/N1.rb +19 -0
  438. data/lib/stupidedi/versions/003010/segment_defs/N2.rb +17 -0
  439. data/lib/stupidedi/versions/003010/segment_defs/N3.rb +17 -0
  440. data/lib/stupidedi/versions/003010/segment_defs/N4.rb +19 -0
  441. data/lib/stupidedi/versions/003010/segment_defs/N7.rb +42 -0
  442. data/lib/stupidedi/versions/003010/segment_defs/N9.rb +18 -0
  443. data/lib/stupidedi/versions/003010/segment_defs/NTE.rb +18 -0
  444. data/lib/stupidedi/versions/003010/segment_defs/PER.rb +28 -0
  445. data/lib/stupidedi/versions/003010/segment_defs/PID.rb +20 -0
  446. data/lib/stupidedi/versions/003010/segment_defs/PLD.rb +21 -0
  447. data/lib/stupidedi/versions/003010/segment_defs/PO1.rb +25 -0
  448. data/lib/stupidedi/versions/003010/segment_defs/PO4.rb +20 -0
  449. data/lib/stupidedi/versions/003010/segment_defs/POC.rb +26 -0
  450. data/lib/stupidedi/versions/003010/segment_defs/REF.rb +18 -0
  451. data/lib/stupidedi/versions/003010/segment_defs/RMT.rb +25 -0
  452. data/lib/stupidedi/versions/003010/segment_defs/S5.rb +29 -0
  453. data/lib/stupidedi/versions/003010/segment_defs/SDP.rb +18 -0
  454. data/lib/stupidedi/versions/003010/segment_defs/SE.rb +19 -0
  455. data/lib/stupidedi/versions/003010/segment_defs/SHP.rb +20 -0
  456. data/lib/stupidedi/versions/003010/segment_defs/SN1.rb +24 -0
  457. data/lib/stupidedi/versions/003010/segment_defs/ST.rb +18 -0
  458. data/lib/stupidedi/versions/003010/segment_defs/TD1.rb +27 -0
  459. data/lib/stupidedi/versions/003010/segment_defs/TD3.rb +20 -0
  460. data/lib/stupidedi/versions/003010/segment_defs/TD5.rb +21 -0
  461. data/lib/stupidedi/versions/003010/segment_defs/UIT.rb +18 -0
  462. data/lib/stupidedi/versions/003010/segment_defs/W01.rb +37 -0
  463. data/lib/stupidedi/versions/003010/segment_defs/W03.rb +25 -0
  464. data/lib/stupidedi/versions/003010/segment_defs/W04.rb +35 -0
  465. data/lib/stupidedi/versions/003010/segment_defs/W05.rb +24 -0
  466. data/lib/stupidedi/versions/003010/segment_defs/W06.rb +29 -0
  467. data/lib/stupidedi/versions/003010/segment_defs/W07.rb +30 -0
  468. data/lib/stupidedi/versions/003010/segment_defs/W08.rb +26 -0
  469. data/lib/stupidedi/versions/003010/segment_defs/W12.rb +43 -0
  470. data/lib/stupidedi/versions/003010/segment_defs/W14.rb +20 -0
  471. data/lib/stupidedi/versions/003010/segment_defs/W17.rb +26 -0
  472. data/lib/stupidedi/versions/003010/segment_defs/W20.rb +28 -0
  473. data/lib/stupidedi/versions/003010/segment_defs/W27.rb +27 -0
  474. data/lib/stupidedi/versions/003010/segment_defs/W66.rb +26 -0
  475. data/lib/stupidedi/versions/003010/segment_defs/W76.rb +24 -0
  476. data/lib/stupidedi/versions/003010/segment_reqs.rb +11 -0
  477. data/lib/stupidedi/versions/003010/syntax_notes.rb +14 -0
  478. data/lib/stupidedi/versions/003040.rb +14 -0
  479. data/lib/stupidedi/versions/003040/element_defs.rb +10608 -0
  480. data/lib/stupidedi/versions/003040/element_reqs.rb +12 -0
  481. data/lib/stupidedi/versions/003040/element_types.rb +28 -0
  482. data/lib/stupidedi/versions/003040/element_types/date_val.rb +11 -0
  483. data/lib/stupidedi/versions/003040/element_types/fixnum_val.rb +11 -0
  484. data/lib/stupidedi/versions/003040/element_types/float_val.rb +11 -0
  485. data/lib/stupidedi/versions/003040/element_types/identifier_val.rb +11 -0
  486. data/lib/stupidedi/versions/003040/element_types/time_val.rb +11 -0
  487. data/lib/stupidedi/versions/003040/functional_group_def.rb +24 -0
  488. data/lib/stupidedi/versions/003040/segment_defs.rb +95 -0
  489. data/lib/stupidedi/versions/003040/segment_defs/AK1.rb +17 -0
  490. data/lib/stupidedi/versions/003040/segment_defs/AK2.rb +17 -0
  491. data/lib/stupidedi/versions/003040/segment_defs/AK3.rb +18 -0
  492. data/lib/stupidedi/versions/003040/segment_defs/AK9.rb +23 -0
  493. data/lib/stupidedi/versions/003040/segment_defs/AMT.rb +17 -0
  494. data/lib/stupidedi/versions/003040/segment_defs/AT7.rb +29 -0
  495. data/lib/stupidedi/versions/003040/segment_defs/AT8.rb +25 -0
  496. data/lib/stupidedi/versions/003040/segment_defs/B1.rb +20 -0
  497. data/lib/stupidedi/versions/003040/segment_defs/B10.rb +26 -0
  498. data/lib/stupidedi/versions/003040/segment_defs/B2.rb +27 -0
  499. data/lib/stupidedi/versions/003040/segment_defs/B2A.rb +17 -0
  500. data/lib/stupidedi/versions/003040/segment_defs/BEG.rb +21 -0
  501. data/lib/stupidedi/versions/003040/segment_defs/BGN.rb +18 -0
  502. data/lib/stupidedi/versions/003040/segment_defs/BPS.rb +25 -0
  503. data/lib/stupidedi/versions/003040/segment_defs/BSN.rb +24 -0
  504. data/lib/stupidedi/versions/003040/segment_defs/CTT.rb +25 -0
  505. data/lib/stupidedi/versions/003040/segment_defs/CUR.rb +19 -0
  506. data/lib/stupidedi/versions/003040/segment_defs/DTM.rb +18 -0
  507. data/lib/stupidedi/versions/003040/segment_defs/FOB.rb +20 -0
  508. data/lib/stupidedi/versions/003040/segment_defs/G61.rb +22 -0
  509. data/lib/stupidedi/versions/003040/segment_defs/G62.rb +22 -0
  510. data/lib/stupidedi/versions/003040/segment_defs/G69.rb +16 -0
  511. data/lib/stupidedi/versions/003040/segment_defs/GE.rb +17 -0
  512. data/lib/stupidedi/versions/003040/segment_defs/GS.rb +24 -0
  513. data/lib/stupidedi/versions/003040/segment_defs/HL.rb +20 -0
  514. data/lib/stupidedi/versions/003040/segment_defs/IT1.rb +20 -0
  515. data/lib/stupidedi/versions/003040/segment_defs/ITD.rb +28 -0
  516. data/lib/stupidedi/versions/003040/segment_defs/K1.rb +18 -0
  517. data/lib/stupidedi/versions/003040/segment_defs/L11.rb +21 -0
  518. data/lib/stupidedi/versions/003040/segment_defs/L3.rb +37 -0
  519. data/lib/stupidedi/versions/003040/segment_defs/L5.rb +29 -0
  520. data/lib/stupidedi/versions/003040/segment_defs/LE.rb +17 -0
  521. data/lib/stupidedi/versions/003040/segment_defs/LFH.rb +25 -0
  522. data/lib/stupidedi/versions/003040/segment_defs/LH1.rb +29 -0
  523. data/lib/stupidedi/versions/003040/segment_defs/LH2.rb +32 -0
  524. data/lib/stupidedi/versions/003040/segment_defs/LH3.rb +21 -0
  525. data/lib/stupidedi/versions/003040/segment_defs/LIN.rb +33 -0
  526. data/lib/stupidedi/versions/003040/segment_defs/LS.rb +16 -0
  527. data/lib/stupidedi/versions/003040/segment_defs/LX.rb +16 -0
  528. data/lib/stupidedi/versions/003040/segment_defs/M7.rb +21 -0
  529. data/lib/stupidedi/versions/003040/segment_defs/MAN.rb +23 -0
  530. data/lib/stupidedi/versions/003040/segment_defs/MEA.rb +22 -0
  531. data/lib/stupidedi/versions/003040/segment_defs/MS1.rb +33 -0
  532. data/lib/stupidedi/versions/003040/segment_defs/MS2.rb +22 -0
  533. data/lib/stupidedi/versions/003040/segment_defs/MS3.rb +21 -0
  534. data/lib/stupidedi/versions/003040/segment_defs/MSG.rb +17 -0
  535. data/lib/stupidedi/versions/003040/segment_defs/N1.rb +19 -0
  536. data/lib/stupidedi/versions/003040/segment_defs/N2.rb +17 -0
  537. data/lib/stupidedi/versions/003040/segment_defs/N3.rb +17 -0
  538. data/lib/stupidedi/versions/003040/segment_defs/N4.rb +19 -0
  539. data/lib/stupidedi/versions/003040/segment_defs/N7.rb +42 -0
  540. data/lib/stupidedi/versions/003040/segment_defs/N9.rb +18 -0
  541. data/lib/stupidedi/versions/003040/segment_defs/NTE.rb +18 -0
  542. data/lib/stupidedi/versions/003040/segment_defs/PER.rb +20 -0
  543. data/lib/stupidedi/versions/003040/segment_defs/PID.rb +20 -0
  544. data/lib/stupidedi/versions/003040/segment_defs/PLD.rb +21 -0
  545. data/lib/stupidedi/versions/003040/segment_defs/PO1.rb +25 -0
  546. data/lib/stupidedi/versions/003040/segment_defs/PO4.rb +20 -0
  547. data/lib/stupidedi/versions/003040/segment_defs/PRR.rb +21 -0
  548. data/lib/stupidedi/versions/003040/segment_defs/QTY.rb +18 -0
  549. data/lib/stupidedi/versions/003040/segment_defs/REF.rb +18 -0
  550. data/lib/stupidedi/versions/003040/segment_defs/REP.rb +19 -0
  551. data/lib/stupidedi/versions/003040/segment_defs/RMT.rb +25 -0
  552. data/lib/stupidedi/versions/003040/segment_defs/S5.rb +29 -0
  553. data/lib/stupidedi/versions/003040/segment_defs/SE.rb +19 -0
  554. data/lib/stupidedi/versions/003040/segment_defs/SN1.rb +24 -0
  555. data/lib/stupidedi/versions/003040/segment_defs/SSS.rb +24 -0
  556. data/lib/stupidedi/versions/003040/segment_defs/ST.rb +18 -0
  557. data/lib/stupidedi/versions/003040/segment_defs/TD1.rb +27 -0
  558. data/lib/stupidedi/versions/003040/segment_defs/TD3.rb +20 -0
  559. data/lib/stupidedi/versions/003040/segment_defs/TD5.rb +18 -0
  560. data/lib/stupidedi/versions/003040/segment_defs/TDS.rb +16 -0
  561. data/lib/stupidedi/versions/003040/segment_defs/W01.rb +37 -0
  562. data/lib/stupidedi/versions/003040/segment_defs/W03.rb +25 -0
  563. data/lib/stupidedi/versions/003040/segment_defs/W04.rb +35 -0
  564. data/lib/stupidedi/versions/003040/segment_defs/W05.rb +24 -0
  565. data/lib/stupidedi/versions/003040/segment_defs/W06.rb +29 -0
  566. data/lib/stupidedi/versions/003040/segment_defs/W07.rb +30 -0
  567. data/lib/stupidedi/versions/003040/segment_defs/W08.rb +26 -0
  568. data/lib/stupidedi/versions/003040/segment_defs/W12.rb +43 -0
  569. data/lib/stupidedi/versions/003040/segment_defs/W14.rb +20 -0
  570. data/lib/stupidedi/versions/003040/segment_defs/W17.rb +26 -0
  571. data/lib/stupidedi/versions/003040/segment_defs/W20.rb +28 -0
  572. data/lib/stupidedi/versions/003040/segment_defs/W27.rb +27 -0
  573. data/lib/stupidedi/versions/003040/segment_defs/W66.rb +26 -0
  574. data/lib/stupidedi/versions/003040/segment_defs/W76.rb +24 -0
  575. data/lib/stupidedi/versions/003040/segment_reqs.rb +11 -0
  576. data/lib/stupidedi/versions/003040/syntax_notes.rb +14 -0
  577. data/lib/stupidedi/versions/003050.rb +14 -0
  578. data/lib/stupidedi/versions/003050/element_defs.rb +10612 -0
  579. data/lib/stupidedi/versions/003050/element_reqs.rb +12 -0
  580. data/lib/stupidedi/versions/003050/element_types.rb +28 -0
  581. data/lib/stupidedi/versions/003050/element_types/an.rb +11 -0
  582. data/lib/stupidedi/versions/003050/element_types/dt.rb +11 -0
  583. data/lib/stupidedi/versions/003050/element_types/float_val.rb +11 -0
  584. data/lib/stupidedi/versions/003050/element_types/id.rb +11 -0
  585. data/lib/stupidedi/versions/003050/element_types/nn.rb +11 -0
  586. data/lib/stupidedi/versions/003050/element_types/tm.rb +11 -0
  587. data/lib/stupidedi/versions/003050/functional_group_def.rb +24 -0
  588. data/lib/stupidedi/versions/003050/segment_defs.rb +95 -0
  589. data/lib/stupidedi/versions/003050/segment_defs/AK1.rb +17 -0
  590. data/lib/stupidedi/versions/003050/segment_defs/AK2.rb +17 -0
  591. data/lib/stupidedi/versions/003050/segment_defs/AK3.rb +18 -0
  592. data/lib/stupidedi/versions/003050/segment_defs/AK9.rb +23 -0
  593. data/lib/stupidedi/versions/003050/segment_defs/AMT.rb +17 -0
  594. data/lib/stupidedi/versions/003050/segment_defs/AT7.rb +29 -0
  595. data/lib/stupidedi/versions/003050/segment_defs/AT8.rb +25 -0
  596. data/lib/stupidedi/versions/003050/segment_defs/B1.rb +20 -0
  597. data/lib/stupidedi/versions/003050/segment_defs/B10.rb +26 -0
  598. data/lib/stupidedi/versions/003050/segment_defs/B2.rb +27 -0
  599. data/lib/stupidedi/versions/003050/segment_defs/B2A.rb +17 -0
  600. data/lib/stupidedi/versions/003050/segment_defs/BEG.rb +21 -0
  601. data/lib/stupidedi/versions/003050/segment_defs/BGN.rb +18 -0
  602. data/lib/stupidedi/versions/003050/segment_defs/BPS.rb +25 -0
  603. data/lib/stupidedi/versions/003050/segment_defs/BSN.rb +24 -0
  604. data/lib/stupidedi/versions/003050/segment_defs/CTT.rb +17 -0
  605. data/lib/stupidedi/versions/003050/segment_defs/CUR.rb +19 -0
  606. data/lib/stupidedi/versions/003050/segment_defs/DTM.rb +20 -0
  607. data/lib/stupidedi/versions/003050/segment_defs/FOB.rb +20 -0
  608. data/lib/stupidedi/versions/003050/segment_defs/G61.rb +22 -0
  609. data/lib/stupidedi/versions/003050/segment_defs/G62.rb +22 -0
  610. data/lib/stupidedi/versions/003050/segment_defs/G69.rb +16 -0
  611. data/lib/stupidedi/versions/003050/segment_defs/GE.rb +18 -0
  612. data/lib/stupidedi/versions/003050/segment_defs/GS.rb +24 -0
  613. data/lib/stupidedi/versions/003050/segment_defs/HL.rb +20 -0
  614. data/lib/stupidedi/versions/003050/segment_defs/IT1.rb +20 -0
  615. data/lib/stupidedi/versions/003050/segment_defs/ITD.rb +28 -0
  616. data/lib/stupidedi/versions/003050/segment_defs/K1.rb +18 -0
  617. data/lib/stupidedi/versions/003050/segment_defs/L11.rb +21 -0
  618. data/lib/stupidedi/versions/003050/segment_defs/L3.rb +37 -0
  619. data/lib/stupidedi/versions/003050/segment_defs/L5.rb +29 -0
  620. data/lib/stupidedi/versions/003050/segment_defs/LE.rb +17 -0
  621. data/lib/stupidedi/versions/003050/segment_defs/LFH.rb +25 -0
  622. data/lib/stupidedi/versions/003050/segment_defs/LH1.rb +29 -0
  623. data/lib/stupidedi/versions/003050/segment_defs/LH2.rb +32 -0
  624. data/lib/stupidedi/versions/003050/segment_defs/LH3.rb +21 -0
  625. data/lib/stupidedi/versions/003050/segment_defs/LIN.rb +33 -0
  626. data/lib/stupidedi/versions/003050/segment_defs/LS.rb +16 -0
  627. data/lib/stupidedi/versions/003050/segment_defs/LX.rb +16 -0
  628. data/lib/stupidedi/versions/003050/segment_defs/M7.rb +21 -0
  629. data/lib/stupidedi/versions/003050/segment_defs/MAN.rb +23 -0
  630. data/lib/stupidedi/versions/003050/segment_defs/MEA.rb +22 -0
  631. data/lib/stupidedi/versions/003050/segment_defs/MS1.rb +33 -0
  632. data/lib/stupidedi/versions/003050/segment_defs/MS2.rb +22 -0
  633. data/lib/stupidedi/versions/003050/segment_defs/MS3.rb +21 -0
  634. data/lib/stupidedi/versions/003050/segment_defs/MSG.rb +17 -0
  635. data/lib/stupidedi/versions/003050/segment_defs/N1.rb +17 -0
  636. data/lib/stupidedi/versions/003050/segment_defs/N2.rb +17 -0
  637. data/lib/stupidedi/versions/003050/segment_defs/N3.rb +17 -0
  638. data/lib/stupidedi/versions/003050/segment_defs/N4.rb +19 -0
  639. data/lib/stupidedi/versions/003050/segment_defs/N7.rb +42 -0
  640. data/lib/stupidedi/versions/003050/segment_defs/N9.rb +18 -0
  641. data/lib/stupidedi/versions/003050/segment_defs/NTE.rb +18 -0
  642. data/lib/stupidedi/versions/003050/segment_defs/PER.rb +18 -0
  643. data/lib/stupidedi/versions/003050/segment_defs/PID.rb +20 -0
  644. data/lib/stupidedi/versions/003050/segment_defs/PLD.rb +21 -0
  645. data/lib/stupidedi/versions/003050/segment_defs/PO1.rb +23 -0
  646. data/lib/stupidedi/versions/003050/segment_defs/PO4.rb +20 -0
  647. data/lib/stupidedi/versions/003050/segment_defs/PRR.rb +19 -0
  648. data/lib/stupidedi/versions/003050/segment_defs/QTY.rb +18 -0
  649. data/lib/stupidedi/versions/003050/segment_defs/REF.rb +18 -0
  650. data/lib/stupidedi/versions/003050/segment_defs/REP.rb +19 -0
  651. data/lib/stupidedi/versions/003050/segment_defs/RMT.rb +25 -0
  652. data/lib/stupidedi/versions/003050/segment_defs/S5.rb +29 -0
  653. data/lib/stupidedi/versions/003050/segment_defs/SE.rb +19 -0
  654. data/lib/stupidedi/versions/003050/segment_defs/SN1.rb +24 -0
  655. data/lib/stupidedi/versions/003050/segment_defs/SSS.rb +22 -0
  656. data/lib/stupidedi/versions/003050/segment_defs/ST.rb +18 -0
  657. data/lib/stupidedi/versions/003050/segment_defs/TD1.rb +27 -0
  658. data/lib/stupidedi/versions/003050/segment_defs/TD3.rb +20 -0
  659. data/lib/stupidedi/versions/003050/segment_defs/TD5.rb +18 -0
  660. data/lib/stupidedi/versions/003050/segment_defs/TDS.rb +16 -0
  661. data/lib/stupidedi/versions/003050/segment_defs/W01.rb +37 -0
  662. data/lib/stupidedi/versions/003050/segment_defs/W03.rb +25 -0
  663. data/lib/stupidedi/versions/003050/segment_defs/W04.rb +35 -0
  664. data/lib/stupidedi/versions/003050/segment_defs/W05.rb +24 -0
  665. data/lib/stupidedi/versions/003050/segment_defs/W06.rb +29 -0
  666. data/lib/stupidedi/versions/003050/segment_defs/W07.rb +30 -0
  667. data/lib/stupidedi/versions/003050/segment_defs/W08.rb +26 -0
  668. data/lib/stupidedi/versions/003050/segment_defs/W12.rb +43 -0
  669. data/lib/stupidedi/versions/003050/segment_defs/W14.rb +20 -0
  670. data/lib/stupidedi/versions/003050/segment_defs/W17.rb +26 -0
  671. data/lib/stupidedi/versions/003050/segment_defs/W20.rb +28 -0
  672. data/lib/stupidedi/versions/003050/segment_defs/W27.rb +27 -0
  673. data/lib/stupidedi/versions/003050/segment_defs/W66.rb +26 -0
  674. data/lib/stupidedi/versions/003050/segment_defs/W76.rb +24 -0
  675. data/lib/stupidedi/versions/003050/segment_reqs.rb +11 -0
  676. data/lib/stupidedi/versions/003050/syntax_notes.rb +14 -0
  677. data/lib/stupidedi/versions/004010.rb +14 -0
  678. data/lib/stupidedi/versions/004010/element_defs.rb +9512 -0
  679. data/lib/stupidedi/versions/004010/element_reqs.rb +12 -0
  680. data/lib/stupidedi/versions/004010/element_types.rb +28 -0
  681. data/lib/stupidedi/versions/004010/element_types/an.rb +11 -0
  682. data/lib/stupidedi/versions/004010/element_types/dt.rb +11 -0
  683. data/lib/stupidedi/versions/004010/element_types/float_val.rb +11 -0
  684. data/lib/stupidedi/versions/004010/element_types/id.rb +11 -0
  685. data/lib/stupidedi/versions/004010/element_types/nn.rb +11 -0
  686. data/lib/stupidedi/versions/004010/element_types/tm.rb +11 -0
  687. data/lib/stupidedi/versions/004010/functional_group_def.rb +24 -0
  688. data/lib/stupidedi/versions/004010/segment_defs.rb +120 -0
  689. data/lib/stupidedi/versions/004010/segment_defs/AK1.rb +17 -0
  690. data/lib/stupidedi/versions/004010/segment_defs/AK2.rb +17 -0
  691. data/lib/stupidedi/versions/004010/segment_defs/AK3.rb +20 -0
  692. data/lib/stupidedi/versions/004010/segment_defs/AK4.rb +20 -0
  693. data/lib/stupidedi/versions/004010/segment_defs/AK5.rb +22 -0
  694. data/lib/stupidedi/versions/004010/segment_defs/AK9.rb +27 -0
  695. data/lib/stupidedi/versions/004010/segment_defs/AMT.rb +18 -0
  696. data/lib/stupidedi/versions/004010/segment_defs/AT7.rb +29 -0
  697. data/lib/stupidedi/versions/004010/segment_defs/AT8.rb +25 -0
  698. data/lib/stupidedi/versions/004010/segment_defs/B1.rb +20 -0
  699. data/lib/stupidedi/versions/004010/segment_defs/B10.rb +26 -0
  700. data/lib/stupidedi/versions/004010/segment_defs/B2.rb +27 -0
  701. data/lib/stupidedi/versions/004010/segment_defs/B2A.rb +17 -0
  702. data/lib/stupidedi/versions/004010/segment_defs/B3.rb +27 -0
  703. data/lib/stupidedi/versions/004010/segment_defs/BAK.rb +21 -0
  704. data/lib/stupidedi/versions/004010/segment_defs/BCT.rb +17 -0
  705. data/lib/stupidedi/versions/004010/segment_defs/BEG.rb +28 -0
  706. data/lib/stupidedi/versions/004010/segment_defs/BFR.rb +28 -0
  707. data/lib/stupidedi/versions/004010/segment_defs/BPR.rb +44 -0
  708. data/lib/stupidedi/versions/004010/segment_defs/BSN.rb +21 -0
  709. data/lib/stupidedi/versions/004010/segment_defs/BSS.rb +27 -0
  710. data/lib/stupidedi/versions/004010/segment_defs/C3.rb +18 -0
  711. data/lib/stupidedi/versions/004010/segment_defs/CAS.rb +50 -0
  712. data/lib/stupidedi/versions/004010/segment_defs/CLP.rb +28 -0
  713. data/lib/stupidedi/versions/004010/segment_defs/CTP.rb +31 -0
  714. data/lib/stupidedi/versions/004010/segment_defs/CTT.rb +25 -0
  715. data/lib/stupidedi/versions/004010/segment_defs/CUR.rb +51 -0
  716. data/lib/stupidedi/versions/004010/segment_defs/DTM.rb +24 -0
  717. data/lib/stupidedi/versions/004010/segment_defs/FST.rb +24 -0
  718. data/lib/stupidedi/versions/004010/segment_defs/G61.rb +22 -0
  719. data/lib/stupidedi/versions/004010/segment_defs/G62.rb +22 -0
  720. data/lib/stupidedi/versions/004010/segment_defs/G69.rb +16 -0
  721. data/lib/stupidedi/versions/004010/segment_defs/GE.rb +18 -0
  722. data/lib/stupidedi/versions/004010/segment_defs/GS.rb +24 -0
  723. data/lib/stupidedi/versions/004010/segment_defs/H3.rb +22 -0
  724. data/lib/stupidedi/versions/004010/segment_defs/HL.rb +20 -0
  725. data/lib/stupidedi/versions/004010/segment_defs/JIT.rb +18 -0
  726. data/lib/stupidedi/versions/004010/segment_defs/K1.rb +18 -0
  727. data/lib/stupidedi/versions/004010/segment_defs/L0.rb +30 -0
  728. data/lib/stupidedi/versions/004010/segment_defs/L1.rb +39 -0
  729. data/lib/stupidedi/versions/004010/segment_defs/L11.rb +21 -0
  730. data/lib/stupidedi/versions/004010/segment_defs/L3.rb +37 -0
  731. data/lib/stupidedi/versions/004010/segment_defs/L4.rb +21 -0
  732. data/lib/stupidedi/versions/004010/segment_defs/L5.rb +29 -0
  733. data/lib/stupidedi/versions/004010/segment_defs/L7.rb +32 -0
  734. data/lib/stupidedi/versions/004010/segment_defs/LAD.rb +34 -0
  735. data/lib/stupidedi/versions/004010/segment_defs/LFH.rb +25 -0
  736. data/lib/stupidedi/versions/004010/segment_defs/LH1.rb +29 -0
  737. data/lib/stupidedi/versions/004010/segment_defs/LH2.rb +33 -0
  738. data/lib/stupidedi/versions/004010/segment_defs/LH3.rb +21 -0
  739. data/lib/stupidedi/versions/004010/segment_defs/LIN.rb +47 -0
  740. data/lib/stupidedi/versions/004010/segment_defs/LQ.rb +18 -0
  741. data/lib/stupidedi/versions/004010/segment_defs/LX.rb +16 -0
  742. data/lib/stupidedi/versions/004010/segment_defs/M7.rb +21 -0
  743. data/lib/stupidedi/versions/004010/segment_defs/MAN.rb +23 -0
  744. data/lib/stupidedi/versions/004010/segment_defs/MEA.rb +36 -0
  745. data/lib/stupidedi/versions/004010/segment_defs/MIA.rb +40 -0
  746. data/lib/stupidedi/versions/004010/segment_defs/MOA.rb +25 -0
  747. data/lib/stupidedi/versions/004010/segment_defs/MS1.rb +33 -0
  748. data/lib/stupidedi/versions/004010/segment_defs/MS2.rb +22 -0
  749. data/lib/stupidedi/versions/004010/segment_defs/MS3.rb +21 -0
  750. data/lib/stupidedi/versions/004010/segment_defs/N1.rb +23 -0
  751. data/lib/stupidedi/versions/004010/segment_defs/N2.rb +17 -0
  752. data/lib/stupidedi/versions/004010/segment_defs/N3.rb +17 -0
  753. data/lib/stupidedi/versions/004010/segment_defs/N4.rb +22 -0
  754. data/lib/stupidedi/versions/004010/segment_defs/N7.rb +42 -0
  755. data/lib/stupidedi/versions/004010/segment_defs/N9.rb +25 -0
  756. data/lib/stupidedi/versions/004010/segment_defs/NM1.rb +28 -0
  757. data/lib/stupidedi/versions/004010/segment_defs/NTE.rb +18 -0
  758. data/lib/stupidedi/versions/004010/segment_defs/OID.rb +28 -0
  759. data/lib/stupidedi/versions/004010/segment_defs/PER.rb +28 -0
  760. data/lib/stupidedi/versions/004010/segment_defs/PID.rb +29 -0
  761. data/lib/stupidedi/versions/004010/segment_defs/PLB.rb +37 -0
  762. data/lib/stupidedi/versions/004010/segment_defs/PLD.rb +21 -0
  763. data/lib/stupidedi/versions/004010/segment_defs/PO1.rb +52 -0
  764. data/lib/stupidedi/versions/004010/segment_defs/PO4.rb +20 -0
  765. data/lib/stupidedi/versions/004010/segment_defs/PRF.rb +16 -0
  766. data/lib/stupidedi/versions/004010/segment_defs/QTY.rb +21 -0
  767. data/lib/stupidedi/versions/004010/segment_defs/R3.rb +24 -0
  768. data/lib/stupidedi/versions/004010/segment_defs/REF.rb +20 -0
  769. data/lib/stupidedi/versions/004010/segment_defs/S5.rb +29 -0
  770. data/lib/stupidedi/versions/004010/segment_defs/SCH.rb +24 -0
  771. data/lib/stupidedi/versions/004010/segment_defs/SDP.rb +17 -0
  772. data/lib/stupidedi/versions/004010/segment_defs/SE.rb +19 -0
  773. data/lib/stupidedi/versions/004010/segment_defs/SHP.rb +19 -0
  774. data/lib/stupidedi/versions/004010/segment_defs/SN1.rb +24 -0
  775. data/lib/stupidedi/versions/004010/segment_defs/ST.rb +18 -0
  776. data/lib/stupidedi/versions/004010/segment_defs/SVC.rb +23 -0
  777. data/lib/stupidedi/versions/004010/segment_defs/TD1.rb +19 -0
  778. data/lib/stupidedi/versions/004010/segment_defs/TD3.rb +23 -0
  779. data/lib/stupidedi/versions/004010/segment_defs/TD4.rb +22 -0
  780. data/lib/stupidedi/versions/004010/segment_defs/TD5.rb +21 -0
  781. data/lib/stupidedi/versions/004010/segment_defs/TRN.rb +19 -0
  782. data/lib/stupidedi/versions/004010/segment_defs/TS2.rb +35 -0
  783. data/lib/stupidedi/versions/004010/segment_defs/TS3.rb +39 -0
  784. data/lib/stupidedi/versions/004010/segment_defs/UIT.rb +17 -0
  785. data/lib/stupidedi/versions/004010/segment_defs/W01.rb +37 -0
  786. data/lib/stupidedi/versions/004010/segment_defs/W03.rb +25 -0
  787. data/lib/stupidedi/versions/004010/segment_defs/W04.rb +35 -0
  788. data/lib/stupidedi/versions/004010/segment_defs/W05.rb +24 -0
  789. data/lib/stupidedi/versions/004010/segment_defs/W06.rb +29 -0
  790. data/lib/stupidedi/versions/004010/segment_defs/W07.rb +30 -0
  791. data/lib/stupidedi/versions/004010/segment_defs/W08.rb +26 -0
  792. data/lib/stupidedi/versions/004010/segment_defs/W12.rb +43 -0
  793. data/lib/stupidedi/versions/004010/segment_defs/W14.rb +20 -0
  794. data/lib/stupidedi/versions/004010/segment_defs/W17.rb +26 -0
  795. data/lib/stupidedi/versions/004010/segment_defs/W20.rb +28 -0
  796. data/lib/stupidedi/versions/004010/segment_defs/W27.rb +27 -0
  797. data/lib/stupidedi/versions/004010/segment_defs/W66.rb +26 -0
  798. data/lib/stupidedi/versions/004010/segment_defs/W76.rb +24 -0
  799. data/lib/stupidedi/versions/004010/segment_reqs.rb +11 -0
  800. data/lib/stupidedi/versions/004010/syntax_notes.rb +14 -0
  801. data/lib/stupidedi/versions/005010.rb +14 -0
  802. data/lib/stupidedi/versions/005010/element_defs.rb +3353 -0
  803. data/lib/stupidedi/versions/005010/element_reqs.rb +12 -0
  804. data/lib/stupidedi/versions/005010/element_types.rb +28 -0
  805. data/lib/stupidedi/versions/005010/element_types/an.rb +11 -0
  806. data/lib/stupidedi/versions/005010/element_types/dt.rb +11 -0
  807. data/lib/stupidedi/versions/005010/element_types/float_val.rb +11 -0
  808. data/lib/stupidedi/versions/005010/element_types/id.rb +11 -0
  809. data/lib/stupidedi/versions/005010/element_types/nn.rb +11 -0
  810. data/lib/stupidedi/versions/005010/element_types/tm.rb +11 -0
  811. data/lib/stupidedi/versions/005010/functional_group_def.rb +23 -0
  812. data/lib/stupidedi/versions/005010/segment_defs.rb +156 -0
  813. data/lib/stupidedi/versions/005010/segment_defs/AAA.rb +20 -0
  814. data/lib/stupidedi/versions/005010/segment_defs/ACT.rb +27 -0
  815. data/lib/stupidedi/versions/005010/segment_defs/AD1.rb +15 -0
  816. data/lib/stupidedi/versions/005010/segment_defs/ADX.rb +15 -0
  817. data/lib/stupidedi/versions/005010/segment_defs/AIN.rb +15 -0
  818. data/lib/stupidedi/versions/005010/segment_defs/AK1.rb +18 -0
  819. data/lib/stupidedi/versions/005010/segment_defs/AK2.rb +18 -0
  820. data/lib/stupidedi/versions/005010/segment_defs/AK3.rb +20 -0
  821. data/lib/stupidedi/versions/005010/segment_defs/AK4.rb +20 -0
  822. data/lib/stupidedi/versions/005010/segment_defs/AK5.rb +22 -0
  823. data/lib/stupidedi/versions/005010/segment_defs/AK9.rb +27 -0
  824. data/lib/stupidedi/versions/005010/segment_defs/AMT.rb +18 -0
  825. data/lib/stupidedi/versions/005010/segment_defs/ASM.rb +15 -0
  826. data/lib/stupidedi/versions/005010/segment_defs/ATN.rb +15 -0
  827. data/lib/stupidedi/versions/005010/segment_defs/BEN.rb +15 -0
  828. data/lib/stupidedi/versions/005010/segment_defs/BGN.rb +25 -0
  829. data/lib/stupidedi/versions/005010/segment_defs/BHT.rb +23 -0
  830. data/lib/stupidedi/versions/005010/segment_defs/BPR.rb +44 -0
  831. data/lib/stupidedi/versions/005010/segment_defs/CAS.rb +50 -0
  832. data/lib/stupidedi/versions/005010/segment_defs/CL1.rb +19 -0
  833. data/lib/stupidedi/versions/005010/segment_defs/CLM.rb +35 -0
  834. data/lib/stupidedi/versions/005010/segment_defs/CLP.rb +29 -0
  835. data/lib/stupidedi/versions/005010/segment_defs/CN1.rb +21 -0
  836. data/lib/stupidedi/versions/005010/segment_defs/COB.rb +19 -0
  837. data/lib/stupidedi/versions/005010/segment_defs/CR1.rb +28 -0
  838. data/lib/stupidedi/versions/005010/segment_defs/CR2.rb +31 -0
  839. data/lib/stupidedi/versions/005010/segment_defs/CR3.rb +22 -0
  840. data/lib/stupidedi/versions/005010/segment_defs/CR4.rb +15 -0
  841. data/lib/stupidedi/versions/005010/segment_defs/CR5.rb +15 -0
  842. data/lib/stupidedi/versions/005010/segment_defs/CR6.rb +15 -0
  843. data/lib/stupidedi/versions/005010/segment_defs/CR7.rb +15 -0
  844. data/lib/stupidedi/versions/005010/segment_defs/CR8.rb +15 -0
  845. data/lib/stupidedi/versions/005010/segment_defs/CRC.rb +22 -0
  846. data/lib/stupidedi/versions/005010/segment_defs/CTP.rb +31 -0
  847. data/lib/stupidedi/versions/005010/segment_defs/CTX.rb +23 -0
  848. data/lib/stupidedi/versions/005010/segment_defs/CUR.rb +51 -0
  849. data/lib/stupidedi/versions/005010/segment_defs/DED.rb +15 -0
  850. data/lib/stupidedi/versions/005010/segment_defs/DMG.rb +29 -0
  851. data/lib/stupidedi/versions/005010/segment_defs/DN1.rb +19 -0
  852. data/lib/stupidedi/versions/005010/segment_defs/DN2.rb +21 -0
  853. data/lib/stupidedi/versions/005010/segment_defs/DSB.rb +24 -0
  854. data/lib/stupidedi/versions/005010/segment_defs/DTM.rb +21 -0
  855. data/lib/stupidedi/versions/005010/segment_defs/DTP.rb +18 -0
  856. data/lib/stupidedi/versions/005010/segment_defs/EB.rb +30 -0
  857. data/lib/stupidedi/versions/005010/segment_defs/EC.rb +21 -0
  858. data/lib/stupidedi/versions/005010/segment_defs/EM.rb +15 -0
  859. data/lib/stupidedi/versions/005010/segment_defs/EMS.rb +15 -0
  860. data/lib/stupidedi/versions/005010/segment_defs/ENT.rb +15 -0
  861. data/lib/stupidedi/versions/005010/segment_defs/EQ.rb +21 -0
  862. data/lib/stupidedi/versions/005010/segment_defs/FA1.rb +15 -0
  863. data/lib/stupidedi/versions/005010/segment_defs/FA2.rb +15 -0
  864. data/lib/stupidedi/versions/005010/segment_defs/FC.rb +15 -0
  865. data/lib/stupidedi/versions/005010/segment_defs/FRM.rb +22 -0
  866. data/lib/stupidedi/versions/005010/segment_defs/FSA.rb +15 -0
  867. data/lib/stupidedi/versions/005010/segment_defs/G53.rb +15 -0
  868. data/lib/stupidedi/versions/005010/segment_defs/GE.rb +18 -0
  869. data/lib/stupidedi/versions/005010/segment_defs/GS.rb +24 -0
  870. data/lib/stupidedi/versions/005010/segment_defs/HCP.rb +34 -0
  871. data/lib/stupidedi/versions/005010/segment_defs/HCR.rb +15 -0
  872. data/lib/stupidedi/versions/005010/segment_defs/HD.rb +26 -0
  873. data/lib/stupidedi/versions/005010/segment_defs/HI.rb +27 -0
  874. data/lib/stupidedi/versions/005010/segment_defs/HL.rb +20 -0
  875. data/lib/stupidedi/versions/005010/segment_defs/HLH.rb +22 -0
  876. data/lib/stupidedi/versions/005010/segment_defs/HSD.rb +25 -0
  877. data/lib/stupidedi/versions/005010/segment_defs/ICM.rb +22 -0
  878. data/lib/stupidedi/versions/005010/segment_defs/IDC.rb +20 -0
  879. data/lib/stupidedi/versions/005010/segment_defs/III.rb +26 -0
  880. data/lib/stupidedi/versions/005010/segment_defs/IK3.rb +19 -0
  881. data/lib/stupidedi/versions/005010/segment_defs/IK4.rb +20 -0
  882. data/lib/stupidedi/versions/005010/segment_defs/IK5.rb +22 -0
  883. data/lib/stupidedi/versions/005010/segment_defs/IMM.rb +15 -0
  884. data/lib/stupidedi/versions/005010/segment_defs/INS.rb +33 -0
  885. data/lib/stupidedi/versions/005010/segment_defs/INV.rb +15 -0
  886. data/lib/stupidedi/versions/005010/segment_defs/IT1.rb +15 -0
  887. data/lib/stupidedi/versions/005010/segment_defs/K3.rb +18 -0
  888. data/lib/stupidedi/versions/005010/segment_defs/LC.rb +15 -0
  889. data/lib/stupidedi/versions/005010/segment_defs/LE.rb +17 -0
  890. data/lib/stupidedi/versions/005010/segment_defs/LIN.rb +60 -0
  891. data/lib/stupidedi/versions/005010/segment_defs/LOC.rb +15 -0
  892. data/lib/stupidedi/versions/005010/segment_defs/LQ.rb +18 -0
  893. data/lib/stupidedi/versions/005010/segment_defs/LS.rb +16 -0
  894. data/lib/stupidedi/versions/005010/segment_defs/LUI.rb +22 -0
  895. data/lib/stupidedi/versions/005010/segment_defs/LX.rb +16 -0
  896. data/lib/stupidedi/versions/005010/segment_defs/MEA.rb +35 -0
  897. data/lib/stupidedi/versions/005010/segment_defs/MIA.rb +40 -0
  898. data/lib/stupidedi/versions/005010/segment_defs/MOA.rb +25 -0
  899. data/lib/stupidedi/versions/005010/segment_defs/MPI.rb +23 -0
  900. data/lib/stupidedi/versions/005010/segment_defs/MSG.rb +20 -0
  901. data/lib/stupidedi/versions/005010/segment_defs/N1.rb +23 -0
  902. data/lib/stupidedi/versions/005010/segment_defs/N2.rb +17 -0
  903. data/lib/stupidedi/versions/005010/segment_defs/N3.rb +17 -0
  904. data/lib/stupidedi/versions/005010/segment_defs/N4.rb +25 -0
  905. data/lib/stupidedi/versions/005010/segment_defs/N9.rb +15 -0
  906. data/lib/stupidedi/versions/005010/segment_defs/NM1.rb +30 -0
  907. data/lib/stupidedi/versions/005010/segment_defs/NTE.rb +18 -0
  908. data/lib/stupidedi/versions/005010/segment_defs/NX1.rb +15 -0
  909. data/lib/stupidedi/versions/005010/segment_defs/OI.rb +22 -0
  910. data/lib/stupidedi/versions/005010/segment_defs/PAT.rb +26 -0
  911. data/lib/stupidedi/versions/005010/segment_defs/PCT.rb +15 -0
  912. data/lib/stupidedi/versions/005010/segment_defs/PDP.rb +15 -0
  913. data/lib/stupidedi/versions/005010/segment_defs/PDR.rb +15 -0
  914. data/lib/stupidedi/versions/005010/segment_defs/PEN.rb +15 -0
  915. data/lib/stupidedi/versions/005010/segment_defs/PER.rb +28 -0
  916. data/lib/stupidedi/versions/005010/segment_defs/PID.rb +15 -0
  917. data/lib/stupidedi/versions/005010/segment_defs/PKD.rb +15 -0
  918. data/lib/stupidedi/versions/005010/segment_defs/PLA.rb +21 -0
  919. data/lib/stupidedi/versions/005010/segment_defs/PLB.rb +37 -0
  920. data/lib/stupidedi/versions/005010/segment_defs/PM.rb +15 -0
  921. data/lib/stupidedi/versions/005010/segment_defs/PRV.rb +22 -0
  922. data/lib/stupidedi/versions/005010/segment_defs/PS1.rb +18 -0
  923. data/lib/stupidedi/versions/005010/segment_defs/PWK.rb +26 -0
  924. data/lib/stupidedi/versions/005010/segment_defs/PYD.rb +15 -0
  925. data/lib/stupidedi/versions/005010/segment_defs/QTY.rb +21 -0
  926. data/lib/stupidedi/versions/005010/segment_defs/RDM.rb +21 -0
  927. data/lib/stupidedi/versions/005010/segment_defs/REF.rb +20 -0
  928. data/lib/stupidedi/versions/005010/segment_defs/REL.rb +15 -0
  929. data/lib/stupidedi/versions/005010/segment_defs/RMR.rb +15 -0
  930. data/lib/stupidedi/versions/005010/segment_defs/RP.rb +15 -0
  931. data/lib/stupidedi/versions/005010/segment_defs/RPA.rb +15 -0
  932. data/lib/stupidedi/versions/005010/segment_defs/RYL.rb +15 -0
  933. data/lib/stupidedi/versions/005010/segment_defs/SAC.rb +15 -0
  934. data/lib/stupidedi/versions/005010/segment_defs/SBR.rb +25 -0
  935. data/lib/stupidedi/versions/005010/segment_defs/SD1.rb +15 -0
  936. data/lib/stupidedi/versions/005010/segment_defs/SE.rb +19 -0
  937. data/lib/stupidedi/versions/005010/segment_defs/SLN.rb +15 -0
  938. data/lib/stupidedi/versions/005010/segment_defs/ST.rb +19 -0
  939. data/lib/stupidedi/versions/005010/segment_defs/STC.rb +28 -0
  940. data/lib/stupidedi/versions/005010/segment_defs/SV1.rb +38 -0
  941. data/lib/stupidedi/versions/005010/segment_defs/SV2.rb +26 -0
  942. data/lib/stupidedi/versions/005010/segment_defs/SV3.rb +26 -0
  943. data/lib/stupidedi/versions/005010/segment_defs/SV4.rb +15 -0
  944. data/lib/stupidedi/versions/005010/segment_defs/SV5.rb +24 -0
  945. data/lib/stupidedi/versions/005010/segment_defs/SV6.rb +15 -0
  946. data/lib/stupidedi/versions/005010/segment_defs/SV7.rb +15 -0
  947. data/lib/stupidedi/versions/005010/segment_defs/SVC.rb +23 -0
  948. data/lib/stupidedi/versions/005010/segment_defs/SVD.rb +23 -0
  949. data/lib/stupidedi/versions/005010/segment_defs/TOO.rb +19 -0
  950. data/lib/stupidedi/versions/005010/segment_defs/TRN.rb +19 -0
  951. data/lib/stupidedi/versions/005010/segment_defs/TS2.rb +35 -0
  952. data/lib/stupidedi/versions/005010/segment_defs/TS3.rb +39 -0
  953. data/lib/stupidedi/versions/005010/segment_defs/TXI.rb +15 -0
  954. data/lib/stupidedi/versions/005010/segment_defs/TXP.rb +15 -0
  955. data/lib/stupidedi/versions/005010/segment_defs/UM.rb +15 -0
  956. data/lib/stupidedi/versions/005010/segment_defs/UR.rb +15 -0
  957. data/lib/stupidedi/versions/005010/segment_defs/VEH.rb +15 -0
  958. data/lib/stupidedi/versions/005010/segment_reqs.rb +11 -0
  959. data/lib/stupidedi/versions/005010/syntax_notes.rb +14 -0
  960. data/lib/stupidedi/versions/common.rb +11 -0
  961. data/lib/stupidedi/versions/common/element_reqs.rb +13 -0
  962. data/lib/stupidedi/versions/common/element_types.rb +29 -0
  963. data/lib/stupidedi/versions/common/element_types/an.rb +386 -0
  964. data/lib/stupidedi/versions/common/element_types/dt.rb +572 -0
  965. data/lib/stupidedi/versions/common/element_types/id.rb +304 -0
  966. data/lib/stupidedi/versions/common/element_types/nn.rb +312 -0
  967. data/lib/stupidedi/versions/common/element_types/operators.rb +128 -0
  968. data/lib/stupidedi/versions/common/element_types/r.rb +340 -0
  969. data/lib/stupidedi/versions/common/element_types/simple_element.rb +73 -0
  970. data/lib/stupidedi/versions/common/element_types/tm.rb +347 -0
  971. data/lib/stupidedi/versions/common/segment_reqs.rb +15 -0
  972. data/lib/stupidedi/versions/common/syntax_notes.rb +172 -0
  973. data/lib/stupidedi/versions/functional_groups.rb +23 -8
  974. data/lib/stupidedi/versions/interchanges.rb +2 -9
  975. data/lib/stupidedi/writer.rb +0 -1
  976. data/lib/stupidedi/writer/claredi.rb +75 -41
  977. data/lib/stupidedi/writer/default.rb +23 -31
  978. data/lib/stupidedi/zipper.rb +0 -3
  979. data/lib/stupidedi/zipper/abstract_cursor.rb +10 -14
  980. data/lib/stupidedi/zipper/dangling_cursor.rb +0 -4
  981. data/lib/stupidedi/zipper/edited_cursor.rb +0 -4
  982. data/lib/stupidedi/zipper/memoized_cursor.rb +0 -4
  983. data/lib/stupidedi/zipper/path.rb +0 -6
  984. data/lib/stupidedi/zipper/root_cursor.rb +0 -4
  985. data/lib/stupidedi/zipper/stack_cursor.rb +0 -67
  986. metadata +872 -1026
  987. data/doc/unwritten/Defining.md +0 -0
  988. data/lib/ruby/instance_exec.rb +0 -30
  989. data/lib/ruby/jruby_hack.rb +0 -683
  990. data/lib/ruby/symbol.rb +0 -29
  991. data/lib/stupidedi/blank_slate.rb +0 -12
  992. data/lib/stupidedi/builder/builder_dsl.rb +0 -293
  993. data/lib/stupidedi/builder/constraint_table.rb +0 -476
  994. data/lib/stupidedi/builder/generation.rb +0 -147
  995. data/lib/stupidedi/builder/identifier_stack.rb +0 -171
  996. data/lib/stupidedi/builder/instruction.rb +0 -116
  997. data/lib/stupidedi/builder/instruction_table.rb +0 -220
  998. data/lib/stupidedi/builder/navigation.rb +0 -735
  999. data/lib/stupidedi/builder/state_machine.rb +0 -65
  1000. data/lib/stupidedi/builder/states/abstract_state.rb +0 -338
  1001. data/lib/stupidedi/builder/states/failure_state.rb +0 -73
  1002. data/lib/stupidedi/builder/states/functional_group_state.rb +0 -100
  1003. data/lib/stupidedi/builder/states/initial_state.rb +0 -66
  1004. data/lib/stupidedi/builder/states/interchange_state.rb +0 -98
  1005. data/lib/stupidedi/builder/states/loop_state.rb +0 -83
  1006. data/lib/stupidedi/builder/states/table_state.rb +0 -100
  1007. data/lib/stupidedi/builder/states/transaction_set_state.rb +0 -116
  1008. data/lib/stupidedi/builder/states/transmission_state.rb +0 -63
  1009. data/lib/stupidedi/builder/tokenization.rb +0 -202
  1010. data/lib/stupidedi/contrib/002001.rb +0 -14
  1011. data/lib/stupidedi/contrib/002001/guides.rb +0 -22
  1012. data/lib/stupidedi/contrib/002001/guides/FA997.rb +0 -82
  1013. data/lib/stupidedi/contrib/002001/guides/PO830.rb +0 -184
  1014. data/lib/stupidedi/contrib/002001/guides/SH856.rb +0 -217
  1015. data/lib/stupidedi/contrib/002001/transaction_set_defs.rb +0 -25
  1016. data/lib/stupidedi/contrib/002001/transaction_set_defs/FA997.rb +0 -32
  1017. data/lib/stupidedi/contrib/002001/transaction_set_defs/PO830.rb +0 -47
  1018. data/lib/stupidedi/contrib/002001/transaction_set_defs/SH856.rb +0 -39
  1019. data/lib/stupidedi/contrib/003010.rb +0 -14
  1020. data/lib/stupidedi/contrib/003010/guides.rb +0 -23
  1021. data/lib/stupidedi/contrib/003010/guides/PC860.rb +0 -176
  1022. data/lib/stupidedi/contrib/003010/guides/PO850.rb +0 -169
  1023. data/lib/stupidedi/contrib/003010/guides/PS830.rb +0 -169
  1024. data/lib/stupidedi/contrib/003010/guides/RA820.rb +0 -187
  1025. data/lib/stupidedi/contrib/003010/transaction_set_defs.rb +0 -25
  1026. data/lib/stupidedi/contrib/003010/transaction_set_defs/PC860.rb +0 -48
  1027. data/lib/stupidedi/contrib/003010/transaction_set_defs/PO850.rb +0 -49
  1028. data/lib/stupidedi/contrib/003010/transaction_set_defs/PS830.rb +0 -49
  1029. data/lib/stupidedi/contrib/003010/transaction_set_defs/RA820.rb +0 -40
  1030. data/lib/stupidedi/contrib/003040.rb +0 -14
  1031. data/lib/stupidedi/contrib/003040/guides.rb +0 -20
  1032. data/lib/stupidedi/contrib/003040/guides/WA142.rb +0 -187
  1033. data/lib/stupidedi/contrib/003040/transaction_set_defs.rb +0 -16
  1034. data/lib/stupidedi/contrib/003040/transaction_set_defs/WA142.rb +0 -53
  1035. data/lib/stupidedi/contrib/003050.rb +0 -14
  1036. data/lib/stupidedi/contrib/003050/guides.rb +0 -16
  1037. data/lib/stupidedi/contrib/003050/guides/PO850.rb +0 -97
  1038. data/lib/stupidedi/contrib/003050/transaction_set_defs.rb +0 -15
  1039. data/lib/stupidedi/contrib/003050/transaction_set_defs/PO850.rb +0 -43
  1040. data/lib/stupidedi/contrib/004010.rb +0 -14
  1041. data/lib/stupidedi/contrib/004010/guides.rb +0 -28
  1042. data/lib/stupidedi/contrib/004010/guides/AR943.rb +0 -89
  1043. data/lib/stupidedi/contrib/004010/guides/FA997.rb +0 -82
  1044. data/lib/stupidedi/contrib/004010/guides/GF990.rb +0 -55
  1045. data/lib/stupidedi/contrib/004010/guides/IM210.rb +0 -267
  1046. data/lib/stupidedi/contrib/004010/guides/OW940.rb +0 -121
  1047. data/lib/stupidedi/contrib/004010/guides/PO850.rb +0 -133
  1048. data/lib/stupidedi/contrib/004010/guides/PS830.rb +0 -165
  1049. data/lib/stupidedi/contrib/004010/guides/QM214.rb +0 -141
  1050. data/lib/stupidedi/contrib/004010/guides/RE944.rb +0 -75
  1051. data/lib/stupidedi/contrib/004010/guides/SH856.rb +0 -187
  1052. data/lib/stupidedi/contrib/004010/guides/SM204.rb +0 -480
  1053. data/lib/stupidedi/contrib/004010/guides/SQ866.rb +0 -120
  1054. data/lib/stupidedi/contrib/004010/guides/SS862.rb +0 -178
  1055. data/lib/stupidedi/contrib/004010/guides/SW945.rb +0 -120
  1056. data/lib/stupidedi/contrib/004010/transaction_set_defs.rb +0 -61
  1057. data/lib/stupidedi/contrib/004010/transaction_set_defs/AR943.rb +0 -35
  1058. data/lib/stupidedi/contrib/004010/transaction_set_defs/FA997.rb +0 -31
  1059. data/lib/stupidedi/contrib/004010/transaction_set_defs/GF990.rb +0 -22
  1060. data/lib/stupidedi/contrib/004010/transaction_set_defs/IM210.rb +0 -47
  1061. data/lib/stupidedi/contrib/004010/transaction_set_defs/OW940.rb +0 -44
  1062. data/lib/stupidedi/contrib/004010/transaction_set_defs/PO850.rb +0 -51
  1063. data/lib/stupidedi/contrib/004010/transaction_set_defs/PR855.rb +0 -35
  1064. data/lib/stupidedi/contrib/004010/transaction_set_defs/PS830.rb +0 -45
  1065. data/lib/stupidedi/contrib/004010/transaction_set_defs/QM214.rb +0 -41
  1066. data/lib/stupidedi/contrib/004010/transaction_set_defs/RE944.rb +0 -35
  1067. data/lib/stupidedi/contrib/004010/transaction_set_defs/SC832.rb +0 -45
  1068. data/lib/stupidedi/contrib/004010/transaction_set_defs/SH856.rb +0 -44
  1069. data/lib/stupidedi/contrib/004010/transaction_set_defs/SM204.rb +0 -85
  1070. data/lib/stupidedi/contrib/004010/transaction_set_defs/SQ866.rb +0 -33
  1071. data/lib/stupidedi/contrib/004010/transaction_set_defs/SS862.rb +0 -41
  1072. data/lib/stupidedi/contrib/004010/transaction_set_defs/SW945.rb +0 -44
  1073. data/lib/stupidedi/guides/004010.rb +0 -22
  1074. data/lib/stupidedi/guides/004010/X091A1-HP835.rb +0 -533
  1075. data/lib/stupidedi/guides/004010/element_reqs.rb +0 -41
  1076. data/lib/stupidedi/guides/004010/guide_builder.rb +0 -184
  1077. data/lib/stupidedi/guides/004010/segment_reqs.rb +0 -35
  1078. data/lib/stupidedi/guides/005010.rb +0 -87
  1079. data/lib/stupidedi/guides/005010/X212-HR276.rb +0 -387
  1080. data/lib/stupidedi/guides/005010/X214-HN277.rb +0 -412
  1081. data/lib/stupidedi/guides/005010/X220-BE834.rb +0 -709
  1082. data/lib/stupidedi/guides/005010/X220A1-BE834.rb +0 -709
  1083. data/lib/stupidedi/guides/005010/X221-HP835.rb +0 -616
  1084. data/lib/stupidedi/guides/005010/X221A1-HP835.rb +0 -616
  1085. data/lib/stupidedi/guides/005010/X222-HC837P.rb +0 -2294
  1086. data/lib/stupidedi/guides/005010/X222A1-HC837P.rb +0 -2300
  1087. data/lib/stupidedi/guides/005010/X223-HC837I.rb +0 -2579
  1088. data/lib/stupidedi/guides/005010/X231-FA999.rb +0 -126
  1089. data/lib/stupidedi/guides/005010/X231A1-FA999.rb +0 -122
  1090. data/lib/stupidedi/guides/005010/X279-HB271.rb +0 -832
  1091. data/lib/stupidedi/guides/005010/X279-HS270.rb +0 -594
  1092. data/lib/stupidedi/guides/005010/X279A1-HB271.rb +0 -845
  1093. data/lib/stupidedi/guides/005010/X279A1-HS270.rb +0 -594
  1094. data/lib/stupidedi/guides/005010/element_reqs.rb +0 -41
  1095. data/lib/stupidedi/guides/005010/guide_builder.rb +0 -205
  1096. data/lib/stupidedi/guides/005010/segment_reqs.rb +0 -35
  1097. data/lib/stupidedi/schema/auditor.rb +0 -435
  1098. data/lib/stupidedi/schema/element_def.rb +0 -177
  1099. data/lib/stupidedi/schema/element_use.rb +0 -255
  1100. data/lib/stupidedi/tail_call.rb +0 -111
  1101. data/lib/stupidedi/thread_local.rb +0 -177
  1102. data/lib/stupidedi/versions/functional_groups/002001.rb +0 -41
  1103. data/lib/stupidedi/versions/functional_groups/002001/element_defs.rb +0 -10685
  1104. data/lib/stupidedi/versions/functional_groups/002001/element_reqs.rb +0 -21
  1105. data/lib/stupidedi/versions/functional_groups/002001/element_types.rb +0 -130
  1106. data/lib/stupidedi/versions/functional_groups/002001/element_types/date_val.rb +0 -576
  1107. data/lib/stupidedi/versions/functional_groups/002001/element_types/fixnum_val.rb +0 -318
  1108. data/lib/stupidedi/versions/functional_groups/002001/element_types/float_val.rb +0 -349
  1109. data/lib/stupidedi/versions/functional_groups/002001/element_types/identifier_val.rb +0 -362
  1110. data/lib/stupidedi/versions/functional_groups/002001/element_types/operators.rb +0 -134
  1111. data/lib/stupidedi/versions/functional_groups/002001/element_types/string_val.rb +0 -394
  1112. data/lib/stupidedi/versions/functional_groups/002001/element_types/time_val.rb +0 -330
  1113. data/lib/stupidedi/versions/functional_groups/002001/functional_group_def.rb +0 -33
  1114. data/lib/stupidedi/versions/functional_groups/002001/segment_defs.rb +0 -252
  1115. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/AK1.rb +0 -21
  1116. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/AK2.rb +0 -22
  1117. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/AK3.rb +0 -21
  1118. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/AK4.rb +0 -23
  1119. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/AK5.rb +0 -25
  1120. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/AK9.rb +0 -25
  1121. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/AT7.rb +0 -32
  1122. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/AT8.rb +0 -29
  1123. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/ATH.rb +0 -24
  1124. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/B1.rb +0 -23
  1125. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/B10.rb +0 -30
  1126. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/B2.rb +0 -31
  1127. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/B2A.rb +0 -21
  1128. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/BEG.rb +0 -31
  1129. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/BFR.rb +0 -32
  1130. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/BSN.rb +0 -27
  1131. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/CTT.rb +0 -29
  1132. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/CUR.rb +0 -58
  1133. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/DTM.rb +0 -30
  1134. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/FST.rb +0 -32
  1135. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/G61.rb +0 -26
  1136. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/G62.rb +0 -27
  1137. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/G69.rb +0 -21
  1138. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/GE.rb +0 -21
  1139. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/GS.rb +0 -27
  1140. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/HL.rb +0 -23
  1141. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/J2X.rb +0 -23
  1142. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/K1.rb +0 -21
  1143. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/L11.rb +0 -25
  1144. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/L3.rb +0 -40
  1145. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/L5.rb +0 -33
  1146. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/LFH.rb +0 -29
  1147. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/LH1.rb +0 -33
  1148. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/LH2.rb +0 -37
  1149. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/LH3.rb +0 -25
  1150. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/LIN.rb +0 -51
  1151. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/LX.rb +0 -20
  1152. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/M7.rb +0 -24
  1153. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/MAN.rb +0 -21
  1154. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/MEA.rb +0 -33
  1155. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/MS1.rb +0 -36
  1156. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/MS2.rb +0 -26
  1157. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/MS3.rb +0 -26
  1158. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/N1.rb +0 -23
  1159. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/N2.rb +0 -21
  1160. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/N3.rb +0 -21
  1161. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/N4.rb +0 -30
  1162. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/N7.rb +0 -46
  1163. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/N9.rb +0 -29
  1164. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/NTE.rb +0 -21
  1165. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/PER.rb +0 -32
  1166. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/PID.rb +0 -34
  1167. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/PLD.rb +0 -25
  1168. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/PO1.rb +0 -60
  1169. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/PO4.rb +0 -23
  1170. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/REF.rb +0 -25
  1171. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/S5.rb +0 -34
  1172. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/SDP.rb +0 -21
  1173. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/SE.rb +0 -21
  1174. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/SN1.rb +0 -28
  1175. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/ST.rb +0 -21
  1176. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/TD1.rb +0 -30
  1177. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/TD3.rb +0 -23
  1178. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/TD5.rb +0 -23
  1179. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/UNT.rb +0 -20
  1180. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W01.rb +0 -44
  1181. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W03.rb +0 -30
  1182. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W04.rb +0 -40
  1183. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W05.rb +0 -29
  1184. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W06.rb +0 -33
  1185. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W07.rb +0 -36
  1186. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W08.rb +0 -32
  1187. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W12.rb +0 -51
  1188. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W14.rb +0 -25
  1189. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W17.rb +0 -31
  1190. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W20.rb +0 -33
  1191. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W27.rb +0 -31
  1192. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W66.rb +0 -31
  1193. data/lib/stupidedi/versions/functional_groups/002001/segment_defs/W76.rb +0 -30
  1194. data/lib/stupidedi/versions/functional_groups/002001/segment_reqs.rb +0 -21
  1195. data/lib/stupidedi/versions/functional_groups/002001/syntax_notes.rb +0 -177
  1196. data/lib/stupidedi/versions/functional_groups/002001/transaction_set_defs.rb +0 -14
  1197. data/lib/stupidedi/versions/functional_groups/003010.rb +0 -41
  1198. data/lib/stupidedi/versions/functional_groups/003010/element_defs.rb +0 -9311
  1199. data/lib/stupidedi/versions/functional_groups/003010/element_reqs.rb +0 -22
  1200. data/lib/stupidedi/versions/functional_groups/003010/element_types.rb +0 -130
  1201. data/lib/stupidedi/versions/functional_groups/003010/element_types/date_val.rb +0 -576
  1202. data/lib/stupidedi/versions/functional_groups/003010/element_types/fixnum_val.rb +0 -319
  1203. data/lib/stupidedi/versions/functional_groups/003010/element_types/float_val.rb +0 -349
  1204. data/lib/stupidedi/versions/functional_groups/003010/element_types/identifier_val.rb +0 -361
  1205. data/lib/stupidedi/versions/functional_groups/003010/element_types/operators.rb +0 -134
  1206. data/lib/stupidedi/versions/functional_groups/003010/element_types/string_val.rb +0 -391
  1207. data/lib/stupidedi/versions/functional_groups/003010/element_types/time_val.rb +0 -330
  1208. data/lib/stupidedi/versions/functional_groups/003010/functional_group_def.rb +0 -33
  1209. data/lib/stupidedi/versions/functional_groups/003010/segment_defs.rb +0 -269
  1210. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/AK1.rb +0 -21
  1211. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/AK2.rb +0 -22
  1212. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/AK3.rb +0 -21
  1213. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/AK9.rb +0 -25
  1214. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/AT7.rb +0 -32
  1215. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/AT8.rb +0 -29
  1216. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/B1.rb +0 -23
  1217. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/B10.rb +0 -30
  1218. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/B2.rb +0 -31
  1219. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/B2A.rb +0 -21
  1220. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/BCH.rb +0 -32
  1221. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/BEG.rb +0 -31
  1222. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/BFR.rb +0 -41
  1223. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/BPS.rb +0 -34
  1224. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/BSN.rb +0 -27
  1225. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/CTT.rb +0 -29
  1226. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/CUR.rb +0 -59
  1227. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/DTM.rb +0 -31
  1228. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/FOB.rb +0 -26
  1229. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/FST.rb +0 -31
  1230. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/G61.rb +0 -26
  1231. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/G62.rb +0 -27
  1232. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/G69.rb +0 -21
  1233. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/GE.rb +0 -21
  1234. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/GS.rb +0 -27
  1235. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/HL.rb +0 -23
  1236. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/ITD.rb +0 -31
  1237. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/K1.rb +0 -21
  1238. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/L11.rb +0 -25
  1239. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/L3.rb +0 -40
  1240. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/L5.rb +0 -33
  1241. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/LE.rb +0 -20
  1242. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/LFH.rb +0 -29
  1243. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/LH1.rb +0 -33
  1244. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/LH2.rb +0 -37
  1245. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/LH3.rb +0 -25
  1246. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/LIN.rb +0 -51
  1247. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/LS.rb +0 -20
  1248. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/LX.rb +0 -20
  1249. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/M7.rb +0 -24
  1250. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/MAN.rb +0 -28
  1251. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/MEA.rb +0 -33
  1252. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/MS1.rb +0 -36
  1253. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/MS2.rb +0 -26
  1254. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/MS3.rb +0 -26
  1255. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/MSG.rb +0 -20
  1256. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/N1.rb +0 -22
  1257. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/N2.rb +0 -21
  1258. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/N3.rb +0 -21
  1259. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/N4.rb +0 -30
  1260. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/N7.rb +0 -46
  1261. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/N9.rb +0 -29
  1262. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/NTE.rb +0 -21
  1263. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/PER.rb +0 -32
  1264. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/PID.rb +0 -34
  1265. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/PLD.rb +0 -25
  1266. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/PO1.rb +0 -60
  1267. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/PO4.rb +0 -23
  1268. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/POC.rb +0 -32
  1269. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/REF.rb +0 -22
  1270. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/RMT.rb +0 -36
  1271. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/S5.rb +0 -34
  1272. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/SDP.rb +0 -22
  1273. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/SE.rb +0 -21
  1274. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/SHP.rb +0 -24
  1275. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/SN1.rb +0 -28
  1276. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/ST.rb +0 -21
  1277. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/TD1.rb +0 -30
  1278. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/TD3.rb +0 -23
  1279. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/TD5.rb +0 -23
  1280. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/UIT.rb +0 -22
  1281. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W01.rb +0 -44
  1282. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W03.rb +0 -30
  1283. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W04.rb +0 -40
  1284. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W05.rb +0 -29
  1285. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W06.rb +0 -33
  1286. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W07.rb +0 -36
  1287. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W08.rb +0 -32
  1288. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W12.rb +0 -51
  1289. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W14.rb +0 -25
  1290. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W17.rb +0 -31
  1291. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W20.rb +0 -33
  1292. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W27.rb +0 -31
  1293. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W66.rb +0 -31
  1294. data/lib/stupidedi/versions/functional_groups/003010/segment_defs/W76.rb +0 -30
  1295. data/lib/stupidedi/versions/functional_groups/003010/segment_reqs.rb +0 -21
  1296. data/lib/stupidedi/versions/functional_groups/003010/syntax_notes.rb +0 -177
  1297. data/lib/stupidedi/versions/functional_groups/003010/transaction_set_defs.rb +0 -14
  1298. data/lib/stupidedi/versions/functional_groups/003040.rb +0 -41
  1299. data/lib/stupidedi/versions/functional_groups/003040/element_defs.rb +0 -10766
  1300. data/lib/stupidedi/versions/functional_groups/003040/element_reqs.rb +0 -21
  1301. data/lib/stupidedi/versions/functional_groups/003040/element_types.rb +0 -130
  1302. data/lib/stupidedi/versions/functional_groups/003040/element_types/date_val.rb +0 -575
  1303. data/lib/stupidedi/versions/functional_groups/003040/element_types/fixnum_val.rb +0 -318
  1304. data/lib/stupidedi/versions/functional_groups/003040/element_types/float_val.rb +0 -350
  1305. data/lib/stupidedi/versions/functional_groups/003040/element_types/identifier_val.rb +0 -359
  1306. data/lib/stupidedi/versions/functional_groups/003040/element_types/operators.rb +0 -134
  1307. data/lib/stupidedi/versions/functional_groups/003040/element_types/string_val.rb +0 -392
  1308. data/lib/stupidedi/versions/functional_groups/003040/element_types/time_val.rb +0 -330
  1309. data/lib/stupidedi/versions/functional_groups/003040/functional_group_def.rb +0 -33
  1310. data/lib/stupidedi/versions/functional_groups/003040/segment_defs.rb +0 -274
  1311. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/AK1.rb +0 -21
  1312. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/AK2.rb +0 -22
  1313. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/AK3.rb +0 -21
  1314. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/AK9.rb +0 -25
  1315. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/AMT.rb +0 -20
  1316. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/AT7.rb +0 -32
  1317. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/AT8.rb +0 -29
  1318. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/B1.rb +0 -23
  1319. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/B10.rb +0 -30
  1320. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/B2.rb +0 -31
  1321. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/B2A.rb +0 -21
  1322. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/BEG.rb +0 -31
  1323. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/BGN.rb +0 -23
  1324. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/BPS.rb +0 -27
  1325. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/BSN.rb +0 -27
  1326. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/CTT.rb +0 -29
  1327. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/CUR.rb +0 -59
  1328. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/DTM.rb +0 -31
  1329. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/FOB.rb +0 -24
  1330. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/G61.rb +0 -26
  1331. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/G62.rb +0 -27
  1332. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/G69.rb +0 -21
  1333. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/GE.rb +0 -21
  1334. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/GS.rb +0 -27
  1335. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/HL.rb +0 -23
  1336. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/IT1.rb +0 -23
  1337. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/ITD.rb +0 -31
  1338. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/K1.rb +0 -21
  1339. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/L11.rb +0 -25
  1340. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/L3.rb +0 -40
  1341. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/L5.rb +0 -33
  1342. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/LE.rb +0 -20
  1343. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/LFH.rb +0 -29
  1344. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/LH1.rb +0 -33
  1345. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/LH2.rb +0 -37
  1346. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/LH3.rb +0 -25
  1347. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/LIN.rb +0 -51
  1348. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/LS.rb +0 -20
  1349. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/LX.rb +0 -20
  1350. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/M7.rb +0 -24
  1351. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/MAN.rb +0 -28
  1352. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/MEA.rb +0 -33
  1353. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/MS1.rb +0 -36
  1354. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/MS2.rb +0 -26
  1355. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/MS3.rb +0 -26
  1356. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/MSG.rb +0 -20
  1357. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/N1.rb +0 -28
  1358. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/N2.rb +0 -21
  1359. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/N3.rb +0 -21
  1360. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/N4.rb +0 -30
  1361. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/N7.rb +0 -46
  1362. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/N9.rb +0 -29
  1363. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/NTE.rb +0 -21
  1364. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/PER.rb +0 -32
  1365. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/PID.rb +0 -34
  1366. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/PLD.rb +0 -25
  1367. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/PO1.rb +0 -60
  1368. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/PO4.rb +0 -23
  1369. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/PRR.rb +0 -24
  1370. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/QTY.rb +0 -21
  1371. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/REF.rb +0 -22
  1372. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/REP.rb +0 -22
  1373. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/RMT.rb +0 -37
  1374. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/S5.rb +0 -34
  1375. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/SE.rb +0 -21
  1376. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/SN1.rb +0 -28
  1377. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/SSS.rb +0 -27
  1378. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/ST.rb +0 -21
  1379. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/TD1.rb +0 -30
  1380. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/TD3.rb +0 -23
  1381. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/TD5.rb +0 -20
  1382. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/TDS.rb +0 -19
  1383. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W01.rb +0 -44
  1384. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W03.rb +0 -30
  1385. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W04.rb +0 -40
  1386. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W05.rb +0 -29
  1387. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W06.rb +0 -33
  1388. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W07.rb +0 -36
  1389. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W08.rb +0 -32
  1390. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W12.rb +0 -51
  1391. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W14.rb +0 -25
  1392. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W17.rb +0 -31
  1393. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W20.rb +0 -33
  1394. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W27.rb +0 -31
  1395. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W66.rb +0 -31
  1396. data/lib/stupidedi/versions/functional_groups/003040/segment_defs/W76.rb +0 -30
  1397. data/lib/stupidedi/versions/functional_groups/003040/segment_reqs.rb +0 -21
  1398. data/lib/stupidedi/versions/functional_groups/003040/syntax_notes.rb +0 -177
  1399. data/lib/stupidedi/versions/functional_groups/003040/transaction_set_defs.rb +0 -14
  1400. data/lib/stupidedi/versions/functional_groups/003050.rb +0 -41
  1401. data/lib/stupidedi/versions/functional_groups/003050/element_defs.rb +0 -10769
  1402. data/lib/stupidedi/versions/functional_groups/003050/element_reqs.rb +0 -21
  1403. data/lib/stupidedi/versions/functional_groups/003050/element_types.rb +0 -130
  1404. data/lib/stupidedi/versions/functional_groups/003050/element_types/date_val.rb +0 -576
  1405. data/lib/stupidedi/versions/functional_groups/003050/element_types/fixnum_val.rb +0 -319
  1406. data/lib/stupidedi/versions/functional_groups/003050/element_types/float_val.rb +0 -351
  1407. data/lib/stupidedi/versions/functional_groups/003050/element_types/identifier_val.rb +0 -360
  1408. data/lib/stupidedi/versions/functional_groups/003050/element_types/operators.rb +0 -134
  1409. data/lib/stupidedi/versions/functional_groups/003050/element_types/string_val.rb +0 -393
  1410. data/lib/stupidedi/versions/functional_groups/003050/element_types/time_val.rb +0 -330
  1411. data/lib/stupidedi/versions/functional_groups/003050/functional_group_def.rb +0 -33
  1412. data/lib/stupidedi/versions/functional_groups/003050/segment_defs.rb +0 -274
  1413. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/AK1.rb +0 -21
  1414. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/AK2.rb +0 -22
  1415. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/AK3.rb +0 -21
  1416. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/AK9.rb +0 -25
  1417. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/AMT.rb +0 -20
  1418. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/AT7.rb +0 -32
  1419. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/AT8.rb +0 -29
  1420. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/B1.rb +0 -23
  1421. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/B10.rb +0 -30
  1422. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/B2.rb +0 -31
  1423. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/B2A.rb +0 -21
  1424. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/BEG.rb +0 -31
  1425. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/BGN.rb +0 -23
  1426. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/BPS.rb +0 -27
  1427. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/BSN.rb +0 -27
  1428. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/CTT.rb +0 -29
  1429. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/CUR.rb +0 -59
  1430. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/DTM.rb +0 -30
  1431. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/FOB.rb +0 -24
  1432. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/G61.rb +0 -26
  1433. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/G62.rb +0 -27
  1434. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/G69.rb +0 -21
  1435. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/GE.rb +0 -21
  1436. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/GS.rb +0 -27
  1437. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/HL.rb +0 -23
  1438. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/IT1.rb +0 -23
  1439. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/ITD.rb +0 -31
  1440. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/K1.rb +0 -21
  1441. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/L11.rb +0 -25
  1442. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/L3.rb +0 -40
  1443. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/L5.rb +0 -33
  1444. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/LE.rb +0 -20
  1445. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/LFH.rb +0 -29
  1446. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/LH1.rb +0 -33
  1447. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/LH2.rb +0 -37
  1448. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/LH3.rb +0 -25
  1449. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/LIN.rb +0 -51
  1450. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/LS.rb +0 -20
  1451. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/LX.rb +0 -20
  1452. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/M7.rb +0 -24
  1453. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/MAN.rb +0 -28
  1454. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/MEA.rb +0 -33
  1455. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/MS1.rb +0 -36
  1456. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/MS2.rb +0 -26
  1457. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/MS3.rb +0 -26
  1458. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/MSG.rb +0 -20
  1459. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/N1.rb +0 -28
  1460. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/N2.rb +0 -21
  1461. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/N3.rb +0 -21
  1462. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/N4.rb +0 -30
  1463. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/N7.rb +0 -46
  1464. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/N9.rb +0 -29
  1465. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/NTE.rb +0 -21
  1466. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/PER.rb +0 -32
  1467. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/PID.rb +0 -34
  1468. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/PLD.rb +0 -25
  1469. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/PO1.rb +0 -60
  1470. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/PO4.rb +0 -23
  1471. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/PRR.rb +0 -22
  1472. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/QTY.rb +0 -21
  1473. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/REF.rb +0 -22
  1474. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/REP.rb +0 -22
  1475. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/RMT.rb +0 -36
  1476. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/S5.rb +0 -34
  1477. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/SE.rb +0 -21
  1478. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/SN1.rb +0 -28
  1479. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/SSS.rb +0 -25
  1480. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/ST.rb +0 -21
  1481. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/TD1.rb +0 -31
  1482. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/TD3.rb +0 -24
  1483. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/TD5.rb +0 -20
  1484. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/TDS.rb +0 -19
  1485. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W01.rb +0 -44
  1486. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W03.rb +0 -30
  1487. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W04.rb +0 -40
  1488. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W05.rb +0 -29
  1489. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W06.rb +0 -33
  1490. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W07.rb +0 -36
  1491. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W08.rb +0 -32
  1492. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W12.rb +0 -51
  1493. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W14.rb +0 -25
  1494. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W17.rb +0 -31
  1495. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W20.rb +0 -33
  1496. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W27.rb +0 -31
  1497. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W66.rb +0 -31
  1498. data/lib/stupidedi/versions/functional_groups/003050/segment_defs/W76.rb +0 -30
  1499. data/lib/stupidedi/versions/functional_groups/003050/segment_reqs.rb +0 -21
  1500. data/lib/stupidedi/versions/functional_groups/003050/syntax_notes.rb +0 -177
  1501. data/lib/stupidedi/versions/functional_groups/003050/transaction_set_defs.rb +0 -14
  1502. data/lib/stupidedi/versions/functional_groups/004010.rb +0 -41
  1503. data/lib/stupidedi/versions/functional_groups/004010/element_defs.rb +0 -9626
  1504. data/lib/stupidedi/versions/functional_groups/004010/element_reqs.rb +0 -21
  1505. data/lib/stupidedi/versions/functional_groups/004010/element_types.rb +0 -130
  1506. data/lib/stupidedi/versions/functional_groups/004010/element_types/date_val.rb +0 -577
  1507. data/lib/stupidedi/versions/functional_groups/004010/element_types/fixnum_val.rb +0 -319
  1508. data/lib/stupidedi/versions/functional_groups/004010/element_types/float_val.rb +0 -350
  1509. data/lib/stupidedi/versions/functional_groups/004010/element_types/identifier_val.rb +0 -361
  1510. data/lib/stupidedi/versions/functional_groups/004010/element_types/operators.rb +0 -134
  1511. data/lib/stupidedi/versions/functional_groups/004010/element_types/string_val.rb +0 -393
  1512. data/lib/stupidedi/versions/functional_groups/004010/element_types/time_val.rb +0 -331
  1513. data/lib/stupidedi/versions/functional_groups/004010/functional_group_def.rb +0 -33
  1514. data/lib/stupidedi/versions/functional_groups/004010/segment_defs.rb +0 -349
  1515. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AK1.rb +0 -21
  1516. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AK2.rb +0 -22
  1517. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AK3.rb +0 -23
  1518. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AK4.rb +0 -23
  1519. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AK5.rb +0 -25
  1520. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AK9.rb +0 -29
  1521. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AMT.rb +0 -22
  1522. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AT7.rb +0 -32
  1523. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/AT8.rb +0 -29
  1524. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/B1.rb +0 -23
  1525. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/B10.rb +0 -30
  1526. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/B2.rb +0 -31
  1527. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/B2A.rb +0 -21
  1528. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/B3.rb +0 -31
  1529. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/BAK.rb +0 -24
  1530. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/BCT.rb +0 -20
  1531. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/BEG.rb +0 -31
  1532. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/BFR.rb +0 -33
  1533. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/BPR.rb +0 -50
  1534. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/BSN.rb +0 -24
  1535. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/BSS.rb +0 -36
  1536. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/C3.rb +0 -22
  1537. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/CAS.rb +0 -57
  1538. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/CLP.rb +0 -34
  1539. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/CTP.rb +0 -37
  1540. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/CTT.rb +0 -29
  1541. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/CUR.rb +0 -58
  1542. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/DTM.rb +0 -28
  1543. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/FST.rb +0 -32
  1544. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/G61.rb +0 -26
  1545. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/G62.rb +0 -27
  1546. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/G69.rb +0 -21
  1547. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/GE.rb +0 -21
  1548. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/GS.rb +0 -28
  1549. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/H3.rb +0 -25
  1550. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/HL.rb +0 -23
  1551. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/JIT.rb +0 -21
  1552. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/K1.rb +0 -21
  1553. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L0.rb +0 -34
  1554. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L1.rb +0 -42
  1555. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L11.rb +0 -25
  1556. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L3.rb +0 -40
  1557. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L4.rb +0 -25
  1558. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L5.rb +0 -33
  1559. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/L7.rb +0 -35
  1560. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LAD.rb +0 -39
  1561. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LFH.rb +0 -29
  1562. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LH1.rb +0 -33
  1563. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LH2.rb +0 -37
  1564. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LH3.rb +0 -25
  1565. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LIN.rb +0 -54
  1566. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LQ.rb +0 -22
  1567. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/LX.rb +0 -20
  1568. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/M7.rb +0 -24
  1569. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/MAN.rb +0 -28
  1570. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/MEA.rb +0 -40
  1571. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/MIA.rb +0 -46
  1572. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/MOA.rb +0 -29
  1573. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/MS1.rb +0 -36
  1574. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/MS2.rb +0 -26
  1575. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/MS3.rb +0 -26
  1576. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/N1.rb +0 -28
  1577. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/N2.rb +0 -21
  1578. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/N3.rb +0 -21
  1579. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/N4.rb +0 -26
  1580. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/N7.rb +0 -46
  1581. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/N9.rb +0 -29
  1582. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/NM1.rb +0 -33
  1583. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/NTE.rb +0 -21
  1584. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/OID.rb +0 -33
  1585. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/PER.rb +0 -32
  1586. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/PID.rb +0 -34
  1587. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/PLB.rb +0 -41
  1588. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/PLD.rb +0 -25
  1589. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/PO1.rb +0 -60
  1590. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/PO4.rb +0 -24
  1591. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/PRF.rb +0 -20
  1592. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/QTY.rb +0 -25
  1593. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/R3.rb +0 -28
  1594. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/REF.rb +0 -25
  1595. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/S5.rb +0 -34
  1596. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/SCH.rb +0 -29
  1597. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/SDP.rb +0 -21
  1598. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/SE.rb +0 -21
  1599. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/SHP.rb +0 -23
  1600. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/SN1.rb +0 -29
  1601. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/ST.rb +0 -21
  1602. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/SVC.rb +0 -27
  1603. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/TD1.rb +0 -24
  1604. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/TD3.rb +0 -27
  1605. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/TD4.rb +0 -26
  1606. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/TD5.rb +0 -23
  1607. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/TRN.rb +0 -23
  1608. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/TS2.rb +0 -41
  1609. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/TS3.rb +0 -46
  1610. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/UIT.rb +0 -21
  1611. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W01.rb +0 -44
  1612. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W03.rb +0 -30
  1613. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W04.rb +0 -40
  1614. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W05.rb +0 -29
  1615. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W06.rb +0 -33
  1616. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W07.rb +0 -36
  1617. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W08.rb +0 -32
  1618. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W12.rb +0 -51
  1619. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W14.rb +0 -25
  1620. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W17.rb +0 -31
  1621. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W20.rb +0 -33
  1622. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W27.rb +0 -31
  1623. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W66.rb +0 -31
  1624. data/lib/stupidedi/versions/functional_groups/004010/segment_defs/W76.rb +0 -30
  1625. data/lib/stupidedi/versions/functional_groups/004010/segment_reqs.rb +0 -21
  1626. data/lib/stupidedi/versions/functional_groups/004010/syntax_notes.rb +0 -177
  1627. data/lib/stupidedi/versions/functional_groups/004010/transaction_set_defs.rb +0 -16
  1628. data/lib/stupidedi/versions/functional_groups/004010/transaction_set_defs/HP835.rb +0 -67
  1629. data/lib/stupidedi/versions/functional_groups/005010.rb +0 -41
  1630. data/lib/stupidedi/versions/functional_groups/005010/element_defs.rb +0 -2478
  1631. data/lib/stupidedi/versions/functional_groups/005010/element_reqs.rb +0 -21
  1632. data/lib/stupidedi/versions/functional_groups/005010/element_types.rb +0 -135
  1633. data/lib/stupidedi/versions/functional_groups/005010/element_types/date_val.rb +0 -575
  1634. data/lib/stupidedi/versions/functional_groups/005010/element_types/fixnum_val.rb +0 -318
  1635. data/lib/stupidedi/versions/functional_groups/005010/element_types/float_val.rb +0 -351
  1636. data/lib/stupidedi/versions/functional_groups/005010/element_types/identifier_val.rb +0 -361
  1637. data/lib/stupidedi/versions/functional_groups/005010/element_types/operators.rb +0 -134
  1638. data/lib/stupidedi/versions/functional_groups/005010/element_types/string_val.rb +0 -393
  1639. data/lib/stupidedi/versions/functional_groups/005010/element_types/time_val.rb +0 -331
  1640. data/lib/stupidedi/versions/functional_groups/005010/functional_group_def.rb +0 -33
  1641. data/lib/stupidedi/versions/functional_groups/005010/segment_defs.rb +0 -290
  1642. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/AAA.rb +0 -22
  1643. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/ACT.rb +0 -33
  1644. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/AK1.rb +0 -22
  1645. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/AK2.rb +0 -22
  1646. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/AK9.rb +0 -29
  1647. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/AMT.rb +0 -22
  1648. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/BGN.rb +0 -31
  1649. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/BHT.rb +0 -25
  1650. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/BPR.rb +0 -50
  1651. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CAS.rb +0 -57
  1652. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CL1.rb +0 -23
  1653. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CLM.rb +0 -42
  1654. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CLP.rb +0 -35
  1655. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CN1.rb +0 -25
  1656. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/COB.rb +0 -24
  1657. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CR1.rb +0 -33
  1658. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CR2.rb +0 -36
  1659. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CR3.rb +0 -26
  1660. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CRC.rb +0 -27
  1661. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CTP.rb +0 -37
  1662. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CTX.rb +0 -25
  1663. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/CUR.rb +0 -59
  1664. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/DMG.rb +0 -35
  1665. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/DN1.rb +0 -23
  1666. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/DN2.rb +0 -25
  1667. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/DSB.rb +0 -30
  1668. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/DTM.rb +0 -25
  1669. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/DTP.rb +0 -22
  1670. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/EB.rb +0 -34
  1671. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/EC.rb +0 -26
  1672. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/EQ.rb +0 -25
  1673. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/FRM.rb +0 -26
  1674. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/GE.rb +0 -21
  1675. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/GS.rb +0 -28
  1676. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/HCP.rb +0 -40
  1677. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/HD.rb +0 -31
  1678. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/HI.rb +0 -32
  1679. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/HL.rb +0 -23
  1680. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/HLH.rb +0 -27
  1681. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/HSD.rb +0 -29
  1682. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/ICM.rb +0 -26
  1683. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/IDC.rb +0 -24
  1684. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/III.rb +0 -31
  1685. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/IK3.rb +0 -23
  1686. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/IK4.rb +0 -23
  1687. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/IK5.rb +0 -25
  1688. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/INS.rb +0 -39
  1689. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/K3.rb +0 -22
  1690. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/LE.rb +0 -20
  1691. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/LIN.rb +0 -70
  1692. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/LQ.rb +0 -23
  1693. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/LS.rb +0 -20
  1694. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/LUI.rb +0 -28
  1695. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/LX.rb +0 -20
  1696. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/MEA.rb +0 -40
  1697. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/MIA.rb +0 -46
  1698. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/MOA.rb +0 -29
  1699. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/MPI.rb +0 -27
  1700. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/MSG.rb +0 -23
  1701. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/N1.rb +0 -28
  1702. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/N2.rb +0 -21
  1703. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/N3.rb +0 -21
  1704. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/N4.rb +0 -30
  1705. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/NM1.rb +0 -36
  1706. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/NTE.rb +0 -21
  1707. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/OI.rb +0 -25
  1708. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/PAT.rb +0 -32
  1709. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/PER.rb +0 -33
  1710. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/PLA.rb +0 -25
  1711. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/PLB.rb +0 -41
  1712. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/PRV.rb +0 -27
  1713. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/PS1.rb +0 -22
  1714. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/PWK.rb +0 -31
  1715. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/QTY.rb +0 -26
  1716. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/RDM.rb +0 -24
  1717. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/REF.rb +0 -25
  1718. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/SBR.rb +0 -29
  1719. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/SE.rb +0 -21
  1720. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/ST.rb +0 -22
  1721. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/STC.rb +0 -31
  1722. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/SV1.rb +0 -45
  1723. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/SV2.rb +0 -30
  1724. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/SV3.rb +0 -31
  1725. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/SV5.rb +0 -30
  1726. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/SVC.rb +0 -27
  1727. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/SVD.rb +0 -25
  1728. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/TOO.rb +0 -22
  1729. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/TRN.rb +0 -23
  1730. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/TS2.rb +0 -41
  1731. data/lib/stupidedi/versions/functional_groups/005010/segment_defs/TS3.rb +0 -46
  1732. data/lib/stupidedi/versions/functional_groups/005010/segment_reqs.rb +0 -21
  1733. data/lib/stupidedi/versions/functional_groups/005010/syntax_notes.rb +0 -168
  1734. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs.rb +0 -71
  1735. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/BE834.rb +0 -163
  1736. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/FA999.rb +0 -41
  1737. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/HB271.rb +0 -105
  1738. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/HC837.rb +0 -167
  1739. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/HI278.rb +0 -70
  1740. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/HN277.rb +0 -77
  1741. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/HP835.rb +0 -71
  1742. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/HR276.rb +0 -60
  1743. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/HS270.rb +0 -57
  1744. data/lib/stupidedi/versions/functional_groups/005010/transaction_set_defs/RA820.rb +0 -245
  1745. data/lib/stupidedi/versions/interchanges/00200.rb +0 -26
  1746. data/lib/stupidedi/versions/interchanges/00200/element_defs.rb +0 -277
  1747. data/lib/stupidedi/versions/interchanges/00200/interchange_def.rb +0 -71
  1748. data/lib/stupidedi/versions/interchanges/00200/segment_defs.rb +0 -31
  1749. data/lib/stupidedi/versions/interchanges/00200/segment_defs/IEA.rb +0 -21
  1750. data/lib/stupidedi/versions/interchanges/00200/segment_defs/ISA.rb +0 -35
  1751. data/lib/stupidedi/versions/interchanges/00200/segment_defs/TA1.rb +0 -24
  1752. data/lib/stupidedi/versions/interchanges/00300.rb +0 -26
  1753. data/lib/stupidedi/versions/interchanges/00300/element_defs.rb +0 -278
  1754. data/lib/stupidedi/versions/interchanges/00300/interchange_def.rb +0 -71
  1755. data/lib/stupidedi/versions/interchanges/00300/segment_defs.rb +0 -31
  1756. data/lib/stupidedi/versions/interchanges/00300/segment_defs/IEA.rb +0 -21
  1757. data/lib/stupidedi/versions/interchanges/00300/segment_defs/ISA.rb +0 -35
  1758. data/lib/stupidedi/versions/interchanges/00300/segment_defs/TA1.rb +0 -24
  1759. data/lib/stupidedi/versions/interchanges/00400.rb +0 -26
  1760. data/lib/stupidedi/versions/interchanges/00400/element_defs.rb +0 -270
  1761. data/lib/stupidedi/versions/interchanges/00400/interchange_def.rb +0 -71
  1762. data/lib/stupidedi/versions/interchanges/00400/segment_defs.rb +0 -31
  1763. data/lib/stupidedi/versions/interchanges/00400/segment_defs/IEA.rb +0 -21
  1764. data/lib/stupidedi/versions/interchanges/00400/segment_defs/ISA.rb +0 -35
  1765. data/lib/stupidedi/versions/interchanges/00400/segment_defs/TA1.rb +0 -24
  1766. data/lib/stupidedi/versions/interchanges/00401.rb +0 -26
  1767. data/lib/stupidedi/versions/interchanges/00401/element_defs.rb +0 -271
  1768. data/lib/stupidedi/versions/interchanges/00401/interchange_def.rb +0 -71
  1769. data/lib/stupidedi/versions/interchanges/00401/segment_defs.rb +0 -31
  1770. data/lib/stupidedi/versions/interchanges/00401/segment_defs/IEA.rb +0 -21
  1771. data/lib/stupidedi/versions/interchanges/00401/segment_defs/ISA.rb +0 -35
  1772. data/lib/stupidedi/versions/interchanges/00401/segment_defs/TA1.rb +0 -24
  1773. data/lib/stupidedi/versions/interchanges/00501.rb +0 -26
  1774. data/lib/stupidedi/versions/interchanges/00501/element_defs.rb +0 -272
  1775. data/lib/stupidedi/versions/interchanges/00501/interchange_def.rb +0 -73
  1776. data/lib/stupidedi/versions/interchanges/00501/segment_defs.rb +0 -40
  1777. data/lib/stupidedi/versions/interchanges/00501/segment_defs/IEA.rb +0 -21
  1778. data/lib/stupidedi/versions/interchanges/00501/segment_defs/ISA.rb +0 -35
  1779. data/lib/stupidedi/versions/interchanges/00501/segment_defs/ISB.rb +0 -19
  1780. data/lib/stupidedi/versions/interchanges/00501/segment_defs/ISE.rb +0 -19
  1781. data/lib/stupidedi/versions/interchanges/00501/segment_defs/TA1.rb +0 -24
  1782. data/lib/stupidedi/versions/interchanges/00501/segment_defs/TA3.rb +0 -19
  1783. data/spec/examples/integration/generating_spec.rb +0 -560
  1784. data/spec/examples/integration/navigating_spec.rb +0 -258
  1785. data/spec/examples/integration/nondeterminism_spec.rb +0 -165
  1786. data/spec/examples/integration/parsing/005010/X091A1-HP835_spec.rb +0 -94
  1787. data/spec/examples/integration/parsing/005010/X212-HR276_spec.rb +0 -152
  1788. data/spec/examples/integration/parsing/005010/X221-HP835_spec.rb +0 -386
  1789. data/spec/examples/integration/parsing/005010/X222-HC837_spec.rb +0 -257
  1790. data/spec/examples/ruby/array_spec.rb +0 -477
  1791. data/spec/examples/ruby/blank_spec.rb +0 -63
  1792. data/spec/examples/ruby/count_spec.rb +0 -69
  1793. data/spec/examples/ruby/object_spec.rb +0 -99
  1794. data/spec/examples/ruby/string_spec.rb +0 -112
  1795. data/spec/examples/ruby/symbol_spec.rb +0 -99
  1796. data/spec/examples/ruby/to_d_spec.rb +0 -91
  1797. data/spec/examples/ruby/try_spec.rb +0 -51
  1798. data/spec/examples/stupidedi/audit_spec.rb +0 -58
  1799. data/spec/examples/stupidedi/either_spec.rb +0 -375
  1800. data/spec/examples/stupidedi/reader/failure_spec.rb +0 -68
  1801. data/spec/examples/stupidedi/reader/input/delegated_input_spec.rb +0 -293
  1802. data/spec/examples/stupidedi/reader/separators_spec.rb +0 -73
  1803. data/spec/examples/stupidedi/reader/stream_reader_spec.rb +0 -48
  1804. data/spec/examples/stupidedi/reader/success_spec.rb +0 -34
  1805. data/spec/examples/stupidedi/reader/token_reader_spec.rb +0 -776
  1806. data/spec/examples/stupidedi/reader_spec.rb +0 -168
  1807. data/spec/examples/stupidedi/versions/005010/element_types/an_spec.rb +0 -202
  1808. data/spec/examples/stupidedi/versions/005010/element_types/dt_spec.rb +0 -258
  1809. data/spec/examples/stupidedi/versions/005010/element_types/id_spec.rb +0 -192
  1810. data/spec/examples/stupidedi/versions/005010/element_types/nn_spec.rb +0 -179
  1811. data/spec/examples/stupidedi/versions/005010/element_types/r_spec.rb +0 -180
  1812. data/spec/examples/stupidedi/versions/005010/element_types/tm_spec.rb +0 -2
  1813. data/spec/examples/stupidedi/zipper/abstract_cursor_spec.rb +0 -417
  1814. data/spec/examples/stupidedi/zipper_spec.rb +0 -9
  1815. data/spec/fixtures/FA997/1-good.txt +0 -10
  1816. data/spec/fixtures/PC860/1-good.txt +0 -21
  1817. data/spec/fixtures/PO830/1-good.txt +0 -29
  1818. data/spec/fixtures/PO850/1-good-v3010.txt +0 -31
  1819. data/spec/fixtures/PO850/1-good-v3050.txt +0 -16
  1820. data/spec/fixtures/PR855/1-good-v4010.txt +0 -11
  1821. data/spec/fixtures/PR855/2-good-v4010.txt +0 -17
  1822. data/spec/fixtures/PS830/1-good.txt +0 -29
  1823. data/spec/fixtures/RA820/1-good.txt +0 -52
  1824. data/spec/fixtures/SC832/1-good.txt +0 -22
  1825. data/spec/fixtures/SC832/2-good.txt +0 -1067
  1826. data/spec/fixtures/SH856/1-good.txt +0 -70
  1827. data/spec/fixtures/SH856/2-good.txt +0 -31
  1828. data/spec/fixtures/SQ866/1-good.txt +0 -29
  1829. data/spec/fixtures/SS862/1-good.txt +0 -33
  1830. data/spec/fixtures/WA142/1-good.txt +0 -307
  1831. data/spec/fixtures/X091A1-HP835/1-good.txt +0 -1
  1832. data/spec/fixtures/X186-AG824/1-bad.txt +0 -21
  1833. data/spec/fixtures/X186-AG824/1-good.txt +0 -17
  1834. data/spec/fixtures/X186-AG824/2-bad.txt +0 -26
  1835. data/spec/fixtures/X186-AG824/2-good.txt +0 -21
  1836. data/spec/fixtures/X186-AG824/3-bad.txt +0 -87
  1837. data/spec/fixtures/X186-AG824/3-good.txt +0 -61
  1838. data/spec/fixtures/X212-HN277/1-bad.txt +0 -54
  1839. data/spec/fixtures/X212-HN277/1-good.txt +0 -46
  1840. data/spec/fixtures/X212-HN277/2-bad.txt +0 -37
  1841. data/spec/fixtures/X212-HN277/2-good.txt +0 -29
  1842. data/spec/fixtures/X212-HN277/3-bad.txt +0 -22
  1843. data/spec/fixtures/X212-HN277/3-good.txt +0 -17
  1844. data/spec/fixtures/X212-HN277/4-bad.txt +0 -30
  1845. data/spec/fixtures/X212-HN277/4-good.txt +0 -24
  1846. data/spec/fixtures/X212-HR276/1-bad.txt +0 -53
  1847. data/spec/fixtures/X212-HR276/1-good.txt +0 -46
  1848. data/spec/fixtures/X212-HR276/2-bad.txt +0 -45
  1849. data/spec/fixtures/X212-HR276/2-good.txt +0 -38
  1850. data/spec/fixtures/X212-HR276/3-bad.txt +0 -32
  1851. data/spec/fixtures/X212-HR276/3-good.txt +0 -26
  1852. data/spec/fixtures/X212-HR276/4-bad.txt +0 -32
  1853. data/spec/fixtures/X212-HR276/4-good.txt +0 -26
  1854. data/spec/fixtures/X214-HN277/1-bad.txt +0 -58
  1855. data/spec/fixtures/X214-HN277/1-good.txt +0 -47
  1856. data/spec/fixtures/X214-HN277/2-bad.txt +0 -34
  1857. data/spec/fixtures/X214-HN277/2-good.txt +0 -22
  1858. data/spec/fixtures/X214-HN277/3-bad.txt +0 -64
  1859. data/spec/fixtures/X214-HN277/3-good.txt +0 -54
  1860. data/spec/fixtures/X214-HN277/4-bad.txt +0 -77
  1861. data/spec/fixtures/X214-HN277/4-good.txt +0 -63
  1862. data/spec/fixtures/X216-HI278/1-bad.txt +0 -42
  1863. data/spec/fixtures/X216-HI278/1-good.txt +0 -27
  1864. data/spec/fixtures/X216-HI278/2-bad.txt +0 -43
  1865. data/spec/fixtures/X216-HI278/2-good.txt +0 -29
  1866. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-1.txt +0 -24
  1867. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-1_Clean.txt +0 -20
  1868. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-2.txt +0 -46
  1869. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-2_Clean.txt +0 -30
  1870. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-3.txt +0 -38
  1871. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-3_Clean.txt +0 -24
  1872. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-4a.txt +0 -39
  1873. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-4a_Clean.txt +0 -24
  1874. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-4b.txt +0 -43
  1875. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-4b_Clean.txt +0 -25
  1876. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-5.txt +0 -63
  1877. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-5_Clean.txt +0 -41
  1878. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-6.txt +0 -36
  1879. data/spec/fixtures/X217-HI278/Sample_278_Request_5010X217-6_Clean.txt +0 -20
  1880. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-1r.txt +0 -34
  1881. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-1r_Clean.txt +0 -23
  1882. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-2r.txt +0 -46
  1883. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-2r_Clean.txt +0 -31
  1884. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-3r.txt +0 -44
  1885. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-3r_Clean.txt +0 -26
  1886. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-4ar_Clean.txt +0 -28
  1887. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-4br_Clean.txt +0 -35
  1888. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-5r.txt +0 -60
  1889. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-5r_Clean.txt +0 -42
  1890. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-6r.txt +0 -40
  1891. data/spec/fixtures/X217-HI278/Sample_278_Response_5010X217-6r_Clean.txt +0 -24
  1892. data/spec/fixtures/X218-RA820/1-bad.txt +0 -31
  1893. data/spec/fixtures/X218-RA820/1-good.txt +0 -25
  1894. data/spec/fixtures/X218-RA820/2-bad.txt +0 -37
  1895. data/spec/fixtures/X218-RA820/2-good.txt +0 -29
  1896. data/spec/fixtures/X218-RA820/3-bad.txt +0 -29
  1897. data/spec/fixtures/X218-RA820/3-good.txt +0 -23
  1898. data/spec/fixtures/X218-RA820/4-bad.txt +0 -36
  1899. data/spec/fixtures/X218-RA820/4-good.txt +0 -27
  1900. data/spec/fixtures/X220-BE834/1-bad.txt +0 -35
  1901. data/spec/fixtures/X220-BE834/1-good.txt +0 -29
  1902. data/spec/fixtures/X220-BE834/10-bad.txt +0 -26
  1903. data/spec/fixtures/X220-BE834/10-good.txt +0 -19
  1904. data/spec/fixtures/X220-BE834/2-bad.txt +0 -31
  1905. data/spec/fixtures/X220-BE834/2-good.txt +0 -23
  1906. data/spec/fixtures/X220-BE834/3-bad.txt +0 -36
  1907. data/spec/fixtures/X220-BE834/3-good.txt +0 -26
  1908. data/spec/fixtures/X220-BE834/4-bad.txt +0 -27
  1909. data/spec/fixtures/X220-BE834/4-good.txt +0 -21
  1910. data/spec/fixtures/X220-BE834/5-bad.txt +0 -26
  1911. data/spec/fixtures/X220-BE834/5-good.txt +0 -17
  1912. data/spec/fixtures/X220-BE834/6-bad.txt +0 -25
  1913. data/spec/fixtures/X220-BE834/6-good.txt +0 -20
  1914. data/spec/fixtures/X220-BE834/7-bad.txt +0 -25
  1915. data/spec/fixtures/X220-BE834/7-good.txt +0 -20
  1916. data/spec/fixtures/X220-BE834/8-bad.txt +0 -25
  1917. data/spec/fixtures/X220-BE834/8-good.txt +0 -20
  1918. data/spec/fixtures/X220-BE834/9-bad.txt +0 -27
  1919. data/spec/fixtures/X220-BE834/9-good.txt +0 -21
  1920. data/spec/fixtures/X221-HP835/1-bad.txt +0 -58
  1921. data/spec/fixtures/X221-HP835/1-good.txt +0 -40
  1922. data/spec/fixtures/X221-HP835/2-bad.txt +0 -51
  1923. data/spec/fixtures/X221-HP835/2-good.txt +0 -40
  1924. data/spec/fixtures/X221-HP835/3a-bad.txt +0 -78
  1925. data/spec/fixtures/X221-HP835/3a-good.txt +0 -49
  1926. data/spec/fixtures/X221-HP835/3b-bad.txt +0 -60
  1927. data/spec/fixtures/X221-HP835/3b-good.txt +0 -32
  1928. data/spec/fixtures/X221-HP835/3c-bad.txt +0 -55
  1929. data/spec/fixtures/X221-HP835/3c-good.txt +0 -34
  1930. data/spec/fixtures/X222-HC837/1-bad.txt +0 -60
  1931. data/spec/fixtures/X222-HC837/1-good.txt +0 -53
  1932. data/spec/fixtures/X222-HC837/10a-bad.txt +0 -52
  1933. data/spec/fixtures/X222-HC837/10a-good.txt +0 -40
  1934. data/spec/fixtures/X222-HC837/10b-bad.txt +0 -99
  1935. data/spec/fixtures/X222-HC837/10b-good.txt +0 -80
  1936. data/spec/fixtures/X222-HC837/10c-bad.txt +0 -105
  1937. data/spec/fixtures/X222-HC837/10c-good.txt +0 -80
  1938. data/spec/fixtures/X222-HC837/11-bad.txt +0 -69
  1939. data/spec/fixtures/X222-HC837/11-good.txt +0 -45
  1940. data/spec/fixtures/X222-HC837/12-bad.txt +0 -73
  1941. data/spec/fixtures/X222-HC837/12-good.txt +0 -51
  1942. data/spec/fixtures/X222-HC837/13-bad.txt +0 -64
  1943. data/spec/fixtures/X222-HC837/13-good.txt +0 -46
  1944. data/spec/fixtures/X222-HC837/3a-bad.txt +0 -83
  1945. data/spec/fixtures/X222-HC837/3a-good.txt +0 -59
  1946. data/spec/fixtures/X222-HC837/3b-bad.txt +0 -97
  1947. data/spec/fixtures/X222-HC837/3b-good.txt +0 -70
  1948. data/spec/fixtures/X222-HC837/3c-bad.txt +0 -95
  1949. data/spec/fixtures/X222-HC837/3c-good.txt +0 -74
  1950. data/spec/fixtures/X222-HC837/4-bad.txt +0 -67
  1951. data/spec/fixtures/X222-HC837/4-good.txt +0 -48
  1952. data/spec/fixtures/X222-HC837/5-bad.txt +0 -73
  1953. data/spec/fixtures/X222-HC837/5-good.txt +0 -60
  1954. data/spec/fixtures/X222-HC837/6-bad.txt +0 -50
  1955. data/spec/fixtures/X222-HC837/6-good.txt +0 -39
  1956. data/spec/fixtures/X222-HC837/7-bad.txt +0 -93
  1957. data/spec/fixtures/X222-HC837/7-good.txt +0 -78
  1958. data/spec/fixtures/X222-HC837/8-bad.txt +0 -64
  1959. data/spec/fixtures/X222-HC837/8-good.txt +0 -52
  1960. data/spec/fixtures/X222-HC837/9-bad.txt +0 -56
  1961. data/spec/fixtures/X222-HC837/9-good.txt +0 -38
  1962. data/spec/fixtures/X223-HC837/1-bad.txt +0 -66
  1963. data/spec/fixtures/X223-HC837/1-good.txt +0 -53
  1964. data/spec/fixtures/X223-HC837/2-bad.txt +0 -69
  1965. data/spec/fixtures/X223-HC837/2-good.txt +0 -60
  1966. data/spec/fixtures/X223-HC837/3-bad.txt +0 -89
  1967. data/spec/fixtures/X223-HC837/3-good.txt +0 -61
  1968. data/spec/fixtures/X223-HC837/4-bad.txt +0 -60
  1969. data/spec/fixtures/X223-HC837/4-good.txt +0 -40
  1970. data/spec/fixtures/X223-HC837/5-bad.txt +0 -75
  1971. data/spec/fixtures/X223-HC837/5-good.txt +0 -58
  1972. data/spec/fixtures/X224-HC837/1-bad.txt +0 -54
  1973. data/spec/fixtures/X224-HC837/1-good.txt +0 -44
  1974. data/spec/fixtures/X224-HC837/2a-bad.txt +0 -52
  1975. data/spec/fixtures/X224-HC837/2a-good.txt +0 -42
  1976. data/spec/fixtures/X224-HC837/2b-bad.txt +0 -67
  1977. data/spec/fixtures/X224-HC837/2b-good.txt +0 -52
  1978. data/spec/fixtures/X224-HC837/3-bad.txt +0 -67
  1979. data/spec/fixtures/X224-HC837/3-good.txt +0 -51
  1980. data/spec/fixtures/X224-HC837/4-bad.txt +0 -49
  1981. data/spec/fixtures/X224-HC837/4-good.txt +0 -40
  1982. data/spec/fixtures/X230-FA997/1-bad.txt +0 -19
  1983. data/spec/fixtures/X230-FA997/1-good.txt +0 -16
  1984. data/spec/fixtures/X231-FA999/1-bad.txt +0 -20
  1985. data/spec/fixtures/X231-FA999/1-good.txt +0 -20
  1986. data/spec/fixtures/X279-HB271/1-bad.txt +0 -36
  1987. data/spec/fixtures/X279-HB271/1-good.txt +0 -30
  1988. data/spec/fixtures/X279-HB271/2-bad.txt +0 -22
  1989. data/spec/fixtures/X279-HB271/2-good.txt +0 -16
  1990. data/spec/fixtures/X279-HB271/3-bad.txt +0 -44
  1991. data/spec/fixtures/X279-HB271/3-good.txt +0 -36
  1992. data/spec/fixtures/X279-HS270/1-bad.txt +0 -29
  1993. data/spec/fixtures/X279-HS270/1-good.txt +0 -23
  1994. data/spec/fixtures/X279-HS270/2-bad.txt +0 -32
  1995. data/spec/fixtures/X279-HS270/2-good.txt +0 -25
  1996. data/spec/spec_helper.rb +0 -55
  1997. data/spec/support/fixtures.rb +0 -26
  1998. data/spec/support/matchers/either_matchers.rb +0 -53
  1999. data/spec/support/matchers/navigation_matchers.rb +0 -247
  2000. data/spec/support/node.rb +0 -41
  2001. data/spec/support/quickcheck.rb +0 -303
  2002. data/spec/support/quickcheck/characters.rb +0 -33
  2003. data/spec/support/quickcheck/property.rb +0 -105
  2004. data/spec/support/quickcheck/serialized_edi.rb +0 -400
  2005. data/spec/support/rcov.rb +0 -41
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+ module Stupidedi
3
+ module Versions
4
+ module FortyTen
5
+ module SegmentDefs
6
+ s = Schema
7
+ e = ElementDefs
8
+ r = ElementReqs
9
+
10
+ W66 = s::SegmentDef.build(:W66, "Warehouse Carrier Information",
11
+ "",
12
+ e::E146 .simple_use(r::Mandatory, s::RepeatCount.bounded(1)),
13
+ e::E91 .simple_use(r::Mandatory, s::RepeatCount.bounded(1)),
14
+ e::E399 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
15
+ e::E400 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
16
+ e::E387 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
17
+ e::E433 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
18
+ e::E434 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
19
+ e::E625 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
20
+ e::E610 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
21
+ e::E140 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
22
+ SyntaxNotes::P.build(8, 9))
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+ module Stupidedi
3
+ module Versions
4
+ module FortyTen
5
+ module SegmentDefs
6
+ s = Schema
7
+ e = ElementDefs
8
+ r = ElementReqs
9
+
10
+ W76 = s::SegmentDef.build(:W76, "Total Shipping Order",
11
+ "",
12
+ e::E380 .simple_use(r::Mandatory, s::RepeatCount.bounded(1)),
13
+ e::E81 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
14
+ e::E355 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
15
+ e::E183 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
16
+ e::E355 .simple_use(r::Relational, s::RepeatCount.bounded(1)),
17
+ e::E398 .simple_use(r::Optional, s::RepeatCount.bounded(1)),
18
+ SyntaxNotes::P.build(2, 3),
19
+ SyntaxNotes::P.build(4, 5),
20
+ SyntaxNotes::C.build(6, 3))
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+ module Stupidedi
3
+ module Versions
4
+ module FortyTen
5
+ module SegmentReqs
6
+ Mandatory = Common::SegmentReqs::Mandatory
7
+ Optional = Common::SegmentReqs::Optional
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+ module Stupidedi
3
+ module Versions
4
+ module FortyTen
5
+ module SyntaxNotes
6
+ P = Common::SyntaxNotes::P
7
+ R = Common::SyntaxNotes::R
8
+ E = Common::SyntaxNotes::E
9
+ C = Common::SyntaxNotes::C
10
+ L = Common::SyntaxNotes::L
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+ module Stupidedi
3
+ module Versions
4
+ module FiftyTen
5
+ autoload :ElementDefs, "stupidedi/versions/005010/element_defs"
6
+ autoload :ElementReqs, "stupidedi/versions/005010/element_reqs"
7
+ autoload :ElementTypes, "stupidedi/versions/005010/element_types"
8
+ autoload :FunctionalGroupDef, "stupidedi/versions/005010/functional_group_def"
9
+ autoload :SegmentDefs, "stupidedi/versions/005010/segment_defs"
10
+ autoload :SegmentReqs, "stupidedi/versions/005010/segment_reqs"
11
+ autoload :SyntaxNotes, "stupidedi/versions/005010/syntax_notes"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3353 @@
1
+ # frozen_string_literal: true
2
+ module Stupidedi
3
+ module Versions
4
+ module FiftyTen
5
+ module ElementDefs
6
+ t = ElementTypes
7
+ r = ElementReqs
8
+ s = Schema
9
+
10
+ E2 = t::Nn.new(:E2 , "Number of Accepted Transaction Sets" , 1, 6, 0)
11
+ E19 = t::AN.new(:E19 , "City Name" , 2, 30)
12
+ E26 = t::ID.new(:E26 , "Country Code" , 2, 3,
13
+ s::CodeList.external("5"))
14
+ E28 = t::Nn.new(:E28 , "Group Control Number" , 1, 9, 0)
15
+ E61 = t::AN.new(:E61 , "Free-form Information" , 1, 30)
16
+ E65 = t:: R.new(:E65 , "Height" , 1, 8)
17
+ E66 = t::ID.new(:E66 , "Identification Code Qualifier" , 1, 2,
18
+ s::CodeList.build(
19
+ "1" => s::CodeList.external("16"),
20
+ "9" => s::CodeList.external("16"),
21
+ "21" => s::CodeList.external("121"),
22
+ "24" => "Employer’s Identification Number",
23
+ "34" => "Social Security Number",
24
+ "38" => s::CodeList.external("5"),
25
+ "46" => "Electronic Transmitter Identification Number (ETIN)",
26
+ "51" => s::CodeList.external("51"),
27
+ "58" => "@todo",
28
+ "94" => "Code assigned by the organization that is the ultimate destination of the transaction set",
29
+ "AC" => "Attachment Control Number",
30
+ "AD" => "Blue Cross Blue Shield Associtation Plan Code",
31
+ "BD" => "Blue Cross Provider Number",
32
+ "BS" => "Blue Shield Provider Number",
33
+ "C" => "Insured's Changed Unique Identification Number",
34
+ "C1" => "@todo",
35
+ "CF" => s::CodeList.external("91"),
36
+ "CI" => "@todo",
37
+ "EI" => "@todo",
38
+ "FA" => "Facility Identification",
39
+ "FI" => "Federal Taxpayer's Identification Number",
40
+ "HN" => "Health Insurance Claim (HIC) Number",
41
+ "II" => "Standard Unique Health Identifier for each Individual in the United States",
42
+ "LD" => s::CodeList.external("457"),
43
+ "LE" => s::CodeList.external("102"),
44
+ "NI" => "National Association of Insurance Commisioners (NAIC) Identification",
45
+ "MI" => "Member Identification Number",
46
+ "MC" => "Medicaid Provider",
47
+ "MR" => "Medicaid Recipient Identification Number",
48
+ "PC" => "Provider Commercial Number",
49
+ "PI" => "Payor Identification",
50
+ "PP" => "Pharmacy Processor Number",
51
+ "SJ" => s::CodeList.external("22"),
52
+ "SL" => "State License Number",
53
+ "SV" => "Service Provider Number",
54
+ "UP" => "Unique Physician Identification Number (UPIN)",
55
+ "XV" => s::CodeList.external("540"),
56
+ "XX" => s::CodeList.external("537"),
57
+ "ZZ" => "Mutually Defined"))
58
+ E67 = t::AN.new(:E67 , "Identification Code" , 2, 80)
59
+ E81 = t:: R.new(:E81 , "Weight" , 1, 10)
60
+ E93 = t::AN.new(:E93 , "Name" , 1, 60)
61
+ E96 = t::Nn.new(:E96 , "Number of Included Segments" , 1, 10, 0)
62
+ E97 = t::Nn.new(:E97 , "Number of Transaction Sets Included" , 1, 6, 0)
63
+ E98 = t::ID.new(:E98 , "Entity Identifier Code" , 2, 3,
64
+ s::CodeList.build(
65
+ "03" => "Dependent",
66
+ "13" => "Contracted Service Provider",
67
+ "1G" => "Oncology Center",
68
+ "1I" => "Preferred Provider Organization (PPO)",
69
+ "1O" => "Acute Care Hospital",
70
+ "1P" => "Provider",
71
+ "1Q" => "Military Facility",
72
+ "1S" => "Outpatient Surgicenter",
73
+ "1T" => "Physician, Clinic or Group Practice",
74
+ "1U" => "Long Term Care Facility",
75
+ "1V" => "Extended Care Facility",
76
+ "1W" => "Psychiatric Health Facility",
77
+ "1X" => "Laboratory",
78
+ "1Y" => "Retail Pharmacy",
79
+ "1Z" => "Home Health Care",
80
+ "2A" => "Federal, State, County or City Facility",
81
+ "2B" => "Third-Party Administrator",
82
+ "2D" => "Miscellaneous Health Care Facility",
83
+ "2E" => "Non-Health Care Miscellaneous Facility",
84
+ "2I" => "Church Operated Facility",
85
+ "2J" => "Individial",
86
+ "2P" => "Public Health Service Facility",
87
+ "2S" => "Public Health Service Indian Service Facility",
88
+ "2T" => "Department of Justice Facility",
89
+ "2Y" => "General Medical and Surgical Facility",
90
+ "2Z" => "Hospital Unit of an Institution (Prison Hospital, College Infirmary, etc.)",
91
+ "31" => "Postal Mailing Address",
92
+ "36" => "Employer",
93
+ "3A" => "Hospital Unit Within an Institution for the Mentally Retarded",
94
+ "3B" => "Psychiatric Facility",
95
+ "3C" => "Tuberculosis and Other Respitory Diseases Facility",
96
+ "3D" => "Obstetrics and Gynecology Facility",
97
+ "3E" => "Ear, Eye, Nose and Throat Facility",
98
+ "3F" => "Rehabilitation Facility",
99
+ "3G" => "Orthopedic Facility",
100
+ "3H" => "Chronic Disease Facility",
101
+ "3I" => "Other Specialty Facility",
102
+ "3J" => "Children's General Facility",
103
+ "3K" => "Children's Hospital Unit of an Institution",
104
+ "3L" => "Children's Psychiatric Facility",
105
+ "3M" => "Children's Tuberculosis and Other Respitory Diseases Facility",
106
+ "3N" => "Children's Eye, Ear, Nose and Throat Facility",
107
+ "3O" => "Children's Rehabilitation Facility",
108
+ "3P" => "Children's Othropedic Facility",
109
+ "3Q" => "Children's Chronic Disease Facility",
110
+ "3R" => "Children's Other Specialty Facility",
111
+ "3S" => "Institution for Mental Retardation",
112
+ "3T" => "Alcoholism and Other Chemical Dependency Facility",
113
+ "3U" => "General Inpatient Care for AIDS/ARC Facility",
114
+ "3Z" => "Arthritis Treatment Center",
115
+ "40" => "Receiver",
116
+ "41" => "Submitter",
117
+ "45" => "Drop-off Location",
118
+ "4C" => "Cardiac Catherization Labratory",
119
+ "4D" => "Open-Heart Surgery Facility",
120
+ "4F" => "Angioplasty Facility",
121
+ "4G" => "Chronic Obstructive Pulmonary Disease Service Facility",
122
+ "4I" => "Trauma Center (Certified)",
123
+ "4K" => "Fitness Center",
124
+ "4L" => "Genetic Counseling/Screening Services",
125
+ "4M" => "Adult Day Care Program Facility",
126
+ "4O" => "Comprehensive Geriatric Assessment Facility",
127
+ "4R" => "Geriatric Clinics",
128
+ "4S" => "Respite Care Facility",
129
+ "4V" => "Community Health Promotion Facility",
130
+ "4W" => "Worksite Health Promotion Facility",
131
+ "4X" => "Hemodialysis Facility",
132
+ "5B" => "Hisopathology Laboratory",
133
+ "5S" => "Therapeutic Radioisotope Facility",
134
+ "5V" => "Diagnostic Radioisotope Facility",
135
+ "5W" => "Magnetic Resonance Imaging (MRI) Facility",
136
+ "62" => "Applicant's Employer",
137
+ "6M" => "Orthopedic Surgery Facility",
138
+ "6U" => "Cardiac Rehabilitation Program Facility",
139
+ "6Y" => "Case Manager",
140
+ "70" => "Prior Incorrect Insured",
141
+ "71" => "Attending Physician",
142
+ "72" => "Operating Physician",
143
+ "73" => "Other Physician",
144
+ "74" => "Corrected Insured",
145
+ "75" => "Participant",
146
+ "77" => "Service Location",
147
+ "7O" => "Federally Chartered Facility",
148
+ "80" => "Hospital",
149
+ "82" => "Rendering Provider",
150
+ "85" => "Billing Provider",
151
+ "87" => "Pay-to Provider",
152
+ "8B" => "Primary Residence",
153
+ "98" => "Receiver",
154
+ "9K" => "Key Person",
155
+ "AG" => "Agent/Agency",
156
+ "AY" => "Clearinghouse",
157
+ "BO" => "Broker or Sales Office",
158
+ "D0" => "Admitting Physician",
159
+ "DD" => "Assistant Surgeon",
160
+ "DK" => "Ordering Physician",
161
+ "DN" => "Referring Provider",
162
+ "DQ" => "Supervising Physician",
163
+ "E1" => "Person or Other Entity Legally Responsible for a Child",
164
+ "EI" => "Executor of Estate",
165
+ "EXS" => "Ex-spouse",
166
+ "EY" => "@todo",
167
+ "FA" => "Facility",
168
+ "FS" => "Final Scheduled Destination",
169
+ "G3" => "Clinic",
170
+ "GB" => "Other Insured",
171
+ "GP" => "Gateway Provider",
172
+ "GD" => "Guardian",
173
+ "GW" => "Group",
174
+ "HF" => "Healthcare Professional Shortage Area (HPSA) Facility",
175
+ "HH" => "Home Health Agency",
176
+ "HK" => "Subscriber",
177
+ "I3" => "Independent Physicians Association (IPA)",
178
+ "IL" => "Insured or Subscriber",
179
+ "IN" => "Insurer",
180
+ "J6" => "Power of Attorney",
181
+ "L5" => "Contact",
182
+ "LI" => "Independent Lab",
183
+ "LR" => "Legal Representative",
184
+ "M5" => "Migrant Health Clinic",
185
+ "M8" => "Educational Institution",
186
+ "MSC" => "Mammography Screening Center",
187
+ "ND" => "Next Destination",
188
+ "O4" => "Factor",
189
+ "OC" => "Origin Carrier",
190
+ "OD" => "Doctor of Optometry",
191
+ "OOP" => "Other Operating Physician",
192
+ "OX" => "Oxygen Therapy Facility",
193
+ "P0" => "Patient Facility",
194
+ "P3" => "Primary Care Provider",
195
+ "P4" => "Prior Insurance Carrier",
196
+ "P5" => "Plan Sponsor",
197
+ "PE" => "Payee",
198
+ "PTP" => "Pay-to Plan Name",
199
+ "PR" => "Payer",
200
+ "PRP" => "Primary Payer",
201
+ "PW" => "Pickup Address",
202
+ "QA" => "Pharmacy",
203
+ "QB" => "Purchase Service Provider",
204
+ "QC" => "Patient",
205
+ "QD" => "Responsible Party",
206
+ "QN" => "Dentist",
207
+ "QM" => "Dialysis Centers",
208
+ "QV" => "Group Practice",
209
+ "R3" => "Next Scheduled Destination",
210
+ "S1" => "Parent",
211
+ "S3" => "Custodial Parent",
212
+ "SEP" => "Secondary Payer",
213
+ "SJ" => "Service Provider",
214
+ "TL" => "Testing Laboratory",
215
+ "TP" => "Primary Taxpayer",
216
+ "TT" => "Transfer To",
217
+ "TTP" => "Tertiary Payer",
218
+ "TU" => "Third Party Repricing Organization (TPO)",
219
+ "TV" => "Third Party Administrator (TPA)",
220
+ "TZ" => "Significant Other",
221
+ "RM" => "@todo",
222
+ "RW" => "Rural Health Clinic",
223
+ "S4" => "Skilled Nursing Facility",
224
+ "UH" => "Nursing Home",
225
+ "VER" => "Party Performing Verification",
226
+ "VN" => "Vendor",
227
+ "VY" => "Organization Completing Configuration Change",
228
+ "X3" => "Utilitazion Management Origanization",
229
+ "X4" => "Spouse",
230
+ "X5" => "Durable Medical Equipment Supplier",
231
+ "Y2" => "Managed Care Organization",
232
+ "ZD" => "Party to Receive Reports",
233
+ "ZZ" => "Mutually Defined"))
234
+ E100 = t::ID.new(:E100 , "Currency Code" , 3, 3,
235
+ s::CodeList.external("5"))
236
+ E107 = t::ID.new(:E107 , "Payment Method Type Code" , 1, 2)
237
+ E116 = t::ID.new(:E116 , "Postal Code" , 3, 15,
238
+ s::CodeList.external("51"))
239
+ E118 = t:: R.new(:E118 , "Rate" , 1, 9)
240
+ E123 = t::Nn.new(:E123 , "Number of Received Transaction Sets" , 1, 6, 0)
241
+ E124 = t::AN.new(:E124 , "Application Receiver's Code" , 2, 15)
242
+ E127 = t::AN.new(:E127 , "Reference Identification" , 1, 50)
243
+ E128 = t::ID.new(:E128 , "Reference Identification Qualifier" , 2, 3,
244
+ s::CodeList.build(
245
+ "00" => "Contracting District Number",
246
+ "01" => "American Bankers Assoc. (ABA) Transit/Routing Number (Including Check Digit, 9 Digits)",
247
+ "04" => s::CodeList.external("91"),
248
+ "0B" => "State License Number",
249
+ "0F" => "Subscriber Number",
250
+ "0N" => "@todo",
251
+ "0K" => "Policy Form Identifying Number",
252
+ "14" => "@todo",
253
+ "17" => "Client Reporting Category",
254
+ "18" => "Plan Number",
255
+ "19" => "Division Identifier",
256
+ "1A" => "Blue Cross Provider Number",
257
+ "1B" => "Blue Shield Provider Number",
258
+ "1C" => "Medicare Provider Number",
259
+ "1D" => "Medicaid Provider Number",
260
+ "1G" => "Provider UPIN Number",
261
+ "1H" => "CHAMPUS Identification Number",
262
+ "1J" => "Facility ID Number",
263
+ "1K" => "Payor's Claim Number",
264
+ "1L" => "Group or Policy Number",
265
+ "1S" => "Ambulatory Patient Group (APG) Number",
266
+ "1W" => "Member Identification Number",
267
+ "23" => "Client Number",
268
+ "26" => "Union Number",
269
+ "28" => "Employee Identification Number",
270
+ "2F" => "@todo",
271
+ "2U" => "Payer Identification Number",
272
+ "38" => "Master Policy Number",
273
+ "3H" => "Case Number",
274
+ "3L" => "Branch Identifier",
275
+ "4A" => "Personal Identification Number (PIN)",
276
+ "4N" => "Special Payment Reference Number",
277
+ "49" => "Family Unit Number",
278
+ "60" => "Account Suffix Code",
279
+ "6M" => "Application Number",
280
+ "6O" => "Cross Reference Number",
281
+ "6P" => "Group Number",
282
+ "6R" => "Provider Control Number",
283
+ "82" => "Data Item Description (DID) Reference",
284
+ "9A" => "Repriced Claim Reference Number",
285
+ "9B" => "Repriced Line Item Reference Number",
286
+ "9C" => "Adjusted Repriced Claim Reference Number",
287
+ "9D" => "Adjusted Repriced Line Item Reference Number",
288
+ "9F" => "Referral Number",
289
+ "9K" => "Servicer",
290
+ "9V" => "Payment Category",
291
+ "9X" => "Account Category",
292
+ "A6" => "Provider Identifier",
293
+ "ABB" => "Personal ID Number",
294
+ "ABY" => s::CodeList.external("540"),
295
+ "ACY" => s::CodeList.external("672"),
296
+ "ALS" => "Alternative List ID",
297
+ "AP" => "Ambulatory Payment Classification",
298
+ "APC" => s::CodeList.external("468"),
299
+ "AZ" => "Health Insurance Policy Number",
300
+ "BAF" => "Receipt Number",
301
+ "BB" => "Authorization Number",
302
+ "BLT" => "Billing Type",
303
+ "BT" => "Batch Number",
304
+ "CE" => "Class of Contract Code",
305
+ "CLI" => "Coverage List ID",
306
+ "CT" => "Contract Number",
307
+ "CPT" => s::CodeList.external("133"),
308
+ "D3" => s::CodeList.external("307"),
309
+ "D9" => "Claim Number",
310
+ "DNS" => s::CodeList.external("16"),
311
+ "DP" => "Department Number",
312
+ "DU" => "Dependents Information",
313
+ "DUN" => s::CodeList.external("16"),
314
+ "DX" => "Department/Agency Number",
315
+ "E8" => "Service Contract (Coverage) Number",
316
+ "E9" => "Attachment Code",
317
+ "EA" => "Medical Record Identification Number",
318
+ "EL" => "Electronic Device PIN Number",
319
+ "EI" => "Employer's Identification Number",
320
+ "EJ" => "Patient Account Number",
321
+ "EO" => "Submitter Identification Number",
322
+ "EV" => "Receiver Identification Number",
323
+ "EW" => "Mammography Certification Number",
324
+ "F2" => "Version Code - Local",
325
+ "F4" => "Facility Certification Number",
326
+ "F5" => "Medicare Version Code",
327
+ "F6" => "Health Insurance Claim (HIC) Number",
328
+ "F8" => "Original Reference Number",
329
+ "FJ" => "Line Item Control Number",
330
+ "FO" => "Drug Formulary Number",
331
+ "FY" => "Claim Office Number",
332
+ "G1" => "Prior Authorization Number",
333
+ "G2" => "Provider Commercial Number",
334
+ "G3" => "Predetermination of Benefits Identification Number",
335
+ "G5" => "Provider Site Number",
336
+ "GH" => "Identification Card Serial Number",
337
+ "G4" => "Peer Review Organization (PRO) Approval Number",
338
+ "GE" => "Geographic Number",
339
+ "HI" => s::CodeList.external("121"),
340
+ "HJ" => "Identity Card Number",
341
+ "HPI" => s::CodeList.external("537"),
342
+ "ICD" => s::CodeList.external("131"),
343
+ "IF" => "Issue Number",
344
+ "IG" => "Insurance Policy Number",
345
+ "IJ" => "Standard Industry Classification (SIC) Code",
346
+ "JD" => "User Identification",
347
+ "LOI" => s::CodeList.external("663"),
348
+ "LU" => "Location Number",
349
+ "LX" => "Qualified Products List",
350
+ "M7" => "Medical Assistance Category",
351
+ "MRC" => s::CodeList.external("844"),
352
+ "MRN" => "Mother's Medical Record Identification Number",
353
+ "N5" => "Provider Plan Network Identification Number",
354
+ "N6" => "Plan Network Identification Number",
355
+ "N7" => "Facitily Network Identification Number",
356
+ "NF" => s::CodeList.external("245"),
357
+ "NQ" => "Medicaid Recipient Identification Number",
358
+ "NT" => "Administrator's Reference Number",
359
+ "P4" => "Project Code",
360
+ "P5" => "Position Code",
361
+ "PID" => "Program Identification Number",
362
+ "POL" => "Policy Number",
363
+ "PQ" => "Payee Indentification",
364
+ "PSM" => "Credit Card Number",
365
+ "PXC" => s::CodeList.external("682"),
366
+ "Q4" => "Prior Identifier Number",
367
+ "QQ" => "Unit Number",
368
+ "RB" => "Rate code number",
369
+ "SOJ" => s::CodeList.external("22"),
370
+ "SY" => "Social Security Number",
371
+ "T4" => "Signal Code",
372
+ "TJ" => "Federal Taxpayer's Identification Number",
373
+ "TV" => s::CodeList.external("224"),
374
+ "VY" => "Link Sequence Number",
375
+ "Y4" => "Agency Claim Number",
376
+ "WH" => "Master Reference (Link) Number",
377
+ "X4" => "Clinical Laboratory Improvement Amendment Number",
378
+ "X9" => "Internal Control Number",
379
+ "XM" => "Issuer Number",
380
+ "XX1" => "Special Program Code",
381
+ "XX2" => "Service Area Code",
382
+ "XZ" => "Pharmacy Prescription Number",
383
+ "YY" => "Geographic Key",
384
+ "ZH" => "Carrier Assigned Reference Number",
385
+ "ZX" => "County Code",
386
+ "ZZ" => "Mutually Defined"))
387
+ E142 = t::AN.new(:E142 , "Application's Sender Code" , 2, 15)
388
+ E143 = t::ID.new(:E143 , "Transaction Set Identifier Number" , 3, 3,
389
+ # http://www.x12.org/x12org/docs/editransactions.pdf
390
+ s::CodeList.build(
391
+ # X12C Communications & Controls
392
+ "102" => "Associated Data",
393
+ "242" => "Data Status Tracking",
394
+ "815" => "Cryptographic Service Message",
395
+ "864" => "Text Message",
396
+ "868" => "Electronic Form Structure",
397
+ "993" => "Secured Receipt or Acknowledgment",
398
+ "997" => "Functional Acknowledgment",
399
+ "999" => "Implementation Acknowledgment",
400
+
401
+ # X12F Finance
402
+ "130" => "Student Educational Record (Transcript)",
403
+ "131" => "Student Educational Record (Transcript) Acknowledgment",
404
+ "132" => "Human Resource Information",
405
+ "133" => "Educational Institution Record",
406
+ "135" => "Student Aid Origination Record",
407
+ "138" => "Education Testing and Prospect Request and Report",
408
+ "139" => "Student Loan Guarantee Result",
409
+ "144" => "Student Loan Transfer and Status Verification",
410
+ "146" => "Request for Student Educational Record (Transcript)",
411
+ "147" => "Response to Request for Student Educational Record (Transcript)",
412
+ "155" => "Business Credit Report",
413
+ "188" => "Educational Course Inventory",
414
+ "189" => "Application for Admission to Educational Institutions",
415
+ "190" => "Student Enrollment Verification",
416
+ "191" => "Student Loan Pre-Claims and Claims",
417
+ "197" => "Real Estate Title Evidence",
418
+ "198" => "Loan Verification Information",
419
+ "199" => "Real Estate Settlement Information",
420
+ "200" => "Mortgage Credit Report",
421
+ "201" => "Residential Loan Application",
422
+ "202" => "Secondary Mortgage Market Loan Delivery",
423
+ "203" => "Secondary Mortgage Market Investor Report",
424
+ "205" => "Mortgage Note",
425
+ "206" => "Real Estate Inspection",
426
+ "245" => "Real Estate Tax Service Response",
427
+ "248" => "Account Assignment/Inquiry & Service/Status",
428
+ "259" => "Residential Mortgage Insurance Explanation of Benefits",
429
+ "260" => "Application for Mortgage Insurance Benefits",
430
+ "261" => "Real Estate Information Request",
431
+ "262" => "Real Estate Information Report",
432
+ "263" => "Residential Mortgage Insurance Application Response",
433
+ "264" => "Mortgage Loan Default Status",
434
+ "265" => "Real Estate Title Insurance Services Order",
435
+ "266" => "Mortgage or Property Record Change Notification",
436
+ "810" => "Invoice",
437
+ "811" => "Consolidated Service Invoice/Statement",
438
+ "812" => "Credit/Debit Adjustment",
439
+ "814" => "General Request, Response or Confirmation",
440
+ "819" => "Joint Interest Billing and Operating Expense Statement",
441
+ "820" => "Payment Order/Remittance Advice",
442
+ "821" => "Financial Information Reporting",
443
+ "822" => "Account Analysis",
444
+ "823" => "Lockbox",
445
+ "824" => "Application Advice",
446
+ "827" => "Financial Return Notice",
447
+ "828" => "Debit Authorization",
448
+ "829" => "Payment Cancellation Request",
449
+ "831" => "Application Control Totals",
450
+ "833" => "Mortgage Credit Report Order",
451
+ "844" => "Product Transfer Account Adjustment",
452
+ "849" => "Response to Product Transfer Account Adjustment",
453
+ "872" => "Residential Mortgage Insurance Application",
454
+ "880" => "Grocery Products Invoice",
455
+
456
+ # X12G Government
457
+ "103" => "Abandoned Property Filings",
458
+ "105" => "Business Entity Filings",
459
+ "113" => "Election Campaign & Lobbyist Reporting",
460
+ "149" => "Notice of Tax Adjustment or Assessment",
461
+ "150" => "Tax Rate Notification",
462
+ "151" => "Electronic Filing of Tax Return Data Acknowledgment",
463
+ "152" => "Statistical Government Information",
464
+ "153" => "Unemployment Insurance Tax Claim or Charge Information",
465
+ "154" => "Secured Interest Filing",
466
+ "157" => "Notice of Power of Attorney",
467
+ "158" => "Tax Jurisdiction Sourcing",
468
+ "175" => "Court and Law Enforcement Notice",
469
+ "176" => "Court Submission",
470
+ "179" => "Environmental Compliance Reporting",
471
+ "185" => "Royalty Regulatory Report",
472
+ "194" => "Grant or Assistance Application",
473
+ "195" => "Federal Communications Commission (FCC) License Application",
474
+ "196" => "Contractor Cost Data Reporting",
475
+ "249" => "Animal Toxicological Data",
476
+ "251" => "Pricing Support",
477
+ "280" => "Voter Registration Information",
478
+ "283" => "Tax or Fee Exemption Certification",
479
+ "284" => "Commercial Vehicle Safety Reports",
480
+ "285" => "Commercial Vehicle Safety and Credentials Information Exchange",
481
+ "286" => "Commercial Vehicle Credentials",
482
+ "288" => "Wage Determination",
483
+ "500" => "Medical Event Reporting",
484
+ "501" => "Vendor Performance Review",
485
+ "511" => "Requisition",
486
+ "517" => "Material Obligation Validation",
487
+ "521" => "Income or Asset Offset",
488
+ "527" => "Material Due-In and Receipt",
489
+ "536" => "Logistics Reassignment",
490
+ "540" => "Notice of Employment Status",
491
+ "561" => "Contract Abstract",
492
+ "567" => "Contract Completion Status",
493
+ "568" => "Contract Payment Management Report",
494
+ "650" => "Maintenance Service Order",
495
+ "805" => "Contract Pricing Proposal",
496
+ "806" => "Project Schedule Reporting",
497
+ "813" => "Electronic Filing of Tax Return Data",
498
+ "826" => "Tax Information Exchange",
499
+ "836" => "Procurement Notices",
500
+ "838" => "Trading Partner Profile",
501
+ "839" => "Project Cost Reporting",
502
+ "996" => "File Transfer",
503
+
504
+ # X12I Transportation
505
+ "104" => "Air Shipment Information",
506
+ "106" => "Motor Carrier Rate Proposal",
507
+ "107" => "Request for Motor Carrier Rate Proposal",
508
+ "108" => "Response to a Motor Carrier Rate Proposal",
509
+ "109" => "Vessel Content Details",
510
+ "110" => "Air Freight Details and Invoice",
511
+ "120" => "Vehicle Shipping Order",
512
+ "121" => "Vehicle Service",
513
+ "125" => "Multilevel Railcar Load Details",
514
+ "126" => "Vehicle Application Advice",
515
+ "127" => "Vehicle Baying Order",
516
+ "128" => "Dealer Information",
517
+ "129" => "Vehicle Carrier Rate Update",
518
+ "160" => "Transportation Automatic Equipment Identification",
519
+ "161" => "Train Sheet",
520
+ "163" => "Transportation Appointment Schedule Information",
521
+ "204" => "Motor Carrier Load Tender",
522
+ "210" => "Motor Carrier Freight Details and Invoice",
523
+ "211" => "Motor Carrier Bill of Lading",
524
+ "212" => "Motor Carrier Delivery Trailer Manifest",
525
+ "213" => "Motor Carrier Shipment Status Inquiry",
526
+ "214" => "Transportation Carrier Ship. Status Message",
527
+ "215" => "Motor Carrier Pick-up Manifest",
528
+ "216" => "Motor Carrier Shipment Pick-up Notification",
529
+ "217" => "Motor Carrier Loading and Route Guide",
530
+ "219" => "Logistics Service Request",
531
+ "220" => "Logistics Service Response",
532
+ "222" => "Cartage Work Assignment",
533
+ "223" => "Consolidators Freight Bill and Invoice",
534
+ "224" => "Motor Carrier Summary Freight Bill Manifest",
535
+ "225" => "Response to a Cartage Work Assignment",
536
+ "227" => "Trailer Usage Report",
537
+ "228" => "Equipment Inspection Report",
538
+ "240" => "Motor Carrier Package Status",
539
+ "250" => "Purchase Order Shipment Management Document",
540
+ "300" => "Reservation (Booking Request) (Ocean)",
541
+ "301" => "Confirmation (Ocean)",
542
+ "303" => "Booking Cancellation (Ocean)",
543
+ "304" => "Shipping Instructions",
544
+ "309" => "Customs Manifest",
545
+ "310" => "Freight Receipt and Invoice (Ocean)",
546
+ "311" => "Canada Customs Information",
547
+ "312" => "Arrival Notice (Ocean)",
548
+ "313" => "Shipment Status Inquiry (Ocean)",
549
+ "315" => "Status Details (Ocean)",
550
+ "317" => "Delivery/Pickup Order",
551
+ "319" => "Terminal Information",
552
+ "322" => "Terminal Operations and Intermodal Ramp Activity",
553
+ "323" => "Vessel Schedule and Itinerary (Ocean)",
554
+ "324" => "Vessel Stow Plan (Ocean)",
555
+ "325" => "Consolidation of Goods in Container",
556
+ "326" => "Consignment Summary List",
557
+ "350" => "Customs Status Information",
558
+ "352" => "U.S. Customs Carrier General Order Status",
559
+ "353" => "Customs Events Advisory Details",
560
+ "354" => "U.S. Customs Auto. Manifest Archive Status",
561
+ "355" => "U.S. Customs Acceptance/Rejection",
562
+ "356" => "U.S. Customs Permit to Transfer Request",
563
+ "357" => "U.S. Customs In-Bond Information",
564
+ "358" => "Customs Consist Information",
565
+ "359" => "Customs Customer Profile Management",
566
+ "361" => "Carrier Interchange Agreement (Ocean)",
567
+ "404" => "Rail Carrier Shipment Information",
568
+ "410" => "Rail Carrier Freight Details and Invoice",
569
+ "412" => "Trailer or Container Repair Billing",
570
+ "414" => "Rail Carhire Settlements",
571
+ "417" => "Rail Carrier Waybill Interchange",
572
+ "418" => "Rail Advance Interchange Consist",
573
+ "419" => "Advance Car Disposition",
574
+ "420" => "Car Handling Information",
575
+ "421" => "Estimated Time of Arrival & Car Scheduling",
576
+ "422" => "Equipment Order",
577
+ "423" => "Rail Industrial Switch List",
578
+ "424" => "Rail Carrier Services Settlement",
579
+ "425" => "Rail Waybill Request",
580
+ "426" => "Rail Revenue Waybill",
581
+ "429" => "Railroad Retirement Activity",
582
+ "431" => "Railroad Station Master File",
583
+ "432" => "Rail Deprescription",
584
+ "433" => "Railroad Reciprocal Switch File",
585
+ "434" => "Railroad Mark Register Update Activity",
586
+ "435" => "Standard Transportation Commodity Code Master",
587
+ "436" => "Locomotive Information",
588
+ "437" => "Railroad Junctions & Interchanges Activity",
589
+ "440" => "Shipment Weights",
590
+ "451" => "Railroad Event Report",
591
+ "452" => "Railroad Problem Log Inquiry or Advice",
592
+ "453" => "Railroad Service Commitment Advice",
593
+ "455" => "Railroad Parameter Trace Registration",
594
+ "456" => "Railroad Equipment Inquiry or Advice",
595
+ "460" => "Railroad Price Distribution Request or Response",
596
+ "463" => "Rail Rate Reply",
597
+ "466" => "Rate Request",
598
+ "468" => "Rate Docket Journal Log",
599
+ "470" => "Railroad Clearance",
600
+ "475" => "Rail Route File Maintenance",
601
+ "485" => "Ratemaking Action",
602
+ "486" => "Rate Docket Expiration",
603
+ "490" => "Rate Group Definition",
604
+ "492" => "Miscellaneous Rates",
605
+ "494" => "Rail Scale Rates",
606
+ "601" => "U.S. Customs Export Shipment Information",
607
+ "603" => "Transportation Equipment Registration",
608
+ "715" => "Intermodal Group Loading Plan",
609
+ "854" => "Shipment Delivery Discrepancy Info.",
610
+ "858" => "Shipment Information",
611
+ "859" => "Freight Invoice",
612
+ "920" => "Loss or Damage Claim - Gen. Commodities",
613
+ "924" => "Loss or Damage Claim - Motor Vehicle",
614
+ "925" => "Claim Tracer",
615
+ "926" => "Claim Status Report and Tracer Reply",
616
+ "928" => "Automotive Inspection Detail",
617
+ "980" => "Functional Group Totals",
618
+ "990" => "Response to a Load Tender",
619
+ "998" => "Set Cancellation",
620
+
621
+ # X12M Supply Chain
622
+ "101" => "Name and Address Lists",
623
+ "140" => "Product Registration",
624
+ "141" => "Product Service Claim Response",
625
+ "142" => "Product Service Claim",
626
+ "143" => "Product Service Notification",
627
+ "159" => "Motion Picture Booking Confirmation",
628
+ "170" => "Revenue Receipts Statement",
629
+ "180" => "Return Merchandise Authorization & Notification",
630
+ "244" => "Product Source Information",
631
+ "290" => "Cooperative Advertising Agreements",
632
+ "503" => "Pricing History",
633
+ "504" => "Clauses and Provisions",
634
+ "620" => "Excavation Communication",
635
+ "625" => "Well Information",
636
+ "753" => "Request For Routing Instructions",
637
+ "754" => "Routing Instructions",
638
+ "816" => "Organizational Relationships",
639
+ "818" => "Commission Sales Report",
640
+ "830" => "Planning Schedule w/ Release Capability",
641
+ "832" => "Price/Sales Catalog",
642
+ "840" => "Request for Quotation",
643
+ "841" => "Specifications/Technical Information",
644
+ "842" => "Nonconformance Report",
645
+ "843" => "Response to Request for Quotation",
646
+ "845" => "Price Authorization Acknowledgment/Status",
647
+ "846" => "Inventory Inquiry/Advice",
648
+ "847" => "Material Claim",
649
+ "848" => "Material Safety Data Sheet",
650
+ "850" => "Purchase Order",
651
+ "851" => "Asset Schedule",
652
+ "852" => "Product Activity Data",
653
+ "853" => "Routing and Carrier Instruction",
654
+ "855" => "Purchase Order Acknowledgment",
655
+ "856" => "Ship Notice/Manifest",
656
+ "857" => "Shipment and Billing Notice",
657
+ "860" => "Purchase Order Change Request - Buyer Initiated",
658
+ "861" => "Receiving Advice/Acceptance Certificate",
659
+ "862" => "Shipping Schedule",
660
+ "863" => "Report of Test Results",
661
+ "865" => "Purchase Order Change Acknowledgment /Request - Seller Initiated",
662
+ "866" => "Production Sequence",
663
+ "867" => "Product Transfer and Resale Report",
664
+ "869" => "Order Status Inquiry",
665
+ "870" => "Order Status Report",
666
+ "873" => "Commodity Movement Services",
667
+ "874" => "Commodity Movement Services Response",
668
+ "875" => "Grocery Products Purchase Order",
669
+ "876" => "Grocery Products Purchase Order Change",
670
+ "877" => "Manufacturer Coupon Family Code Structure",
671
+ "878" => "Product Authorization/De-authorization",
672
+ "879" => "Price Information",
673
+ "881" => "Manufacturer Coupon Redemption Detail",
674
+ "882" => "Direct Store Delivery Summary Information",
675
+ "883" => "Market Development Fund Allocation",
676
+ "884" => "Market Development Fund Settlement",
677
+ "885" => "Retail Account Characteristics",
678
+ "886" => "Customer Call Reporting",
679
+ "887" => "Coupon Notification",
680
+ "888" => "Item Maintenance",
681
+ "889" => "Promotion Announcement",
682
+ "890" => "Contract & Rebate Management",
683
+ "891" => "Deduction Research Report",
684
+ "893" => "Item Information Request",
685
+ "894" => "Delivery/Return Base Record",
686
+ "895" => "Delivery/Return Acknowledgment or Adjustment",
687
+ "896" => "Product Dimension Maintenance",
688
+ "940" => "Warehouse Shipping Order",
689
+ "943" => "Warehouse Stock Transfer Shipment Advice",
690
+ "944" => "Warehouse Stock Transfer Receipt Advice",
691
+ "945" => "Warehouse Shipping Advice",
692
+ "947" => "Warehouse Inventory Adjustment Advice",
693
+
694
+ # X12N Insurance
695
+ "100" => "Insurance Plan Description",
696
+ "111" => "Individual Insurance Policy & Client Info.",
697
+ "112" => "Property Damage Report",
698
+ "124" => "Vehicle Damage",
699
+ "148" => "Report of Injury, Illness, or Incident",
700
+ "186" => "Insurance Underwriting Requirements Reporting",
701
+ "187" => "Premium Audit Request and Return",
702
+ "252" => "Insurance Producer Administration",
703
+ "255" => "Underwriting Information Services",
704
+ "256" => "Periodic Compensation",
705
+ "267" => "Individual Life Annuity & Disability Application",
706
+ "268" => "Annuity Activity",
707
+ "269" => "Health Care Benefit Coordination Verification",
708
+ "270" => "Eligibility, Coverage or Benefit Inquiry",
709
+ "271" => "Eligibility, Coverage or Benefit Information",
710
+ "272" => "Property and Casualty Loss Notification",
711
+ "273" => "Insurance/Annuity Application Status",
712
+ "274" => "Health Care Provider Information",
713
+ "275" => "Patient Information",
714
+ "276" => "Health Care Claim Status Request",
715
+ "277" => "Health Care Information Status Notification",
716
+ "278" => "Health Care Services Review Information",
717
+ "362" => "Cargo Insurance Advice of Shipment",
718
+ "834" => "Benefit Enrollment and Maintenance",
719
+ "835" => "Health Care Claim Payment/Advice",
720
+ "837" => "Health Care Claim"))
721
+ E156 = t::ID.new(:E156 , "State or Province Code" , 2, 2,
722
+ s::CodeList.external("22"))
723
+ E166 = t::AN.new(:E166 , "Address Information" , 1, 55)
724
+ E212 = t:: R.new(:E212 , "Unit Price" , 1, 17)
725
+ E234 = t::AN.new(:E234 , "Product/Service ID" , 1, 48)
726
+ E235 = t::ID.new(:E235 , "Product/Service ID Qualifier" , 2, 2,
727
+ s::CodeList.build(
728
+ "AD" => s::CodeList.external("135"),
729
+ "A5" => s::CodeList.external("22"),
730
+ "CH" => s::CodeList.external("5"),
731
+ "CJ" => s::CodeList.external("135"),
732
+ "DC" => s::CodeList.external("897"),
733
+ "DX" => s::CodeList.external("131"),
734
+ "EN" => "EAN/UCC - 13",
735
+ "EO" => "EAN/UCC - 8",
736
+ "ER" => s::CodeList.external("576"),
737
+ "HC" => s::CodeList.external("130"),
738
+ "HP" => s::CodeList.external("716"),
739
+ "ID" => s::CodeList.external("131"),
740
+ "IP" => s::CodeList.external("896"),
741
+ "IV" => s::CodeList.external("513"),
742
+ "HI" => "HIBC (Health Care Industry Bar Code) Supplier Labeling Standard Primary Data Message",
743
+ "LB" => s::CodeList.external("663"),
744
+ "N1" => s::CodeList.external("240"),
745
+ "N2" => s::CodeList.external("240"),
746
+ "N3" => s::CodeList.external("240"),
747
+ "N4" => s::CodeList.external("240"),
748
+ "N5" => s::CodeList.external("240"),
749
+ "N6" => s::CodeList.external("240"),
750
+ "NU" => s::CodeList.external("132"),
751
+ "ON" => "Customer Order Number",
752
+ "TD" => s::CodeList.external("359"),
753
+ "UI" => "U.P.C. Consumer Package (1-5-5)",
754
+ "UK" => "GTIN 14-digit Data Structure",
755
+ "UP" => "UCC - 12",
756
+ "RB" => s::CodeList.external("132"),
757
+ "WK" => s::CodeList.external("843"),
758
+ "ZZ" => "Mutually Defined"))
759
+ E236 = t::ID.new(:E236 , "Price Identifier Code" , 3, 3)
760
+ E280 = t:: R.new(:E280 , "Exchange Rate" , 4, 10)
761
+ E289 = t::Nn.new(:E289 , "Multiple Price Quantity" , 1, 2, 0)
762
+ E305 = t::ID.new(:E305 , "Transaction Handling Code" , 1, 2,
763
+ s::CodeList.build(
764
+ "C" => "Payment Accompanies Remittance Advice",
765
+ "D" => "Make Payment Only",
766
+ "H" => "Notification Only",
767
+ "I" => "Remittance Information Only",
768
+ "P" => "Prenotification of Future Transfers",
769
+ "U" => "Split Payment and Remittance",
770
+ "X" => "Handling Party's Option to Split Payment and Remittance"))
771
+ E306 = t::ID.new(:E306 , "Action Code" , 1, 2,
772
+ s::CodeList.build(
773
+ "1" => "Add",
774
+ "2" => "Change (Update)",
775
+ "4" => "Verify",
776
+ "51" => "Complete",
777
+ "71" => "Term Expired",
778
+ "A1" => "Certified in Total",
779
+ "A2" => "Certified - Partial",
780
+ "A3" => "Not Certified",
781
+ "A4" => "Pended",
782
+ "A6" => "Modified",
783
+ "C" => "Cancelled",
784
+ "CT" => "Contact Payer",
785
+ "NA" => "No Action Required",
786
+ "RX" => "Replace",
787
+ "U" => "Reject",
788
+ "WQ" => "Accept"))
789
+ E309 = t::ID.new(:E309 , "Location Qualifier" , 1, 2,
790
+ s::CodeList.build(
791
+ "60" => "Area",
792
+ "CY" => "County/Parish",
793
+ "PQ" => s::CodeList.external("51"),
794
+ "PR" => s::CodeList.external("51"),
795
+ "PS" => s::CodeList.external("51"),
796
+ "RJ" => s::CodeList.external("DOD1")))
797
+ E310 = t::ID.new(:E310 , "Location Identifier" , 1, 30)
798
+ E329 = t::AN.new(:E329 , "Transaction Set Control Number" , 4, 9)
799
+ E332 = t:: R.new(:E332 , "Percent, Decimal Format" , 1, 6)
800
+ E337 = t::TM.new(:E337 , "Time" , 4, 8)
801
+ E338 = t:: R.new(:E338 , "Terms Discount Percent" , 1, 6)
802
+ E350 = t::AN.new(:E350 , "Assigned Identification" , 1, 20)
803
+ E352 = t::AN.new(:E352 , "Description" , 1, 80)
804
+ E353 = t::ID.new(:E353 , "Transaction Set Purpose Code" , 2, 2,
805
+ s::CodeList.build(
806
+ "00" => "Original",
807
+ "01" => "Cancellation",
808
+ "06" => "Confirmation",
809
+ "08" => "Status",
810
+ "15" => "Re-Submission",
811
+ "11" => "Response",
812
+ "13" => "Request",
813
+ "18" => "Reissue",
814
+ "22" => "Information Copy",
815
+ "49" => "Original - No Response Necessary",
816
+ "52" => "Response to Historical Inquiry"))
817
+ E355 = t::ID.new(:E355 , "Unit or Basis for Measurement Code" , 2, 2,
818
+ s::CodeList.build(
819
+ "01" => "Actual Pounds",
820
+ "DA" => "Days",
821
+ "DH" => "Miles",
822
+ "DK" => "Kilometers",
823
+ "F2" => "International Unit",
824
+ "GR" => "Gram",
825
+ "LB" => "Pound",
826
+ "ME" => "Milligram",
827
+ "MJ" => "Minutes",
828
+ "ML" => "Milliliter",
829
+ "MO" => "Months",
830
+ "UN" => "Units",
831
+ "WK" => "Week",
832
+ "VS" => "Visit",
833
+ "YR" => "Years"))
834
+ E363 = t::ID.new(:E363 , "Note Reference Code" , 3, 3,
835
+ s::CodeList.build(
836
+ "ADD" => "Additional Information",
837
+ "ALG" => "Allergies",
838
+ "CER" => "Certification Narrative",
839
+ "DCP" => "Goals, Rehabilitation Potential, or Discharge Plans",
840
+ "DGN" => "Diagnosis Description",
841
+ "DME" => "Durable Medical Equipment (DME) and Supplies",
842
+ "MED" => "Medications",
843
+ "NTR" => "Nutritional Requirements",
844
+ "ODT" => "Orders for Disciplines and Treatments",
845
+ "RHB" => "Functional Limitations, Reason Homebound, or Both",
846
+ "RLH" => "Reasons Patient Leaves Home",
847
+ "RNH" => "Times and Reasons Patient Not at Home",
848
+ "SET" => "Unusual Home, Social Environment, or Both",
849
+ "SFM" => "Safety Measures",
850
+ "SPT" => "Supplementary Plan of Treatment",
851
+ "TPO" => "Third Party Organization Notes",
852
+ "UPI" => "Updated Information"))
853
+ E364 = t::AN.new(:E364 , "Communication Number" , 1, 256)
854
+ E365 = t::ID.new(:E365 , "Communication Number Qualifier" , 2, 2,
855
+ s::CodeList.build(
856
+ "AP" => "Alternate Telephone",
857
+ "BN" => "Beeper Number",
858
+ "CP" => "Cellular Phone",
859
+ "ED" => "Electronic Data Interchange Access Number",
860
+ "EM" => "Electronic Mail",
861
+ "EX" => "Telephone Extension",
862
+ "FX" => "Facsimile",
863
+ "HP" => "Home Phone Number",
864
+ "TE" => "Telephone",
865
+ "UR" => "Uniform Resource Locator (URL)",
866
+ "WP" => "Work Phone Number"))
867
+ E366 = t::ID.new(:E366 , "Contract Function Code" , 2, 2,
868
+ s::CodeList.build(
869
+ "1I" => "Local Contact",
870
+ "AJ" => "Primary Contact",
871
+ "AL" => "Alternate Contact",
872
+ "BI" => "Bill Inquiry Contact",
873
+ "BL" => "Technical Department",
874
+ "CN" => "General Contact",
875
+ "CX" => "Payers Claim Office",
876
+ "EP" => "Employer Contact",
877
+ "IC" => "Information Contact",
878
+ "IP" => "Insured Party",
879
+ "RP" => "Responsible Person",
880
+ "PQ" => "Parent or Guardian",
881
+ "SK" => "School Clerk"))
882
+ E373 = t::DT.new(:E373 , "Date" , 8, 8)
883
+ E374 = t::ID.new(:E374 , "Date/Time Qualifier" , 3, 3,
884
+ s::CodeList.build(
885
+ "007" => "Effective",
886
+ "009" => "Process",
887
+ "011" => "Shipped",
888
+ "036" => "Expiration",
889
+ "050" => "Received",
890
+ "090" => "Report Start",
891
+ "091" => "Report End",
892
+ "096" => "Discharge",
893
+ "102" => "Issue",
894
+ "139" => "Estimated",
895
+ "150" => "Service Period Start",
896
+ "151" => "Service Period End",
897
+ "152" => "Effective Date of Change",
898
+ "193" => "Period Start",
899
+ "194" => "Period End",
900
+ "196" => "Start",
901
+ "198" => "Completion",
902
+ "232" => "Claim Statement Period Start",
903
+ "233" => "Claim Statement Period End",
904
+ "286" => "Retirement",
905
+ "290" => "Coordination of Benefits",
906
+ "291" => "Plan",
907
+ "292" => "Benefit",
908
+ "295" => "Primary Care Provider",
909
+ "296" => "Initial Disability Period Return To Work",
910
+ "297" => "Initial Disability Period Last Day Worked",
911
+ "300" => "Enrollment Signature Date",
912
+ "301" => "Consolidated Omnibus Budget Reconciliation Act (COBRA) Qualifying Event",
913
+ "303" => "Maintenance Effective",
914
+ "304" => "Latest Visit or Consultation",
915
+ "307" => "Eligibility",
916
+ "314" => "Disability",
917
+ "318" => "Added",
918
+ "336" => "Employment Begin",
919
+ "337" => "Employment End",
920
+ "338" => "Medicare Begin",
921
+ "339" => "Medicare End",
922
+ "340" => "Consolidated Omnibus Budget Reconciliation Act (COBRA) Begin",
923
+ "341" => "Consolidated Omnibus Budget Reconciliation Act (COBRA) End",
924
+ "342" => "Premium Paid to Date Begin",
925
+ "343" => "Premium Paid to Date End",
926
+ "344" => "Coordination of Benefits Begin",
927
+ "345" => "Coordination of Benefits End",
928
+ "346" => "Plan Begin",
929
+ "347" => "Plan End",
930
+ "348" => "Benefit Begin",
931
+ "349" => "Benefit End",
932
+ "350" => "Education Begin",
933
+ "351" => "Education End",
934
+ "356" => "Eligibility Begin",
935
+ "357" => "Eligibility End",
936
+ "360" => "Initial Disability Period Start",
937
+ "361" => "Initial Disability Period End",
938
+ "382" => "Enrollment",
939
+ "383" => "Adjusted Hire",
940
+ "385" => "Credited Service Begin",
941
+ "386" => "Credited Service End",
942
+ "388" => "Payment Cancellation",
943
+ "393" => "Plan Participation Suspension",
944
+ "394" => "Rehire",
945
+ "405" => "Production",
946
+ "431" => "Onset of Current Symptoms or Illness",
947
+ "434" => "Statement",
948
+ "435" => "Admission",
949
+ "439" => "Accident",
950
+ "441" => "Prior Placement",
951
+ "442" => "Date of Birth",
952
+ "444" => "First Visit or Consultation",
953
+ "446" => "Replacement",
954
+ "452" => "Appliance Placement",
955
+ "453" => "Acute Manifestation of a Chronic Condition",
956
+ "454" => "Initial Treatment",
957
+ "455" => "Last X-Ray",
958
+ "458" => "Certification",
959
+ "461" => "Last Certification",
960
+ "463" => "Begin Therapy",
961
+ "471" => "Prescription",
962
+ "472" => "Service",
963
+ "473" => "Medicaid Begin",
964
+ "474" => "Medicaid End",
965
+ "484" => "Last Menstrual Period",
966
+ "523" => "Date of Claim",
967
+ "539" => "Policy Effective",
968
+ "540" => "Policy Expiration",
969
+ "543" => "Last Premium Paid Date",
970
+ "573" => "Date Claim Paid",
971
+ "582" => "@todo",
972
+ "607" => "Certification Revision",
973
+ "636" => "Date of Last Update",
974
+ "695" => "Previous Period",
975
+ "738" => "Most Recent Hemoglobin or Hematocrit or Both",
976
+ "739" => "Most Recent Serum Creatine",
977
+ "754" => "Next Payment Due",
978
+ "771" => "Status",
979
+ "881" => "Request",
980
+ "866" => "Examination",
981
+ "903" => "Application Entry",
982
+ "AAH" => "Event",
983
+ "AB4" => "Time Period",
984
+ "ABC" => "Estimated Date of Birth",
985
+ "ABW" => "Credit Card Expiration",
986
+ "AEC" => "Medicare Part A Coverage Effective Date",
987
+ "AED" => "Medicare Part A Termination Date",
988
+ "AEG" => "Medicare Part B Coverage Effective Date",
989
+ "AEH" => "Medicare Part B Termination Date",
990
+ "AFC" => "Medicare Part D Coverage Effective Date",
991
+ "AFD" => "Medicare Part D Termination Date"))
992
+ E380 = t:: R.new(:E380 , "Quantity" , 1, 15)
993
+ E426 = t::ID.new(:E426 , "Adjustment Reason Code" , 2, 2,
994
+ s::CodeList.build(
995
+ "50" => "Late Charge",
996
+ "51" => "Interest Penalty Charge",
997
+ "72" => "Authorized Return",
998
+ "90" => "Early Payment Allowance",
999
+ "AH" => "Origination Fee",
1000
+ "AM" => "Applied to Borrower's Account",
1001
+ "AP" => "Acceleration of Benefits",
1002
+ "B2" => "Rebate",
1003
+ "B3" => "Recovery Allowance",
1004
+ "BD" => "Bad Debt Adjustment",
1005
+ "BN" => "Bonus",
1006
+ "C5" => "Temporary Allowance",
1007
+ "CR" => "Capitation Interest",
1008
+ "CS" => "Adjustment",
1009
+ "CT" => "Capitation Payment",
1010
+ "CV" => "Capital Passthru",
1011
+ "CW" => "Certified Registered Nurse Anesthetist Passthru",
1012
+ "DM" => "Direct Medical Education Passthru",
1013
+ "E3" => "Withholding",
1014
+ "FB" => "Forwarding Balance",
1015
+ "FC" => "Fund Allocation",
1016
+ "GO" => "Graduate Medicale Education Passthru",
1017
+ "HM" => "Hemophelia Clotting Factor Supplement",
1018
+ "IP" => "Incentive Premium Payment",
1019
+ "IR" => "Internal Revenue Service Withholding",
1020
+ "IS" => "Interim Settlement",
1021
+ "J1" => "Nonreimbursable",
1022
+ "L3" => "Penalty",
1023
+ "L6" => "Interest Owed",
1024
+ "LE" => "Levy",
1025
+ "LS" => "Lump Sum",
1026
+ "OA" => "Organ Acquisition Passthru",
1027
+ "OB" => "Offset for Affiliated Providers",
1028
+ "PI" => "Periodic Interim Payment",
1029
+ "PL" => "Payment Final",
1030
+ "RA" => "Retro-activity Adjustment",
1031
+ "RE" => "Return on Equity",
1032
+ "SL" => "Student Loan Repayment",
1033
+ "TL" => "Third Party Liability",
1034
+ "WO" => "Overpayment Recovery",
1035
+ "WU" => "Unspecified Recovery"))
1036
+ E429 = t::AN.new(:E429 , "Check Number" , 1, 16)
1037
+ E443 = t::AN.new(:E443 , "Contract Inquiry Reference" , 1, 20)
1038
+ E447 = t::AN.new(:E447 , "Loop Identifier Code" , 1, 4)
1039
+ E449 = t::AN.new(:E449 , "Fixed Format Information" , 1, 80)
1040
+ E478 = t::ID.new(:E478 , "Credit/Debit Flag Code" , 1, 1,
1041
+ s::CodeList.build(
1042
+ "C" => "Credit",
1043
+ "D" => "Debit",
1044
+ "ACH" => "Automated Clearing House (ACH)",
1045
+ "BOP" => "Financial Institution Option",
1046
+ "CHK" => "Check",
1047
+ "FWT" => "Federal Reserve Funds/Wire Transfer - Nonrepetitive",
1048
+ "NON" => "Non-Payment Data"))
1049
+ E479 = t::ID.new(:E479 , "Functional Identifier Code" , 2, 2,
1050
+ s::CodeList.build(
1051
+ "AA" => "Account Analysis (822)",
1052
+ "AB" => "Logistics Service Request (219)",
1053
+ "AD" => "Individual Life, Annuity and Disability Application (267)",
1054
+ "AF" => "Application for Admission to Educational Institutions (189)",
1055
+ "AG" => "Application Advice (824)",
1056
+ "AH" => "Logistics Service Response (220)",
1057
+ "AI" => "Automotive Inspection Detail (928)",
1058
+ "AK" => "Student Educational Record (Transcript) Acknowledgment (131)",
1059
+ "AL" => "Set Cancellation (998) and Application Acceptance/Rejection Advice (499)",
1060
+ "AN" => "Return Merchandise Authorization and Notification (180)",
1061
+ "AO" => "Income or Asset Offset (521)",
1062
+ "AR" => "Warehouse Stock Transfer Shipment Advice (943)",
1063
+ "AS" => "Transportation Appointment Schedule Information (163)",
1064
+ "AT" => "Animal Toxicological Data (249)",
1065
+ "AW" => "Warehouse Inventory Adjustment Advice (947)",
1066
+ "BC" => "Business Credit Report (155)",
1067
+ "BE" => "Benefit Enrollment and Maintenance (834)",
1068
+ "BF" => "Business Entity Filings (105)",
1069
+ "BL" => "Motor Carrier Bill of Lading (211)",
1070
+ "BS" => "Shipment and Billing Notice (857)",
1071
+ "CA" => "Purchase Order Change Acknowledgment/Request - Seller Initiated (865)",
1072
+ "CB" => "Unemployment Insurance Tax Claim or Charge Information (153)",
1073
+ "CC" => "Clauses and Provisions (504)",
1074
+ "CD" => "Credit/Debit Adjustment (812)",
1075
+ "CE" => "Cartage Work Assignment (222)",
1076
+ "CF" => "Corporate Financial Adjustment Information (844 and 849)",
1077
+ "CG" => "Administrative Message (994)",
1078
+ "CH" => "Car Handling Information (420)",
1079
+ "CI" => "Consolidated Service Invoice/Statement (811)",
1080
+ "CJ" => "Manufacturer Coupon Family Code Structure (877)",
1081
+ "CK" => "Manufacturer Coupon Redemption Detail (881)",
1082
+ "CM" => "Component Parts Content (871)",
1083
+ "CN" => "Coupon Notification (887)",
1084
+ "CO" => "Cooperative Advertising Agreements (290)",
1085
+ "CP" => "Electronic Proposal Information (251, 805)",
1086
+ "CR" => "Rail Carhire Settlements (414)",
1087
+ "CS" => "Cryptographic Service Message (815)",
1088
+ "CT" => "Application Control Totals (831)",
1089
+ "CV" => "Commercial Vehicle Safety and Credentials Information Exchange (285)",
1090
+ "D3" => "Contract Completion Status (567)",
1091
+ "D4" => "Contract Abstract (561)",
1092
+ "D5" => "Contract Payment Management Report (568)",
1093
+ "DA" => "Debit Authorization (828)",
1094
+ "DD" => "Shipment Delivery Discrepancy Information (854)",
1095
+ "DF" => "Market Development Fund Allocation (883)",
1096
+ "DI" => "Dealer Information (128)",
1097
+ "DM" => "Shipper's Car Order (422)",
1098
+ "DS" => "Data Status Tracking (242)",
1099
+ "DX" => "Direct Exchange Delivery and Return Information (894, 895)",
1100
+ "EC" => "Educational Course Inventory (188)",
1101
+ "ED" => "Student Educational Record (Transcript) (130)",
1102
+ "EI" => "Railroad Equipment Inquiry or Advice (456)",
1103
+ "ER" => "Revenue Receipts Statement (170)",
1104
+ "ES" => "Notice of Employment Status (540)",
1105
+ "EV" => "Railroad Event Report (451)",
1106
+ "EX" => "Excavation Communication (620)",
1107
+ "FA" => "Functional Acknowledgment (997, 999)",
1108
+ "FB" => "Freight Invoice (859)",
1109
+ "FC" => "Court and Law Enforcement Information (175, 176)",
1110
+ "FG" => "Motor Carrier Loading and Route Guide (217)",
1111
+ "FH" => "Motor Carrier Tariff Information (218)",
1112
+ "FR" => "Financial Reporting (821, 827)",
1113
+ "FT" => "File Transfer (996)",
1114
+ "GB" => "Average Agreement Demurrage (423)",
1115
+ "GC" => "Damage Claim Transaction Sets (920, 924, 925, 926)",
1116
+ "GE" => "General Request, Response or Confirmation (814)",
1117
+ "GF" => "Response to a Load Tender (990)",
1118
+ "GL" => "Intermodal Group Loading Plan (715)",
1119
+ "GP" => "Grocery Products Invoice (880)",
1120
+ "GR" => "Statistical Government Information (152)",
1121
+ "GT" => "Grant or Assistance Application (194)",
1122
+ "HB" => "Eligibility, Coverage or Benefit Information (271)",
1123
+ "HC" => "Health Care Claim (837)",
1124
+ "HI" => "Health Care Services Review Information (278)",
1125
+ "HN" => "Health Care Claim Status Notification (277)",
1126
+ "HP" => "Health Care Claim Payment/Advice (835)",
1127
+ "HR" => "Health Care Claim Status Request (276)",
1128
+ "HS" => "Eligibility, Coverage or Benefit Inquiry (270)",
1129
+ "IA" => "Air Freight Details and Invoice (110, 980)",
1130
+ "IB" => "Inventory Inquiry/Advice (846)",
1131
+ "IC" => "Rail Advance Interchange Consist (418)",
1132
+ "ID" => "Insurance/Annuity Application Status (273)",
1133
+ "IE" => "Insurance Producer Administration (252)",
1134
+ "IG" => "Direct Store Delivery Summary Information (882)",
1135
+ "II" => "Rail Freight Details and Invoice Summary (411)",
1136
+ "IJ" => "Report of Injury, Illness or Incident (148)",
1137
+ "IM" => "Motor Carrier Freight Details and Invoice (210, 980)",
1138
+ "IN" => "Invoice Information (810,819)",
1139
+ "IO" => "Ocean Shipment Billing Details (310, 312, 980)",
1140
+ "IP" => "Intermodal Ramp Activity (622)",
1141
+ "IR" => "Rail Carrier Freight Details and Invoice (410, 980)",
1142
+ "IS" => "Estimated Time of Arrival and Car Scheduling (421)",
1143
+ "KM" => "Commercial Vehicle Credentials (286)",
1144
+ "LA" => "Federal Communications Commission (FCC) License Application (195)",
1145
+ "LB" => "Lockbox (823)",
1146
+ "LI" => "Locomotive Information (436)",
1147
+ "LN" => "Property and Casualty Loss Notification (272)",
1148
+ "LR" => "Logistics Reassignment (536)",
1149
+ "LS" => "Asset Schedule (851)",
1150
+ "LT" => "Student Loan Transfer and Status Verification (144)",
1151
+ "MA" => "Motor Carrier Summary Freight Bill Manifest (224)",
1152
+ "MC" => "Request for Motor Carrier Rate Proposal (107)",
1153
+ "MD" => "Department of Defense Inventory Management (527)",
1154
+ "ME" => "Mortgage Origination (198, 200, 201, 261, 262, 263, 833, 872)",
1155
+ "MF" => "Market Development Funds Settlement (884)",
1156
+ "MG" => "Mortgage Servicing Transaction Sets (203, 206, 260, 264, 266)",
1157
+ "MH" => "Motor Carrier Rate Proposal (106)",
1158
+ "MI" => "Motor Carrier Shipment Status Inquiry (213)",
1159
+ "MJ" => "Secondary Mortgage Market Loan Delivery (202)",
1160
+ "MK" => "Response to a Motor Carrier Rate Proposal (108)",
1161
+ "MM" => "Medical Event Reporting (500)",
1162
+ "MN" => "Mortgage Note (205)",
1163
+ "MO" => "Maintenance Service Order (650)",
1164
+ "MP" => "Motion Picture Booking Confirmation (159)",
1165
+ "MQ" => "Consolidators Freight Bill and Invoice (223)",
1166
+ "MR" => "Multilevel Railcar Load Details (125)",
1167
+ "MS" => "Material Safety Data Sheet (848)",
1168
+ "MT" => "Electronic Form Structure (868)",
1169
+ "MV" => "Material Obligation Validation (517)",
1170
+ "MW" => "Rail Waybill Response (427)",
1171
+ "MX" => "Material Claim (847)",
1172
+ "MY" => "Response to a Cartage Work Assignment (225)",
1173
+ "NC" => "Nonconformance Report (842)",
1174
+ "NL" => "Name and Address Lists (101)",
1175
+ "NP" => "Notice of Power of Attorney (157)",
1176
+ "NT" => "Notice of Tax Adjustment or Assessment (149)",
1177
+ "OC" => "Cargo Insurance Advice of Shipment (362)",
1178
+ "OG" => "Order Group - Grocery (875, 876)",
1179
+ "OR" => "Organizational Relationships (816)",
1180
+ "OW" => "Warehouse Shipping Order (940)",
1181
+ "PA" => "Price Authorization Acknowledgment/Status (845)",
1182
+ "PB" => "Railroad Parameter Trace Registration (455)",
1183
+ "PC" => "Purchase Order Change Request - Buyer Initiated (860)",
1184
+ "PD" => "Product Activity Data (852)",
1185
+ "PE" => "Periodic Compensation (256)",
1186
+ "PF" => "Annuity Activity (268)",
1187
+ "PG" => "Insurance Plan Description (100)",
1188
+ "PH" => "Pricing History (503)",
1189
+ "PI" => "Patient Information (275)",
1190
+ "PJ" => "Project Schedule Reporting (806)",
1191
+ "PK" => "Project Cost Reporting (839) and Contractor Cost Data Reporting (196)",
1192
+ "PL" => "Railroad Problem Log Inquiry or Advice (452)",
1193
+ "PN" => "Product Source Information (244)",
1194
+ "PO" => "Purchase Order (850)",
1195
+ "PQ" => "Property Damage Report (112)",
1196
+ "PR" => "Purchase Order Acknowledgement (855)",
1197
+ "PS" => "Planning Schedule with Release Capability (830)",
1198
+ "PT" => "Product Transfer and Resale Report (867)",
1199
+ "PU" => "Motor Carrier Shipment Pick-up Notification (216)",
1200
+ "PV" => "Purchase Order Shipment Management Document (250)",
1201
+ "PY" => "Payment Cancellation Request (829)",
1202
+ "QG" => "Product Information (878, 879, 888, 889, 893, 896)",
1203
+ "QM" => "Transportation Carrier Shipment Status Message (214)",
1204
+ "QO" => "Ocean Shipment Status Information (313, 315)",
1205
+ "RA" => "Payment Order/Remittance Advice (820)",
1206
+ "RB" => "Railroad Clearance (470)",
1207
+ "RC" => "Receiving Advice/Acceptance Certificate (861)",
1208
+ "RD" => "Royalty Regulatory Report (185)",
1209
+ "RE" => "Warehouse Stock Receipt Advice (944)",
1210
+ "RH" => "Railroad Reciprocal Switch File (433)",
1211
+ "RI" => "Routing and Carrier Instruction (853)",
1212
+ "RJ" => "Railroad Mark Register Update Activity (434)",
1213
+ "RK" => "Standard Transportation Commodity Code Master (435)",
1214
+ "RL" => "Rail Industrial Switch List (423)",
1215
+ "RM" => "Railroad Station Master File (431)",
1216
+ "RN" => "Requisition Transaction (511)",
1217
+ "RO" => "Ocean Booking Information (300, 301,303)",
1218
+ "RP" => "Commission Sales Report (818)",
1219
+ "RQ" => "Request for Quotation (840) and Procurement Notices (836)",
1220
+ "RR" => "Response to Request For Quotation (843)",
1221
+ "RS" => "Order Status Information (869, 870)",
1222
+ "RT" => "Report of Test Results (863)",
1223
+ "RU" => "Railroad Retirement Activity (429)",
1224
+ "RV" => "Railroad Junctions and Interchanges Activity (437)",
1225
+ "RW" => "Rail Revenue Waybill (426)",
1226
+ "RX" => "Rail Deprescription (432)",
1227
+ "RY" => "Request for Student Educational Record (Transcript) (146)",
1228
+ "RZ" => "Response to Request for Student Educational Record (Transcript) (147)",
1229
+ "SA" => "Air Shipment Information (104)",
1230
+ "SB" => "Switch Rails (424)",
1231
+ "SC" => "Price/Sales Catalog (832)",
1232
+ "SD" => "Student Loan Pre-Claims and Claims (191)",
1233
+ "SE" => "Shipper's Export Declaration (601)",
1234
+ "SG" => "SG Receiving Advice - Grocery (885)",
1235
+ "SH" => "Ship Notice/Manifest (856)",
1236
+ "SI" => "Shipment Information (858)",
1237
+ "SJ" => "Transportation Automatic Equipment Identification (160)",
1238
+ "SL" => "Student Loan Application and Guarantee (135, 139)",
1239
+ "SM" => "Motor Carrier Load Tender (204)",
1240
+ "SN" => "Rail Route File Maintenance (475)",
1241
+ "SO" => "Ocean Shipment Information (304, 306, 309, 311, 317, 319, 321, 322, 323, 324, 325, 350, 352, 353, 354, 355, 356, 357, 358, 361)",
1242
+ "SP" => "Specifications/Technical Information (841)",
1243
+ "SQ" => "Production Sequence (866)",
1244
+ "SR" => "Rail Carrier Shipment Information (404, 419)",
1245
+ "SS" => "Shipping Schedule (862)",
1246
+ "ST" => "Railroad Service Commitment Advice (453)",
1247
+ "SU" => "Account Assignment/Inquiry and Service/Status (248)",
1248
+ "SV" => "Student Enrollment Verification (190)",
1249
+ "SW" => "Warehouse Shipping Advice (945)",
1250
+ "TA" => "Electronic Filing of Tax Return Data Acknowledgment (151)",
1251
+ "TC" => "Court Submission (176)",
1252
+ "TD" => "Trading Partner Profile (838)",
1253
+ "TF" => "Electronic Filing of Tax Return Data (813)",
1254
+ "TI" => "Tax Information Exchange (826)",
1255
+ "TM" => "Motor Carrier Delivery Trailer Manifest (212)",
1256
+ "TN" => "Tax Rate Notification (150)",
1257
+ "TO" => "Real Estate Title Services (197, 199, 265)",
1258
+ "TP" => "Rail Rate Transactions (460, 463, 466, 468, 485, 486, 490, 492, 494)",
1259
+ "TR" => "Train Sheet (161)",
1260
+ "TS" => "Transportation Services Tender (602)",
1261
+ "TT" => "Testing Results Request and Report (138)",
1262
+ "TX" => "Text Message (864)",
1263
+ "UA" => "Retail Account Characteristics (885)",
1264
+ "UB" => "Customer Call Reporting (886)",
1265
+ "UC" => "Uniform Commercial Code Filing (154)",
1266
+ "UD" => "Deduction Research Report (891)",
1267
+ "UI" => "Underwriting Information Services (255)",
1268
+ "UP" => "Motor Carrier Pick-up Manifest (215)",
1269
+ "UW" => "Insurance Underwriting Requirements Reporting (186)",
1270
+ "VA" => "Vehicle Application Advice (126)",
1271
+ "VB" => "Vehicle Baying Order (127)",
1272
+ "VC" => "Vehicle Shipping Order (120)",
1273
+ "VD" => "Vehicle Damage (124)",
1274
+ "VE" => "Vessel Content Details (109)",
1275
+ "VH" => "Vehicle Carrier Rate Update (129)",
1276
+ "VI" => "Voter Registration Information (280)",
1277
+ "VS" => "Vehicle Service (121)",
1278
+ "WA" => "Product Service Transaction Sets (140, 141, 142, 143)",
1279
+ "WB" => "Rail Carrier Waybill Interchange (417)",
1280
+ "WG" => "Vendor Performance Review (501)",
1281
+ "WI" => "Wage Determination (288)",
1282
+ "WL" => "Well Information (625)",
1283
+ "WR" => "Shipment Weights (440)",
1284
+ "WT" => "Rail Waybill Request (425)"))
1285
+ E455 = t::ID.new(:E455 , "Responsible Agency Code" , 1, 2,
1286
+ s::CodeList.build(
1287
+ "X" => "Accredited Standards Committee X12"))
1288
+ E480 = t::AN.new(:E480 , "Version / Release / Identifier Code" , 1, 12,
1289
+ s::CodeList.external("881"))
1290
+ E481 = t::ID.new(:E481 , "Trace Type Code" , 1, 2,
1291
+ s::CodeList.build(
1292
+ "1" => "Current Transaction Trace Numbers",
1293
+ "2" => "Referenced Transaction Trace Numbers",
1294
+ "3" => "@todo"))
1295
+ E499 = t::AN.new(:E499 , "Condition Value" , 1, 10)
1296
+ E506 = t::ID.new(:E506 , "DFI Identification Number Qualifier" , 2, 2,
1297
+ s::CodeList.build(
1298
+ "01" => s::CodeList.external("4"),
1299
+ "04" => s::CodeList.external("91")))
1300
+ E507 = t::AN.new(:E507 , "DFI Identification Number" , 3, 12,
1301
+ s::CodeList.external("60"))
1302
+ E508 = t::AN.new(:E508 , "Account Number" , 1, 35)
1303
+ E509 = t::AN.new(:E509 , "Originating Company Identifier" , 10,10)
1304
+ E510 = t::AN.new(:E510 , "Originating Company Supplemental Code", 9, 9)
1305
+ E522 = t::ID.new(:E522 , "Amount Qualifier Code" , 1, 3,
1306
+ s::CodeList.build(
1307
+ "93" => "Contribution",
1308
+ "A8" => "Noncovered Charges - Actual",
1309
+ "AU" => "Coverage Amount",
1310
+ "B6" => "Allowed Amount",
1311
+ "B9" => "Co-insurance - Actual",
1312
+ "C1" => "Co-Payment Amount",
1313
+ "D" => "Payor Amount Paid",
1314
+ "D2" => "Deductible Amount",
1315
+ "D8" => "Discount Amount",
1316
+ "DY" => "Per Day Limit",
1317
+ "EAF" => "Amount Owed",
1318
+ "EBA" => "Expected Expenditure Amount",
1319
+ "F3" => "Patient Responsibility - Estimated",
1320
+ "F4" => "Postage Claimed",
1321
+ "F5" => "Patient Amount Paid",
1322
+ "FK" => "Other Unlisted Amount",
1323
+ "GT" => "Goods and Services Tax",
1324
+ "I" => "Interest",
1325
+ "JN" => "Employer Contribution",
1326
+ "KH" => "Deduction Amount",
1327
+ "N8" => "Miscellaneous Taxes",
1328
+ "NL" => "Negative Ledger Balance",
1329
+ "P3" => "Premium Amount",
1330
+ "T3" => "Total Submitted Charges",
1331
+ "PB" => "Billed Amount",
1332
+ "R" => "Spend Down",
1333
+ "SCT" => "State Care Tax",
1334
+ "T" => "Tax",
1335
+ "T2" => "Total Claim Before Taxes",
1336
+ "YU" => "In Process",
1337
+ "YY" => "Returned",
1338
+ "ZK" => "Federal Medicare or Medicaid Payment Mandate Category 1",
1339
+ "ZL" => "Federal Medicare or Medicaid Payment Mandate Category 2",
1340
+ "ZM" => "Federal Medicare or Medicaid Payment Mandate Category 3",
1341
+ "ZN" => "Federal Medicare or Medicaid Payment Mandate Category 4",
1342
+ "ZO" => "Federal Medicare or Medicaid Payment Mandate Category 5"))
1343
+ E554 = t::Nn.new(:E554 , "Assigned Number" , 1, 6, 0)
1344
+ E559 = t::ID.new(:E559 , "Agency Qualifier Code" , 2, 2,
1345
+ s::CodeList.build(
1346
+ "LB" => s::CodeList.external("407")))
1347
+ E569 = t::ID.new(:E569 , "Account Number Qualifier" , 1, 3,
1348
+ s::CodeList.build(
1349
+ "DA" => "Demand Deposit",
1350
+ "SG" => "Savings"))
1351
+ E584 = t::ID.new(:E584 , "Employment Status Code" , 2, 2,
1352
+ s::CodeList.build(
1353
+ "AC" => "Active",
1354
+ "AE" => "@todo",
1355
+ "AO" => "Active Military - Overseas",
1356
+ "AU" => "Active Military - USA",
1357
+ "AS" => "@todo",
1358
+ "AT" => "@todo",
1359
+ "CC" => "@todo",
1360
+ "DD" => "@todo",
1361
+ "DI" => "Deceased",
1362
+ "HD" => "@todo",
1363
+ "IR" => "@todo",
1364
+ "FT" => "Full-time",
1365
+ "L1" => "Leave of Absence",
1366
+ "LX" => "@todo",
1367
+ "PE" => "@todo",
1368
+ "PT" => "Part-time",
1369
+ "PV" => "Previous",
1370
+ "RE" => "@todo",
1371
+ "RM" => "@todo",
1372
+ "RR" => "@todo",
1373
+ "RU" => "Retired Military - USA",
1374
+ "RT" => "Retired",
1375
+ "TE" => "Terminated"))
1376
+ E591 = t::ID.new(:E591 , "Payment Method Code" , 3, 3)
1377
+ E594 = t::ID.new(:E594 , "Frequency Code" , 1, 1,
1378
+ s::CodeList.build(
1379
+ "1" => "Weekly",
1380
+ "2" => "Biweekly",
1381
+ "3" => "Semimonthly",
1382
+ "4" => "Monthly",
1383
+ "6" => "Daily",
1384
+ "7" => "Annual",
1385
+ "8" => "Two Calendar Months",
1386
+ "9" => "Lump-Sum Separation Allowance",
1387
+ "B" => "Year-to-Date",
1388
+ "C" => "Single",
1389
+ "H" => "Hourly",
1390
+ "Q" => "Quarterly",
1391
+ "S" => "Semiannual",
1392
+ "U" => "Unknown"))
1393
+ E609 = t::Nn.new(:E609 , "Count" , 1, 9, 0)
1394
+ E615 = t::ID.new(:E615 , "Time Period Qualifier" , 1, 2,
1395
+ s::CodeList.build(
1396
+ "6" => "Hour",
1397
+ "7" => "Day",
1398
+ "13" => "24 Hours",
1399
+ "21" => "Years",
1400
+ "22" => "Service Year",
1401
+ "23" => "Calendar Year",
1402
+ "24" => "Year to Date",
1403
+ "25" => "Contract",
1404
+ "26" => "Episode",
1405
+ "27" => "Visit",
1406
+ "28" => "Outlier",
1407
+ "29" => "Remaining",
1408
+ "30" => "Exceeded",
1409
+ "31" => "Not Exceeded",
1410
+ "32" => "Lifetime",
1411
+ "33" => "Lifetime Remaining",
1412
+ "34" => "Month",
1413
+ "35" => "Week",
1414
+ "36" => "Admission"))
1415
+ E616 = t::Nn.new(:E616 , "Number of Periods" , 1, 3, 0)
1416
+ E618 = t::ID.new(:E618 , "Implementation Transaction Set Syntax Error Code", 1, 3,
1417
+ s::CodeList.build(
1418
+ "1" => "Transaction Set Not Supported",
1419
+ "2" => "Transaction Set Trailer Missing",
1420
+ "3" => "Transaction Set Control Number in Header and Trailer Do Not Match",
1421
+ "4" => "Number of Included Segments Does Not Match Actual Content",
1422
+ "5" => "One or More Segments in Error",
1423
+ "6" => "Missing or Invalid Transaction Set Identifier",
1424
+ "7" => "Missing or Invalid Transaction Set Control Number",
1425
+ "8" => "Authentication Key Name Unknown",
1426
+ "9" => "Encryption Key Name Unknown",
1427
+ "10" => "Requested Service (Authentication or Encrypted) Not Available",
1428
+ "11" => "Unknown Security Recipient",
1429
+ "12" => "Incorrect Message Length (Encryption Only)",
1430
+ "13" => "Message Authentication Code Failed",
1431
+ "15" => "Unknown Security Originator",
1432
+ "16" => "Syntax Error in Decrypted Text",
1433
+ "17" => "Security Not Supported",
1434
+ "18" => "Transaction Set not in Functional Group",
1435
+ "19" => "Invalid Transaction Set Implementation Convention Reference",
1436
+ "23" => "Transaction Set Control Number Not Unique within the Functional Group",
1437
+ "24" => "S3E Security End Segment Missing for S3S Security Start Segment",
1438
+ "25" => "S3S Security Start Segment Missing for S3E Security End Segment",
1439
+ "26" => "S4E Security End Segment Missing for S4S Security Start Segment",
1440
+ "27" => "S4S Security Start Segment Missing for S4E Security End Segment",
1441
+ "I5" => "Implementation One or More Segments In Error",
1442
+ "I6" => "Implementation Convention Not Supported"))
1443
+
1444
+ E620 = t::ID.new(:E620 , "Implementation Segment Syntax Error Code", 1, 3,
1445
+ s::CodeList.build(
1446
+ "1" => "Unrecognized segment ID",
1447
+ "2" => "Unexpected segment",
1448
+ "3" => "Required Segment Missing",
1449
+ "4" => "Loop Occurs Over Maximum Times",
1450
+ "5" => "Segment Exceeds Maximum Use",
1451
+ "6" => "Segment Not in Defined Transaction Set",
1452
+ "7" => "Segment Not in Proper Sequence",
1453
+ "8" => "Segment Has Data Element Errors",
1454
+ "I4" => "Implementation 'Not Used' Segment Present",
1455
+ "I6" => "Implementation Dependent Segment Missing",
1456
+ "I7" => "Implementation Loop Occurs Under Minimum Times",
1457
+ "I8" => "Implementation Segment Below Minimum Use",
1458
+ "I9" => "Implementation Dependent 'Not Used' Segment Present"))
1459
+ E621 = t::ID.new(:E621 , "Implementation Data Element Syntax Error Code", 1, 3,
1460
+ s::CodeList.build(
1461
+ "1" => "Required Data Element Missing",
1462
+ "2" => "Conditional Required Data Element Missing",
1463
+ "3" => "Too Many Data Elements",
1464
+ "4" => "Data Element Too Short",
1465
+ "5" => "Data Element Too Long",
1466
+ "6" => "Invalid Character In Data Element",
1467
+ "7" => "Invalid Code Value",
1468
+ "8" => "Invalid Date",
1469
+ "9" => "Invalid Time",
1470
+ "10" => "Exclusion Conditional Violated",
1471
+ "12" => "Too Many Repetitions",
1472
+ "13" => "Too Many Components",
1473
+ "I6" => "Code Value Not Used in Implementation",
1474
+ "I9" => "Implementation Dependent Data Element Missing",
1475
+ "I10" => "Implementation 'Not Used' Data Element Present",
1476
+ "I11" => "Implementation Too Few Repetitions",
1477
+ "I12" => "Implementation Pattern Match Failure",
1478
+ "I13" => "Implementation Dependent 'Not Used' Data Element Present"))
1479
+ E623 = t::ID.new(:E623 , "Time Code" , 2, 2,
1480
+ s::CodeList.external("94"))
1481
+ E628 = t::AN.new(:E628 , "Hierachical ID Number" , 1, 12)
1482
+ E639 = t::ID.new(:E639 , "Basis of Unit Price Code" , 2, 2)
1483
+ E640 = t::ID.new(:E640 , "Transaction Type Code" , 2, 2,
1484
+ s::CodeList.build(
1485
+ "18" => "Response - No Further Updates to Follow",
1486
+ "19" => "Response - Further Updates to Follow",
1487
+ "31" => "Subrogation Demand",
1488
+ "CH" => "Chargeable",
1489
+ "DG" => "Response",
1490
+ "NO" => "Notice",
1491
+ "P5" => "Predetermination - Medical",
1492
+ "P6" => "Predetermination - Dental",
1493
+ "RD" => "Returns Detail",
1494
+ "RP" => "Reporting",
1495
+ "RQ" => "Request",
1496
+ "RS" => "Response - Additional Response(s) Available",
1497
+ "RT" => "Spend Down",
1498
+ "RU" => "Medical Services Reservation",
1499
+ "TH" => "Receipt Acknowledgement Advice",
1500
+ "ZW" => "Sort and Segregate Detail"))
1501
+ E648 = t::ID.new(:E648 , "Price Multiplier Qualifier" , 3, 3)
1502
+ E649 = t:: R.new(:E649 , "Multiplier" , 1, 10)
1503
+ E659 = t::ID.new(:E659 , "Basis of Verification Code" , 1, 2)
1504
+ E669 = t::ID.new(:E669 , "Currency Market/Exchnage Code" , 3, 3)
1505
+ E673 = t::ID.new(:E673 , "Quantity Qualifier" , 2, 2,
1506
+ s::CodeList.build(
1507
+ "8H" => "Minimum",
1508
+ "90" => "Acknowledged Quantity",
1509
+ "99" => "Quantity Used",
1510
+ "AA" => "Unacknowledged Quantity",
1511
+ "CA" => "Covered - Actual",
1512
+ "CD" => "Co-insured - Actual",
1513
+ "CE" => "Covered - Estimated",
1514
+ "D3" => "Number of Co-insurance Days",
1515
+ "DB" => "Deductible Blood Units",
1516
+ "DY" => "Days",
1517
+ "FA" => "Facility Identification",
1518
+ "FI" => "Federal Taxpayer's Identification Number",
1519
+ "DT" => "Dependent Total",
1520
+ "ET" => "Employee Total",
1521
+ "FL" => "Units",
1522
+ "HS" => "Hours",
1523
+ "II" => "Standard Unique Health Identifier For Each Individual In The United States",
1524
+ "LA" => "Life-time Reserve - Actual",
1525
+ "LE" => "Life-time Reserve - Estimated",
1526
+ "M2" => "Maximum",
1527
+ "MI" => "Member Identification Number",
1528
+ "MN" => "Month",
1529
+ "NE" => "Non-Covered Amount - Estimated",
1530
+ "NI" => "National Association of Insurance Commissioners (NAIC) Identification",
1531
+ "NR" => "Not Replaced Blood Units",
1532
+ "OU" => "Outlier Days",
1533
+ "P6" => "Number of Services or Procedures",
1534
+ "PI" => "Payor Identification",
1535
+ "PP" => "Pharmacy Processor Number",
1536
+ "PS" => "Prescription",
1537
+ "PT" => "Patients",
1538
+ "QA" => "Quantity Approved",
1539
+ "QC" => "Quantity Disapproved",
1540
+ "S7" => "Age, High Value",
1541
+ "S8" => "Age, Low Value",
1542
+ "SV" => "Service Provider Number",
1543
+ "TO" => "Total",
1544
+ "VS" => "Visits",
1545
+ "XV" => s::CodeList.external("540"),
1546
+ "XX" => s::CodeList.external("537"),
1547
+ "YY" => "Years",
1548
+ "ZK" => "Federal Medicare or Medicaid Payment Mandate Category 1",
1549
+ "ZL" => "Federal Medicare or Medicaid Payment Mandate Category 2",
1550
+ "ZM" => "Federal Medicare or Medicaid Payment Mandate Category 3",
1551
+ "ZN" => "Federal Medicare or Medicaid Payment Mandate Category 4",
1552
+ "ZO" => "Federal Medicare or Medicaid Payment Mandate Category 5"))
1553
+ E678 = t::ID.new(:E678 , "Ship/Delivery or Calendar Pattern Code", 1, 2,
1554
+ s::CodeList.build(
1555
+ "1" => "1st Week of the Month",
1556
+ "2" => "2nd Week of the Month",
1557
+ "3" => "3rd Week of the Month",
1558
+ "4" => "4th Week of the Month",
1559
+ "5" => "5th Week of the Month",
1560
+ "6" => "1st & 3rd Weeks of the Month",
1561
+ "7" => "2nd & 4th Weeks of the Month",
1562
+ "8" => "1st Working Day of Period",
1563
+ "9" => "Last Working Day of Period",
1564
+ "A" => "Monday through Friday",
1565
+ "B" => "Monday through Saturday",
1566
+ "C" => "Monday through Sunday",
1567
+ "D" => "Monday",
1568
+ "E" => "Tuesday",
1569
+ "F" => "Wednesday",
1570
+ "G" => "Thursday",
1571
+ "H" => "Friday",
1572
+ "J" => "Saturday",
1573
+ "K" => "Sunday",
1574
+ "L" => "Monday through Thursday",
1575
+ "M" => "Immediately",
1576
+ "N" => "As Directed",
1577
+ "O" => "Daily Mon. through Fri.",
1578
+ "P" => "1/2 Mon. & 1/2 Thurs.",
1579
+ "Q" => "1/2 Tues. & 1/2 Thurs.",
1580
+ "R" => "1/2 Wed. & 1/2 Fri.",
1581
+ "S" => "Once Anytime Mon. through Fri.",
1582
+ "SG" => "Tuesday through Friday",
1583
+ "SL" => "Monday, Tuesday and Thursday",
1584
+ "SP" => "MOnday, Tuesday and Friday",
1585
+ "SX" => "Wednesday and Thursday",
1586
+ "SY" => "Monday, Wednesday and Thursday",
1587
+ "SZ" => "Tuesday, Thursday and Friday",
1588
+ "SGT" => "uesday through Friday",
1589
+ "SLM" => "onday, Tuesday and Thursday",
1590
+ "SPM" => "onday, Tuesday and Friday",
1591
+ "SXW" => "ednesday and Thursday",
1592
+ "SYM" => "onday, Wednesday and Thursday",
1593
+ "SZT" => "uesday, Thursday and Friday",
1594
+ "T" => "1/2 Tue. & 1/2 Fri.",
1595
+ "U" => "1/2 Mon. & 1/2 Wed.",
1596
+ "V" => "1/3 Mon., 1/3 Wed., 1/3 Fri.",
1597
+ "W" => "Whenever Necessary",
1598
+ "X" => "1/2 By Wed., Bal. By Fri.",
1599
+ "Y" => "None (Also Used to Cancel or Override a Previous Pattern)"))
1600
+ E679 = t::ID.new(:E679 , "Ship/Delivery Pattern Time Code" , 1, 1,
1601
+ s::CodeList.build(
1602
+ "A" => "1st Shift (Normal Working Hours)",
1603
+ "B" => "2nd Shift",
1604
+ "C" => "3rd Shift",
1605
+ "D" => "A.M.",
1606
+ "E" => "P.M.",
1607
+ "F" => "As Directed",
1608
+ "G" => "Any Shift",
1609
+ "Y" => "None (Also Used to Cancel or Override a Previous Pattern)"))
1610
+ E687 = t::ID.new(:E687 , "Class of Trade Code" , 2, 2)
1611
+ E704 = t::ID.new(:E704 , "Paperwork/Report Action Code" , 1, 2)
1612
+
1613
+ # @note Copied from an unverified source
1614
+ E706 = t::ID.new(:E706 , "Entity Relation Code" , 2, 2)
1615
+ E715 = t::ID.new(:E715 , "Functional Group Acknowledgment Code" , 1, 1,
1616
+ s::CodeList.build(
1617
+ "A" => "Accepted",
1618
+ "E" => "Accepted, But Errors Were Noted",
1619
+ "M" => "Rejected, Message Authentication Code (MAC) Failed",
1620
+ "P" => "Partially Accepted, At Least One Transaction Set Was Rejected",
1621
+ "R" => "Rejected",
1622
+ "W" => "Rejected, Assurance Failed Validity Tests",
1623
+ "X" => "Rejected, Content After Decryption Could Not Be Analyzed"))
1624
+ E716 = t::ID.new(:E716 , "Functional Group Syntax Error Code" , 1, 3,
1625
+ s::CodeList.build(
1626
+ "1" => "Functional Group Not Supported",
1627
+ "2" => "Functional Group Version Not Supported",
1628
+ "3" => "Functional Group Trailer Missing",
1629
+ "4" => "Group Control Number in the Functional Group Header and Trailer Do Not Agree",
1630
+ "5" => "Number of Included Transaction Sets Does Not Match Actual Count",
1631
+ "6" => "Group Control Number Violates Syntax",
1632
+ "10" => "Authentication Key Name Unknown",
1633
+ "11" => "Encryption Key Name Unknown",
1634
+ "12" => "Requested Service (Authentication or Encryption) Not Available",
1635
+ "13" => "Unknown Security Recipient",
1636
+ "14" => "Unknown Security Originator",
1637
+ "15" => "Syntax Error in Decrypted Text",
1638
+ "16" => "Security Not Supported",
1639
+ "17" => "Incorrect Message Length (Encryption Only)",
1640
+ "18" => "Message Authentication Code Failed",
1641
+ "19" => "Functional Group Control Number not Unique within Interchange",
1642
+ "23" => "S3E Security End Segment Missing for S3S Security Start Segment",
1643
+ "24" => "S3S Security Start Segment Missing for S3E Security End Segment",
1644
+ "25" => "S4E Security End Segment Missing for S4S Security Start Segment",
1645
+ "26" => "S4S Security Start Segment Missing for S4E Security End Segment"))
1646
+ E717 = t::ID.new(:E717 , "Transaction Set Acknowledgment Code" , 1, 1,
1647
+ s::CodeList.build(
1648
+ "A" => "Accepted",
1649
+ "E" => "Accepted But Errors Were Reported",
1650
+ "M" => "Rejected, Message Authentication Code (MAC) Failed",
1651
+ "R" => "Rejected",
1652
+ "W" => "Rejected, Assurance Failed Validity Tests",
1653
+ "X" => "Rejected, Content After Decryption Could Not Be Analyzed"))
1654
+ E718 = t::ID.new(:E718 , "Transaction Set Syntax Error Code" , 1, 3)
1655
+ E719 = t::Nn.new(:E719 , "Segment Position in Transaction Set" , 1, 10, 0)
1656
+ E720 = t::ID.new(:E720 , "Segment Syntax Error Code" , 1, 3)
1657
+ E721 = t::ID.new(:E721 , "Segment ID Code" , 2, 3,
1658
+ s::CodeList.external("77"))
1659
+ E722 = t::Nn.new(:E722 , "Element Position in Segment" , 1, 2, 0)
1660
+ E723 = t::ID.new(:E723 , "Data Element Syntax Error Code" , 1, 3)
1661
+ E724 = t::AN.new(:E724 , "Copy of Bad Data Element" , 1, 99)
1662
+ E725 = t::Nn.new(:E725 , "Data Element Reference Number" , 1, 4, 0)
1663
+ E734 = t::AN.new(:E734 , "Hierarchical Parent ID Number" , 1, 12)
1664
+ E735 = t::ID.new(:E735 , "Hierarchical Level Code" , 1, 2,
1665
+ s::CodeList.build(
1666
+ "19" => "Provider of Service",
1667
+ "20" => "Information Source",
1668
+ "21" => "Information Receiver",
1669
+ "22" => "Subscriber",
1670
+ "23" => "Dependent",
1671
+ "EV" => "Event",
1672
+ "PT" => "Patient",
1673
+ "SS" => "Services"))
1674
+ E736 = t::ID.new(:E736 , "Hierarchical Child Code" , 1, 1,
1675
+ s::CodeList.build(
1676
+ "0" => "No Subordinate HL Segment in This Hierarchical Structure",
1677
+ "1" => "Additional Subordinate HL Data Segment in This Hierarchical Structure"))
1678
+ E737 = t::ID.new(:E737 , "Measurement Reference ID Code" , 2, 2,
1679
+ s::CodeList.build(
1680
+ "OG" => "Original",
1681
+ "TR" => "Test Results"))
1682
+ E738 = t::ID.new(:E738 , "Measurement Qualifier" , 2, 2,
1683
+ s::CodeList.build(
1684
+ "HT" => "Height",
1685
+ "R1" => "Hemoglobin",
1686
+ "R2" => "Hematocrit",
1687
+ "R3" => "Epoetin Starting Dosage",
1688
+ "R4" => "Creatinine"))
1689
+ E739 = t:: R.new(:E739 , "Measurement Value" , 1, 20)
1690
+ E740 = t:: R.new(:E740 , "Range Minimum" , 1, 20)
1691
+ E741 = t:: R.new(:E741 , "Range Maximum" , 1, 20)
1692
+ E752 = t::ID.new(:E752 , "Surface/Layer/Position Code" , 2, 2)
1693
+ E753 = t::ID.new(:E753 , "Measurement Method or Device" , 2, 4)
1694
+ E755 = t::ID.new(:E755 , "Report Type Code" , 2, 2,
1695
+ s::CodeList.build(
1696
+ "03" => "Report Justifying Treatment Beyond Utilization Guidelines",
1697
+ "04" => "Drugs Administered",
1698
+ "05" => "Treatment Diagnosis",
1699
+ "06" => "Initial Assesment",
1700
+ "07" => "Functional Goals",
1701
+ "08" => "Plan of Treatment",
1702
+ "09" => "Progress Report",
1703
+ "10" => "Continued Treatment",
1704
+ "11" => "Chemical Analysis",
1705
+ "13" => "Certified Test Report",
1706
+ "15" => "Justification for Admission",
1707
+ "21" => "Recovery Plan",
1708
+ "48" => "Social Security Benefit Letter",
1709
+ "55" => "Rental Agreement",
1710
+ "59" => "Benefit Letter",
1711
+ "77" => "Support Data for Verification",
1712
+ "A3" => "Allergies/Sensitivies Document",
1713
+ "A4" => "Autopsy Report",
1714
+ "AM" => "Ambulance Certification",
1715
+ "AS" => "Admission Summary",
1716
+ "B2" => "Prescription",
1717
+ "B3" => "Physician Order",
1718
+ "B4" => "Referral Form",
1719
+ "BR" => "Benchmark Testing Results",
1720
+ "BS" => "Baseline",
1721
+ "BT" => "Blanket Test Results",
1722
+ "CB" => "Chiropractic Justification",
1723
+ "CK" => "Conset Form(s)",
1724
+ "CT" => "Certification",
1725
+ "D2" => "Drug Profile Document",
1726
+ "DA" => "Dental Models",
1727
+ "DB" => "Durable Medical Equipment Prescription",
1728
+ "DG" => "Diagnostic Report",
1729
+ "DJ" => "Discharge Monitoring Report",
1730
+ "DS" => "Discharge Summary",
1731
+ "EB" => "Explanation of Benefits (Coordination of Benefits or Medicare Secondary Payer)",
1732
+ "FM" => "Family Medical History Document",
1733
+ "HC" => "Health Cerification",
1734
+ "HR" => "Health Clinic Records",
1735
+ "I5" => "Immunization Record",
1736
+ "IR" => "State School Immunization Records",
1737
+ "LA" => "Laboratory Results",
1738
+ "M1" => "Medical Record Attachment",
1739
+ "MT" => "Models",
1740
+ "NN" => "Nursing Notes",
1741
+ "OB" => "Operative Note",
1742
+ "OC" => "Oxygen Content Averaging Report",
1743
+ "OD" => "Orders and Treatments Document",
1744
+ "OE" => "Objective Physical Examination (including vital signs) Document",
1745
+ "OX" => "Oxygen Therapy Certification",
1746
+ "OZ" => "Support Data for Claim",
1747
+ "P4" => "Pathology Report",
1748
+ "P5" => "Patient Medical History Document",
1749
+ "P6" => "Periodontal Charts",
1750
+ "PE" => "Parenteral or Enteral Certification",
1751
+ "PN" => "Physical Therapy Notes",
1752
+ "PO" => "Prosthetics or Orthotic Certification",
1753
+ "PQ" => "Paramedical Results",
1754
+ "PY" => "Physician's Report",
1755
+ "PZ" => "Physical Therapy Certification",
1756
+ "RB" => "Radiology Films",
1757
+ "RR" => "Radiology Reports",
1758
+ "RT" => "Report of Tests and Analysis Report",
1759
+ "RX" => "Renewable Oxygen Content Averaging Report",
1760
+ "SG" => "Symptoms Document",
1761
+ "V5" => "Death Notification",
1762
+ "XP" => "Photographs"))
1763
+ E756 = t::ID.new(:E756 , "Report Transmission Code" , 1, 2,
1764
+ s::CodeList.build(
1765
+ "AA" => "Available on Request at Provider Site",
1766
+ "AB" => "Previously Submitted to Payer",
1767
+ "AD" => "Certification Included in this Claim",
1768
+ "AF" => "Narrative Segment Included in this Claim",
1769
+ "AG" => "No Documentation is Required",
1770
+ "BM" => "By Mail",
1771
+ "EL" => "Electronically Only",
1772
+ "EM" => "E-Mail",
1773
+ "FT" => "File Transfer",
1774
+ "FX" => "By Fax",
1775
+ "NS" => "Not Specified",
1776
+ "OL" => "On-Line",
1777
+ "VO" => "Voice"))
1778
+ E757 = t::Nn.new(:E757 , "Report Copies Needed" , 1, 2, 0)
1779
+ E782 = t:: R.new(:E782 , "Monetary Amount" , 1, 18)
1780
+ E786 = t::ID.new(:E786 , "Security Level Code" , 2, 2,
1781
+ s::CodeList.build(
1782
+ "00" => "Company Non-Classified",
1783
+ "01" => "Company Internal Use Only",
1784
+ "02" => "Company Confidential",
1785
+ "03" => "Company Confidential, Restricted (Need to Know)",
1786
+ "04" => "Company Registered (Signature Required)",
1787
+ "05" => "Personal",
1788
+ "06" => "Supplier Proprietary",
1789
+ "09" => "Company Defined (Trading Partner Level)",
1790
+ "11" => "Competition Sensitive",
1791
+ "20" => "Court Restricted",
1792
+ "21" => "Juvenile Record Restricted",
1793
+ "90" => "Government Non-Classified",
1794
+ "92" => "Government Confidential",
1795
+ "93" => "Government Secret",
1796
+ "94" => "Government Top Secret",
1797
+ "99" => "Government Defined (Trading Partner Level)",
1798
+ "ZZ" => "Mutually Defined"))
1799
+ E799 = t::AN.new(:E799 , "Version Identifier" , 1, 30)
1800
+ E812 = t::ID.new(:E812 , "Payment Format Code" , 3, 3,
1801
+ s::CodeList.build(
1802
+ "CCP" => "Cash Concentration/Disbursement plus Addenda (CCD+)(ACH)",
1803
+ "CTX" => "Corporate Trade Exchange (CTX) (ACH)"))
1804
+ E875 = t::ID.new(:E875 , "Maintenance Type Code" , 3, 3,
1805
+ s::CodeList.build(
1806
+ "001" => "Change",
1807
+ "002" => "Delete",
1808
+ "021" => "Addition",
1809
+ "024" => "Cancellation or Termination",
1810
+ "025" => "Reinstatement",
1811
+ "026" => "Correction",
1812
+ "030" => "Audit or Compare",
1813
+ "032" => "Employee Information Not Applicable"))
1814
+ E889 = t::ID.new(:E889 , "Follow-up Action Code" , 1, 1,
1815
+ s::CodeList.build(
1816
+ "C" => "Please Correct and Resubmit",
1817
+ "N" => "Resubmission Not Allowed",
1818
+ "P" => "Please Resubmit Original Transaction",
1819
+ "R" => "Resubmission Allowed",
1820
+ "S" => "Do Not Resubmit; Inquiry Initiated to a Third Party",
1821
+ "W" => "Please Wait 30 Days and Resubmit",
1822
+ "X" => "Please Wait 10 Days and Resubmit",
1823
+ "Y" => "Do Not Resubmit; We Will Hold Your Request and Respond Again Shortly"))
1824
+ E901 = t::ID.new(:E901 , "Reject Reason Code" , 2, 2,
1825
+ s::CodeList.build(
1826
+ "04" => "Authorization Quantity Exceeded",
1827
+ "15" => "Required Application Data Missing",
1828
+ "33" => "Input Errors",
1829
+ "35" => "Out of Network",
1830
+ "41" => "Authorization/Access Restrictions",
1831
+ "42" => "Unable to Respond at Current Time",
1832
+ "43" => "Invalid/Missing Provider Identification",
1833
+ "44" => "Invalid/Missing Provider Name",
1834
+ "45" => "Invalid/Missing Provider Specialty",
1835
+ "46" => "Invalid/Missing Provider Phone Number",
1836
+ "47" => "Invalid/Missing Provider State",
1837
+ "48" => "Invalid/Missing Referring Provider Identification Number",
1838
+ "49" => "Provider is Not Primary Care Physician",
1839
+ "50" => "Provider Ineligible for Inquiries",
1840
+ "51" => "Provider Not on File",
1841
+ "52" => "Service Dates Not Within Provider Plan Enrollment",
1842
+ "53" => "Inquired Benefit Inconsistent with Provider Type",
1843
+ "54" => "Inappropriate Product/Service ID Qualifier",
1844
+ "55" => "Inappropriate Product/Service ID",
1845
+ "56" => "Inappropriate Date",
1846
+ "57" => "Invalid/Missing Date(s) of Service",
1847
+ "58" => "Invalid/Missing Date-of-Birth",
1848
+ "60" => "Date of Birth Follows Date(s) of Service",
1849
+ "61" => "Date of Death Preceeds Date(s) of Service",
1850
+ "62" => "Date of Service Not Within Allowable Inquiry Period",
1851
+ "63" => "Date of Service in Future",
1852
+ "64" => "Invalid/Missing Patient ID",
1853
+ "65" => "Invalid/Missing Patient Name",
1854
+ "66" => "Invalid/Missing Patient Gender Code",
1855
+ "67" => "Patient Not Found",
1856
+ "68" => "Duplicate Patient ID Number",
1857
+ "69" => "Inconsistent with Patient's Age",
1858
+ "70" => "Inconsistent with Patient's Gender",
1859
+ "71" => "Patient Birth Date Does Not Match That for the Patient on the Database",
1860
+ "72" => "Invalid/Missing Subscriber/Insured ID",
1861
+ "73" => "Invalid/Missing Subscriber/Insured Name",
1862
+ "74" => "Invalid/Missing Subscriber/Insured Gender Code",
1863
+ "75" => "Subscribed/Insured Not Found",
1864
+ "76" => "Duplicate Subscriber/Insured ID Number",
1865
+ "77" => "Subscriber Found, Patient Not Found",
1866
+ "78" => "Subscriber/Insured Not in Group/Plan Identified",
1867
+ "79" => "Invalid Participant Identification",
1868
+ "80" => "No Response Received - Transaction Terminated",
1869
+ "95" => "Patient Not Eligible",
1870
+ "97" => "Invalid or Missing Provider Address",
1871
+ "98" => "Experimental Service or Procedure",
1872
+ "AA" => "Authorization Number Not Found",
1873
+ "AE" => "Requires Primary Care Physician Authorization",
1874
+ "AF" => "Invalid/Missing Diagnosis Code(s)",
1875
+ "AG" => "Invalid/Missing Procedure Code(s)",
1876
+ "AO" => "Additional Patient Condition Information Required",
1877
+ "CI" => "Certification Information Does Not Match Patient",
1878
+ "E8" => "Requires Medical Review",
1879
+ "IA" => "Invalid Authorization Number Format",
1880
+ "IP" => "Inappropriate Provider Role",
1881
+ "MA" => "Missing Authorization Number",
1882
+ "NC" => "No Certification Information Found",
1883
+ "T1" => "Cannot Identify Provider as TPO (Third Party Organization) Participant",
1884
+ "T2" => "Cannot Identify Payer as TPO (Third Party Organization) Participant",
1885
+ "T3" => "Cannot Identify Insured as TPO (Third Party Organization) Participant",
1886
+ "T4" => "Payer Name or Identifier Missing",
1887
+ "T5" => "Certification Information Missing",
1888
+ "T6" => "Claim does not contain enough information for re-pricing"))
1889
+ E923 = t::ID.new(:E923 , "Prognosis Code" , 1, 1,
1890
+ s::CodeList.build(
1891
+ "1" => "Poor",
1892
+ "2" => "Guarded",
1893
+ "3" => "Fair",
1894
+ "4" => "Good",
1895
+ "5" => "Very Good",
1896
+ "6" => "Excellent",
1897
+ "7" => "Less than 6 Months to Live",
1898
+ "8" => "Terminal"))
1899
+ E933 = t::AN.new(:E933 , "Free-form Message Text" , 1, 264)
1900
+ E934 = t::AN.new(:E934 , "Printer Carriage Control Code" , 2, 2)
1901
+ E935 = t::ID.new(:E935 , "Measurement Significance Code" , 2, 2)
1902
+ E936 = t::ID.new(:E936 , "Measurement Attribute Code" , 2, 2)
1903
+ E954 = t:: R.new(:E954 , "Percentage as Decimal" , 1, 10)
1904
+ E1005 = t::ID.new(:E1005, "Hierarchical Structure Code" , 4, 4,
1905
+ s::CodeList.build(
1906
+ "0007" => "Information Source, Information Receiver, Subscriber, Dependent, Event, Services",
1907
+ "0010" => "Information Source, Information Receiver, Provider of Service, Subscriber, Dependent",
1908
+ "0019" => "Information Source, Subscriber, Dependent",
1909
+ "0022" => "Information Source, Information Receiver, Subscriber, Dependent",
1910
+ "0085" => "Information Source, Information Receiver, Provider of Service, Patient"))
1911
+ E1018 = t:: R.new(:E1018, "Exponent" , 1, 15)
1912
+ E1028 = t::AN.new(:E1028, "Claim Submitter's Identifier" , 1, 38)
1913
+ E1029 = t::ID.new(:E1029, "Claim Status Code" , 1, 2,
1914
+ s::CodeList.build(
1915
+ "1" => "Processed as Primary",
1916
+ "2" => "Processed as Secondary",
1917
+ "3" => "Processed as Tertiary",
1918
+ "4" => "Denied",
1919
+ "19" => "Processed as Primary, Forwarded to Additional Payer(s)",
1920
+ "20" => "Processed as Secondary, Forwarded to Additional Payer(s)",
1921
+ "21" => "Processed as Tertiary, Forwarded to Additional Payer(s)",
1922
+ "22" => "Reversal of Previous Payment",
1923
+ "23" => "Not Our Claim, Forwarded to Additional Payer(s)",
1924
+ "25" => "Predetermination Pricing Only - No Payment"))
1925
+ E1032 = t::ID.new(:E1032, "Claim Filing Indicator Code" , 1, 2,
1926
+ s::CodeList.build(
1927
+ "11" => "Other Non-Federal Programs",
1928
+ "12" => "Preferred Provider Organization (PPO)",
1929
+ "13" => "Point of Service (POS)",
1930
+ "14" => "Exclusive Provider Organization (EPO)",
1931
+ "15" => "Indemnity Insurance",
1932
+ "16" => "Health Maintenance Organization (HMO) Medicare Risk",
1933
+ "17" => "Dentail Maintenance Organization",
1934
+ "AM" => "Automobile Medical",
1935
+ "BL" => "Blue Cross/Blue Shield",
1936
+ "CH" => "Champus",
1937
+ "CI" => "Commercial Insurance Co.",
1938
+ "DS" => "Disability",
1939
+ "FI" => "Federal Employees Program",
1940
+ "HM" => "Health Maintenance Organization",
1941
+ "LM" => "Liability Medical",
1942
+ "MA" => "Medicare Part A",
1943
+ "MB" => "Medicare Part B",
1944
+ "MC" => "Medicaid",
1945
+ "ME" => "Medicare Advantage Plan",
1946
+ "OF" => "Other Federal Program",
1947
+ "TV" => "Title V",
1948
+ "UK" => "Unknown",
1949
+ "VA" => "Veterans Affairs Plan",
1950
+ "WC" => "Worker's Compensation Health Claim",
1951
+ "ZZ" => "Mutually Defined"))
1952
+ E1033 = t::ID.new(:E1033, "Claim Adjustment Group Code" , 1, 12,
1953
+ s::CodeList.build(
1954
+ "CO" => "Contractual Obligations",
1955
+ "CR" => "Corrections and Reversals",
1956
+ "OA" => "Other adjustments",
1957
+ "PI" => "Payor Initiated Reductions",
1958
+ "PR" => "Patient Responsibility"))
1959
+ E1034 = t::ID.new(:E1034, "Claim Adjustment Reason Code" , 1, 5,
1960
+ s::CodeList.external("139"))
1961
+ E1035 = t::AN.new(:E1035, "Name Last or Organization Name" , 1, 60)
1962
+ E1036 = t::AN.new(:E1036, "Name First" , 1, 35)
1963
+ E1037 = t::AN.new(:E1037, "Name Middle" , 1, 25)
1964
+ E1038 = t::AN.new(:E1038, "Name Prefix" , 1, 10)
1965
+ E1039 = t::AN.new(:E1039, "Name Suffix" , 1, 10)
1966
+ E1048 = t::ID.new(:E1048, "Business Function Code" , 1, 3)
1967
+ E1065 = t::ID.new(:E1065, "Entity Type Qualifier" , 1, 1,
1968
+ s::CodeList.build(
1969
+ "1" => "Person",
1970
+ "2" => "Non-Person Entity"))
1971
+ E1066 = t::ID.new(:E1066, "Citizenship Status Code" , 1, 2)
1972
+ E1067 = t::ID.new(:E1067, "Marital Status Code" , 1, 1,
1973
+ s::CodeList.build(
1974
+ "A" => "Common Law",
1975
+ "B" => "Registered Domestic Partner",
1976
+ "C" => "Not Applicable",
1977
+ "D" => "Divorced",
1978
+ "I" => "Single",
1979
+ "K" => "Unknown",
1980
+ "M" => "Married",
1981
+ "R" => "Unreported",
1982
+ "S" => "Separated",
1983
+ "U" => "Unmarried (Single or Divorced or Widowed)",
1984
+ "W" => "Widowed",
1985
+ "X" => "Legally Separated"))
1986
+ E1068 = t::ID.new(:E1068, "Gender Code" , 1, 1,
1987
+ s::CodeList.build(
1988
+ "F" => "Female",
1989
+ "M" => "Male",
1990
+ "U" => "Unknown"))
1991
+ E1069 = t::ID.new(:E1069, "Individual Relationship Code" , 2, 2,
1992
+ s::CodeList.build(
1993
+ "01" => "Spouse",
1994
+ "03" => "Father or Mother",
1995
+ "04" => "Grandfather or Grandmother",
1996
+ "05" => "Grandson or Granddaughter",
1997
+ "06" => "Uncle or Aunt",
1998
+ "07" => "Nephew or Niece",
1999
+ "08" => "Cousin",
2000
+ "09" => "Adopted Child",
2001
+ "10" => "Foster Child",
2002
+ "11" => "Son-in-law or Daughter-in-law",
2003
+ "12" => "Brother-in-law or Sister-in-law",
2004
+ "13" => "Mother-in-law or Father-in-law",
2005
+ "14" => "Brother or Sister",
2006
+ "15" => "Ward",
2007
+ "16" => "Stepparent",
2008
+ "17" => "Stepson or Stepdaughter",
2009
+ "18" => "Self",
2010
+ "19" => "Child",
2011
+ "20" => "Employee",
2012
+ "21" => "Unknown",
2013
+ "22" => "Handicapped Dependent",
2014
+ "23" => "Sponsored Dependent",
2015
+ "24" => "Dependent of a Minor Dependent",
2016
+ "25" => "Ex-spouse",
2017
+ "26" => "Guardian",
2018
+ "29" => "Signficant Other",
2019
+ "31" => "Court Appointed Guardian",
2020
+ "32" => "Mother",
2021
+ "33" => "Father",
2022
+ "34" => "Other Adult",
2023
+ "38" => "Collateral Dependent",
2024
+ "39" => "Organ Donor",
2025
+ "40" => "Cadaver Donor",
2026
+ "41" => "Injured Plaintiff",
2027
+ "43" => "Child Where Insured Has No Financial Responsibility",
2028
+ "53" => "Life Partner",
2029
+ "60" => "Annuitant",
2030
+ "D2" => "Trustee",
2031
+ "G8" => "Other Relationship",
2032
+ "G9" => "Other Relative"))
2033
+ E1073 = t::ID.new(:E1073, "Yes/No Condition or Response Code" , 1, 1,
2034
+ s::CodeList.build(
2035
+ "N" => "No",
2036
+ "U" => "Unknown",
2037
+ "Y" => "Yes",
2038
+ "W" => "Not Applicable"))
2039
+ E1109 = t::ID.new(:E1109, "Race or Ethnicity Code" , 1, 1)
2040
+ E1136 = t::ID.new(:E1136, "Code Category" , 2, 2,
2041
+ s::CodeList.build(
2042
+ "07" => "Ambulance Certification",
2043
+ "09" => "Durable Medical Equipment Certification",
2044
+ "12" => "Medicare Secondary Working Aged Beneficiary or Spouse with Employer Group Health Plan",
2045
+ "13" => "Medicare Secondary End-Stage Renal Disease Beneficiary in Mandated Coordination Period with an Employer's Group Health Plan",
2046
+ "14" => "Medicare Secondary, No-fault Insurance including Auto is Primary",
2047
+ "15" => "Medicare Secondary Worker's Compensation",
2048
+ "16" => "Medicare Secondary Public Health Service (PHS) or Other Federal Agency",
2049
+ "41" => "Medicare Secondary Blank Lung",
2050
+ "42" => "Medicare Secondary Veteran's Administration",
2051
+ "43" => "Medicare Secondary Disabled Beneficiary Under Age 65 with Large Group Health Plan (LGHP)",
2052
+ "44" => "Nature of Injury",
2053
+ "47" => "Medicare Secondary, Other Liability Insurance is Primary",
2054
+ "70" => "Hospice",
2055
+ "75" => "Functional Limitations",
2056
+ "E1" => "Spectacle Lenses",
2057
+ "E2" => "Contact Lenses",
2058
+ "E3" => "Spectacle Frames",
2059
+ "ZZ" => "Mutually Defined"))
2060
+ E1137 = t::AN.new(:E1137, "Medical Code Value" , 1, 15)
2061
+ E1138 = t::ID.new(:E1138, "Payer Responsibility Sequence" , 1, 1,
2062
+ s::CodeList.build(
2063
+ "P" => "Primary",
2064
+ "S" => "Secondary",
2065
+ "T" => "Tertiary",
2066
+ "U" => "Unknown",
2067
+ "A" => "Payer Responsibility Four",
2068
+ "B" => "Payer Responsibility Five",
2069
+ "C" => "Payer Responsibility Six",
2070
+ "D" => "Payer Responsibility Seven",
2071
+ "E" => "Payer Responsibility Eight",
2072
+ "F" => "Payer Responsibility Nine",
2073
+ "G" => "Payer Responsibility Ten",
2074
+ "H" => "Payer Responsibility Eleven",
2075
+ "N" => "Unconfirmed"))
2076
+ E1143 = t::ID.new(:E1143, "Coordination of Benefits Code" , 1, 1,
2077
+ s::CodeList.build(
2078
+ "1" => "Coordination of Benefits",
2079
+ "5" => "Unknown",
2080
+ "6" => "No Coordination of Benefits"))
2081
+ E1146 = t::ID.new(:E1146, "Disability Type Code" , 1, 1,
2082
+ s::CodeList.build(
2083
+ "1" => "Short Term Disability",
2084
+ "2" => "Long Term Disability",
2085
+ "3" => "Permanent or Total Disability",
2086
+ "4" => "No Disability"))
2087
+ E1149 = t::ID.new(:E1149, "Occupation Code" , 4, 6)
2088
+ E1154 = t::ID.new(:E1154, "Work Intensity Code" , 1, 1)
2089
+ E1161 = t::ID.new(:E1161, "Product Option Code" , 1, 2)
2090
+ E1165 = t::ID.new(:E1165, "Confidentiality Code" , 1, 1,
2091
+ s::CodeList.build(
2092
+ "R" => "Restricted Access",
2093
+ "U" => "Unrestricted Access"))
2094
+ E1166 = t::ID.new(:E1166, "Contract Type Code" , 2, 2,
2095
+ s::CodeList.build(
2096
+ "01" => "Diagnosis Related Group (DRG)",
2097
+ "02" => "Per Diem",
2098
+ "03" => "Variable Per Diem",
2099
+ "04" => "Flat",
2100
+ "05" => "Captitated",
2101
+ "06" => "Percent",
2102
+ "09" => "Other"))
2103
+ E1167 = t:: R.new(:E1167, "Sample Selection Modulus" , 1, 6)
2104
+ E1176 = t::ID.new(:E1176, "Employment Class Code" , 2, 3,
2105
+ s::CodeList.build(
2106
+ "01" => "Union",
2107
+ "02" => "Non-Union",
2108
+ "03" => "Executive",
2109
+ "04" => "Non-Executive",
2110
+ "05" => "Management",
2111
+ "06" => "Non-Management",
2112
+ "07" => "Hourly",
2113
+ "08" => "Salaried",
2114
+ "09" => "Administrative",
2115
+ "10" => "Non-Administrative",
2116
+ "11" => "Exempt",
2117
+ "12" => "Non-Exempt",
2118
+ "17" => "Highly Compensated",
2119
+ "18" => "Key-Employee",
2120
+ "19" => "Bargaining",
2121
+ "20" => "Non-Bargaining",
2122
+ "21" => "Owner",
2123
+ "22" => "President",
2124
+ "23" => "Vice President"))
2125
+ E1201 = t::ID.new(:E1201, "Information Status Code" , 1, 1,
2126
+ s::CodeList.build(
2127
+ "A" => "Partial",
2128
+ "C" => "Current",
2129
+ "L" => "Latest",
2130
+ "O" => "Oldest",
2131
+ "P" => "Prior",
2132
+ "S" => "Second Most Current",
2133
+ "T" => "Third Most Current"))
2134
+
2135
+ E1203 = t::ID.new(:E1203, "Maintenance Reason Code" , 2, 3,
2136
+ s::CodeList.build(
2137
+ "01" => "Divorce",
2138
+ "02" => "Birth",
2139
+ "03" => "Death",
2140
+ "04" => "Retirement",
2141
+ "05" => "Adoption",
2142
+ "06" => "Strike",
2143
+ "07" => "Termination of Benefits",
2144
+ "08" => "Termination of Employment",
2145
+ "09" => "Consolidation Omnibus Budget Reconciliation Act (COBRA)",
2146
+ "10" => "Consolidation Omnibus Budget Reconciliation Act (COBRA) Premium Paid",
2147
+ "11" => "Surviving Spouse",
2148
+ "14" => "Voluntary Withdrawal",
2149
+ "15" => "Primary Care Provider (PCP) Change",
2150
+ "16" => "Quit",
2151
+ "17" => "Fired",
2152
+ "18" => "Suspended",
2153
+ "20" => "Active",
2154
+ "21" => "Disability",
2155
+ "22" => "Plan Change",
2156
+ "25" => "Change in Identifying Data Elements",
2157
+ "26" => "Declined Coverage",
2158
+ "27" => "Pre-Enrollment",
2159
+ "28" => "Initial Enrollment",
2160
+ "29" => "Benefit Selection",
2161
+ "31" => "Legal Separation",
2162
+ "32" => "Marriage",
2163
+ "33" => "Personnel Data",
2164
+ "37" => "Leave of Absence with Benefits",
2165
+ "38" => "Leave of Absence without Benefits",
2166
+ "39" => "Lay Off with Benefits",
2167
+ "40" => "Lay Off without Benefits",
2168
+ "41" => "Re-enrollment",
2169
+ "43" => "Change of Location",
2170
+ "46" => "Current Customer Information File in Error",
2171
+ "59" => "Non Payment",
2172
+ "AA" => "Dissatisfaction with Office Staff",
2173
+ "AB" => "Dissatisfaction with Medical Care/Services Rendered",
2174
+ "AC" => "Inconvenient Office Location",
2175
+ "AD" => "Dissatisfaction with Office Hours",
2176
+ "AE" => "Unable to Schedule Appointments in a Timely Manner",
2177
+ "AF" => "Dissatisfaction with Physician's Referral Policy",
2178
+ "AG" => "Less Respect and Attention Time Given than to Other Patients",
2179
+ "AH" => "Patient Moved to a New Location",
2180
+ "AI" => "No Reason Given",
2181
+ "AJ" => "Appointment Times not Met in a Timely Manner",
2182
+ "AL" => "Algorithm Assigned Benefit Selection",
2183
+ "EC" => "Member Benefit Selection",
2184
+ "XN" => "Notification Only",
2185
+ "XT" => "Transfer"))
2186
+ E1204 = t::AN.new(:E1204, "Plan Coverage Description" , 1, 50)
2187
+ E1205 = t::ID.new(:E1205, "Insurance Line Code" , 2, 3,
2188
+ s::CodeList.build(
2189
+ "AG" => "Preventative Care/Wellness",
2190
+ "AH" => "24 Hour Care",
2191
+ "AJ" => "Medicare Risk",
2192
+ "AK" => "Mental Health",
2193
+ "DCP" => "Dental Capitation",
2194
+ "DEN" => "Dental",
2195
+ "EPO" => "Exclusive Provider Organization",
2196
+ "FAC" => "Facility",
2197
+ "HE" => "Hearing",
2198
+ "HLT" => "Health",
2199
+ "HMO" => "Health Maintenance Organization",
2200
+ "LTC" => "Long-Term Care",
2201
+ "LTD" => "Long-Term Disability",
2202
+ "MM" => "Major Medical",
2203
+ "MOD" => "Mail Order Drug",
2204
+ "PDG" => "Prescription Drug",
2205
+ "POS" => "Point of Service",
2206
+ "PPO" => "Preferred Provider Organization",
2207
+ "PRA" => "Practitioners",
2208
+ "STD" => "Short-Term Disability",
2209
+ "UR" => "Utilization Review",
2210
+ "VIS" => "Vision"))
2211
+ E1207 = t::ID.new(:E1207, "Coverage Level Code" , 3, 3,
2212
+ s::CodeList.build(
2213
+ "CHD" => "Children Only",
2214
+ "DEP" => "Dependents Only",
2215
+ "E1D" => "Employee and One Dependent",
2216
+ "E2D" => "Employee and Two Dependents",
2217
+ "E3D" => "Employee and Three Dependents",
2218
+ "E5D" => "Employee and One or More Dependents",
2219
+ "E6D" => "Employee and Two or More Dependents",
2220
+ "E7D" => "Employee and Three or More Dependents",
2221
+ "E8D" => "Employee and Four or More Dependents",
2222
+ "E9D" => "Employee and Five or More Dependents",
2223
+ "ECH" => "Employee and Children",
2224
+ "EMP" => "Employee Only",
2225
+ "ESP" => "Employee and Spouse",
2226
+ "FAM" => "Family",
2227
+ "IND" => "Individual",
2228
+ "SPC" => "Spouse and Children",
2229
+ "SPO" => "Spouse Only",
2230
+ "TWO" => "Two Party"))
2231
+ E1209 = t::ID.new(:E1209, "Underwriting Decision Code" , 1, 1)
2232
+ E1211 = t::ID.new(:E1211, "Drug House Code" , 2, 3)
2233
+ E1212 = t::ID.new(:E1212, "Health-Related Code" , 1, 1,
2234
+ s::CodeList.build(
2235
+ "N" => "None",
2236
+ "S" => "Substance Abuse",
2237
+ "T" => "Tobacco Use",
2238
+ "U" => "Unknown",
2239
+ "X" => "Tobacco Use and Substance Abuse"))
2240
+ E1213 = t::ID.new(:E1213, "Current Health Condition Code" , 1, 1)
2241
+ E1214 = t::AN.new(:E1214, "Salary Grade" , 1, 5)
2242
+ E1215 = t::ID.new(:E1215, "Identification Card Type Code" , 1, 1,
2243
+ s::CodeList.build(
2244
+ "D" => "Dental Insurance",
2245
+ "H" => "Health Insurance",
2246
+ "P" => "Prescription Drug Service Drug Insurance"))
2247
+ E1216 = t::ID.new(:E1216, "Benefit Status Code" , 1, 1,
2248
+ s::CodeList.build(
2249
+ "A" => "Active",
2250
+ "C" => "Consolidated Omnibus Budget Reconciliation Act (COBRA)",
2251
+ "S" => "Surviving Insured",
2252
+ "T" => "Tax Equity and Fiscal Responsibility Act (TEFRA)"))
2253
+ E1218 = t::ID.new(:E1218, "Benefit Status Code" , 1, 1,
2254
+ s::CodeList.build(
2255
+ "A" => "Medicare Part A",
2256
+ "B" => "Medicare Part B",
2257
+ "C" => "Medicare Part A and B",
2258
+ "D" => "Medicare",
2259
+ "E" => "No Medicare",
2260
+ "F" => "Medicare Part D",
2261
+ "G" => "Medicare Part A and D",
2262
+ "H" => "Medicare Part B and D",
2263
+ "I" => "Medicare Part A, B, and D"))
2264
+ E1219 = t::ID.new(:E1219, "Consolidated Omnibus Budget Reconciliation Act (COBRA) Qualifying", 1, 2,
2265
+ s::CodeList.build(
2266
+ "1" => "Termination of Employment",
2267
+ "2" => "Reduction of work hours",
2268
+ "3" => "Medicare",
2269
+ "4" => "Death",
2270
+ "5" => "Divorce",
2271
+ "6" => "Separation",
2272
+ "7" => "Ineligible Child",
2273
+ "8" => "Bankruptcy of Retiree's Former Employer (26 U.S.C. 4980B(f)(3)(F))",
2274
+ "9" => "Layoff",
2275
+ "10" => "Leave of Absence",
2276
+ "ZZ" => "Mutually Defined"))
2277
+ E1220 = t::ID.new(:E1220, "Student Status Code" , 1, 1,
2278
+ s::CodeList.build(
2279
+ "F" => "Full-time",
2280
+ "N" => "Not a Student",
2281
+ "P" => "Part-time"))
2282
+ E1221 = t::ID.new(:E1221, "Provider Code" , 1, 3,
2283
+ s::CodeList.build(
2284
+ "AD" => "Admitting",
2285
+ "AS" => "Assistant Surgeon",
2286
+ "AT" => "Attending",
2287
+ "BI" => "Billing",
2288
+ "CO" => "Consulting",
2289
+ "CV" => "Covering",
2290
+ "H" => "Hospital",
2291
+ "HH" => "Home Health Care",
2292
+ "LA" => "Laboratory",
2293
+ "OP" => "Operating",
2294
+ "OR" => "Ordering",
2295
+ "OT" => "Other Physician",
2296
+ "P1" => "Pharmacist",
2297
+ "P2" => "Pharmacy",
2298
+ "PC" => "Primary Care Physician",
2299
+ "PE" => "Performing",
2300
+ "R" => "Rural Health Clinic",
2301
+ "RF" => "Referring",
2302
+ "SB" => "Submitting",
2303
+ "SK" => "Skilled Nursing Facility",
2304
+ "SU" => "Supervising"))
2305
+ E1222 = t::AN.new(:E1222, "Provider Specialty Code" , 1, 3)
2306
+
2307
+ # @note Copied from an unverified source
2308
+ E1223 = t::ID.new(:E1223, "Provider Organization Code" , 3, 3)
2309
+ E1250 = t::ID.new(:E1250, "Date Time Period Format Qualifier" , 2, 3,
2310
+ s::CodeList.build(
2311
+ "CC" => "First Two Digits of Year Expressed in Format CCYY",
2312
+ "CD" => "Month and Year Expressed in Format MMMYYY",
2313
+ "CM" => "Date in Format CCYYMM",
2314
+ "CQ" => "Date in Format CCYYQ",
2315
+ "CY" => "Year Expressed in Format CCYY",
2316
+ "D6" => "Date Expressed in Format YYMMDD",
2317
+ "D8" => "Date Expressed in Format CCYYMMDD",
2318
+ "DA" => "Range of Dates within a Single Month Expressed in Format DD-DD",
2319
+ "DB" => "Date Expressed in Format MMDDCCYY",
2320
+ "DD" => "Day of Month in Numeric Format",
2321
+ "DDT" => "Range of Dates and Time Expressed in Format CCYYMMDD-CCYYMMDDHHMM",
2322
+ "DT" => "Date and Time Expressed in Format CCYYMMDDHHMM",
2323
+ "DTD" => "Range of Dates and Time Expressed in Format CCYYMMDDHHMM-CCYYMMDD",
2324
+ "DTS" => "Range of Date and Time Expressed in Format CCYYMMDDHHMMSS-CCYYMMDDHHMMSS",
2325
+ "EH" => "Last Digit of Year and Julian Date Expressed in Format YDDD",
2326
+ "KA" => "Date Expressed in Format YYMMMDD",
2327
+ "MD" => "Month of Year and Day of Month Expressed in Format MMDD",
2328
+ "MM" => "Month of Year in Numeric Format",
2329
+ "RD" => "Range of Dates Expressed in Format MMDDCCYY-MMDDCCYY",
2330
+ "RD2" => "Range of Years Expressed in Format YY-YY",
2331
+ "RD4" => "Range of Years Expressed in Format CCYY-CCYY",
2332
+ "RD5" => "Range of Years and Months Expressed in Format CCYYMM-CCYYMM",
2333
+ "RD6" => "Range of Dates Expressed in Format YYMMDD-YYMMDD",
2334
+ "RD8" => "Range of Dates Expressed in Format CCYYMMDD-CCYYMMDD",
2335
+ "RDM" => "Range of Dates Expressed in Format YYMMDD-MMDD",
2336
+ "RDT" => "Range of Date and Time Expressed in Format CCYYMMDDHHMM-CCYYMMDDHHMM",
2337
+ "RMD" => "Range of Months and Days Expressed in Format MMDD-MMDD",
2338
+ "RMY" => "Range of Years and Months Expressed in Format YYMM-YYMM",
2339
+ "RTM" => "Range of Time Expressed in Format HHMM-HHMM",
2340
+ "RTS" => "Date and Time Expressed in Format CCYYMMDDHHMMSS",
2341
+ "TC" => "Julian Date Expressed in Format DDD",
2342
+ "TM" => "Time Expressed in Format HHMM",
2343
+ "TQ" => "Date Expressed in Format MMYY",
2344
+ "TR" => "Date and Time Expressed in Format DDMMYYHHMM",
2345
+ "TS" => "Time Expressed in Format HHMMSS",
2346
+ "TT" => "Date Expressed in Format MMDDYY",
2347
+ "TU" => "Date EXpressed in Format YYDDD",
2348
+ "UN" => "Unstructured",
2349
+ "YM" => "Year and Month Expressed in Format YYMM",
2350
+ "YMM" => "Range of Year and Month Expressed in Format CCYYMM-MMM",
2351
+ "YY" => "Last Two Digits of Year Expressed in Format CCYY"))
2352
+ E1251 = t::AN.new(:E1251, "Date Time Period" , 1, 35)
2353
+ E1270 = t::ID.new(:E1270, "Code List Qualifier Code" , 1, 3,
2354
+ s::CodeList.build(
2355
+ "65" => s::CodeList.external("508"),
2356
+ "68" => s::CodeList.external("682"),
2357
+ "AAA" => s::CodeList.external("662"),
2358
+ "AAU" => s::CodeList.external("131"),
2359
+ "AAW" => s::CodeList.external("133"),
2360
+ "AAX" => s::CodeList.external("131"),
2361
+ "AAY" => s::CodeList.external("135"),
2362
+ "ABF" => s::CodeList.external("897"),
2363
+ "ABJ" => s::CodeList.external("897"),
2364
+ "ABK" => s::CodeList.external("897"),
2365
+ "ABN" => s::CodeList.external("897"),
2366
+ "ABU" => s::CodeList.external("897"),
2367
+ "ABV" => s::CodeList.external("897"),
2368
+ "ADD" => s::CodeList.external("897"),
2369
+ "APR" => s::CodeList.external("897"),
2370
+ "AS" => s::CodeList.external("656"),
2371
+ "ASD" => s::CodeList.external("897"),
2372
+ "ATD" => s::CodeList.external("897"),
2373
+ "CAH" => s::CodeList.external("843"),
2374
+ "BBQ" => s::CodeList.external("896"),
2375
+ "BBR" => s::CodeList.external("896"),
2376
+ "BE" => s::CodeList.external("132"),
2377
+ "BF" => s::CodeList.external("131"),
2378
+ "BG" => s::CodeList.external("132"),
2379
+ "BH" => s::CodeList.external("132"),
2380
+ "BI" => s::CodeList.external("132"),
2381
+ "BK" => s::CodeList.external("131"),
2382
+ "BJ" => s::CodeList.external("131"),
2383
+ "BN" => s::CodeList.external("131"),
2384
+ "BO" => s::CodeList.external("130"),
2385
+ "BP" => s::CodeList.external("130"),
2386
+ "BQ" => s::CodeList.external("131"),
2387
+ "BR" => s::CodeList.external("131"),
2388
+ "BT" => s::CodeList.external("407"),
2389
+ "BU" => s::CodeList.external("407"),
2390
+ "BUR" => s::CodeList.external("971"),
2391
+ "BS" => s::CodeList.external("133"),
2392
+ "DD" => s::CodeList.external("131"),
2393
+ "DR" => s::CodeList.external("229"),
2394
+ "EK" => s::CodeList.external("407"),
2395
+ "GR" => s::CodeList.external("284"),
2396
+ "GS" => s::CodeList.external("407"),
2397
+ "GU" => s::CodeList.external("407"),
2398
+ "GW" => s::CodeList.external("407"),
2399
+ "HE" => s::CodeList.external("411"),
2400
+ "HI" => s::CodeList.external("121"),
2401
+ "HO" => s::CodeList.external("537"),
2402
+ "JO" => s::CodeList.external("135"),
2403
+ "JP" => s::CodeList.external("135"),
2404
+ "LOI" => s::CodeList.external("663"),
2405
+ "NI" => s::CodeList.external("284"), # or s::CodeList.external("407")
2406
+ "NUB" => s::CodeList.external("132"),
2407
+ "NDC" => s::CodeList.external("240"),
2408
+ "PR" => s::CodeList.external("131"),
2409
+ "PB" => s::CodeList.external("407"),
2410
+ "REC" => s::CodeList.external("860"),
2411
+ "RET" => s::CodeList.external("859"),
2412
+ "RM" => s::CodeList.external("973"),
2413
+ "RX" => s::CodeList.external("530"),
2414
+ "S" => s::CodeList.external("327"),
2415
+ "SD" => s::CodeList.external("131"),
2416
+ "SJ" => s::CodeList.external("407"),
2417
+ "SL" => s::CodeList.external("407"),
2418
+ "TC" => s::CodeList.external("359"),
2419
+ "TD" => s::CodeList.external("131"),
2420
+ "TQ" => s::CodeList.external("135"),
2421
+ "UT" => s::CodeList.external("528"),
2422
+ "ZZ" => "Mutually Defined"))
2423
+ E1271 = t::AN.new(:E1271, "Industry Code" , 1, 30,
2424
+ s::CodeList.external("508"))
2425
+ E1330 = t::ID.new(:E1330, "Dosage Form Code" , 2, 3,
2426
+ s::CodeList.build(
2427
+ "10" => "Tablet",
2428
+ "20" => "Capsule",
2429
+ "30" => "Lozenge or Troche",
2430
+ "31" => "Internal Powder",
2431
+ "43" => "Injectable Lyophilized Powder",
2432
+ "60" => "Elixir",
2433
+ "61" => "Suspension",
2434
+ "62" => "Syrup",
2435
+ "63" => "Solution",
2436
+ "64" => "Emulsion",
2437
+ "67" => "Liquid",
2438
+ "69" => "Rectal Cream or Ointment",
2439
+ "70" => "Rectal Suppository",
2440
+ "71" => "Vaginal Suppository",
2441
+ "73" => "Vaginal Cream",
2442
+ "75" => "Urethral Suppository",
2443
+ "76" => "Enema",
2444
+ "78" => "Vaginal Ointment",
2445
+ "80" => "External Ointment",
2446
+ "81" => "External Cream",
2447
+ "86" => "External Powder"))
2448
+ E1303 = t::ID.new(:E1303, "Use of Language Indicator" , 1, 2,
2449
+ s::CodeList.build(
2450
+ "5" => "Language Reading",
2451
+ "6" => "Language Writing",
2452
+ "7" => "Language Speaking",
2453
+ "8" => "Native Language"))
2454
+ E1314 = t::ID.new(:E1314, "Admission Source Code" , 1, 1,
2455
+ s::CodeList.external("230"))
2456
+ E1315 = t::ID.new(:E1315, "Admission Type Code" , 1, 1,
2457
+ s::CodeList.external("231"))
2458
+ E1316 = t::ID.new(:E1316, "Ambulance Transport Code" , 1, 1,
2459
+ s::CodeList.build(
2460
+ "I" => "Initial Trip",
2461
+ "R" => "Return Trip",
2462
+ "T" => "Transfer Trip",
2463
+ "X" => "Round Trip"))
2464
+ E1317 = t::ID.new(:E1317, "Ambulance Transport Reason Code" , 1, 1,
2465
+ s::CodeList.build(
2466
+ "A" => "Patient was transported to nearest facility for care of symptoms, complaints, or both",
2467
+ "B" => "Patient was transported for the benefit of a preferred physician",
2468
+ "C" => "Patient was transported for the nearness of family members",
2469
+ "D" => "Patient was transported for the care of a specialist or for availability of specialized equipment",
2470
+ "E" => "Patient Transferred to Rehabilitation Facility"))
2471
+ E1321 = t::ID.new(:E1321, "Condition Indicator" , 2, 3,
2472
+ s::CodeList.build(
2473
+ "00" => "Patient was transported in an emergency situation",
2474
+ "01" => "Patient was admitted to a hospital",
2475
+ "02" => "Patient was bed confined before the ambulance service",
2476
+ "03" => "Patient was bed confined after the ambulance service",
2477
+ "04" => "Patient was moved by stretcher",
2478
+ "05" => "Patient was unconscious or in shock",
2479
+ "06" => "Patient was transported in an emergency situation",
2480
+ "07" => "Patient had to be physically restrained",
2481
+ "08" => "Patient had visible hemorrhaging",
2482
+ "09" => "Ambulance service was medically necessary",
2483
+ "10" => "Patient is ambulatory",
2484
+ "11" => "Ambulation is Impaired and Walking Aid is Used for Therapy or Mobility",
2485
+ "12" => "Patient is confined to a bed or chair",
2486
+ "14" => "Ambulation is Impaired and Walking Aid is Used for Mobility",
2487
+ "15" => "Patient Condition Requires Positioning of the Body or Attachments Which Would Not be Feasible With the Use of an Ordinary Bed",
2488
+ "16" => "Patient needs a trapeze bar to sit up due to respiratory condition or change body positions for other medical reasons",
2489
+ "17" => "Patient's Ability to Breathe is Severely Impaired",
2490
+ "18" => "Patient condition requires frequent and/or immediate changes in body positions",
2491
+ "19" => "Patient can operate controls",
2492
+ "20" => "Siderails Are to be Attached to a Hospital Bed Owned by the Beneficiary",
2493
+ "21" => "Patient owns equipment",
2494
+ "22" => "Mattress or Siderails are Being Used with Prescribed Medically Necessary Hospital Bed Owned by the Beneficiary",
2495
+ "23" => "Patient Needs Lift to Get In or Out of Bed or to Assist in Transfer from Bed to Wheelchair",
2496
+ "24" => "Patient has an orthopedic impairment requiring traction equipment which prevents ambulation during period of use",
2497
+ "25" => "Item has been prescribed as part of a planned regimen of treatment in patient home",
2498
+ "27" => "Patient or a care-giver has been instructed in use of equipment",
2499
+ "29" => "A 6-7 hour nocturnal study documents 30 episodes of apnea each lasting more than 10 seconds",
2500
+ "30" => "Without the equipment, the patient would require surgery",
2501
+ "31" => "Patient has had a total knee replacement",
2502
+ "32" => "Patient has intractable lymphedema of the extremities",
2503
+ "33" => "Patient is in a nursing home",
2504
+ "35" => "This Feeding is the Only Form of Nutritional Intake for This Patient",
2505
+ "37" => "Oxygen delivery equipment is stationary",
2506
+ "38" => "Certification signed by the physician is on file at the supplier's office",
2507
+ "39" => "Patient Has Mobilizing Respiratory Tract Secretions",
2508
+ "40" => "Patient or Caregiver is Capable of Using the Equipment Without Technical or Professional Supervision",
2509
+ "41" => "Patient or Caregiver is Unable to Propel or Lift a Standard Weight Wheelchair",
2510
+ "42" => "Patient Requires Leg Elevation for Edema or Body Alignment",
2511
+ "43" => "Patient Weight or Usage Needs Necessitate a Heavy Duty Wheelchair",
2512
+ "44" => "Patient Requires Reclining Function of a Wheelchair",
2513
+ "45" => "Patient is Unable to Operate a Wheelchair Manually",
2514
+ "46" => "Patient or Caregiver Requires Side Transfer into Wheelchair, Commode or Other",
2515
+ "58" => "Durable Medical Equipment (DME) Purchased New",
2516
+ "59" => "Durable Medical Equipment (DME) Is Under Warranty",
2517
+ "5A" => "Treatment is rendered related to the terminal illness",
2518
+ "5P" => "Replacement",
2519
+ "60" => "Transportation Was To the Nearest Facility",
2520
+ "65" => "Open",
2521
+ "68" => "Severe",
2522
+ "69" => "Moderate",
2523
+ "9D" => "Lack of Appropriate Facility within Reasonable Distance to Treat Patient in the Event of Complications",
2524
+ "9E" => "Sudden Onset of Disorientation",
2525
+ "9F" => "Sudden Onset of Severe, Incapacitating Pain",
2526
+ "9H" => "Patient Requires Intensive IV Therapy",
2527
+ "9J" => "Patient Requires Protective Isolation",
2528
+ "9K" => "Patient Requires Frequent Monitoring",
2529
+ "AA" => "Amputation",
2530
+ "AL" => "Ambulation Limitations",
2531
+ "ATR" => "Atrophy",
2532
+ "AV" => "Available - Not Used",
2533
+ "BL" => "Bowel Limitations, Bladder Limitations, or both (Incontinence)",
2534
+ "BPD" => "Beneficiary is Partially Dependent",
2535
+ "BTD" => "Beneficiary is Totally Dependent",
2536
+ "BR" => "Bedrest BRP (Bathroom Privileges)",
2537
+ "CA" => "Cane Required",
2538
+ "CB" => "Complete Bedrest",
2539
+ "CM" => "Comatose",
2540
+ "CNJ" => "Cumulative Injury",
2541
+ "CO" => "Contracture",
2542
+ "CR" => "Crutches Required",
2543
+ "DX" => "Unable to Respond",
2544
+ "DY" => "Dyspnea with Minimal Exertion",
2545
+ "EL" => "Endurance Limitations",
2546
+ "EP" => "Exercises Prescribed",
2547
+ "F3" => "Inactive",
2548
+ "HL" => "Hearing Limitations",
2549
+ "IH" => "Independent at Home",
2550
+ "L1" => "General Standard of 20 Degree or .5 Diopter Sphere or Cylinder Change Met",
2551
+ "L2" => "Replacement Due to Loss or Theft",
2552
+ "L3" => "Replacement Due to Breakage or Damage",
2553
+ "L4" => "Replacement Due to Patient Preference",
2554
+ "L5" => "Replacement Due to Medical Reason",
2555
+ "LB" => "Legally Blind",
2556
+ "LE" => "Lethargic",
2557
+ "NU" => "Not Used",
2558
+ "NR" => "No Restrictions",
2559
+ "OL" => "Other Limitation",
2560
+ "PA" => "Paralysis",
2561
+ "PAR" => "Paraplegia",
2562
+ "PW" => "Partial Weight Bearing",
2563
+ "S2" => "Under Treatment",
2564
+ "S9" => "Atypical Functional Condition",
2565
+ "SL" => "Speech Limitations",
2566
+ "ST" => "New Services Requested",
2567
+ "TNJ" =>"Traumatic Injury",
2568
+ "TR" => "Transfer to Bed, or Chair, or Both",
2569
+ "UT" => "Up as Tolerated",
2570
+ "WA" => "Walker Required",
2571
+ "WR" => "Wheelchair Required",
2572
+ "ZV" => "Replacement Item"))
2573
+ E1322 = t::ID.new(:E1322, "Certification Type Code" , 1, 1,
2574
+ s::CodeList.build(
2575
+ "1" => "Appeal - Immediate",
2576
+ "2" => "Appeal - Standard",
2577
+ "3" => "Cancel",
2578
+ "4" => "Extension",
2579
+ "I" => "Initial",
2580
+ "N" => "Reconsideration",
2581
+ "R" => "Renewal",
2582
+ "S" => "Revised"))
2583
+ E1325 = t::ID.new(:E1325, "Claim Frequency Type Code" , 1, 1,
2584
+ s::CodeList.external("235"))
2585
+ E1327 = t::ID.new(:E1327, "Copay Status Code" , 1, 1,
2586
+ s::CodeList.build(
2587
+ "0" => "Copay exempt"))
2588
+ E1328 = t::Nn.new(:E1328, "Diagnosis Code Pointer" , 1, 2, 0)
2589
+ E1331 = t::AN.new(:E1331, "Facility Code Value" , 1, 2)
2590
+ # S237
2591
+ E1332 = t::ID.new(:E1332, "Facility Code Qualifier" , 1, 2,
2592
+ s::CodeList.build(
2593
+ "A" => s::CodeList.external("236"),
2594
+ "B" => s::CodeList.external("237")))
2595
+ E1333 = t::ID.new(:E1333, "Record Format Code" , 1, 2)
2596
+ E1334 = t::ID.new(:E1334, "Professional Shortage Area Code" , 1, 1)
2597
+ E1335 = t::ID.new(:E1335, "Insulin Type Code" , 1, 3)
2598
+ E1336 = t::ID.new(:E1336, "Insurance Type Code" , 1, 3,
2599
+ s::CodeList.build(
2600
+ "02" => "Physically Handicapped Children's Program",
2601
+ "03" => "Special Federal Funding",
2602
+ "05" => "Disability",
2603
+ "09" => "Second Opinion or Surgery",
2604
+ "12" => "Medicare Secondary Working Aged Beneficiary or Spouse with Employer Group Health Plan",
2605
+ "13" => "Medicare Secondary End-Stage Renal Disease Beneficiary in the Mandated Coordination Period",
2606
+ "14" => "Medicare Secondary, No-fault Insurance including Auto is Primary",
2607
+ "15" => "Medicare Secondary Worker's Compensation",
2608
+ "16" => "Medicare Secondary Public Health Service (PHS) or Other Federal Agency",
2609
+ "41" => "Medicare Secondary Blank Lung",
2610
+ "42" => "Medicare Secondary Veteran's Administration",
2611
+ "43" => "Medicare Secondary Disabled Beneficiary Under Age 65 with Large Group Health Plan (LGHP)",
2612
+ "47" => "Medicare Secondary, Other Liability Insurance is Primary",
2613
+ "AP" => "Auto Insurance Policy",
2614
+ "C1" => "Commercial",
2615
+ "CO" => "Consolidated Omnibus Budget Reconciliation Act (COBRA)",
2616
+ "CP" => "Medicare Conditionally Primary",
2617
+ "D" => "Disability",
2618
+ "DB" => "Disability Benefits",
2619
+ "EP" => "Exclusive Provider Organization",
2620
+ "FF" => "Family or Friends",
2621
+ "GP" => "Group Policy",
2622
+ "HM" => "Health Maintenance Organization (HMO)",
2623
+ "HN" => "Health Maintenance Organization (HMO) - Medicare Risk",
2624
+ "HS" => "Special Low Income Medicare Beneficiary",
2625
+ "IN" => "Indemnity",
2626
+ "IP" => "Individual Policy",
2627
+ "LC" => "Long Term Care",
2628
+ "LD" => "Long Term Policy",
2629
+ "LI" => "Life Insurance",
2630
+ "LT" => "Litigation",
2631
+ "MA" => "Medicare Part A",
2632
+ "MB" => "Medicare Part B",
2633
+ "MC" => "Medicaid",
2634
+ "MH" => "Medigap Part A",
2635
+ "MI" => "Medigap Part B",
2636
+ "MP" => "Medicare Primary",
2637
+ "OT" => "Other",
2638
+ "PE" => "Property Insurance - Personal",
2639
+ "PL" => "Personal",
2640
+ "PP" => "Personal Payment (Cash - No Insurance)",
2641
+ "PR" => "Preferred Provider Organization (PPO)",
2642
+ "PS" => "Point of Service (POS)",
2643
+ "QM" => "Qualified Medicare Beneficiary",
2644
+ "RP" => "Property Insurance - Real",
2645
+ "SP" => "Supplemental Policy",
2646
+ "TF" => "Tax Equity Fiscal Responsibility Act (TEFRA)",
2647
+ "WC" => "Workers Compensation",
2648
+ "WU" => "Wrap Up Policy"))
2649
+ E1337 = t::ID.new(:E1337, "Level of Care Code" , 1, 1,
2650
+ s::CodeList.build(
2651
+ "1" => "Skilled Nursing Facility (SNF)",
2652
+ "2" => "Intermediate Care Facility (ICF)",
2653
+ "3" => "Intermediate Care Facility - Mentally Retarded (ICF-MR)",
2654
+ "4" => "Chronic Disease Hospital (CD)",
2655
+ "5" => "Intermediate Care Facility (ICF) Level II",
2656
+ "6" => "Special Skilled Nursing Facility (SNF)",
2657
+ "7" => "Nursing Facility (NF)",
2658
+ "8" => "Hospice"))
2659
+ E1338 = t::ID.new(:E1338, "Level of Service Code" , 1, 3)
2660
+ E1339 = t::AN.new(:E1339, "Procedure Modifier" , 2, 2)
2661
+ E1340 = t::ID.new(:E1340, "Multiple Procedure Code" , 1, 2)
2662
+ E1341 = t::AN.new(:E1341, "National or Local Assigned Review" , 1, 2)
2663
+ E1342 = t::ID.new(:E1342, "Nature of Condition Code" , 1, 1,
2664
+ s::CodeList.build(
2665
+ "A" => "Acute Condition",
2666
+ "C" => "Chronic Condition",
2667
+ "D" => "Non-acute",
2668
+ "E" => "Non-Life Threatening",
2669
+ "F" => "Routine",
2670
+ "G" => "Symptomatic",
2671
+ "M" => "Acute Manifestation of a Chronic Condition"))
2672
+ E1343 = t::ID.new(:E1343, "Non-Institutional Claim Type Code" , 1, 2)
2673
+ E1345 = t::ID.new(:E1345, "Nursing Home Residential Status Code" , 1, 1)
2674
+ E1348 = t::ID.new(:E1348, "Oxygen Equipment Type Code" , 1, 1,
2675
+ s::CodeList.build(
2676
+ "A" => "Concentrator",
2677
+ "B" => "Liquid Stationary",
2678
+ "C" => "Gaseous Stationary",
2679
+ "D" => "Liquid Portable",
2680
+ "E" => "Gaseous Portable",
2681
+ "O" => "Other"))
2682
+ E1351 = t::ID.new(:E1351, "Patient Signature Source Code" , 1, 1,
2683
+ s::CodeList.build(
2684
+ "P" => "Signature generated by provider because the patient was not physically present for services"))
2685
+ E1352 = t::ID.new(:E1352, "Patient Status Code" , 1, 2,
2686
+ s::CodeList.external("239"))
2687
+ E1354 = t::ID.new(:E1354, "Diagnosis Related Group (DRG) Code" , 1, 4,
2688
+ s::CodeList.external("229"))
2689
+ E1358 = t::ID.new(:E1358, "Prosthesis, Crown, or Inlay Code" , 1, 1,
2690
+ s::CodeList.build(
2691
+ "I" => "Initial Placement",
2692
+ "R" => "Replacement"))
2693
+ E1359 = t::ID.new(:E1359, "Provider Accept Assignment Code" , 1, 1,
2694
+ s::CodeList.build(
2695
+ "A" => "Assigned",
2696
+ "B" => "Assigned Accepted on Clinical Lab Services Only",
2697
+ "C" => "Not Assigned"))
2698
+ E1360 = t::ID.new(:E1360, "Provider Agreement Code" , 1, 1)
2699
+ E1361 = t::ID.new(:E1361, "Oral Cavity Designation Code" , 1, 3,
2700
+ s::CodeList.external("135"))
2701
+ E1362 = t::ID.new(:E1362, "Related-Causes Code" , 2, 3,
2702
+ s::CodeList.build(
2703
+ "AA" => "Auto Accident",
2704
+ "EM" => "Employment",
2705
+ "OA" => "Other Accident"))
2706
+ E1363 = t::ID.new(:E1363, "Release of Information Code" , 1, 1,
2707
+ s::CodeList.build(
2708
+ "I" => "Informed Consent to Release Medical Information for Conditions or Diagnoses Regulated by Federal Statutes",
2709
+ "Y" => "Yes, Provider has a Signed Statement Permitting Release of Medical Billing Data Related to a Claim"))
2710
+ E1364 = t::ID.new(:E1364, "Review Code" , 1, 2)
2711
+ E1365 = t::ID.new(:E1365, "Service Type Code" , 1, 2,
2712
+ s::CodeList.build(
2713
+ "1" => "Medical Care",
2714
+ "2" => "Surgical",
2715
+ "3" => "Consultation",
2716
+ "4" => "Diagnostic X-Ray",
2717
+ "5" => "Diagnostic Lab",
2718
+ "6" => "Radiation Therapy",
2719
+ "7" => "Anesthesia",
2720
+ "8" => "Surgical Assistance",
2721
+ "9" => "Other Medical",
2722
+ "10" => "Blood Charges",
2723
+ "11" => "Used Durable Medical Equipment",
2724
+ "12" => "Durable Medical Equipment Purchase",
2725
+ "13" => "Ambulatory Service Center Facility",
2726
+ "14" => "Renal Supplies in the Home",
2727
+ "15" => "Alternate Method Dialysis",
2728
+ "16" => "Chronic Renal Disease (CRD) Equipment",
2729
+ "17" => "Pre-Admission Testing",
2730
+ "18" => "Durable Medical Equipment Rental",
2731
+ "19" => "Pneumonia Vaccine",
2732
+ "20" => "Second Surgical Opinion",
2733
+ "21" => "Third Surgical Opinion",
2734
+ "22" => "Social Work",
2735
+ "23" => "Diagnostic Dental",
2736
+ "24" => "Periodontics",
2737
+ "25" => "Restorative",
2738
+ "26" => "Endodontics",
2739
+ "27" => "Maxillofacial Prosthetics",
2740
+ "28" => "Adjunctive Dental Services",
2741
+ "30" => "Health Benefit Plan Coverage",
2742
+ "32" => "Plan Waiting Period",
2743
+ "33" => "Chiropractic",
2744
+ "34" => "Chiropractic Office Visits",
2745
+ "35" => "Dental Care",
2746
+ "36" => "Dental Crowns",
2747
+ "37" => "Dental Accident",
2748
+ "38" => "Orthodontics",
2749
+ "39" => "Prosthodontics",
2750
+ "40" => "Oral Surgery",
2751
+ "41" => "Routine (Preventive) Dental",
2752
+ "42" => "Home Health Care",
2753
+ "43" => "Home Health Prescriptions",
2754
+ "44" => "Home Health Visits",
2755
+ "45" => "Hospice",
2756
+ "46" => "Respite Care",
2757
+ "47" => "Hospital",
2758
+ "48" => "Hospital - Inpatient",
2759
+ "49" => "Hospital - Room and Board",
2760
+ "50" => "Hospital - Outpatient",
2761
+ "51" => "Hospital - Emergency Accident",
2762
+ "52" => "Hospital - Emergency Medical",
2763
+ "53" => "Hospital - Ambulatory Surgical",
2764
+ "54" => "Long Term Care",
2765
+ "55" => "Major Medical",
2766
+ "56" => "Medically Related Transportation",
2767
+ "57" => "Air Transportation",
2768
+ "58" => "Cabulance",
2769
+ "59" => "Licensed Ambulance",
2770
+ "60" => "General Benefits",
2771
+ "61" => "In-vitro Fertilization",
2772
+ "62" => "MRI/CAT Scan",
2773
+ "63" => "Donor Procedures",
2774
+ "64" => "Acupuncture",
2775
+ "65" => "Newborn Care",
2776
+ "66" => "Pathology",
2777
+ "67" => "Smoking Cessation",
2778
+ "68" => "Well Baby Care",
2779
+ "69" => "Maternity",
2780
+ "70" => "Transplants",
2781
+ "71" => "Audiology Exam",
2782
+ "72" => "Inhalation Therapy",
2783
+ "73" => "Diagnostic Medical",
2784
+ "74" => "Private Duty Nursing",
2785
+ "75" => "Prosthetic Device",
2786
+ "76" => "Dialysis",
2787
+ "77" => "Otological Exam",
2788
+ "78" => "Chemotherapy",
2789
+ "79" => "Allergy Testing",
2790
+ "80" => "Immunizations",
2791
+ "AN" => "Routine Exam",
2792
+ "AO" => "Lenses",
2793
+ "AQ" => "Nonmedically Necessary Physical",
2794
+ "AR" => "Experimental Drug Therapy",
2795
+ "B1" => "Burn Care",
2796
+ "B2" => "Brand Name Prescription Drug - Formulary",
2797
+ "B3" => "Brand Name Prescription Drug - Non-Formulary",
2798
+ "BA" => "Independent Medical Evaluation",
2799
+ "BB" => "Partial Hospitalization (Psychiatric)",
2800
+ "BC" => "Day Care (Psychiatric)",
2801
+ "BD" => "Cognitive Therapy",
2802
+ "BE" => "Massage Therapy",
2803
+ "BF" => "Pulmonary Rehabilitation",
2804
+ "BG" => "Cardiac Rehabilitation",
2805
+ "BH" => "Pediatric",
2806
+ "BI" => "Nursery",
2807
+ "BJ" => "Skin",
2808
+ "BK" => "Orthopedic",
2809
+ "BL" => "Cardiac",
2810
+ "BM" => "Lymphatic",
2811
+ "BN" => "Gastrointestinal",
2812
+ "BP" => "Endocrine",
2813
+ "BQ" => "Neurology",
2814
+ "BR" => "Eye",
2815
+ "BS" => "Invasive Procedures",
2816
+ "BT" => "Gynecological",
2817
+ "BU" => "Obstetrical",
2818
+ "BV" => "Obstetrical/Gynecological",
2819
+ "BW" => "Mail Order Prescription Drug: Brand Name",
2820
+ "BX" => "Mail Order Prescription Drug: Generic",
2821
+ "BY" => "Physician Visit - Office: Sick",
2822
+ "BZ" => "Physician Visit - Office: Well",
2823
+ "C1" => "Coronary Care",
2824
+ "CA" => "Private Duty Nursing - Inpatient",
2825
+ "CB" => "Private Duty Nursing - Home",
2826
+ "CC" => "Surgical Benefits - Professional (Physician)",
2827
+ "CD" => "Surgical Benefits - Facility",
2828
+ "CE" => "Mental Health Provider - Inpatient",
2829
+ "CF" => "Mental Health Provider - Outpatient",
2830
+ "CG" => "Mental Health Facility - Inpatient",
2831
+ "CH" => "Mental Health Facility - Outpatient",
2832
+ "CI" => "Substance Abuse Facility - Inpatient",
2833
+ "CJ" => "Substance Abuse Facility - Outpatient",
2834
+ "81" => "Routine Physical",
2835
+ "82" => "Family Planning",
2836
+ "83" => "Infertility",
2837
+ "84" => "Abortion",
2838
+ "85" => "AIDS",
2839
+ "86" => "Emergency Services",
2840
+ "87" => "Cancer",
2841
+ "88" => "Pharmacy",
2842
+ "89" => "Free Standing Prescription Drug",
2843
+ "90" => "Mail Order Prescription Drug",
2844
+ "91" => "Brand Name Prescription Drug",
2845
+ "92" => "Generic Prescription Drug",
2846
+ "93" => "Podiatry",
2847
+ "94" => "Podiatry - Office Visits",
2848
+ "95" => "Podiatry - Nursing Home Visits",
2849
+ "96" => "Professional (Physician)",
2850
+ "97" => "Anesthesiologist",
2851
+ "98" => "Professional (Physician) Visit - Office",
2852
+ "99" => "Professional (Physician) Visit - Inpatient",
2853
+ "A0" => "Professional (Physician) Visit - Outpatient",
2854
+ "A1" => "Professional (Physician) Visit - Nursing Home",
2855
+ "A2" => "Professional (Physician) Visit - Skilled Nursing Facility",
2856
+ "A3" => "Professional (Physician) Visit - Home",
2857
+ "A4" => "Psychiatric",
2858
+ "A5" => "Psychiatric - Room and Board",
2859
+ "A6" => "Psychotherapy",
2860
+ "A7" => "Psychiatric - Inpatient",
2861
+ "A8" => "Psychiatric - Outpatient",
2862
+ "A9" => "Rehabilitation",
2863
+ "AA" => "Rehabilitation - Room and Board",
2864
+ "AB" => "Rehabilitation - Inpatient",
2865
+ "AC" => "Rehabilitation - Outpatient",
2866
+ "AD" => "Occupational Therapy",
2867
+ "AE" => "Physical Medicine",
2868
+ "AF" => "Speech Therapy",
2869
+ "AG" => "Skilled Nursing Care",
2870
+ "AH" => "Skilled Nursing Care - Room and Board",
2871
+ "AI" => "Substance Abuse",
2872
+ "AJ" => "Alcoholism",
2873
+ "AK" => "Drug Addiction",
2874
+ "AL" => "Vision (Optometry)",
2875
+ "AM" => "Frames",
2876
+ "CK" => "Screening X-ray",
2877
+ "CL" => "Screening laboratory",
2878
+ "CM" => "Mammogram, High Risk Patient",
2879
+ "CN" => "Mammogram, Low Risk Patient",
2880
+ "CO" => "Flu Vaccination",
2881
+ "CP" => "Eyewear and Eyewear Accessories",
2882
+ "CQ" => "Case Management",
2883
+ "DG" => "Dermatology",
2884
+ "DM" => "Durable Medical Equipment",
2885
+ "DS" => "Diabetic Supplies",
2886
+ "GF" => "Generic Prescription Drug - Formulary",
2887
+ "GN" => "Generic Prescription Drug - Non-Formulary",
2888
+ "GY" => "Allergy",
2889
+ "IC" => "Intensive Care",
2890
+ "MH" => "Mental Health",
2891
+ "NI" => "Neonatal Intensive Care",
2892
+ "ON" => "Oncology",
2893
+ "PT" => "Physical Therapy",
2894
+ "PU" => "Pulmonary",
2895
+ "RN" => "Renal",
2896
+ "RT" => "Residential Psychiatric Treatment",
2897
+ "TC" => "Transitional Care",
2898
+ "TN" => "Transitional Nursery Care",
2899
+ "UC" => "Urgent Care"))
2900
+ E1366 = t::ID.new(:E1366, "Special Program Code" , 2, 3,
2901
+ s::CodeList.build(
2902
+ "01" => "Early & Periodic Screening, Diagnosis, and Treatment (EPSDT) or Child Health Assessment Program (CHAP)",
2903
+ "02" => "Physically Handicapped Children's Program",
2904
+ "03" => "Special Federal Funding",
2905
+ "05" => "Disability",
2906
+ "09" => "Second Opinion or Surgery"))
2907
+ E1367 = t::ID.new(:E1367, "Sublaxation Level Code" , 2, 3,
2908
+ s::CodeList.build(
2909
+ "C1" => "Cervical 1",
2910
+ "C2" => "Cervical 2",
2911
+ "C3" => "Cervical 3",
2912
+ "C4" => "Cervical 4",
2913
+ "C5" => "Cervical 5",
2914
+ "C6" => "Cervical 6",
2915
+ "C7" => "Cervical 7",
2916
+ "CO" => "Coccyx",
2917
+ "IL" => "Ilium",
2918
+ "L1" => "Lumbar 1",
2919
+ "L2" => "Lumbar 2",
2920
+ "L3" => "Lumbar 3",
2921
+ "L4" => "Lumbar 4",
2922
+ "OC" => "Occiput",
2923
+ "SA" => "Sacrum",
2924
+ "T1" => "Thoracic 1",
2925
+ "T10" => "Thoracic 10",
2926
+ "T11" => "Thoracic 11",
2927
+ "T12" => "Thoracic 12",
2928
+ "T2" => "Thoracic 2",
2929
+ "T3" => "Thoracic 3",
2930
+ "T4" => "Thoracic 4",
2931
+ "T5" => "Thoracic 5",
2932
+ "T6" => "Thoracic 6",
2933
+ "T7" => "Thoracic 7",
2934
+ "T8" => "Thoracic 8",
2935
+ "T9" => "Thoracic 9"))
2936
+ E1368 = t::ID.new(:E1368, "Tooth Status Code" , 1, 2,
2937
+ s::CodeList.build(
2938
+ "E" => "To Be Extracted",
2939
+ "I" => "Impacted",
2940
+ "M" => "Missing",
2941
+ "X" => "Extracted"))
2942
+ E1369 = t::ID.new(:E1369, "Tooth Surface Code" , 1, 2,
2943
+ s::CodeList.build(
2944
+ "B" => "Buccal",
2945
+ "D" => "Distal",
2946
+ "F" => "Facial",
2947
+ "I" => "Incisal",
2948
+ "L" => "Lingual",
2949
+ "M" => "Mesial",
2950
+ "O" => "Occlusal"))
2951
+ E1371 = t:: R.new(:E1371, "Unit Rate" , 1, 10)
2952
+ E1382 = t::ID.new(:E1382, "Oxygen Delivery System Code" , 1, 1,
2953
+ s::CodeList.build(
2954
+ "A" => "Nasal Cannula",
2955
+ "B" => "Oxygen Conserving Device",
2956
+ "C" => "Oxygen Conserving Device with Oxygen Pulse System",
2957
+ "D" => "Oxygen Conserving Device with Resevoir System",
2958
+ "E" => "Transtrachael Catheter"))
2959
+ E1383 = t::ID.new(:E1383, "Claim Submission Reason Code" , 2, 2,
2960
+ s::CodeList.build(
2961
+ "08" => "@todo",
2962
+ "PB" => "Predetermination of Dental Benefits"))
2963
+ E1384 = t::ID.new(:E1384, "Patient Location Code" , 1, 1)
2964
+ E1390 = t::ID.new(:E1390, "Eligibility or Benefit Information Code", 1, 2,
2965
+ s::CodeList.build(
2966
+ "1" => "Active Coverage",
2967
+ "2" => "Active - Full Risk Capitation",
2968
+ "3" => "Active - Services Capitated",
2969
+ "4" => "Active - Services Capitated to Primary Care Physician",
2970
+ "5" => "Active - Pending Investigation",
2971
+ "6" => "Inactive",
2972
+ "7" => "Inactive - Pending Eligibility Update",
2973
+ "8" => "Inactive - Pending Investigation",
2974
+ "A" => "Co-Insurance",
2975
+ "B" => "Co-Payment",
2976
+ "C" => "Deductible",
2977
+ "CB" => "Coverage Basis",
2978
+ "D" => "Benefit Description",
2979
+ "E" => "Exclusions",
2980
+ "F" => "Limitations",
2981
+ "G" => "Out of Pocket (Stop Loss)",
2982
+ "H" => "Unlimited",
2983
+ "I" => "Non-Covered",
2984
+ "J" => "Cost Containment",
2985
+ "K" => "Reserve",
2986
+ "L" => "Primary Care Provider",
2987
+ "M" => "Pre-existing Condition",
2988
+ "MC" => "Managed Care Coordinator",
2989
+ "N" => "Services Restricted to Following Provider",
2990
+ "O" => "Not Deemed a Medical Necessity",
2991
+ "P" => "Benefit Disclaimer",
2992
+ "Q" => "Second Surgical Opinion Required",
2993
+ "R" => "Other or Additional Payor",
2994
+ "S" => "Prior Year(s) History",
2995
+ "T" => "Card(s) Reported Lost/Stolen",
2996
+ "U" => "Contact Following Entity for Eligibility or Benefit Information",
2997
+ "V" => "Cannot Process",
2998
+ "W" => "Other Source of Data",
2999
+ "X" => "Health Care Facility",
3000
+ "Y" => "Spend Down"))
3001
+ E1403 = t::ID.new(:E1403, "Implant Type Code" , 1, 1,
3002
+ s::CodeList.build(
3003
+ "1" => "Pulse Generator",
3004
+ "2" => "Arterial Lead",
3005
+ "3" => "Ventricular Lead",
3006
+ "4" => "Implantable Cardioverter Defibrillator (ICDs)",
3007
+ "5" => "Implantable Cardiac Pacemaker (ICPs)",
3008
+ "6" => "Cardiac Resynchronization Therapy Devices (CRTs)",
3009
+ "7" => "Pacing Leads",
3010
+ "8" => "Pacing Battery",
3011
+ "9" => "Coronary Stent",
3012
+ "A" => "Peripheral Stent",
3013
+ "B" => "Heart Valve",
3014
+ "C" => "Ventricular-Assist Device",
3015
+ "D" => "Implantable Heart Monitor",
3016
+ "E" => "Knee",
3017
+ "F" => "Hip",
3018
+ "G" => "Shoulder",
3019
+ "H" => "Elbow",
3020
+ "I" => "Ankle",
3021
+ "J" => "Toe",
3022
+ "K" => "Finger",
3023
+ "L" => "Spinal",
3024
+ "M" => "Orthobiologic",
3025
+ "N" => "Tissue",
3026
+ "O" => "Facial",
3027
+ "P" => "Dental",
3028
+ "Q" => "Opthalmic",
3029
+ "R" => "Gynecologic",
3030
+ "S" => "Urogynecologic",
3031
+ "T" => "Drug",
3032
+ "U" => "Otolaryngeal",
3033
+ "V" => "Cochlear",
3034
+ "W" => "Cosmetic",
3035
+ "X" => "Gastroenterologic",
3036
+ "Y" => "Urologic",
3037
+ "Z" => "Other"))
3038
+ E1401 = t::ID.new(:E1401, "Implant Status Code" , 1, 1,
3039
+ s::CodeList.build(
3040
+ "1" => "Implanted",
3041
+ "2" => "Explanted"))
3042
+ E1470 = t::Nn.new(:E1470, "Number" , 1, 9, 0)
3043
+ E1473 = t::ID.new(:E1473, "Pricing Methodology" , 2, 2,
3044
+ s::CodeList.build(
3045
+ "00" => "Zero Pricing (Not Covered Under Contract)",
3046
+ "01" => "Priced as Billed at 100%",
3047
+ "02" => "Priced at the Standard Fee Schedule",
3048
+ "03" => "Priced at a Contractual Percentage",
3049
+ "04" => "Bundled Pricing",
3050
+ "05" => "Peer Review Pricing",
3051
+ "06" => "Per Diem Pricing",
3052
+ "07" => "Flat Rate Pricing",
3053
+ "08" => "Combination Pricing",
3054
+ "09" => "Maternity Pricing",
3055
+ "10" => "Other Pricing",
3056
+ "11" => "Lower of Cost",
3057
+ "12" => "Ratio of Cost",
3058
+ "13" => "Cost Reimbursed",
3059
+ "14" => "Adjustment Pricing"))
3060
+ E1476 = t::ID.new(:E1476, "Language Proficiency Indicator" , 1, 1)
3061
+ E1514 = t::ID.new(:E1514, "Delay Reason Code" , 1, 2,
3062
+ s::CodeList.build(
3063
+ "1" => "Proof of Eligibility Unknown or Unavailable",
3064
+ "2" => "Litigation",
3065
+ "3" => "Authorization Delays",
3066
+ "4" => "Delay in Certifying Provider",
3067
+ "5" => "Delay in Shipping Billing Forms",
3068
+ "6" => "Delay in Delivery of Custom-made Appliances",
3069
+ "7" => "Third Party Processing Delay",
3070
+ "8" => "Delay in Eligibility Determination",
3071
+ "9" => "Original Claim Rejected or Denied Due to a Reason Unrelated to the Billing Limitation Rules",
3072
+ "10" => "Administration Delay in the Prior Approval Process",
3073
+ "11" => "Other",
3074
+ "15" => "Natural Disaster"))
3075
+ E1525 = t::ID.new(:E1525, "Request Category Code" , 1, 2,
3076
+ s::CodeList.build(
3077
+ "AR" => "Admission Review",
3078
+ "HS" => "Health Services Review",
3079
+ "IN" => "Individual",
3080
+ "SC" => "Specialty Care Review"))
3081
+ E1526 = t::ID.new(:E1526, "Policy Compliance Code" , 1, 2,
3082
+ s::CodeList.build(
3083
+ "1" => "Procedure Followed (Compliance)",
3084
+ "2" => "Not Followed - Call Not Made (Non-Compliance Call Not Made)",
3085
+ "3" => "Not Medically Necessary (Non-Compliance Non-Medically Necessary)",
3086
+ "4" => "Not Followed Other (Non-Compliance Other)",
3087
+ "5" => "Emergency Admit to Non-Network Hospital"))
3088
+ E1527 = t::ID.new(:E1527, "Exception Code" , 1, 2,
3089
+ s::CodeList.build(
3090
+ "1" => "Non-Network Professional Provider in Network Hospital",
3091
+ "2" => "Emergency Care",
3092
+ "3" => "Services or Specialist not in Network",
3093
+ "4" => "Out-of-Service Area",
3094
+ "5" => "State Mandates",
3095
+ "6" => "Other"))
3096
+ E1528 = t::Nn.new(:E1528, "Component Data Element Position in Composite", 1, 2, 0)
3097
+ E1595 = t::ID.new(:E1595, "Government Service Affilition Code" , 1, 1,
3098
+ s::CodeList.build(
3099
+ "A" => "Air Force",
3100
+ "B" => "Air Force Reserves",
3101
+ "C" => "Army",
3102
+ "D" => "Army Reserves",
3103
+ "E" => "Coast Guard",
3104
+ "F" => "Marine Corps",
3105
+ "G" => "Marine Corps Reserves",
3106
+ "H" => "National Guard",
3107
+ "I" => "Navy",
3108
+ "J" => "Navy Reserves",
3109
+ "K" => "Other",
3110
+ "L" => "Peace Corp",
3111
+ "M" => "Regular Armed Forces",
3112
+ "N" => "Reserves",
3113
+ "O" => "U.S. Public Health Service",
3114
+ "Q" => "Foreign Military",
3115
+ "R" => "American Red Cross",
3116
+ "S" => "Department of Defense",
3117
+ "U" => "United Services Organization",
3118
+ "W" => "Military Sealift Command"))
3119
+ E1596 = t::ID.new(:E1596, "Military Service Rank" , 1, 1,
3120
+ s::CodeList.build(
3121
+ "A1" => "Admiral",
3122
+ "A2" => "Airman",
3123
+ "A3" => "Airman First Class",
3124
+ "B1" => "Basic Airman",
3125
+ "B2" => "Brigadier General",
3126
+ "C1" => "Captain",
3127
+ "C2" => "Chief Master Sergeant",
3128
+ "C3" => "Chief Petty Officer",
3129
+ "C4" => "Chief Warrant",
3130
+ "C5" => "Colonel",
3131
+ "C6" => "Commander",
3132
+ "C7" => "Commodore",
3133
+ "C8" => "Corporal",
3134
+ "C9" => "Corporal Specialist 4",
3135
+ "E1" => "Ensign",
3136
+ "F1" => "First Lieutenant",
3137
+ "F2" => "First Sergeant",
3138
+ "F3" => "First Sergeant-Master Sergeant",
3139
+ "F4" => "Fleet Admiral",
3140
+ "G1" => "General",
3141
+ "G4" => "Gunnery Sergeant",
3142
+ "L1" => "Lance Corporal",
3143
+ "L2" => "Lieutenant",
3144
+ "L3" => "Lieutenant Colonel",
3145
+ "L4" => "Lieutenant Commander",
3146
+ "L5" => "Lieutenant General",
3147
+ "L6" => "Lieutenant Junior Grade",
3148
+ "M1" => "Major",
3149
+ "M2" => "Major General",
3150
+ "M3" => "Master Chief Petty Officer",
3151
+ "M4" => "Master Gunnery Sergeant Major",
3152
+ "M5" => "Master Sergeant",
3153
+ "M6" => "Master Sergeant Specialist 8",
3154
+ "P1" => "Petty Officer First Class",
3155
+ "P2" => "Petty Officer Second Class",
3156
+ "P3" => "Petty Officer Third Class",
3157
+ "P4" => "Private",
3158
+ "P5" => "Private First Class",
3159
+ "R1" => "Rear Admiral",
3160
+ "R2" => "Recruit",
3161
+ "S1" => "Seaman",
3162
+ "S2" => "Seaman Apprentice",
3163
+ "S3" => "Seaman Recruit",
3164
+ "S4" => "Second Lieutenant",
3165
+ "S5" => "Senior Chief Petty Officer",
3166
+ "S6" => "Senior Master Sergeant",
3167
+ "S7" => "Sergeant",
3168
+ "S8" => "Sergeant First Class Specialist 7",
3169
+ "S9" => "Sergeant Major Specialist 9",
3170
+ "SA" => "Sergeant Specialist 5",
3171
+ "SB" => "Staff Sergeant",
3172
+ "SC" => "Staff Sergeant Specialist 6",
3173
+ "T1" => "Technical Sergeant",
3174
+ "V1" => "Vice Admiral",
3175
+ "W1" => "Warrant Officer"))
3176
+ E1686 = t::Nn.new(:E1686, "Repeating Data Element Position" , 1, 4, 0)
3177
+ E1701 = t::ID.new(:E1701, "Eligibility Reason Code" , 1, 1,
3178
+ s::CodeList.build(
3179
+ "0" => "Age",
3180
+ "1" => "Disability",
3181
+ "2" => "End Stage Renal Disease (ESRD)"))
3182
+ E1705 = t::AN.new(:E1705, "Implementation Convention Reference" , 1, 35)
3183
+ E1715 = t::ID.new(:E1715, "Country Subdivision Code" , 1, 3,
3184
+ s::CodeList.external("5"))
3185
+ # E1773 = t::ID.new(:E1774, "Claim Authorization Code" , 1, 2,
3186
+ # s::CodeList.build(
3187
+ # "1" => "Immediate/Urgent Care",
3188
+ # "2" => "Services Rendered in a Retroactive Period",
3189
+ # "3" => "Emergency Care",
3190
+ # "4" => "Client Has Temporary Medicaid",
3191
+ # "5" => "Request from County for Second Opinion to Determine if Recipient Can Work",
3192
+ # "6" => "Request for Override Pending",
3193
+ # "7" => "Special Handling",
3194
+ # "Z" => "Mutually Defined"))
3195
+ E9998 = t::AN.new(:E9998, "Context Reference" , 1, 35)
3196
+ E9999 = t::AN.new(:E9999, "Context Name" , 1, 35)
3197
+
3198
+ C001 = Schema::CompositeElementDef.build(:C001,
3199
+ "Composite Unit of Measure",
3200
+ "To identify a composite unit of measure",
3201
+ E355 .component_use(r::Mandatory),
3202
+ E1018.component_use(r::Optional),
3203
+ E649 .component_use(r::Optional),
3204
+ E355 .component_use(r::Optional),
3205
+ E1018.component_use(r::Optional),
3206
+ E649 .component_use(r::Optional),
3207
+ E355 .component_use(r::Optional),
3208
+ E1018.component_use(r::Optional),
3209
+ E649 .component_use(r::Optional),
3210
+ E355 .component_use(r::Optional),
3211
+ E1018.component_use(r::Optional), # If not used, value is interpreted as 1
3212
+ E649 .component_use(r::Optional), # If not used, value is interpreted as 1
3213
+ E355 .component_use(r::Optional),
3214
+ E1018.component_use(r::Optional), # If not used, value is interpreted as 1
3215
+ E649 .component_use(r::Optional)) # If not used, value is interpreted as 1
3216
+
3217
+ # @note Copied from an unverified internet source
3218
+ C002 = Schema::CompositeElementDef.build(:C002,
3219
+ "Actions Indicated",
3220
+ "",
3221
+ E704.component_use(r::Mandatory),
3222
+ E704.component_use(r::Optional),
3223
+ E704.component_use(r::Optional),
3224
+ E704.component_use(r::Optional),
3225
+ E704.component_use(r::Optional))
3226
+ C003 = Schema::CompositeElementDef.build(:C003,
3227
+ "Composite Medical Procedure Identifier",
3228
+ "To identify a procedure by its standardized codes and applicable modifiers",
3229
+ E235 .component_use(r::Mandatory),
3230
+ E234 .component_use(r::Mandatory), # Qualified by C003-01
3231
+ E1339.component_use(r::Optional),
3232
+ E1339.component_use(r::Optional),
3233
+ E1339.component_use(r::Optional),
3234
+ E1339.component_use(r::Optional),
3235
+ E352 .component_use(r::Optional),
3236
+ E234 .component_use(r::Optional)) # Qualified by C003-01
3237
+ C004 = Schema::CompositeElementDef.build(:C004,
3238
+ "Composite Diagnosis Code Pointer",
3239
+ "To identify one or more diagnosis code pointers",
3240
+ E1328.component_use(r::Mandatory),
3241
+ E1328.component_use(r::Optional),
3242
+ E1328.component_use(r::Optional),
3243
+ E1328.component_use(r::Optional))
3244
+ C005 = Schema::CompositeElementDef.build(:C005,
3245
+ "Tooth Surface",
3246
+ "To identify one or more tooth surface codes",
3247
+ E1369.component_use(r::Mandatory),
3248
+ E1369.component_use(r::Optional),
3249
+ E1369.component_use(r::Optional),
3250
+ E1369.component_use(r::Optional),
3251
+ E1369.component_use(r::Optional))
3252
+ C006 = Schema::CompositeElementDef.build(:C006,
3253
+ "Oral Cavity Designation",
3254
+ "To identify one or more areas of oral cavity",
3255
+ E1361.component_use(r::Mandatory),
3256
+ E1361.component_use(r::Optional),
3257
+ E1361.component_use(r::Optional),
3258
+ E1361.component_use(r::Optional),
3259
+ E1361.component_use(r::Optional))
3260
+ C022 = Schema::CompositeElementDef.build(:C022,
3261
+ "Health Care Code Information",
3262
+ "To send health care codes and their associated dates, amounts and quantities",
3263
+ E1270.component_use(r::Mandatory),
3264
+ E1271.component_use(r::Mandatory),
3265
+ E1250.component_use(r::Relational),
3266
+ E1251.component_use(r::Relational),
3267
+ E782 .component_use(r::Optional),
3268
+ E380 .component_use(r::Optional),
3269
+ E799 .component_use(r::Optional),
3270
+ E1271.component_use(r::Relational),
3271
+ E1073.component_use(r::Relational),
3272
+ SyntaxNotes::P.build(3, 4),
3273
+ SyntaxNotes::E.build(8, 9))
3274
+ C023 = Schema::CompositeElementDef.build(:C023,
3275
+ "Health Care Service Location Information",
3276
+ "To provide information that identifies the place of service or the type of bill related to the location at which a health care service was rendered",
3277
+ E1331 .component_use(r::Mandatory),
3278
+ E1332 .component_use(r::Optional),
3279
+ E1325 .component_use(r::Optional))
3280
+ C024 = Schema::CompositeElementDef.build(:C024,
3281
+ "Related Causes Information",
3282
+ "To identify one or more related causes and associated state or country information",
3283
+ E1362.component_use(r::Mandatory),
3284
+ E1362.component_use(r::Optional),
3285
+ E1362.component_use(r::Optional),
3286
+ E156 .component_use(r::Optional),
3287
+ E26 .component_use(r::Optional))
3288
+ C030 = Schema::CompositeElementDef.build(:C030,
3289
+ "Position in Segment",
3290
+ "Code indicating the relative position of the simple data element or composite data structure in error within a segment, count beginning with 1 for the position immediately following the segment ID; additionally, indicating the relative position of a repeating structure in error, count beginning with 1 for the position immediately following the preceding element separator; additionally indicating the relative position of a component of a composite data structure in error, count beginning with 1 for the position following the preceding element or repetition separator",
3291
+ E722 .component_use(r::Mandatory),
3292
+ E1528.component_use(r::Optional),
3293
+ E1686.component_use(r::Optional))
3294
+
3295
+ # @note Copied from an unverified source
3296
+ C035 = Schema::CompositeElementDef.build(:C035,
3297
+ "Provider Specialty Information",
3298
+ "",
3299
+ E1222.component_use(r::Mandatory),
3300
+ E559 .component_use(r::Optional),
3301
+ E1073.component_use(r::Optional))
3302
+ C040 = Schema::CompositeElementDef.build(:C040,
3303
+ "Reference Identifier",
3304
+ "To identify one or more reference numbers or identification numbers as specified by the Reference Qualifier",
3305
+ E128 .component_use(r::Mandatory),
3306
+ E127 .component_use(r::Mandatory),
3307
+ E128 .component_use(r::Relational),
3308
+ E127 .component_use(r::Relational),
3309
+ E128 .component_use(r::Relational),
3310
+ E127 .component_use(r::Relational),
3311
+ SyntaxNotes::P.build(3, 4),
3312
+ SyntaxNotes::P.build(5, 6))
3313
+ C042 = Schema::CompositeElementDef.build(:C042,
3314
+ "Adjustment Identifier",
3315
+ "To provide the category and identifying reference information for an adjustment",
3316
+ E426 .component_use(r::Mandatory),
3317
+ E127 .component_use(r::Optional))
3318
+ C043 = Schema::CompositeElementDef.build(:C043,
3319
+ "Health Care Claim Status",
3320
+ "Used to convey status of the entire claim or a specific service line",
3321
+ E1271.component_use(r::Mandatory),
3322
+ E1271.component_use(r::Mandatory),
3323
+ E98 .component_use(r::Optional),
3324
+ E1270.component_use(r::Optional))
3325
+
3326
+ # @note Copied from unverified source
3327
+ C052 = Schema::CompositeElementDef.build(:C052,
3328
+ "Medicare Status Code",
3329
+ "To provide Medicare coverage and associated reason for Medicare eligibility",
3330
+ E1218.component_use(r::Mandatory),
3331
+ E1701.component_use(r::Optional),
3332
+ E1701.component_use(r::Optional),
3333
+ E1701.component_use(r::Optional))
3334
+ C056 = Schema::CompositeElementDef.build(:C056,
3335
+ "Composite Race or Ethnicity Information",
3336
+ "",
3337
+ E1109.component_use(r::Optional),
3338
+ E1270.component_use(r::Relational),
3339
+ E1271.component_use(r::Relational))
3340
+ C998 = Schema::CompositeElementDef.build(:C998,
3341
+ "Context Identification",
3342
+ "Holds information to identify a context",
3343
+ E9999.component_use(r::Mandatory),
3344
+ E9998.component_use(r::Optional))
3345
+ C999 = Schema::CompositeElementDef.build(:C999,
3346
+ "Reference in Segment",
3347
+ "To hold the reference number of a data element and optionally component data element within a composite",
3348
+ E725.component_use(r::Mandatory),
3349
+ E725.component_use(r::Mandatory))
3350
+ end
3351
+ end
3352
+ end
3353
+ end