We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc861b commit 2e5f7faCopy full SHA for 2e5f7fa
app/models/concerns/reporting_api/event_concern.rb
@@ -14,7 +14,7 @@ module ReportingAPI::EventConcern
14
protected
15
16
def set_patient_from_source
17
- self.patient = source.respond_to?(:patient) ? source&.patient : nil
+ self.patient = source.try(:patient)
18
end
19
20
def set_patient_year_group
0 commit comments