Skip to content

mitch-lindsay/ruby-hl7-zef

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HL7::ZEF

Adds support for the ZEF segment to ruby-hl7

Installation

Add this line to your application's Gemfile:

gem 'ruby-hl7-zef'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby-hl7-zef

Usage

require 'base64'

msg = HL7::Message.parse(hl7_with_zef)
Array(msg[:ZEF]).each_with_index do |zef, i|
  File.write("zef-#{i}.pdf", Base64.decode64(zef.embedded_pdf))
end

Contributing

  1. Fork it ( https://github.com/[my-github-username]/ruby-hl7-zef/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Adds custom ZEF segment to the ruby-hl7 gem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%