Skip to content

Commit

Permalink
MAT-7297: upgrade to 0.4.3 added fix for elsif
Browse files Browse the repository at this point in the history
  • Loading branch information
chubert-sb committed Jun 14, 2024
1 parent e8cbd06 commit 4291cf9
Showing 1 changed file with 35 additions and 29 deletions.
64 changes: 35 additions & 29 deletions src/main/resources/templates/Measure.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
{% if Measure.effectivePeriod.exists() %}
<tr>
<th scope="row"><b>Effective Period: </b></th>
<td style="padding-left: 4px;">{{Measure.effectivePeriod.start}}
..{{Measure.effectivePeriod.end}}</td>
<td style="padding-left: 4px;">{{Measure.effectivePeriod.start}}..{{Measure.effectivePeriod.end}}</td>
</tr>
{% endif %}

Expand All @@ -83,13 +82,6 @@
</tr>
{% endif %}

{% if Measure.date.exists() %}
<tr>
<th scope="row"><b>Date: </b></th>
<td style="padding-left: 4px;">{{Measure.date}}</td>
</tr>
{% endif %}

{% if Measure.publisher.exists() %}
<tr>
<th scope="row"><b>Publisher: </b></th>
Expand Down Expand Up @@ -363,22 +355,29 @@
{% for population in group.population %}
<tr>
<td>{{population.code.coding[0].display}}:</td>
{% if population.description.exists() %}
<td>{{population.description}}</td>
{% else %}

{% if population.criteria.expression.exists().not() %}
<td>None</td>
{% else %}
{% if population.description.exists() %}
<td>{{population.description}}</td>
{% else %}
<td>None</td>
{% endif %}
{% endif %}

</tr>
{% endfor %}
{% if group.stratifier.exists() %}
<tr><b>Stratifier Criteria: </b></tr>
{% for stratifier in group.stratifier %}
<tr>
<td>{{stratifier.code.coding[0].display}}:</td>
{% if stratifier.description.exists() %}
<td>{{stratifier.description}}</td>
{% if stratifier.code.coding[0].display.exists() %}
<td>{{stratifier.code.coding[0].display}}:</td>
{% elsif stratifier.code.coding[0].code.exists() %}
<td>{{stratifier.code.coding[0].code}}:</td>
{% else %}
<td>None</td>
<td>Stratum:</td>
{% endif %}
</tr>
{% endfor %}
Expand Down Expand Up @@ -485,7 +484,7 @@
<p><b>Dependencies</b></p>
<ul>
{% for artifact in Measure.relatedArtifact.where(type = 'depends-on') %}
<li>{{artifact.resource}}</li>
<li>{{artifact.display}}</li>
{% endfor %}
</ul>
{% endif %}
Expand Down Expand Up @@ -528,7 +527,7 @@
{% if Measure.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements').exists() %}
{% for contained in Measure.contained.where(id = 'effective-data-requirements') %}
<tr>
<th scope="row"><b>Related Artifact Dependencies: </b></th>
<th scope="row"><b>Terminology and Other Dependencies: </b></th>
<td style="padding-left: 4px;">
{% for relatedArtifact in contained.relatedArtifact.where(type = 'depends-on') %}
<li>{{relatedArtifact.resource}}</li>
Expand Down Expand Up @@ -564,8 +563,8 @@
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr>
<th><b>Type</b></th>
<th><b>Elements</b></th>
<th><b>Resource Type</b></th>
<th><b>Resource Elements</b></th>
<th><b>Valueset Name</b></th>
<th><b>Valueset</b></th>
</tr>
Expand Down Expand Up @@ -630,7 +629,7 @@
<tr>
{% for group in Measure.group %}
<td> {{group.id}} </td>
<td>
<td style="padding-left: 4px;" colspan="3">
{% if group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring').exists() %}
<b>Group scoring:</b>
{% for extension in group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring') %}
Expand Down Expand Up @@ -685,19 +684,19 @@
</tr>
{% endif %}

{% if group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-measureType').exists() %}
{% if group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type').exists() %}
<tr>
{% for extension in group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-measureType') %}
{% for extension in group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type') %}
<th scope="row"><b>Type: </b></th>
<td style="padding-left: 4px;">
{% if extension.coding.exists() %}
{% for coding in extension.coding %}
{% if extension.value.coding.exists() %}
{% for coding in extension.value.coding %}
<p style="margin-bottom: 5px;">
<span>{{iif(coding.display.exists(), coding.display, coding.code)}} {{iif(coding.system != 'http://terminology.hl7.org/CodeSystem/measure-type', '(' + coding.system + ')', '')}}</span>
</p>
{% endfor %}
{% endif %}
{% if extension.coding.exists().not() and extension.text.exists() %}
{% if extension.value.coding.exists().not() and extension.text.exists() %}
{{extension.text}}
{% endif %}
</td>
Expand All @@ -724,21 +723,28 @@
<th scope="row"><b>Improvement Notation: </b></th>
<td style="padding-left: 4px;">
{% for extension in group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-improvementNotation') %}
{% if extension.coding.exists() %}
{% for coding in extension.coding %}
{% if extension.value.coding.exists() %}
{% for coding in extension.value.coding %}
<p style="margin-bottom: 5px;">
<span>{{iif(coding.display.exists(), coding.display, coding.code)}} {{iif(coding.system != 'http://terminology.hl7.org/CodeSystem/measure-improvement-notation', '(' + coding.system + ')', '')}}</span>
</p>
{% endfor %}
{% endif %}
{% if extension.coding.exists().not() and extension.text.exists() %}
{% if extension.value.coding.exists().not() and extension.text.exists() %}
{{extension.text}}
{% endif %}
{% endfor %}
</td>
</tr>
{% endif %}

{% if group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo').exists() %}
<tr>
<th scope="row"><b>Applies To: </b></th>
<td style="padding-left: 4px;">{{group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo').value}}</td>
</tr>
{% endif %}

</td>
{% for population in group.population %}
<tr>
Expand Down

0 comments on commit 4291cf9

Please sign in to comment.