Sha256: b7e24ec2c326cc7e3ad1e8b963b0127af2489d71ed88af46042c312731896614

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

require 'spec_helper'

describe 'Fetching A19 from Comez' do
  describe 'a patient' do
    before { load_fixture 'comez_patient', '0000123456' }
    subject { Roqua::Healthy::A19.fetch("0000123456") }

    it { expect(subject[:status]).to       eq('SUCCESS') }
    it { expect(subject[:error]).to        be_nil }
    it { expect(subject[:source]).to       eq('CS') }
    it { expect(subject[:identities]).to   eq([{ident: '0000123456', authority: 'PI'}, {ident: '123456789',   authority: 'NNNLD'}]) }
    it { expect(subject[:firstname]).to    eq('Voornaam') }
    it { expect(subject[:initials]).to     eq('A') }
    it { expect(subject[:lastname]).to     eq('Achternaam') }
    it { expect(subject[:display_name]).to be_nil }
    it { expect(subject[:email]).to        be_nil }
    it { expect(subject[:address_type]).to eq('M') }
    it { expect(subject[:street]).to       eq('Postadresstraat 42') }
    it { expect(subject[:city]).to         eq('PLAATSNAAM') }
    it { expect(subject[:zipcode]).to      eq('1234AB') }
    it { expect(subject[:country]).to      eq('NL') }
    it { expect(subject[:birthdate]).to    eq('17070415') }
    it { expect(subject[:gender]).to       eq('F') }
    it { expect(subject[:phone_cell]).to   be_nil }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roqua-healthy-1.1.1 spec/integration/comez_spec.rb
roqua-healthy-1.1.0 spec/integration/comez_spec.rb
roqua-healthy-1.0.2 spec/integration/comez_spec.rb
roqua-healthy-1.0.1 spec/integration/comez_spec.rb
roqua-healthy-1.0.0 spec/integration/comez_spec.rb