ruby-hl7-extensions 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/VERSION.yml +1 -1
- data/lib/core_ext/message.rb +8 -0
- data/lib/core_ext/segments/segments.rb +1 -0
- data/lib/segments/znp.rb +37 -0
- data/ruby-hl7-extensions.gemspec +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 443418d6dbdfc5a8552d30a78ace38485aace0fd
|
4
|
+
data.tar.gz: a92e24fa561d01f0dbf99971305bdd00b7b5a7c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1ac95c7a58ab511820cd9fc9dc58533ab474ca3707119dabab38d024d7b03c821d71fcf03bca0ecc6552e1a5442a24380a4871f8235b3ae91a7af1dcf5fb4bd
|
7
|
+
data.tar.gz: 940c7beafe04abe8940a53d09504e7d0854cfdab00a788fd47fe461919119d834f0b04b3fb562de3510661c823a3959c80d2c0375eabc6431313ddd1057aba43
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/VERSION.yml
CHANGED
data/lib/core_ext/message.rb
CHANGED
data/lib/segments/znp.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'ruby-hl7'
|
2
|
+
class HL7::Message::Segment::ZNP < HL7::Message::Segment
|
3
|
+
add_field :custom_field_1
|
4
|
+
add_field :custom_field_2
|
5
|
+
add_field :custom_field_3
|
6
|
+
add_field :custom_field_4
|
7
|
+
add_field :custom_field_5
|
8
|
+
add_field :custom_field_6
|
9
|
+
add_field :custom_field_7
|
10
|
+
add_field :custom_field_8
|
11
|
+
add_field :custom_field_9
|
12
|
+
add_field :custom_field_10
|
13
|
+
add_field :custom_field_11
|
14
|
+
add_field :custom_field_12
|
15
|
+
add_field :custom_field_13
|
16
|
+
add_field :custom_field_14
|
17
|
+
add_field :custom_field_15
|
18
|
+
add_field :custom_field_16
|
19
|
+
add_field :custom_field_17
|
20
|
+
add_field :custom_field_18
|
21
|
+
add_field :custom_field_19
|
22
|
+
add_field :custom_field_20
|
23
|
+
|
24
|
+
def to_hash
|
25
|
+
return @hash if @hash
|
26
|
+
|
27
|
+
hash = super.to_hash
|
28
|
+
hash["id"] = hash["customField2"]
|
29
|
+
hash["npi"] = hash["customField2"]
|
30
|
+
hash
|
31
|
+
end
|
32
|
+
|
33
|
+
def provider_hash(key,code)
|
34
|
+
to_hash.merge({"providerType"=>code})
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
data/ruby-hl7-extensions.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "ruby-hl7-extensions"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.2"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.extra_rdoc_files = ["LICENSE", "README.md"]
|
15
15
|
s.files = [".gitignore", "Gemfile", "Gemfile.lock", "LICENSE", "README.md", "Rakefile", "VERSION", "VERSION.yml", "lib/core_ext/segments/rol.rb",
|
16
16
|
"lib/core_ext/message.rb", "lib/core_ext/segment.rb", "lib/core_ext/segments/err.rb", "lib/core_ext/segments/sft.rb",
|
17
|
-
"lib/core_ext/segments/msh.rb", "lib/core_ext/segments/nk1.rb", "lib/core_ext/segments/orc.rb", "lib/core_ext/segments/evn.rb", "lib/core_ext/segments/nte.rb", "lib/core_ext/segments/obr.rb", "lib/core_ext/segments/obx.rb", "lib/core_ext/segments/pid.rb", "lib/core_ext/segments/pv1.rb", "lib/core_ext/segments/pd1.rb", "lib/core_ext/segments/segments.rb", "lib/core_ext/segments/dg1.rb", "lib/core_ext/segments/in1.rb", "lib/segments/dg1.rb", "lib/ruby-hl7-extensions.rb", "ruby-hl7-extensions.gemspec"]
|
17
|
+
"lib/core_ext/segments/msh.rb", "lib/core_ext/segments/nk1.rb", "lib/core_ext/segments/orc.rb", "lib/core_ext/segments/evn.rb", "lib/core_ext/segments/nte.rb", "lib/core_ext/segments/obr.rb", "lib/core_ext/segments/obx.rb", "lib/core_ext/segments/pid.rb", "lib/core_ext/segments/pv1.rb", "lib/core_ext/segments/pd1.rb", "lib/core_ext/segments/segments.rb", "lib/core_ext/segments/dg1.rb", "lib/core_ext/segments/in1.rb", "lib/segments/dg1.rb", "lib/segments/znp.rb", "lib/ruby-hl7-extensions.rb", "ruby-hl7-extensions.gemspec"]
|
18
18
|
s.homepage = "http://github.com/nmlynl/ruby-hl7-extensions"
|
19
19
|
s.rdoc_options = ["--charset=UTF-8"]
|
20
20
|
s.required_ruby_version = Gem::Requirement.new(">= 1.8.6")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-hl7-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Lega
|
@@ -74,6 +74,7 @@ files:
|
|
74
74
|
- lib/core_ext/segments/sft.rb
|
75
75
|
- lib/ruby-hl7-extensions.rb
|
76
76
|
- lib/segments/dg1.rb
|
77
|
+
- lib/segments/znp.rb
|
77
78
|
- ruby-hl7-extensions.gemspec
|
78
79
|
homepage: http://github.com/nmlynl/ruby-hl7-extensions
|
79
80
|
licenses: []
|