Class: Roqua::Healthy::A19::CorrectPatientCheck
- Inherits:
-
Object
- Object
- Roqua::Healthy::A19::CorrectPatientCheck
- Defined in:
- lib/roqua/healthy/a19/correct_patient_check.rb
Instance Attribute Summary collapse
-
#patient_id ⇒ Object
readonly
Returns the value of attribute patient_id.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(patient_id, record) ⇒ CorrectPatientCheck
constructor
A new instance of CorrectPatientCheck.
Constructor Details
#initialize(patient_id, record) ⇒ CorrectPatientCheck
Returns a new instance of CorrectPatientCheck.
7 8 9 10 |
# File 'lib/roqua/healthy/a19/correct_patient_check.rb', line 7 def initialize(patient_id, record) @patient_id = patient_id @record = record end |
Instance Attribute Details
#patient_id ⇒ Object (readonly)
Returns the value of attribute patient_id.
5 6 7 |
# File 'lib/roqua/healthy/a19/correct_patient_check.rb', line 5 def patient_id @patient_id end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
5 6 7 |
# File 'lib/roqua/healthy/a19/correct_patient_check.rb', line 5 def record @record end |
Instance Method Details
#check ⇒ Object
12 13 14 |
# File 'lib/roqua/healthy/a19/correct_patient_check.rb', line 12 def check record[:identities].any? { |i| i[:ident] == patient_id } end |