Module: Canql::Nodes::SubjectNode
- Defined in:
- lib/canql/nodes/main.rb
Overview
Returns a filter detailing the require result type (cases or patients)
Instance Method Summary collapse
Instance Method Details
#meta_data_item ⇒ Object
19 20 21 22 23 24 |
# File 'lib/canql/nodes/main.rb', line 19 def type_map = { cases: 'case', babies: 'case', patients: 'patient' } raise 'Unknown result type' if type_map[subject.text_value.to_sym].nil? { 'results.subject' => { Canql::EQUALS => type_map[subject.text_value.to_sym] } } end |