Skip to content

Commit

Permalink
Fixed issues with list and placement
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Chicoine committed Mar 1, 2024
1 parent 8e9ea7d commit 0460577
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions templates/liquid/Measure.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -295,29 +295,6 @@
</tr>
{% endif %}

{% if Measure.supplementalData.usage.coding.where(code = 'risk-adjustment-factor').exists() %}
<tr>
<th scope="row"><b>Risk Adjustment Variable: </b></th>
<td style="padding-left: 4px;">
{% 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 %}
</td>
</tr>
{% endif %}

{% if Measure.riskAdjustment.exists() %}
<tr>
<th scope="row"><b>Risk Adjustment: </b></th>
Expand Down Expand Up @@ -436,6 +413,29 @@
</tr>
{% endif %}

{% if Measure.supplementalData.usage.coding.where(code = 'risk-adjustment-factor').exists() %}
<tr>
<th scope="row"><b>Risk Adjustment Variable: </b></th>
<td style="padding-left: 4px;">
{% 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() %}
<p>{{supplementalData.description}}</p>
{% else %}
{% if supplementalData.criteria.description.exists() %}
<p>{{supplementalData.criteria.description}}</p>
{% else %}
<p>{{supplementalData.criteria.expression}}</p>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</td>
</tr>
{% endif %}

{% for extension in Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance') %}
<tr>
<th scope="row">
Expand Down

0 comments on commit 0460577

Please sign in to comment.