Sha256: 3dfd9e7060f9fd7dc6bde8893fe350297522667353ca1df13f0ea0b4be366002
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
# encoding: UTF-8 require 'spec_helper' describe HL7::Message::Segment::SPM do context 'general' do before :all do @base_spm = 'SPM|1|23456&EHR&2.16.840.1.113883.19.3.2.3&ISO^9700122&Lab&2.16.840.1.113883.19.3.1.6&ISO||122554006^Capillary blood specimen^SCT^BLDC^Blood capillary^HL70070^20080131^2.5.1||HEPA^Ammonium heparin^HL70371^^^^2.5.1|CAP^Capillary Specimen^HL70488^^^^2.5.1|181395001^Venous structure of digit^SCT^^^^20080731|||P^Patient^HL60369^^^^2.5.1|50^uL&Micro Liter&UCUM&&&&1.6|||||200808151030-0700|200808151100-0700' end it 'creates an SPM segment' do expect do spm = HL7::Message::Segment::SPM.new( @base_spm ) expect(spm).not_to be_nil expect(spm.to_s).to eq @base_spm end.not_to raise_error end it 'allows access to an SPM segment' do expect do spm = HL7::Message::Segment::SPM.new( @base_spm ) expect(spm.specimen_type).to eq '122554006^Capillary blood specimen^SCT^BLDC^Blood capillary^HL70070^20080131^2.5.1' expect(spm.set_id).to eq '1' end.not_to raise_error end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-hl7-1.3.3 | spec/spm_segment_spec.rb |
ruby-hl7-1.3.2 | spec/spm_segment_spec.rb |
ruby-hl7-1.3.1 | spec/spm_segment_spec.rb |
ruby-hl7-1.3.0 | spec/spm_segment_spec.rb |