Module: Canql::Nodes::Patient::ExpectedDateRangeNode

Defined in:
lib/canql/nodes/patient.rb

Instance Method Summary collapse

Instance Method Details

#meta_data_itemObject



85
86
87
88
89
90
91
92
93
94
95
# File 'lib/canql/nodes/patient.rb', line 85

def 
  range = fuzzy_date.to_daterange
  {
    'patient.expecteddeliverydate' => {
      Canql::LIMITS => [
        range.date1.try(:to_date).try(:iso8601),
        range.date2.try(:to_date).try(:iso8601)
      ]
    }
  }
end