Sha256: 10bb5592a7d88b1a9c8008b03b9fb5a26e1e968f5288978721252c7d7cd00e8d
Contents?: true
Size: 1.41 KB
Versions: 3
Compression:
Stored size: 1.41 KB
Contents
# encoding: UTF-8 require 'spec_helper' describe HL7::Message::Segment::FT1 do context 'general' do before :all do @base_ft1 = 'FT1|1|||20180705|20180705|||Description||1||||||123456^The Location|||R45.82^Worries~H18.892^Other specified disorders of cornea|1043312457^Provider^Testing^^^^|1043312457^Provider^Testing^^^^||||99392^HEART FAILURE COMPOSITE|' end it 'creates an FT1 segment' do expect do ft1 = HL7::Message::Segment::FT1.new( @base_ft1 ) expect(ft1).not_to be_nil expect(ft1.to_s).to eq @base_ft1 end.not_to raise_error end it 'allows access to an FT1 segment' do expect do ft1 = HL7::Message::Segment::FT1.new( @base_ft1 ) expect(ft1.set_id).to eq '1' expect(ft1.date_of_service).to eq '20180705' expect(ft1.transaction_posting_date).to eq '20180705' expect(ft1.transaction_description).to eq 'Description' expect(ft1.transaction_quantity).to eq '1' expect(ft1.assigned_patient_location).to eq '123456^The Location' expect(ft1.diagnosis_code).to eq 'R45.82^Worries~H18.892^Other specified disorders of cornea' expect(ft1.performed_by_provider).to eq '1043312457^Provider^Testing^^^^' expect(ft1.ordering_provider).to eq '1043312457^Provider^Testing^^^^' expect(ft1.procedure_code).to eq '99392^HEART FAILURE COMPOSITE' end.not_to raise_error end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-hl7-1.3.3 | spec/ft1_segment_spec.rb |
ruby-hl7-1.3.2 | spec/ft1_segment_spec.rb |
ruby-hl7-1.3.1 | spec/ft1_segment_spec.rb |