Adds support for the ZCF segment to ruby-hl7
This segment was present in ruby-hl7
gem but segments starting by a Z
are supposed to be custom,
and should not be in a standard gem. This gem is here for retro-compatibility.
Add this line to your application's Gemfile:
gem 'ruby-hl7-zcf'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby-hl7-zcf
msg = HL7::Message.parse(hl7_with_zcf)
Array(msg[:ZCF]).each do |zcf|
puts "Custom field 1: #{zcf.custom_field_1}"
end
- Fork it ( https://github.com/[my-github-username]/ruby-hl7-zcf/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request