class Roqua::Healthy::A19::CorrectPatientCheck
Attributes
patient_id[R]
record[R]
Public Class Methods
new(patient_id, record)
click to toggle source
# File lib/roqua/healthy/a19/correct_patient_check.rb, line 8 def initialize(patient_id, record) @patient_id = patient_id @record = record end
Public Instance Methods
check()
click to toggle source
# File lib/roqua/healthy/a19/correct_patient_check.rb, line 13 def check record[:identities].try(:any?) { |i| i[:ident] == patient_id } end