Sha256: d138eeb5991e5cc0749e6b3c8be7cea746869b2f3f6bc8240ea81667e8f9d807

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
roqua-healthy-1.4.1 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.3.0 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.2.1 lib/roqua/healthy/a19/correct_patient_check.rb
roqua-healthy-1.2.0 lib/roqua/healthy/a19/correct_patient_check.rb