Skip to content

Commit

Permalink
Use built-in HIPAA grammar configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kputnam committed Jun 14, 2013
1 parent 02f3b38 commit f715f60
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/edi-ed
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require "pp"
# This will be auto-enabled when $stdout.tty?, but -C forces color output
require "term/ansicolor" if ARGV.delete("-C")

config = Stupidedi::Config.default
config = Stupidedi::Config.hipaa
parser = Stupidedi::Builder::StateMachine.build(config)
start = Time.now

Expand Down
2 changes: 1 addition & 1 deletion bin/edi-pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GC.disable
# This will be auto-enabled when $stdout.tty?, but -C forces color output
require "term/ansicolor" if ARGV.delete("-C")

config = Stupidedi::Config.default
config = Stupidedi::Config.hipaa
parser = Stupidedi::Builder::StateMachine.build(config)
start = Time.now

Expand Down
2 changes: 1 addition & 1 deletion notes/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "ruby-prof"
require "pp"

config = Stupidedi::Config.default
config = Stupidedi::Config.hipaa
b = Stupidedi::Builder::BuilderDsl.build(config, true)
b.ISA("00", "", "00", "", "ZZ", "SUBMITTER ID", "ZZ", "RECEIVER ID", "990531", "1230", nil, "00501", "123456789", "1", "T", nil)
b. GS("HC", "SENDER ID", "RECEIVER ID", "19990531", "1230", "1", "X", "005010X222")
Expand Down
2 changes: 1 addition & 1 deletion notes/highlight.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "stupidedi"

config = Stupidedi::Config.default
config = Stupidedi::Config.hipaa
parser = Stupidedi::Builder::StateMachine.build(config)

input = if RUBY_VERSION > "1.8"
Expand Down
2 changes: 1 addition & 1 deletion notes/recover.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "stupidedi"
require "pp"

config = Stupidedi::Config.default
config = Stupidedi::Config.hipaa
reader = Stupidedi::Reader.build(File.open("notes/recover.txt"))
parser = Stupidedi::Builder::StateMachine.build(config)

Expand Down
2 changes: 1 addition & 1 deletion notes/split.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def only(machine, depth=1)
Stupidedi::Builder::StateMachine.new(machine.config, active)
end

config = Stupidedi::Config.default
config = Stupidedi::Config.hipaa
reader = Stupidedi::Reader.build(File.read("notes/split.edi", :encoding => "ISO-8859-1"))
parser = Stupidedi::Builder::StateMachine.build(config)

Expand Down

0 comments on commit f715f60

Please sign in to comment.