Sha256: d65ba8ca8e01047292b865d73f3d05faaf8b91dae8b08209e9e44bd69ea1f6df
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
require 'ruby-hl7' class HL7::Message::Segment::ZNP < HL7::Message::Segment add_field :custom_field_1, { :idx => 1} add_field :custom_field_2, { :idx => 2} add_field :custom_field_3, { :idx => 3} add_field :custom_field_4, { :idx => 4} add_field :custom_field_5, { :idx => 5} add_field :custom_field_6, { :idx => 6} add_field :custom_field_7, { :idx => 7} add_field :custom_field_8, { :idx => 8} add_field :custom_field_9, { :idx => 9} add_field :custom_field_10, { :idx => 10} add_field :custom_field_11, { :idx => 11} add_field :custom_field_12, { :idx => 12} add_field :custom_field_13, { :idx => 13} add_field :custom_field_14, { :idx => 14} add_field :custom_field_15, { :idx => 15} add_field :custom_field_16, { :idx => 16} add_field :custom_field_17, { :idx => 17} add_field :custom_field_18, { :idx => 18} add_field :custom_field_19, { :idx => 19} add_field :custom_field_20, { :idx => 20} def to_hash return @hash if @hash hash = super.to_hash hash["id"] = hash["customField2"] hash["npi"] = hash["customField2"] hash end def provider_hash(key,code) to_hash.merge({"providerType"=>code}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-hl7-extensions-0.4.8 | lib/segments/znp.rb |