Module: Canql::Nodes::Age::DeathDateNode
- Defined in:
- lib/canql/nodes/age.rb
Instance Method Summary collapse
Instance Method Details
#meta_data_item ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/canql/nodes/age.rb', line 21 def subject = reverse_scan_for_marker(:subject) == 'mother' ? 'mother' : 'patient' range = fuzzy_date.to_daterange { "#{subject}.deathdate" => { Canql::LIMITS => [ range.date1.try(:to_date).try(:iso8601), range.date2.try(:to_date).try(:iso8601) ] } } end |