From db2683191739283e0c6552ba26e72332a4ddfba8 Mon Sep 17 00:00:00 2001 From: Joe Kotanchik Date: Mon, 11 Jan 2021 13:49:57 -0500 Subject: [PATCH] Filter out 'resource_type' from the CQL Calculation Results display on the patient history page. --- .../views/logic/cql_logic_patient_builder_view.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/views/logic/cql_logic_patient_builder_view.js.coffee b/app/assets/javascripts/views/logic/cql_logic_patient_builder_view.js.coffee index ca864a9a1..3f42ab5d4 100644 --- a/app/assets/javascripts/views/logic/cql_logic_patient_builder_view.js.coffee +++ b/app/assets/javascripts/views/logic/cql_logic_patient_builder_view.js.coffee @@ -8,12 +8,12 @@ class Thorax.Views.CqlPatientBuilderLogic extends Thorax.Views.BonnieView # Default results for all populations to 0. @results = {} - for pop in @population_names + for pop in @population_names when pop isnt 'resource_type' @results[pop] = 0 @cqlLogicView = new Thorax.Views.CqlPopulationLogic(model: @model, highlightPatientDataEnabled: true, population: @population) showRationale: (result) -> - for pop in @population_names + for pop in @population_names when pop isnt 'resource_type' @results[pop] = result.get(pop) if !result.isPopulated() @cqlLogicView.clearRationale()