Ticket #8 (closed defect: fixed)
Warning message from msh.rb
| Reported by: | qstevenson@… | Owned by: | segfault |
|---|---|---|---|
| Priority: | minor | Milestone: | Version 0.3 |
| Component: | HL7 Library | Version: | 0.3 |
| Keywords: | Cc: |
Description
When I run the sample in the README (modified to use my hl7 file), I get a the following warning.
/usr/lib/ruby/gems/1.8/gems/ruby-hl7-0.2.50/lib/segments/msh.rb:4: warning: ambiguous first argument; put parentheses or even spaces
This isn't really a big deal, but is does wind up dumping this information every time I run a script.
The script I'm running is pasted below
#! /usr/bin/ruby -w
require 'rubygems' require 'ruby-hl7'
raw_input = open( "ADT_A01_decode_input.txt" ).readlines msg = HL7::Message.new( raw_input )
puts "message type: %s" % msg[:MSH].message_type
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
