From 04605770b839be8b003ce35c914e906019762101 Mon Sep 17 00:00:00 2001 From: Evan Chicoine Date: Fri, 1 Mar 2024 12:54:23 -0500 Subject: [PATCH] Fixed issues with list and placement --- templates/liquid/Measure.liquid | 46 ++++++++++++++++----------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/templates/liquid/Measure.liquid b/templates/liquid/Measure.liquid index 23f4d23..3d1cf44 100644 --- a/templates/liquid/Measure.liquid +++ b/templates/liquid/Measure.liquid @@ -295,29 +295,6 @@ {% endif %} - {% if Measure.supplementalData.usage.coding.where(code = 'risk-adjustment-factor').exists() %} - - Risk Adjustment Variable: - - {% for supplementalData in Measure.supplementalData.where(usage.coding.where(code = 'risk-adjustment-factor').exists()) %} - {% if supplementalData.code.exists() %} - {{iif(supplementalData.code.text.exists(), supplementalData.code.text, iif(supplementalData.code.coding.first().display.exists(), supplementalData.code.coding.first().display, supplementalData.code.coding.first().code))}} - {% else %} - {% if supplementalData.description.exists() %} - {{supplementalData.description}} - {% else %} - {% if supplementalData.criteria.description.exists() %} - {{supplementalData.criteria.description}} - {% else %} - {{supplementalData.criteria.expression}} - {% endif %} - {% endif %} - {% endif %} - {% endfor %} - - - {% endif %} - {% if Measure.riskAdjustment.exists() %} Risk Adjustment: @@ -436,6 +413,29 @@ {% endif %} + {% if Measure.supplementalData.usage.coding.where(code = 'risk-adjustment-factor').exists() %} + + Risk Adjustment Variable: + + {% for supplementalData in Measure.supplementalData.where(usage.coding.where(code = 'risk-adjustment-factor').exists()) %} + {% if supplementalData.code.exists() %} + {{iif(supplementalData.code.text.exists(), supplementalData.code.text, iif(supplementalData.code.coding.first().display.exists(), supplementalData.code.coding.first().display, supplementalData.code.coding.first().code))}} + {% else %} + {% if supplementalData.description.exists() %} +

{{supplementalData.description}}

+ {% else %} + {% if supplementalData.criteria.description.exists() %} +

{{supplementalData.criteria.description}}

+ {% else %} +

{{supplementalData.criteria.expression}}

+ {% endif %} + {% endif %} + {% endif %} + {% endfor %} + + + {% endif %} + {% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance') %}