templates/patient_extension.rb.erb in cqm-models-0.8.4 vs templates/patient_extension.rb.erb in cqm-models-1.0.0

- old
+ new

@@ -38,12 +38,12 @@ # takes a category and/or, which returns all elements of that QDM # category. Example: patient.get_data_elements('encounters') # will return all Encounter QDM data types active on the patient. def get_data_elements(category = nil, status = nil) if category && status - dataElements.where(category: category, qdmStatus: status) || [] + dataElements.where(qdmCategory: category, qdmStatus: status) || [] elsif category - dataElements.where(category: category) || [] + dataElements.where(qdmCategory: category) || [] else dataElements || [] end end \ No newline at end of file