diff --git a/src/main/resources/templates/Measure.liquid b/src/main/resources/templates/Measure.liquid index 3d1cf443..8e243a55 100644 --- a/src/main/resources/templates/Measure.liquid +++ b/src/main/resources/templates/Measure.liquid @@ -64,8 +64,7 @@ {% if Measure.effectivePeriod.exists() %} Effective Period: - {{Measure.effectivePeriod.start}} - ..{{Measure.effectivePeriod.end}} + {{Measure.effectivePeriod.start}}..{{Measure.effectivePeriod.end}} {% endif %} @@ -83,13 +82,6 @@ {% endif %} - {% if Measure.date.exists() %} - - Date: - {{Measure.date}} - - {% endif %} - {% if Measure.publisher.exists() %} Publisher: @@ -363,22 +355,29 @@ {% for population in group.population %} {{population.code.coding[0].display}}: - {% if population.description.exists() %} - {{population.description}} - {% else %} + + {% if population.criteria.expression.exists().not() %} None + {% else %} + {% if population.description.exists() %} + {{population.description}} + {% else %} + None + {% endif %} {% endif %} + {% endfor %} {% if group.stratifier.exists() %} Stratifier Criteria: {% for stratifier in group.stratifier %} - {{stratifier.code.coding[0].display}}: - {% if stratifier.description.exists() %} - {{stratifier.description}} + {% if stratifier.code.coding[0].display.exists() %} + {{stratifier.code.coding[0].display}}: + {% elsif stratifier.code.coding[0].code.exists() %} + {{stratifier.code.coding[0].code}}: {% else %} - None + Stratum: {% endif %} {% endfor %} @@ -485,7 +484,7 @@

Dependencies

{% endif %} @@ -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') %} - Related Artifact Dependencies: + Terminology and Other Dependencies: {% for relatedArtifact in contained.relatedArtifact.where(type = 'depends-on') %}
  • {{relatedArtifact.resource}}
  • @@ -564,8 +563,8 @@ - - + + @@ -630,7 +629,7 @@ {% for group in Measure.group %} - {% 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() %} - {% 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') %} @@ -724,14 +723,14 @@ {% endif %} + {% if group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo').exists() %} + + + + + {% endif %} + {% for population in group.population %}
    TypeElementsResource TypeResource Elements Valueset Name Valueset
    {{group.id}} + {% if group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring').exists() %} Group scoring: {% for extension in group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring') %} @@ -685,19 +684,19 @@
    Type: - {% if extension.coding.exists() %} - {% for coding in extension.coding %} + {% if extension.value.coding.exists() %} + {% for coding in extension.value.coding %}

    {{iif(coding.display.exists(), coding.display, coding.code)}} {{iif(coding.system != 'http://terminology.hl7.org/CodeSystem/measure-type', '(' + coding.system + ')', '')}}

    {% endfor %} {% endif %} - {% if extension.coding.exists().not() and extension.text.exists() %} + {% if extension.value.coding.exists().not() and extension.text.exists() %} {{extension.text}} {% endif %}
    Improvement Notation: {% 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 %}

    {{iif(coding.display.exists(), coding.display, coding.code)}} {{iif(coding.system != 'http://terminology.hl7.org/CodeSystem/measure-improvement-notation', '(' + coding.system + ')', '')}}

    {% 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 %} @@ -739,6 +738,13 @@
    Applies To: {{group.extension.where(url = 'http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-appliesTo').value}}