Module: Canql::Nodes::Anomaly::AdditionalCodeNode
- Defined in:
- lib/canql/nodes/anomaly.rb
Instance Method Summary collapse
Instance Method Details
#code_type ⇒ Object
113 114 115 116 117 118 |
# File 'lib/canql/nodes/anomaly.rb', line 113 def code_type return :icd_code if anomalies_icd_code.respond_to?(:to_code) return :code_group if anomalies_icd_code.respond_to?(:to_code_group) :fasp_rating end |
#to_code ⇒ Object
120 121 122 |
# File 'lib/canql/nodes/anomaly.rb', line 120 def to_code anomalies_icd_code.to_code if :icd_code == code_type end |
#to_code_group ⇒ Object
124 125 126 |
# File 'lib/canql/nodes/anomaly.rb', line 124 def to_code_group anomalies_icd_code.to_code_group if :code_group == code_type end |
#to_fasp_rating ⇒ Object
128 129 130 |
# File 'lib/canql/nodes/anomaly.rb', line 128 def anomalies_icd_code. if :fasp_rating == code_type end |