Module: Canql::Nodes::PerinatalProviderCodeNode

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

Instance Method Summary collapse

Instance Method Details

#meta_data_itemObject



6
7
8
9
10
11
# File 'lib/canql/nodes/perinatal_hospital.rb', line 6

def 
  hospital_event = reverse_scan_for_marker(:hospital_event)
  key = 'providercode'
  condition = provider_type.text_value == 'trust' ? Canql::BEGINS : Canql::EQUALS
  { "#{hospital_event}.#{key}" => { condition => code.text_value.upcase } }
end