Class: FHIR::CVXImmunizations

Inherits:
Rubrics
  • Object
show all
Defined in:
lib/rubrics/cvx_immunizations.rb

Class Method Summary collapse

Methods inherited from Rubrics

apply, response, rubric

Class Method Details

.cvx?(codeableconcept) ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
29
# File 'lib/rubrics/cvx_immunizations.rb', line 26

def self.cvx?(codeableconcept)
  return false if codeableconcept.nil? || codeableconcept.coding.nil?
  codeableconcept.coding.any?{|x| x.system=='http://hl7.org/fhir/sid/cvx' && FHIR::Terminology.get_description('CVX',x.code)}
end