File tree Expand file tree Collapse file tree 7 files changed +30
-15
lines changed
Expand file tree Collapse file tree 7 files changed +30
-15
lines changed Original file line number Diff line number Diff line change 1+ branches :
2+ only :
3+ - master
4+ language : ruby
5+ matrix :
6+ allow_failures :
7+ - rvm : ruby-head
8+ rvm :
9+ - 2.2.0
10+ - 2.1.0
11+ - 2.0.0
12+ - 1.9.3
13+ - ruby-head
14+ - jruby-19mode # JRuby in 1.9 mode
15+ - rbx-2.2
Original file line number Diff line number Diff line change 11# HL7::ZPS
22
3- TODO: Write a gem description
3+ Adds support for the ZPS segment to [ ` ruby-hl7 ` ] ( https://github.com/ruby-hl7/ruby-hl7 )
44
55## Installation
66
@@ -20,7 +20,12 @@ Or install it yourself as:
2020
2121## Usage
2222
23- TODO: Write usage instructions here
23+ ``` ruby
24+ msg = HL7 ::Message .parse(hl7_with_zps)
25+ Array (msg[:ZPS ]).each do |zps |
26+ puts " Facility: #{ zps.facility_name } "
27+ end
28+ ```
2429
2530## Contributing
2631
Original file line number Diff line number Diff line change 1- require "hl7/zps/version"
2- require "ruby-hl7"
3-
41module HL7
52 class Message ::Segment ::ZPS < HL7 ::Message ::Segment
63 weight 12
Original file line number Diff line number Diff line change 11module HL7
22 module ZPS
3- VERSION = "0 .0.1 "
3+ VERSION = "1 .0.0 "
44 end
55end
Original file line number Diff line number Diff line change 1+ require "ruby-hl7"
2+ require "hl7/zps"
3+ require "hl7/zps/version"
Original file line number Diff line number Diff line change @@ -13,12 +13,11 @@ Gem::Specification.new do |spec|
1313 spec . homepage = ""
1414 spec . license = "MIT"
1515
16- spec . files = `git ls-files -z` . split ( "\x0 " )
17- spec . executables = spec . files . grep ( %r{^bin/} ) { |f | File . basename ( f ) }
18- spec . test_files = spec . files . grep ( %r{^(test|spec|features)/} )
16+ spec . files = `git ls-files -z` . split ( "\x0 " ) . reject { |f | f . match ( %r{^spec/} ) }
17+ spec . test_files = spec . files . grep ( %r{^spec/} )
1918 spec . require_paths = [ "lib" ]
2019
21- spec . add_dependency "ruby-hl7" , "~> 1.1.0 "
20+ spec . add_dependency "ruby-hl7" , "~> 1.1"
2221 spec . add_development_dependency "bundler" , "~> 1.7"
2322 spec . add_development_dependency "rake" , "~> 10.0"
2423end
Original file line number Diff line number Diff line change 1- require 'ruby-hl7'
2-
3- LOCALE_PATH = File . expand_path ( File . dirname ( __FILE__ ) + '/../lib/hl7' )
4-
5- require LOCALE_PATH + '/zps'
1+ require 'ruby-hl7-zps'
You can’t perform that action at this time.
0 commit comments