Module: Canql::Nodes::Patient::CategoryNode
- Defined in:
- lib/canql/nodes/patient.rb
Instance Method Summary collapse
Instance Method Details
#clean_category ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/canql/nodes/patient.rb', line 29 def clean_category return 'eurocat_red' if 'eurocat red' == category.text_value return 'eurocat_amber' if 'eurocat amber' == category.text_value return 'eurocat_green' if 'eurocat green' == category.text_value return 'eurocat_amber_green' if 'eurocat amber and green' == category.text_value return 'eurocat_red_amber' if 'eurocat red and amber' == category.text_value category.text_value end |
#meta_data_item ⇒ Object
25 26 27 |
# File 'lib/canql/nodes/patient.rb', line 25 def { 'patient.category' => { Canql::EQUALS => clean_category } } end |