Sha256: 6748670aa4d161d239da3b5e034345493bcbf820227d4c66c8ac3ccbf75ccdb3

Contents?: true

Size: 402 Bytes

Versions: 17

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true
module Roqua
  module Healthy
    module A19
      class CorrectPatientCheck
        attr_reader :patient_id, :record

        def initialize(patient_id, record)
          @patient_id = patient_id
          @record     = record
        end

        def check
          record[:identities].try(:any?) { |i| i[:ident] == patient_id }
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
roqua-healthy-1.6.0 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.13 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.12 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.11 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.10 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.9 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.8 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.7 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.6 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.5 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.4 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.3 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.2 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.1 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.5.0 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.4.3 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.4.2 lib/roqua/healthy/a19/correct_patient_check.rb